repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
abhaydgarg/Simplenote
api/v1/index.js
139
const express = require('express'); const router = express.Router(); const routes = require('./routes')(router); module.exports = router;
mit
MiszelHub/FuzzyDriverRefueling
Fuzzy-Driver/src/main/java/simulation/generators/PetrolStationGenerator.java
2533
package simulation.generators; import simulation.data.PetrolStation; import simulation.data.Road; /** * Created by user on 03.06.2017. */ public class PetrolStationGenerator { private Road road; private int minimalDistanceBetweenStations = 50; private int maximumDistanceBetweenStations = 200; priva...
mit
manishbisht/Competitive-Programming
Hiring Challenges/Bosch/Blockchain Developer Hiring/Round 2/truffle.js
484
var HDWalletProvider = require("truffle-hdwallet-provider"); var mnemonic = "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat"; module.exports = { networks: { development: { provider: function () { return new HDWalletProvider(mnemonic, "http://127.0.0.1...
mit
GoC-Spending/data-corporations
html/123456225077.html
34161
<!DOCTYPE html> <!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" dir="ltr"> <!--<![endif]--> <!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open...
mit
joaopereirawd/fakeLoader.js
README.md
1232
# What is fakeLoader.js fakeLoader.js is a lightweight jQuery plugin that helps you create an animated spinner with a fullscreen loading mask to simulate the page preloading effect. Check out the demo [http://joaopereirawd.github.io/fakeLoader.js/](http://joaopereirawd.github.io/fakeLoader.js) ## Current Version `V...
mit
RoseLeBlood/aSTL
docs/html/da/d52/classstd_1_1_sys-members.html
15410
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
mit
pinax/blog.pinaxproject.com
static/webpack.config.js
2456
var ExtractTextPlugin = require("extract-text-webpack-plugin"); var HtmlWebpackPlugin = require("html-webpack-plugin"); var path = require("path"); var webpack = require("webpack"); var projectTemplatesRoot = "../../ppb/templates/"; module.exports = { context: path.resolve(__dirname, "src"), entry: { a...
mit
cryptix/talebay
modules_basic/timestamp.js
613
var h = require('hyperscript') var human = require('human-time') exports.needs = {} exports.gives = 'message_meta' exports.create = function () { function updateTimestampEl(el) { el.firstChild.nodeValue = human(new Date(el.timestamp)) return el } setInterval(function () { var els = [].slice.call(...
mit
feathersjs/feathers
packages/transport-commons/src/socket/utils.ts
3996
import { HookContext, Application, createContext, getServiceOptions } from '@feathersjs/feathers'; import { NotFound, MethodNotAllowed, BadRequest } from '@feathersjs/errors'; import { createDebug } from '@feathersjs/commons'; import isEqual from 'lodash/isEqual'; import { CombinedChannel } from '../channels/channel/co...
mit
matthewsot/CocoaSharp
Headers/Frameworks/CoreData/NSSQLLimitIntermediate.h
401
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import <CoreData/NSSQLIntermediate.h> // Not exported @interface NSSQLLimitIntermediate : NSSQLIntermediate { unsigned long long _limit; } - (id)generateSQLStringInContext...
mit
yogeshsaroya/new-cdnjs
ajax/libs/fuelux/2.5.0/datepicker.js
130
version https://git-lfs.github.com/spec/v1 oid sha256:e40a08695f05163cfb0eaeeef4588fcfad55a6576cfadfb079505495605beb33 size 27133
mit
chepegeek/stranger-things
index.html
441
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Stranger Things Wall</title> <link rel="stylesheet" href="css/styles.css" /> </head> <body> <img src="img/vacio.gif" al...
mit
hassan-c/laravelapp
application/models/thread.php
193
<?php class Thread extends Eloquent { public static $table = 'threads'; public static $timestamps = true; public function replies() { return $this->has_many('Reply'); } }
mit
GuilhermeMatheus/GuilhermeMatheus.github.io
pages/resume.html
467
<html> <head> <meta charset="utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=Edge"/> <title>Blog | Guilherme Matheus Costa</title> <meta name="viewport" content="width=device-width, initial-scale=1"/> <link href="/css/essentials.min.css" rel="stylesheet" type="text/css"/> <meta proper...
mit
iambernie/hdf5handler
examples/opening.py
183
#!/usr/bin/env python from hdf5handler import HDF5Handler handler = HDF5Handler('mydata.hdf5') handler.open() for i in range(100): handler.put(i, 'numbers') handler.close()
mit
talves/famous-engine
src/webgl-geometries/primitives/Tetrahedron.js
2960
/** * The MIT License (MIT) * * Copyright (c) 2015 Famous Industries Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights...
mit
egore/libldt3-cs
libldt3/LdtReader.cs
18803
/* * Copyright 2016 Christoph Brill <[email protected]> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, ...
mit
joonamo/photoplaces
photoplaces/static/script/map.js
15053
var map; var bounds; var markers = {}; var cluster_polygons = {}; var zoomTimeout; var cluster_center_overlay; var white_overlay; var overlay_opacity = 50; var OPACITY_MAX_PIXELS = 57; var active_cluster_poly; var marker_image; var center_marker; var cluster_center_marker_icon; function createMap() { bounds = new ...
mit
devxxxcoin/xxxcoin
src/qt/sendcoinsdialog.cpp
9070
#include "sendcoinsdialog.h" #include "ui_sendcoinsdialog.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "addressbookpage.h" #include "optionsmodel.h" #include "sendcoinsentry.h" #include "guiutil.h" #include "askpassphrasedialog.h" #include "base58.h" #include <QMessageBox> #include <QLocale> #include...
mit
stevebauman/maintenance
resources/views/select/routes.blade.php
273
{!! Form::select( 'routes[]', $allRoutes, (isset($routes) ? array_keys($routes) : []), array( 'class' => 'form-control select2', 'placeholder' => 'Enter Routes', 'multiple' => true ) ) !!}
mit
aquaticpond/fedex
src/Aquatic/FedEx.php
1667
<?php namespace Aquatic; use Aquatic\FedEx\Contract\Address; use Aquatic\FedEx\Contract\Shipment; use Aquatic\FedEx\Response\Contract as ResponseContract; use Aquatic\FedEx\Request\ValidateAddress as ValidateAddressRequest; use Aquatic\FedEx\Response\ValidateAddress as ValidateAddressResponse; use Aquatic\FedEx\Reque...
mit
d-georgiev-91/TelerikAcademy
Programming/HighQualityProgrammingCode/ConsoleApplication1/Pesho/Properties/AssemblyInfo.cs
1346
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Pe...
mit
tsantor/banner-ad-toolkit
adkit/templates/style.css
1134
@charset "utf-8"; /* CSS Document */ /* -------------------------------------------------------------------------- */ /* BASE AD - typically, we do not mess with this section /* -------------------------------------------------------------------------- */ body, body * { vertical-align: baseline; border: 0; ...
mit
pcdummy/hugo-theme-persona
layouts/post/list.html
617
<article class="home_single_post gallery_post_type" typeof="BlogPosting"> {{ partial "post/image_area.html" . }} <div class="post_content_area"> <div class="row"> <div class="col-xs-12 col-sm-8 col-md-8 col-lg-8 col-xs-offset-0 col-sm-offset-2 col-md-offset-2 col-lg-offset-2"> ...
mit
sthomas1618/react-crane
stories/components/MultiSelectWithStringValues.js
667
import React, { Component } from 'react' import PropTypes from 'prop-types' import { MultiSelect } from '../../src' class MultiSelectWithStringValues extends Component { constructor(props) { super(props) this.state = { value: [] } } handleChange = (event) => { const { valueKey } = this.p...
mit
becrux/xfspp
util/operators.hpp
700
/* util/operators.hpp * * Copyright (C) 2007 Antonio Di Monaco * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #ifndef __OPERATORS_HPP__ #define __OPERATORS_HPP__ template< typename T > struct EqualComparable { friend ...
mit
DayGitH/Python-Challenges
DailyProgrammer/DP20150713A.py
1597
""" [2015-07-13] Challenge #223 [Easy] Garland words https://www.reddit.com/r/dailyprogrammer/comments/3d4fwj/20150713_challenge_223_easy_garland_words/ # Description A [_garland word_](http://blog.vivekhaldar.com/post/89763722591/garland-words) is one that starts and ends with the same N letters in the same order, f...
mit
smjie2800/spring-cloud-microservice-redis-activemq-hibernate-mysql
microservice-provider-pay/src/main/java/com/boyuanitsm/pay/unionpay/config/SDKConstants.java
13548
/** * * Licensed Property to China UnionPay Co., Ltd. * * (C) Copyright of China UnionPay Co., Ltd. 2010 * All Rights Reserved. * * * Modification History: * ============================================================================= * Author Date Description * ------------ -----...
mit
benastan/simple_ratings
lib/simple_ratings/foursquare.rb
918
require 'faraday' require 'simple_ratings/foursquare/meta/venue' module SimpleRatings class Foursquare < Faraday::Connection def initialize super(url: 'https://api.foursquare.com/v2/') end def default_params { client_id: ENV['FOURSQUARE_CLIENT_ID'], client_secret: ENV['FOURSQ...
mit
LedgerHQ/lib-ledger-core
core/lib/soci/core/soci-platform.h
1445
// // Copyright (C) 2006-2008 Mateusz Loskot // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // #ifndef SOCI_PLATFORM_H_INCLUDED #define SOCI_PLATFORM_H_INCLUDED #if defined(_MSC_VER) || defined(__MIN...
mit
ahzf/ExifLibrary
ExifLibrary/ExifExtendedProperty.cs
13977
using System; using System.Text; namespace ExifLibrary { /// <summary> /// Represents an enumerated value. /// </summary> public class ExifEnumProperty<T> : ExifProperty { protected T mValue; protected bool mIsBitField; protected override object _Value { get { return Value;...
mit
YanivHaramati/ShowFinder
ShowFinder/Repositories/Interfaces/IMongoRepository.cs
1257
using System.Collections.Generic; using System.Threading.Tasks; using MongoDB.Bson; using MongoDB.Driver; using ShowFinder.Models; namespace ShowFinder.Repositories.Interfaces { public interface IMongoRepository { IMongoDatabase Database(string name); Task<BsonDocument> GetUserProfi...
mit
ademirtc/bandeirantes
lib/gft/doc/html/gft__stack_8cpp.html
4861
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
mit
brynbodayle/BABAudioPlayer
Pod/Classes/BABAudioPlaylist.h
437
// // BABAudioPlaylist.h // Pods // // Created by Bryn Bodayle on May/12/2015. // // #import <Foundation/Foundation.h> @interface BABAudioPlaylist : NSObject + (instancetype)audioPlaylistWithArray:(NSArray *)array; - (instancetype)initWithArray:(NSArray *)array; - (id)objectAtIndexedSubscript:(NSUInteger)idx; -...
mit
riyadhalnur/keystone
fields/types/datearray/DateArrayType.js
3038
/*! * Module dependencies. */ var util = require('util'), moment = require('moment'), super_ = require('../Type'); /** * Date FieldType Constructor * @extends Field * @api public */ function datearray(list, path, options) { this._nativeType = [Date]; this._defaultSize = 'medium'; this._underscoreMethods...
mit
etsy/deployinator
lib/deployinator/stack-tail.rb
1403
# -*- coding: utf-8 -*- require "em-websocket" require "eventmachine-tail" module Tailer # Extends FileTail to push data tailed to an EM::Channel. All open websockets # subscribe to a channel for the request stack and this pushes the data to # all of them at once. class StackTail < EventMachine::FileTail d...
mit
IncaProject/IncaProject.github.io
releases/2.4/docs/javadocs/inca-consumers/edu/sdsc/inca/package-frame.html
1321
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.5.0_05) on Thu Jul 03 13:49:54 PDT 2008 --> <TITLE> edu.sdsc.inca </TITLE> <META NAME="keywords" CONTENT="edu.sdsc.inca package"> <LINK REL ="styleshee...
mit
dragonphoenix/proto-java-csharp
DotNetty/DotNetty.Transport/Channels/Sockets/DefaultDatagramChannelConfig.cs
14695
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace DotNetty.Transport.Channels.Sockets { using System; using System.Diagnostics.Contracts; using System.Net; using System.Net.NetworkInformation...
mit
Progyan1997/Design-and-Analysis-of-Algorithm
String Search/Finite Automata/Search.c
1307
/* * Search first occurence of a particular string in a given text [Finite Automata] * Author: Progyan Bhattacharya <[email protected]> * Repo: Design-And-Analysis-of-Algorithm [MIT LICENSE] */ #include "Search.h" static int NextState(int m, char* pattern, int state, int symbol) { if (state < m && pattern[stat...
mit
memuller/claire.client
spec/claire_client/item_spec.rb
3595
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') class Video include Claire::Client::Item end describe Claire::Client::Item do #@session.should_receive(:post).with("url", "data", "headers") #@session = mock("session") before do Claire::Client.stub(:get).with('videos/id').and_return xml :ite...
mit
Hammster/wildstar-api-docs
Classes/PathMission.md
8646
PathMission =========== ### Prefix: pm ------------------------------------------------------------------------ `Enum` PathMissionDisplayType ---------------------- - **Soldier\_Assassination** - **Soldier\_Defend** - **Soldier\_Demolition** - **Soldier\_FirstStrike** - **Soldier\_Holdout...
mit
jasonwatt/SMParser
src/Traits/Song/Banner.php
541
<?php namespace Zanson\SMParser\Traits\Song; use Zanson\SMParser\SMException; trait Banner { public $banner = ''; /** * @return string */ public function getBanner() { return $this->banner; } /** * @param string $banner * * @return $this * @throws SMExceptio...
mit
shampine/180
public/js/src/script.js
143
if ( !window.console ) window.console = { log:function(){} }; jQuery(document).ready(function($) { console.log('Keep being awesome.'); });
mit
mayoms/monkey
parser/strings.go
612
package parser import ( "monkey/ast" "monkey/token" ) func (p *Parser) parseStringLiteralExpression() ast.Expression { return &ast.StringLiteral{Token: p.curToken, Value: p.curToken.Literal} } func (p *Parser) parseInterpolatedString() ast.Expression { is := &ast.InterpolatedString{Token: p.curToken, Value: p.cu...
mit
ttitto/PersonalProjects
ForumHelper/ForumHelper/ToastForm.cs
1852
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Timers; using System.Diagnostics; namespace ForumHelper { public partial class ToastForm : Form { ...
mit
Spomky-Labs/jose
tests/Functional/EncrypterBaseTest.php
25820
<?php /* * The MIT License (MIT) * * Copyright (c) 2014-2018 Spomky-Labs * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ use Base64Url\Base64Url; use Jose\Decrypter; use Jose\Encrypter; use Jose\Factory\JWEFactory; use Jose\Loader; u...
mit
mrayy/UnityCam
UnrealCamDemo/Source/UnrealCamDemo.Target.cs
349
// Fill out your copyright notice in the Description page of Project Settings. using UnrealBuildTool; using System.Collections.Generic; public class UnrealCamDemoTarget : TargetRules { public UnrealCamDemoTarget(TargetInfo Target) : base(Target) { Type = TargetType.Game; ExtraModuleNames.AddRange( new string[]...
mit
joserobjr/CTFGameMods
src/main/java/br/com/gamemods/tutorial/ctf/CTFGameMods.java
131
package br.com.gamemods.tutorial.ctf; import org.bukkit.plugin.java.JavaPlugin; public class CTFGameMods extends JavaPlugin { }
mit
ant-design/ant-design
components/dropdown/index.en-US.md
3428
--- category: Components type: Navigation title: Dropdown cover: https://gw.alipayobjects.com/zos/alicdn/eedWN59yJ/Dropdown.svg --- A dropdown list. ## When To Use When there are more than a few options to choose from, you can wrap them in a `Dropdown`. By hovering or clicking on the trigger, a dropdown menu will ap...
mit
Rhysn/Data-Structure-And-Algorithm
Sort/BubbleSort.c
917
/************************ BUBBLE SORT Author:Rhysn Date:2015 *************************/ #include <stdio.h> #include <stdlib.h> typedef int ElemType; void swap(ElemType *left,ElemType *right){ ElemType temp = *left; *left = *right; *right = temp; } void BubbleSort(ElemType *array,int num){ ...
mit
jonahkirangi/solarsystem
css/style.css
6321
/** * Keyframes. */ @-webkit-keyframes rotation { 0% { -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -moz-transform: rotate(360deg); -ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); ...
mit
simonmysun/praxis
TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/c5cb57467c267c20a35f92318f4692026c064ad7ef73843ba6db5d1bcd65b843.html
550
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./b89c9c584be36686b5c8c1699d0ab37f2ca82f649a1f817843cceb1bafd56a45.html">Teleport</a> <hr> ...
mit
simonmysun/praxis
TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/cfa46991bdb810d48aaad070e86d32606ad11ab98dba37c82ee2433179f9b2ce.html
550
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./111c39a5fd93aebe64e0345eaa4a3fa383b808cd19ce3e292b38f80817041e92.html">Teleport</a> <hr> ...
mit
SeanXP/ARM-Tiny6410
linux/linux-example/socket_echo_server/echo_server.c
6157
/**************************************************************** Copyright (C) 2014 All rights reserved. > File Name: < echo_server.c > > Author: < Sean Guo > > Mail: < [email protected] > > Created Time: < 2014/06/19 > > ...
mit
thuongvu/postcss-emoji
emojify.js
382
'use strict'; var emojiArr = require('./emojis'); var i = 0; var existingRules = {}; var generateEmoji = function(selector) { if (!existingRules[selector]) { existingRules[selector] = emojiArr[i]; if (i !== emojiArr.length) { i++ } else { i = 0; } } retur...
mit
ginach/msgraph-sdk-dotnet
src/Microsoft.Graph/Requests/Generated/WorkbookFunctionsBesselIRequest.cs
3043
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ /...
mit
Orphist/write_xlsx
test/regression/test_set_column07.rb
1095
# -*- coding: utf-8 -*- require 'helper' class TestRegressionSetColumn07 < Test::Unit::TestCase def setup setup_dir_var end def teardown File.delete(@xlsx) if File.exist?(@xlsx) end def test_set_column07 @xlsx = 'set_column07.xlsx' workbook = WriteXLSX.new(@xlsx) worksheet = workbo...
mit
hectoregm/hectoregm
Practica3/public/js/canvas_fractal.js
4312
var fractal = fractal || {}; fractal.workerPaths = { "mandelbrot": "public/js/mandel.js", }; fractal.Fractal = function (canvas, workerCount) { this.canvas = canvas; this.workerCount = workerCount; this.workerDoneCount = 0; this.ctx = canvas.getContext("2d"); this.width = canvas.width; this.height = c...
mit
chrmod/raureif
tests/node/index-test.js
71
describe('raureif', function () { it('test', function () { }); });
mit
lennonchan/OgreSource
Docs/api/html/OgreProperty_8h.html
14771
<html> <head> <title>OGRE: OgreProperty.h File Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link type="text/css" rel="stylesheet" href="doxygen.css"> <link type="text/css" rel="stylesheet" href="tabs.css"> </head> <body> <!-- Generated by Doxygen 1.6...
mit
electric-eloquence/fepper-npm
ui/core/styleguide/index/html/01-body/40-main/main.js
2224
/** * @file ui/core/styleguide/index//html/01-body/40-main/main.js * @description Listeners on the body, iframe, and rightpull bar. */ /* istanbul ignore if */ if (typeof window === 'object') { document.addEventListener('DOMContentLoaded', () => { const $orgs = FEPPER_UI.requerio.$orgs; const { uiFns...
mit
scbd/absch.cbd.int
i18n/es/app/views/forms/directives/traits-selector.directive.html
5390
<div> <table class="table table-bordered"> <tr> <td> <div km-term-check name="root-traits" locales="locales" required ng-change="onRootTraitsChange()" ng-model="rootTraits" terms="options.rootTraits()" binding-type="term[]"></div> </td> ...
mit
checkdomain/Holiday
src/Util.php
1932
<?php namespace Checkdomain\Holiday; use Checkdomain\Holiday\Model\Holiday; /** * Class Util */ class Util { /** * Instantiates a provider for a given iso code * * @param string $iso * * @return ProviderInterface */ protected function getProvider($iso) { $instance ...
mit
Team-Papaya-Web-Services-and-Cloud/Web-Services-and-Cloud-Teamwork-2014
Votter/Votter.Services/Startup.cs
331
namespace Votter.Services { using System; using System.Linq; using Microsoft.Owin; using Owin; [assembly: OwinStartup(typeof(Votter.Services.Startup))] public partial class Startup { public void Configuration(IAppBuilder app) { this.ConfigureAuth(app); ...
mit
jsyk/PIP-Watch
pipwatch_zero-fw/buttons.h
1579
#ifndef BUTTONS_H #define BUTTONS_H #include "FreeRTOS.h" /* hardware button state */ struct button_state_t { /* STATE WRITTEN IN IRQ HANDLER */ /* current button state: 0 (up, released) or 1 (down, pressed) */ int st; /* the cpu-tick time when the current state (up or down) was recorded */ TickType_t tick; /*...
mit
bhavindesai20/MovieBazar
public/templates/movie.html
9600
<div class="panel panel-default movie-container"> <div class="panel-body"> <div class="row top-part"> <div class="col-xs-12 col-md-4 movie-image"> <img ng-show="movie.Poster" class="img-rounded" src="{{movie.Poster}}" /> <div ng-show="!movie.Poster" class="img-ro...
mit
dperezmavro/courseworks_uni
year_3/large_scale_and_distributed_systems/src/CharCounterMain.java
1792
import java.io.BufferedReader; import java.io.IOException; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; public class CharCounterMain{ final static Charset enc = StandardCharsets.US_ASCII ; ...
mit
sasyomaru/advanced-javascript-training-material
module3/scripts/angular-app.js
9478
"use strict"; (function() { // "todos-angular" is just a hard-code id for storage var LOCAL_STORAGE_KEY = 'todos-angular'; var ENTER_KEY = 13; var ESC_KEY = 27; var internalFilters = { active: function(toDoItem) { return !toDoItem.completed; }, completed: functi...
mit
Danack/Blog
vendor/danack/params/lib/Params/SafeAccess.php
403
<?php namespace Params; /** * @codeCoverageIgnore */ trait SafeAccess { public function __set($name, $value) { throw new \Exception("Property [$name] doesn't exist for class [".get_class($this)."] so can't set it"); } public function __get($name) { throw new \Exception("Property...
mit
prinnb/cs242-final-project
restaurant/static/restaurant/account.css
602
html{ height: 100%; margin: 0; background-color:#323232; } body{ font-family: 'Lato', sans-serif; font-size: 11pt; font-weight: 300; color: #C8C8C8 } ul { list-style: none; } a:link {color:#6c6c6c;} a:visited {color:#757575;} a:hover {color:white;} a:active {color:white;} .header{ text-align: center; ...
mit
redsolution/django-generic-ratings
ratings/forms/widgets.py
7704
from decimal import Decimal from django import forms from django.template.loader import render_to_string from django.template.defaultfilters import slugify class BaseWidget(forms.TextInput): """ Base widget. Do not use this directly. """ template = None instance = None def get_parent_id(self,...
mit
bit101/gifloopcoder
src/src/app/render/shapes/isobox.js
2755
define(function() { return { draw: function(context, t) { var x = this.getNumber("x", t, 100), y = this.getNumber("y", t, 100), size = this.getNumber("size", t, 60), h = this.getNumber("h", t, 40), colorLeft = this.getColor("colorLeft", t, "#999999"), colorRight = this.getColor("col...
mit
lyonscf/bounded-context
src/Contracts/Generator/Identifier.php
587
<?php namespace BoundedContext\Contracts\Generator; use BoundedContext\Contracts\ValueObject\Identifier as IdentifierVO; interface Identifier extends ValueObject { /** * Generates a new random Identifier. * * @return IdentifierVO */ public function generate(); /** * Generates a ...
mit
cuckata23/wurfl-data
data/softbank_v702nk2_ver1.php
1037
<?php return array ( 'id' => 'softbank_v702nk2_ver1', 'fallback' => 'softbank_generic', 'capabilities' => array ( 'physical_screen_height' => '41', 'columns' => '15', 'physical_screen_width' => '34', 'max_image_width' => '176', 'rows' => '6', 'resolution_width' => '176', 'resolution...
mit
andrivanoff/andrivanoff.github.io
categories/из-чего/page/1/index.html
440
<!DOCTYPE html><html><head><title>https://andrivanoff.github.io/categories/%D0%B8%D0%B7-%D1%87%D0%B5%D0%B3%D0%BE/</title><link rel="canonical" href="https://andrivanoff.github.io/categories/%D0%B8%D0%B7-%D1%87%D0%B5%D0%B3%D0%BE/"/><meta http-equiv="content-type" content="text/html; charset=utf-8" /><meta http-equiv="re...
mit
ivelin1936/Studing-SoftUni-
Programming Fundamentals/DataTypesAndVariables-Lab/src/com/company/Greeting.java
419
package com.company; import java.util.Scanner; public class Greeting { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String firstName = scanner.nextLine(); String lastName = scanner.nextLine(); int age = Integer.parseInt(scanner.nextLine()); ...
mit
expositionrabbit/Sbahjsic-runtime
src/sbahjsic/runtime/Type.java
7839
package sbahjsic.runtime; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import sbahjsic.core.Warnings; import sbahjsic.core.Warnings.Level; import sbahjsic.runtime.Operator.BiOperator; import sbahjsic.runtime.Operator.UnOperator; import sbahjsic.runtime.Operator.Varar...
mit
aquilax/quantified.avtobiografia.com
content/post/2018-02-19.md
1092
{ "date": "2018-02-19", "type": "post", "title": "Report for Monday 19th of February 2018", "slug": "2018\/02\/19", "categories": [ "Daily report" ], "images": [], "health": { "weight": 79.6, "height": 173, "age": 13578 }, "nutrition": { "c...
mit
Cyberwatch/cbw-security-fixes
Ubuntu_12.04_LTS/x86_64/2014/USN-2166-1.sh
706
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for USN-2166-1 # # Security announcement date: 2014-04-14 00:00:00 UTC # Script generation date: 2017-01-01 21:03:46 UTC # # Operating System: Ubuntu 12.04 LTS # Architecture: x86_64 # # Vulnerable packages fix on version: # - libsnmp15:5.4.3~dfsg-2.4ubuntu1.2 # ...
mit
scotthelm/fencepost
spec/dummy/app/models/person.rb
125
class Person < ActiveRecord::Base has_many :addresses, dependent: :destroy accepts_nested_attributes_for :addresses end
mit
cerebral/cerebral-debugger-prototype
versions/v1/components/Debugger/Inspector/index.js
10888
import React from 'react'; import {connect} from 'cerebral-view-react'; import styles from './styles.css'; import { isObject, isArray, isString, isBoolean, isNumber, isNull } from 'common/utils'; import JSONInput from './JSONInput'; import connector from 'connector'; function isInPath(source, target) { i...
mit
Azure/azure-sdk-for-go
services/storage/datalake/2019-10-31/storagedatalake/client.go
1358
// Package storagedatalake implements the Azure ARM Storagedatalake service API version 2019-10-31. // // Azure Data Lake Storage provides storage for Hadoop and other big data workloads. package storagedatalake // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License...
mit
ragingwind/field-value
index.js
1725
'use strict'; function valuefy(value) { if (typeof value !== 'object') { return (typeof value === 'string') ? `"${value}"` : value; } let values = []; if (Array.isArray(value)) { for (const v of value) { values.push(valuefy(v)); } values = `[${values.join(',')}]`; } else { for (let v in value) { ...
mit
atoff/core
app/Notifications/Mship/ForgottenPasswordLink.php
1567
<?php namespace App\Notifications\Mship; use App\Notifications\Notification; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Notifications\Messages\MailMessage; class ForgottenPasswordLink extends Notification implements ShouldQueue { use Queueable; private $token; ...
mit
guptag/js-frameworks
React/examples/hello-world/src/data/TasksService.js
308
export default class TasksService { static async fetchTasks() { const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); await delay(1000); return [ { id: 0, description: "task1", status: "Active" }, { id: 1, description: "task2", status: "Active" }, ]; } }
mit
tthufo/THPod
THPod/Classes/GUISlider.h
446
// // GUISlider.h // GUIPlayerView // // Created by Guilherme Araújo on 08/12/14. // Copyright (c) 2014 Guilherme Araújo. All rights reserved. // #import <UIKit/UIKit.h> @interface GUISlider : UISlider - (void)setSecondaryValue:(float)value; - (void)setSecondaryTintColor:(UIColor *)tintColor; @property (nonato...
mit
yagisumi/ruby-gdiplus
ext/gdiplus/ruby_ext_utils.hpp
8156
#ifndef RUBY_EXT_UTILS_HPP_ #define RUBY_EXT_UTILS_HPP_ 1 #include <functional> #include <ruby.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <typeinfo> #ifdef __GNUC__ #include <cxxabi.h> #endif template <typename T> static const char * type_name() { #ifdef __GNUC__ const int buf_size = ...
mit
vslinko-archive/vasya-hobot
src/client/api/Message.js
351
/** * Vasya Hobot * * Copyright (c) 2013-2014 Vyacheslav Slinko * Licensed under the MIT License */ function Message(chat, body) { this._chat = chat; this._body = body; } Message.prototype.getChat = function() { return this._chat; }; Message.prototype.getBody = function() { return this._body; ...
mit
Kishlin/Ehub
src/PLL/SocialBundle/Form/Type/PostType.php
1072
<?php namespace PLL\SocialBundle\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\TextareaType; use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolver; use Symf...
mit
vladb55/SeptemberRepository
app/src/main/java/septemberpack/september/Asteroid.java
3547
package septemberpack.september; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Rect; import java.util.Random; /** * Created by Vlady on 22.10.2015. */ /** * Данный класс реализует отрисовку астероидов */ public class Asteroid { Bitmap bitmap; /** * Коорди...
mit
on3iro/Gloomhaven-scenario-creator
src/containers/Auth/tests/UserProfile.test.js
327
import React from 'react'; import { shallow } from 'enzyme'; import UserProfile from '../UserProfile'; import Wrapper from '../Wrapper'; describe('<UserProfile />', () => { it('should render <Wrapper />', () => { const wrapper = shallow(<UserProfile />); expect(wrapper.find(Wrapper).length).toEqual(1); }...
mit
Vizzuality/climate-watch
db/migrate/20171016113108_create_wri_metadata_sources.rb
177
class CreateWriMetadataSources < ActiveRecord::Migration[5.1] def change create_table :wri_metadata_sources do |t| t.text :name t.timestamps end end end
mit
LukeTowers/oc-queencityhack2k17-site
plugins/luketowers/twigpcre/DOCUMENTATION.md
1210
## Examples: **As filters:** ```twig {{ subject | preg_filter(pattern, replacement, limit) }} {{ subject | preg_grep(pattern) }} {{ subject | preg_match(pattern) }} {{ subject | preg_quote(delimiter) }} {{ subject | preg_replace(pattern, replacement, limit) }} {{ subject | preg_split(pattern) }} ``` **As functio...
mit
TsinStudio/tsinstudio.github.com
_includes/navigation_en.html
427
<ul class="menu-item"> <li class="home"><a href="/">{{ site.title }}</a></li> {% for link in site.data.navigation %} {% if link.url_en contains 'http' %} {% assign domain = '' %} {% else %} {% assign domain = site.url_en %} {% endif %} <li><a href="{{ domain }}{{ link.url_en }}" {%...
mit
davidsneal/laravel-maxcdn
src/MaxCDN/OAuth/OAuthDataStore.php
747
<?php namespace Davidsneal\MaxCDN\OAuth; class OAuthDataStore { function lookup_consumer($consumer_key) { // implement me } function lookup_token($consumer, $token_type, $token) { // implement me } function lookup_nonce($consumer, $token, $nonce, $timestamp) { // implement...
mit
rollo-zhou/look
src/components/LookDetail.js
5317
import React from 'react'; import { ActivityIndicator, StyleSheet, Image, Text, View, ListView, TouchableOpacity } from 'react-native'; import Dimensions from 'Dimensions'; const {width, height} = Dimensions.get('window'); import globalVariables from '../globalVariables.js'; import LookCell from './LookC...
mit
NESCent/phylocommons
tools/treebase_scraper/annotate_trees.py
622
#!/usr/bin/env python import sys import os from treestore import Treestore try: taxonomy = sys.argv[1] except: taxonomy = None t = Treestore() treebase_uri = 'http://purl.org/phylo/treebase/phylows/tree/%s' tree_files = [x for x in os.listdir('trees') if x.endswith('.nex')] base_uri = 'http://www.phylocommons.org/...
mit
AnonymPHP/Anonym-Library
src/Anonym/Facades/Validation.php
487
<?php /** * This file belongs to the AnoynmFramework * * @author vahitserifsaglam <[email protected]> * @see http://gemframework.com * * Thanks for using */ namespace Anonym\Facades; use Anonym\Patterns\Facade; /** * Class Validation * @package Anonym\Facades */ class Validation extends Facade { ...
mit
Safewhere/kombit-web-java
Kombit.Samples.CH.WebsiteDemo/src/java/dk/itst/oiosaml/sp/service/SPFilter.java
12213
/* * The contents of this file are subject to the Mozilla Public * License Version 1.1 (the "License"); you may not use this * file except in compliance with the License. You may obtain * a copy of the License at http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an * "...
mit
merry-bits/SWP
swp/templates/swp/event.html
4577
{% extends 'swp/base.html' %} {% load static %} {% block content %} <div class="container-fluid"> <div class="page-header"> <h1>{{ event.title }}</h1> </div> {% if user.is_authenticated %} <form action="{% url 'new_event' event.slug.hex %}" method="POST" enctype="multipart/form-data" class="form-...
mit