code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
angular.module('myApp').directive('allPosts', function ($location, $cookieStore) { // console.log('DSSDFLDSFU'); return { restrict: 'E', scope: { data: '=' }, templateUrl: 'modules/posts/views/allPosts.html', // controller: function () { // console....
smokezp/angular-blog
app/modules/posts/js/directives/allPosts.js
JavaScript
mit
774
using System; using System.Linq; using MadisonMetroSDK; using Microsoft.VisualStudio.TestTools.UnitTesting; using System.Collections.Generic; using System.Threading.Tasks; namespace MadisonMetroTests { [TestClass] public class MadisonMetroTests { [TestMethod] public void GetAllRoutes_Retur...
erasmuss22/MadisonMetro
src/MadisonMetroTests/MadisonMetroTests.cs
C#
mit
1,632
using JsonRPC; using Newtonsoft.Json; namespace KerioConnect { public class TypedResponse<TType> : Response where TType : class { /// <summary>The result if no error occured.</summary> [JsonProperty("result", Required = Required.Default)] public TType Result; public bool Shoul...
peschuster/kerioconnect-csharp
source/KerioConnect/TypedResponse.cs
C#
mit
409
using Microsoft.Media.AdaptiveStreaming.Dash.Smooth; using Microsoft.Media.ISO; using Microsoft.Media.ISO.Boxes; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Threading.Tasks; namespace Microsoft.Media.AdaptiveStreaming.Dash { internal abstract class CffFileParse...
bondarenkod/pf-arm-deploy-error
playerframework/Universal.WinRT.AdaptiveStreaming.Dash/CFF/CffFileParser.cs
C#
mit
3,253
using System; namespace Strings.MakingAnagrams { class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); } } }
anton-abyzov/Hackerrank.CrackingTheInterview
Strings.MakingAnagrams/Program.cs
C#
mit
202
 namespace MockAllTheThings.Testing { public class TestService { public ITestInterface TestInterface { get; private set; } public TestService(ITestInterface testInterface) { TestInterface = testInterface; } } }
plmwong/mock-all-the-things
MockAllTheThings.Testing/TestService.cs
C#
mit
230
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. package gctrpc import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package...
thrasher-/gocryptotrader
gctrpc/rpc_grpc.pb.go
GO
mit
155,402
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace WPFTemplate.Helpers { /// <summary> /// Command (<see cref="Action"/>) that can be executed based on an optional /// function ...
Deadpikle/NetSparkle
src/NetSparkle.UI.WPF/Helpers/RelayCommand.cs
C#
mit
4,839
require 'rspec' require 'keen-cli' require 'digest/md5' require File.expand_path("../../lib/keen-cli-mixpanel", __FILE__) RSpec.configure do |config| end
UXScripts/keen-cli-mixpanel
spec/spec_helper.rb
Ruby
mit
157
const T = { 'compares the test result against snapshot'() { return 'ok' }, } export default T
Sobesednik/zoroaster
test/spec/snapshot.js
JavaScript
mit
102
var mongo = require("mongodb").MongoClient, //url = "mongodb://localhost:27017/learnyoumongo", dbName = process.argv[2], url = "mongodb://localhost:27017/" + dbName ; function main() { mongo.connect(url, function (err, db) { var collection; if (err) { throw err; } ...
kwpeters/workshopper-solutions
learnyoumongo-solutions/06-update/solution.js
JavaScript
mit
608
/* * Copyright (c) 2008-2013 The Open Source Geospatial Foundation * * Published under the BSD license. * See https://github.com/geoext/geoext2/blob/master/license.txt for the full * text of the license. */ /** * The model for scale values. * * @class GeoExt.data.ScaleModel */ Ext.define('GeoExt.data.ScaleMo...
gisprogrammer/wsp.geo.pl
external/geoext2/src/GeoExt/data/ScaleModel.js
JavaScript
mit
700
class BarginCondition < ActiveRecord::Base belongs_to :bargin OBJECTS = [ "Comment", "Vote" ] OPERATORS = { '>' => 'more than', '<' => 'less than', '>=' => 'more than or equal to', '<=' => 'less than or equal to', '==' => 'is equal to', '!=' => 'is not equal to' } attr_acc...
Prizzm/mightbuy-models
app/models/bargin_condition.rb
Ruby
mit
530
# classifier.py # # This module contains code to support the classifier notebook import numpy as np import pylab as plt def p_correct_given_pos(sens, fpr, b): """ Returns a simple Bayesian probability for the probability that a prediction is correct, given that the prediction was positive, given ...
widdowquinn/Teaching-SfAM-ECS
workshop/tools/classifier.py
Python
mit
2,237
<?php // ::layout1.html.twig return array ( );
SulivanDotEu/hca
app/cache/dev/assetic/config/a/a7c05bf748b79f85f6838ebb28ddc2a0.php
PHP
mit
48
/** * Created by dandan on 17-8-29. */ import * as types from "./mutation-types"; const mutations = { [types.SET_SINGER](state, singer){ state.singer = singer }, [types.SET_PLAYING_STATE](state, flag){ state.playing = flag }, [types.SET_FULL_SCREEN](state,flag){ state.full...
xiaodanli/web-music
src/store/mutations.js
JavaScript
mit
1,170
"""manglocreative URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cl...
rizkiwisnuaji/django-newbie-cms
manglocreative/urls.py
Python
mit
2,703
package com.github.dsaa.tree.binary; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class BTreePrinter { public static <T extends Comparable<?>> void printBNode(BNode<T> root) { int maxLevel = BTreePrinter.maxLevel(root); printBNodeInternal(Collections.singletonList(roo...
code4love/DSAA
src/main/java/com/github/dsaa/tree/binary/BTreePrinter.java
Java
mit
2,401
<?php namespace Cresta\AulasBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class CrestaAulasBundle extends Bundle { public function getParent() { return 'FOSUserBundle'; } }
jorihuamancha/aulas
src/Cresta/AulasBundle/CrestaAulasBundle.php
PHP
mit
202
<? ############################################################################# # SectionMaster.org Registration System # ADMIN BACKEND # Copyright (c) 2005-2007 Clostridion Design & Support, LLC. # All included files and modules of this system share the above copyright. # All rights are reserved by Clostridion Desig...
mattharris5/sectionmaster
register/admin/index.php
PHP
mit
647
<!-- BREADCRUMB --> <div> <ol class="breadcrumb"> <li><?php echo anchor(base_url('home'), 'Home')?></li> <li><?php echo anchor(base_url('contacto'), 'Contacto')?></li> </ol> </div> <!-- FIN BREADCRUMB --> <div class="row"> <div class="col-xs-12"> <div class="panel"> <div class="panel-heading"> ...
Bookcorner/bookcorner
application/views/static_pages/contact.php
PHP
mit
4,510
import expect from 'expect'; import { By } from 'selenium-webdriver'; import driver from '../chromeWebDriver'; import { elementValueIs } from '../../src'; describe('e2e', () => { describe('elementValueIs', () => { before(async () => { await driver.get('http://localhost:3000/elementValueIs.html...
marmelab/selenium-smart-wait
e2e/tests/elementValueIs.spec.js
JavaScript
mit
1,068
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace NXDO.RJava.Core { class JPDateTime : JParamValue { public static string JavaDateClassName = "java.util.Date"; public static string SDateFormat = "yyyy-MM-dd HH:mm:ss"; private JPDateTime(D...
javasuki/RJava
NXDO.Mixed.V2015/NXDO.RJava/CoreParam/JPDateTime.cs
C#
mit
1,991
;(function ($, window, document, undefined) { "use strict"; window = (typeof window != 'undefined' && window.Math == Math) ? window : (typeof self != 'undefined' && self.Math == Math) ? self : Function('return this')() ; $.fn.dimmer = function(parameters) { var $allModules = $(th...
Cryptix720/Chronimi
src/definitions/modules/dimmer.js
JavaScript
mit
21,282
class Customer < Character end
maldrasen/archive
Rysh.2/app/models/customer.rb
Ruby
mit
32
using System; using System.ComponentModel; using System.IO; using System.Reflection; using System.Threading; using System.Windows.Forms; using BorderlandsAdvancedConfig.INIParser; using BorderlandsAdvancedConfig.SettingsManagers; namespace BorderlandsAdvancedConfig { public partial class FrmConfig : Form { ...
TheLonerD/BorderlandsAdvancedConfig
FrmConfig.cs
C#
mit
14,522
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Cosmosdb::Mgmt::V2020_09_01 module Models # # A metric name. # class MetricName include MsRestAzure # @return ...
Azure/azure-sdk-for-ruby
management/azure_mgmt_cosmosdb/lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/metric_name.rb
Ruby
mit
1,486
'use strict'; var m = require('mithril'); function controller() { } function view() { return [ m('h1', 'mithril-isomorphic-example'), m('p', 'yes, it works'), m('a', { href: '/second-page', config: m.route }, 'second page'), m('div', ''), m('a', { href: '/resume', c...
john-ko/johnkoorg
client/pages/home.js
JavaScript
mit
421
// The MIT License (MIT) // // Copyright (c) Andrew Armstrong/FacticiusVir 2020 // // 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 r...
FacticiusVir/SharpVk
src/SharpVk/CommandCacheStruct.gen.cs
C#
mit
116,920
<body> <div id="preloader"> <div id="status">&nbsp;</div> </div> <!-- Body content --> <div class="header-connect"> <div class="container"> <div class="row"> <div class="col-md-5 col-sm-8 col-xs-8"> ...
teseo24/voluntariadoCI
application/views/partial/nav.php
PHP
mit
3,527
<?php namespace Jaxxes\TestPmaSPBundle\DataFixtures\ORM; use Doctrine\Common\DataFixtures\AbstractFixture; use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Doctrine\Common\DataFixtures\OrderedFixtureInterface; use Doctrine\Common\Persistence\ObjectManager; use Symfony\Component\DependencyInjec...
martintito/desaeka
src/Jaxxes/TestPmaSPBundle/DataFixtures/ORM/PMA5DiccionarioA.php
PHP
mit
453,811
<?php namespace Celtic\Testing\Joomla; class Joomla25AdminPage extends AdminPage { protected $userMenuSelector = 'css selector:#header-box #module-status'; protected $messageContainer = "id:system-message-container"; protected $headLineSelector = "css selector:div.page-title h2"; public function __...
GreenCape/build
template/selenium/Pages/Joomla25/Admin/Page.php
PHP
mit
732
// types const TRACKS_SET = 'tracks/TRACKS_SET' // actions const doSetTracks = (tracks) => { return { type: TRACKS_SET, tracks: tracks } } // reducers const initialState = {} const reducer = (state = initialState, action) => { switch (action.type) { case TRACKS_SET: re...
OttoH/rereKit
src/ducks/tracks.js
JavaScript
mit
709
<?php /** * @link https://pix.st/ * @copyright Copyright (c) 2015 Pix Street * @license MIT License https://opensource.org/licenses/MIT */ namespace pixst; use pixst\ChannelInterface; use pixst\exceptions\ChannelException; use pixst\exceptions\HttpException; /** * cURL channel class */ class CurlChannel implem...
PixSt/php-yii2
CurlChannel.php
PHP
mit
3,176
require('chai').should(); var IndexedArray = require('../index'); describe('IndexedArray', function () { it('is instanceof Array', function () { var a = IndexedArray([1,2,3]); (a instanceof Array).should.be.true; }); it('is still instanceof Array when used with `new`', function () { var a = new Ind...
jden/indexed-array
test/tests.js
JavaScript
mit
8,031
// Copyright (c) 2011-2012 The Bitcoin developers // Copyright (c) 2013-2014 ComedyGold Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "sync.h" #include "util.h" #include <boost/foreach.hpp> #ifdef DEB...
comedygold/comedygold
src/sync.cpp
C++
mit
3,711
<?php namespace DrupalReleaseDate\Sampling; class Sample { protected $when; protected $count; protected $diffTarget; function __construct($when, $count, $last = null) { $this->when = $when; $this->count = $count; if ($last) { $this->setDiff($last); } ...
gapple/drupalreleasedate
src/DrupalReleaseDate/Sampling/Sample.php
PHP
mit
877
using System; namespace Topics.Radical.ComponentModel.Messaging { /// <summary> /// /// </summary> public interface ILegacyMessageCompatibility { /// <summary> /// Sets the sender for backward compatibility. /// </summary> /// <param name="sender">The sender.</param...
micdenny/radical
src/net35/Radical/ComponentModel/Messaging/IMessage.cs
C#
mit
919
using System.Linq; using NUnit.Framework; using StreetPacMan.Server.Facade; using StreetPacMan.Server.Tests.Infra; namespace StreetPacMan.Server.Tests.Integ { [TestFixture] public class GameStateApplesVsPollServerRemovedApples : BaseCleaner { [Test] public void Poll() { ...
QuickUnit/PacmanTlv
StreetPacMan.Server.Tests/Integ/GameStateApplesVsPollServerRemovedApples.cs
C#
mit
1,424
class Node { constructor(item) { this.item = item; this.next = null; } } module.exports = Node;
cody1991/diary
_learn/algo/js-learn/libs/Node.js
JavaScript
mit
109
module Timeline Version = VERSION = "0.1.0" end
mrduncan/timeline
lib/timeline/version.rb
Ruby
mit
50
module PgToCsv VERSION = "0.0.1" end
Solomon/pg_to_csv
lib/pg_to_csv/version.rb
Ruby
mit
39
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using Web.UI.Interfaces; namespace Web.UI.Controllers { public class CategoryController : BaseController { ICategoryRepository _categoryRepository; public CategoryController(ICategoryRep...
lizhen325/DakHanMaRi
Web.UI/Controllers/CategoryController.cs
C#
mit
710
define(['underscore', 'klik/core/Class'], function (_, Class) { 'use strict'; return Class('GameObject', { methods: { preload: function() { }, create: function() { }, update: function() { } } }); });
kctang/klik
src/core/GameObject.js
JavaScript
mit
302
<?php $week = array('日','月','火','水','木','金','土'); ?> @extends('layouts.app') @section('title', 'みんなの目標') @section('content') <div class="container"> <div class="row text-center"> <h2>「{{ \Request::input('searchword') }}」の検索結果</h2> <h5>公開設定の目標のみ表示されます</h5> </div> @forelse ($aims as $aim) <div class="panel ...
masasikatano/openaim
resources/views/search.blade.php
PHP
mit
3,656
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ ...
vulcansteel/autorest
AutoRest/Generators/Java/Azure.Java.Tests/src/main/java/fixtures/azurespecials/models/ErrorException.java
Java
mit
2,283
package com.logistics.pvis.color; public class Color { public int r, g, b, a; public Color(int r, int g, int b, int a) { this.r = r; this.g = g; this.b = b; this.a = a; } public Color(int r, int g, int b) { this.r = r; this.g = g; this.b = b; this.a = 255; } public Color(int grayScale) { ...
sunyifan112358/pvis
src/main/com/logistics/pvis/color/Color.java
Java
mit
1,233
class RegistrationsController < ApplicationController helper_method :registration, :registration_params def new @registration = Registration.new(year: current_year) end def create @registration = Registration.new(registration_params) render :new end private attr_reader :registration def...
johncarney/veterans-walk
app/controllers/registrations_controller.rb
Ruby
mit
538
Given "I am not signed in" do visit destroy_user_session_path end Given "I am signed in" do Given 'I am not signed in' And 'I have a user with email "user@getshrink.com" and password "shrink"' When 'I go to the homepage' And 'I fill in "Email" with "user@getshrink.com"' And 'I fill in "Password" with "shri...
jcxplorer/shrink
features/step_definitions/authentication_steps.rb
Ruby
mit
439
package com.timekeeping.app.activities; import java.util.ArrayList; import java.util.List; import android.app.Activity; import android.app.AlertDialog.Builder; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; impor...
XinyueZ/timekeeping
app/src/main/java/com/timekeeping/app/activities/MainActivity.java
Java
mit
25,657
//= require_tree . $(document).ready(function() { var labelXML = ""; $.get("/javascripts/StudentNametag.label", function(data) { labelXML = data; }); var printers = dymo.label.framework.getPrinters(); var printerName = ""; for (var i = 0; i < printers.length; ++i) { var printer = printers[i];...
whitecl/dymo-js-sample
source/javascripts/all.js
JavaScript
mit
1,003
// // Description: // Control Spot from campfire. https://github.com/1stdibs/Spot // // Dependencies: // underscore // // Configuration: // HUBOT_SPOT_URL // // Commands: // hubot music status? - Lets you know what's up // hubot play! - Plays current playlist or song. // hubot pause - Pause the music. // ...
dyg2104/hubot-scripts
src/scripts/spot.js
JavaScript
mit
21,207
require 'spec_helper' require 'securerandom' describe Chore::DuplicateDetector do class FakeDalli def initialize @store = {} end def add(id, val, ttl=0) if @store[id] && @store[id][:inserted] + @store[id][:ttl] > Time.now.to_i return false else @store[id] = {:val => val,...
Tapjoy/chore
spec/chore/duplicate_detector_spec.rb
Ruby
mit
2,473
import {Component, OnInit, OnDestroy, Input, Host} from '@angular/core'; import {NgClass, NgStyle} from '@angular/common'; import {ProgressDirective} from './progress.directive'; // todo: number pipe // todo: use query from progress? @Component({ selector: 'bar', directives: [NgClass, NgStyle], template: ` <...
Neil-Ni/ng2-foundation
components/progressbar/bar.component.ts
TypeScript
mit
1,733
import request from 'request'; import wsse from 'wsse'; import xml2js from 'xml2js'; function pad(n) { return ('0' + n).slice(-2); } const toString = Object.prototype.toString; // 型判定 function isString(v) { return toString.call(v) == '[object String]'; } function isDate(v) { return toString.call(v) == '[objec...
sfpgmr/node-hatena-blog-api2
src/blog.js
JavaScript
mit
15,445
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.FilterList = undefined; var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next())...
reactmob/dos-filter
lib/Fabric/FilterList.js
JavaScript
mit
3,795
package edu.galileo.android.photofeed.main.ui; public interface MainView { void onUploadInit(); void onUploadComplete(); void onUploadError(String error); }
micromasterandroid/androidadvanced
Lesson 4/PhotoFeed/app/src/main/java/edu/galileo/android/photofeed/main/ui/MainView.java
Java
mit
171
import { Hash } from 'archmage-persistence' export interface Block { hash: Hash format: number number: number content: Hash previous?: Hash timestamp: Date }
silentorb/archmage
packages/archmage-chaining/src/chaining/types.ts
TypeScript
mit
171
var express = require("express"); var passport = require("passport"); var env = process.env.NODE_ENV || "development"; var fs = require("fs"); // Load in configuration options require("dotenv").load(); require("express-namespace"); var ukiyoe = require("ukiyoe-models"); ukiyoe.db.connect(function() { fs.readdir...
jeresig/ukiyoe-web
server.js
JavaScript
mit
1,141
require "edition" require_relative 'simple_smart_answer_edition/node' require_relative 'simple_smart_answer_edition/node/option' class SimpleSmartAnswerEdition < Edition include Mongoid::Document field :body, type: String embeds_many :nodes, :class_name => "SimpleSmartAnswerEdition::Node" accepts_nested_att...
dinuksha/Test
app/models/simple_smart_answer_edition.rb
Ruby
mit
1,716
var React = require('react'); var Link = require('react-router-dom').Link; class Home extends React.Component { render() { return ( <div className='home-container'> <h1>Github Battle: Battle your friends...and stuff.</h1> <Link className='button' to='/battle'> ...
brianmmcgrath/react-github-battle
app/components/Home.js
JavaScript
mit
430
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.AspNet.SignalR; namespace HubTest.WebApp.Hubs { public class MyHub : Hub { public void Hello() { Clients.All.hello("This is the message", "second parameter", 100, true, DateTime.Utc...
kreuzhofer/SignalR.ConnectionManager
SignalR.ConnectionManager/HubTest.WebApp/Hubs/MyHub.cs
C#
mit
345
export { AuthenticationService } from './authentication.service'; export { CustomHttp } from './customHttp';
Zinadore/capstoneed-common
src/shared/Services/index.ts
TypeScript
mit
109
/** * @file * @author zdying */ 'use strict'; var assert = require('assert'); var path = require('path'); var parseHosts = require('../src/proxy/tools/parseHosts'); describe('proxy hosts',function(){ it('正确解析hosts文件', function(){ var hostsObj = parseHosts(path.resolve(__dirname, 'proxy/hosts.example'...
zdying/hiipack
test/proxy.hosts.test.js
JavaScript
mit
618
var EventEmitter = require('events').EventEmitter; var _ = require('underscore'); var Message = require('./Message'); var ProduceRequest = require('./ProduceRequest'); var Connection = require('./Connection'); var ConnectionCache = require('./ConnectionCache'); var Producer = function(topic, options){ if (!topic || ...
uber/Prozess
Producer.js
JavaScript
mit
2,432
/* * The MIT License (MIT) * * Copyright (c) 2016 Erik Zivkovic * * 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...
bes/MHFS
src/main/java/se/bes/mhfs/plugin/PluginManager.java
Java
mit
2,713
import numpy as np import scipy.misc import matplotlib.pyplot as plt x = np.linspace(0, 5, 100) y1 = np.power(2, x) y2 = scipy.misc.factorial(x) plt.plot(x, y1) plt.plot(x, y2) plt.grid(True) plt.savefig('../../img/question_4_plots/g.png')
ammiranda/CS325
week1/plots/question_4/g.py
Python
mit
243
using System.Diagnostics.CodeAnalysis; using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Interactivity; namespace GSD.Behaviors { [SuppressMessage( "ReSharper", "MemberCanBePrivate.Global" )] [ExcludeFromCodeCoverage] internal class EnterCommand : Behavior<TextBo...
TheSylence/GSD
GSD/Behaviors/EnterCommand.cs
C#
mit
1,719
/** * Swaggy Jenkins * Jenkins API clients generated from Swagger / Open API specification * * The version of the OpenAPI document: 1.1.2-pre.0 * Contact: blah@cliffano.com * * NOTE: This class is auto generated by OpenAPI-Generator 5.4.0. * https://openapi-generator.tech * Do not edit the class manually. */ ...
cliffano/swaggy-jenkins
clients/cpp-restbed-server/generated/model/ClockDifference.cpp
C++
mit
2,607
using System; using System.Collections.Generic; using System.Reactive.Linq; using System.Reactive.Threading.Tasks; using MS.Core; namespace System.Runtime.Remoting.Channels { public static class __IServerChannelSink { public static IObservable < Tuple ...
RixianOpenTech/RxWrappers
Source/Wrappers/mscorlib/System.Runtime.Remoting.Channels.IServerChannelSink.cs
C#
mit
4,315
require "ios-deploy/version" module IosDeploy # Your code goes here... end
mokagio/ios-deploy-gem
lib/ios-deploy.rb
Ruby
mit
78
require_dependency "conductor/application_controller" module Conductor class DatabasesController < ApplicationController def show @database = Database.instance end def update @database = Database.instance @database.content = params[:database][:content] @database.save flash[:...
NewRosies/conductor
app/controllers/conductor/databases_controller.rb
Ruby
mit
422
<?php namespace Hirviid\Bundle\CleengBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This class contains the configuration information for the bundle * * This information is solely responsible for how th...
hirviid/CleengBundle
DependencyInjection/Configuration.php
PHP
mit
1,106
webpackJsonp([0x78854e72ca23],{567:function(t,e){t.exports={pathContext:{}}}}); //# sourceMappingURL=path---blog-gatsby-github-a0e39f21c11f6a62c5ab.js.map
russellschmidt/russellschmidt.github.io
path---blog-gatsby-github-a0e39f21c11f6a62c5ab.js
JavaScript
mit
154
module Mruby # (Not documented) # # ## Fields: # :struct_name :: # (String) # :dfree :: # (FFI::Pointer(*)) class MrbDataType < FFI::Struct layout :struct_name, :string, :dfree, :pointer end end
DAddYE/mrb
lib/mrb/mrb_data_type.rb
Ruby
mit
233
const generators = require('yeoman-generator'); const fs = require('fs'); let generator = {}; generator.constructor = function() { generators.Base.apply(this, arguments); this.argument('apiname', { type: String, required: true }); }; generator.writing = function() { ['package.json', 'Gulpfile.js', 'index.js',...
helloIAmPau/generator-pau-api
app/index.js
JavaScript
mit
1,223
package me.yoerger.geoff.edu.progClass.assignments.eight; import java.util.Scanner; import me.yoerger.geoff.edu.progClass.assignments.Analysis; import me.yoerger.geoff.edu.progClass.assignments.Printer; import me.yoerger.geoff.edu.progClass.bookClasses.FileChooser; import me.yoerger.geoff.edu.progClass.bookClasses.Pi...
DirkyJerky/ProgrammingClass
src/me/yoerger/geoff/edu/progClass/assignments/eight/eightFive.java
Java
mit
3,209
<?php ob_start(); session_start(); require_once( '../../../wp-load.php' ); wp(); header('HTTP/1.1 200 OK'); if (!function_exists('wp_handle_upload')){ require_once( ABSPATH . 'wp-admin/includes/file.php' ); } $body = @file_get_contents('php://input'); $event_json = json_decode($body); if( $event_json->data->ob...
CORBmx/Kiwi
update_conekta.php
PHP
mit
629
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2015-2018 Baldur Karlsson * * 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...
etnlGD/renderdoc
renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp
C++
mit
60,078
// Template Source: Enum.java.tt // ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // -------------------------------------------------...
microsoftgraph/msgraph-sdk-java
src/main/java/com/microsoft/graph/models/SubjectRightsRequestStatus.java
Java
mit
750
package org.scribe.services; import static org.junit.Assert.*; import org.junit.*; import org.scribe.exceptions.OAuthException; public class HMACSha1SignatureServiceTest { private HMACSha1SignatureService service; @Before public void setup() { service = new HMACSha1SignatureService(); } @Test pu...
jamietsao/scribe-java
src/test/java/org/scribe/services/HMACSha1SignatureServiceTest.java
Java
mit
1,447
define(['jquery', 'backbone', 'BaseView'], function ($, Backbone, BaseView) { describe('BaseView', function () { describe('(managing views)', function() { var view, childView1, childView2, childView3, childView4; beforeEach(function(){ view = new (BaseView.extend(...
lrodziewicz/backbone-asterisk
test/BaseView.spec.js
JavaScript
mit
6,941
<?php namespace Toyotadjakarta\SalesModule\Model; use Anomaly\Streams\Platform\Database\Seeder\Seeder; class ModelSeeder extends Seeder { /** * Run the seeder. */ public function run() { // } }
vileopratama/portal-toyotadjakarta
addons/toyotadjakarta/toyotadjakarta/sales-module/src/Model/ModelSeeder.php
PHP
mit
231
<?php /** * List View Single Event * This file contains one event in the list view * * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/single-event.php * * @version 4.5.6 * */ if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } // Setup an array of venue details for us...
philipptrenz/wkkv_theme
tribe-events/list/single-event.php
PHP
mit
2,377
package visitor.rgpike.com; import android.app.Activity; import android.app.ProgressDialog; import android.content.Context; import android.os.AsyncTask; import android.util.Log; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.BufferedReader; i...
arcanericky/hotspot-pass
src/visitor/rgpike/com/HttpPostThreadBase.java
Java
mit
3,746
class ApplicationController < ActionController::Base helper_method :current_user before_action :set_raven_context def ensure_authenticated! return if current_user redirect_to "/login" end def ensure_admin! return if current_user.admin? head :not_found end def ensure_not_authenticated! ...
osumb/challenges
app/controllers/application_controller.rb
Ruby
mit
897
import { bindable } from 'aurelia-framework'; import { Example19 } from './example19'; import { SlickDataView, SlickGrid, ViewModelBindableData } from '../../aurelia-slickgrid'; export class DetailViewCustomElement { @bindable() model!: { duration: Date; percentComplete: number; reporter: string; st...
ghiscoding/aurelia-slickgrid
src/examples/slickgrid/example19-detail-view.ts
TypeScript
mit
2,145
package city.animations.interfaces; import city.bases.interfaces.AnimationInterface; public interface MarketAnimatedCashier extends AnimationInterface{ // Data // Constructor // Abstract // Movement // Getters // Setters // Utilities }
zhangtdavid/SimCity
src/city/animations/interfaces/MarketAnimatedCashier.java
Java
mit
276
<?php namespace Site\Bundle\BackendBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; use Doctrine\ORM\EntityRepository; class FrontDillerCentreInfoForm extends AbstractType { public function __constr...
markmoskalenko/mirlada
src/Site/Bundle/BackendBundle/Form/FrontDillerCentreInfoForm.php
PHP
mit
3,126
package fr.insee.rmes.utils.ddi; import java.io.StringWriter; import javax.xml.transform.OutputKeys; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.Strea...
InseeFr/DDI-Access-Services
src/main/java/fr/insee/rmes/utils/ddi/UtilXML.java
Java
mit
1,006
using System; using System.Collections.Generic; using System.Linq; namespace Deepcode.CommandLine.Parser { /// <summary> /// Represents a parsed command line - the command line switches and values /// are parsed into a structured collection that is exposed from this class. /// </summary> public class CommandLine...
Deepcodecouk/Deepcode.CommandLine
src/Deepcode.CommandLine/Parser/CommandLineArguments.cs
C#
mit
2,503
#include <craft/character.hpp> #include <craft/shaderVoxel.hpp> #include <craft/chunkController.hpp> #define GLM_FORCE_RADIANS #include <glm/gtc/constants.hpp> #include <glm/gtc/matrix_inverse.hpp> #include <glm/gtc/matrix_transform.hpp> #include <cmath> #include <iostream> void character::velocity () { if (xdown ...
joshbainbridge/craft-game
src/character.cpp
C++
mit
7,418
//start drag of element function drag(ev) { ev.dataTransfer.setData("text", ev.target.id); } //allow drop of element function allowDrop(ev) { ev.preventDefault(); } //drag of element function drop(ev) { ev.preventDefault(); var data = ev.dataTransfer.getData("text"); ev.target.appendChild(document.g...
arpit2126/AGILE-DASHBOARD
main.js
JavaScript
mit
1,098
#include "RemoveDuplicateLetters.hpp" #include <vector> using namespace std; string RemoveDuplicateLetters::removeDuplicateLetters(string s) { vector<int> freq(256, 0); vector<bool> visited(256, false); string ret; for (auto c : s) freq[c]++; for (auto c : s) { freq[c]--; if (v...
yanzhe-chen/leetcode
src/RemoveDuplicateLetters.cpp
C++
mit
561
if (typeof (window) === 'undefined') var loki = require('../../src/lokijs.js'); describe('testing unique index serialization', function () { var db; beforeEach(function () { db = new loki(); users = db.addCollection('users'); users.insert([{ username: 'joe' }, { username: 'jack' }, ...
VladimirTechMan/LokiJS
spec/generic/persistence.spec.js
JavaScript
mit
31,627
package net.glowstone.msg; public final class RelativeEntityPositionRotationMessage extends Message { private final int id, deltaX, deltaY, deltaZ, rotation, pitch; public RelativeEntityPositionRotationMessage(int id, int deltaX, int deltaY, int deltaZ, int rotation, int pitch) { this.id = id; ...
karlthepagan/Glowstone
src/main/java/net/glowstone/msg/RelativeEntityPositionRotationMessage.java
Java
mit
1,088
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 0; i < n; i++) { int k = sc.nextInt(); int[] input = new int[k]; for ...
yijingbai/LeetCode
SPOJ/CODESPTB_InsersionSort/InsersionSort.java
Java
mit
1,972
module FootballApi class MatchInfo attr_accessor :stadium_name, :attendance, :time, :referee, :id def initialize(hash = {}) @id = hash[:id] @stadium_name = hash[:stadium][:name] if hash[:stadium] @attendance = hash[:attendance][:name] if hash[:attendance] @time ...
AfonsoTsukamoto/football_api
lib/football_api/match_info.rb
Ruby
mit
445
/* * This file is part of Prism, licensed under the MIT License (MIT). * * Copyright (c) 2015 Helion3 http://helion3.com/ * * 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 rest...
Stonebound/Prism
src/main/java/com/helion3/prism/api/records/Actionable.java
Java
mit
2,008
using System.Collections.Generic; using System.Linq; using FancyTraveller.Domain.Logic; using FancyTraveller.Domain.Model; using FancyTraveller.Domain.POCO; namespace FancyTraveller.Domain.Services { public class RouteService : IRouteService { private readonly IVertexRepository vertexRepository; ...
tkestowicz/FancyTraveller
FancyTravellerApp/FancyTraveller.Domain/Services/RouteService.cs
C#
mit
2,238