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
<?php namespace Backend\Modules\Kwaliteitslabels\Ajax; use Backend\Core\Engine\Base\AjaxAction; use Backend\Modules\Kwaliteitslabels\Engine\Model as BackendKwaliteitslabelsModel; /** * Alters the sequence of Kwaliteitslabels articles * * @author Stijn Schets <stijn@schetss.be> */ class SequenceCategories extends...
Schetss/CarCor
src/Backend/Modules/Kwaliteitslabels/Ajax/SequenceCategories.php
PHP
mit
1,047
using Tweetinvi.Core.Controllers; using Tweetinvi.Core.Iterators; using Tweetinvi.Core.Web; using Tweetinvi.Models; using Tweetinvi.Models.DTO; using Tweetinvi.Parameters; namespace Tweetinvi.Controllers.Timeline { public class TimelineController : ITimelineController { private readonly ITimelineQuery...
linvi/tweetinvi
src/Tweetinvi.Controllers/Timeline/TimelineController.cs
C#
mit
3,067
class DashboardController < ApplicationController respond_to :html def index @groups = Group.where(id: current_user.projects.pluck(:group_id)) @projects = current_user.projects_with_events @projects = @projects.page(params[:page]).per(20) @events = Event.in_projects(current_user.project_ids).limit...
robbkidd/gitlabhq
app/controllers/dashboard_controller.rb
Ruby
mit
1,079
#include <iostream> #include <vector> #include <string> #include <sstream> #include <set> #include <algorithm> //std::vector<std::string> parseCommand(std::string input); //std::vector<int> parseArray(std::string input); //void exchange(int index, std::vector<int> & numbers); //void printNumbersInArrayFormat(std::vec...
M-Yankov/CPlusPlus
10.ExamPreparation/ArrayManipulator11October2015/Source.cpp
C++
mit
6,155
var $ = require('jquery'); var layout = module.exports = { init: function() { $('#toggle-sidebar').click(function(e) { e.preventDefault(); layout.sidebar(); }); $('#toggle-overlay').click(function(e) { e.preventDefault(); layout.overlay(); }); }, restore: function() {...
joje6/three-cats
www/js/layout.js
JavaScript
mit
1,624
// *********************************************************************** // Copyright (c) 2017 Charlie Poole, Rob Prouse // // 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 restri...
jadarnel27/nunit
src/NUnitFramework/framework/Internal/InvalidPlatformException.cs
C#
mit
2,741
package com.nodlee.theogony.ui.adapter; import android.view.View; public interface ItemClickedListener { /** * 在单元格被点击的时候调用 * * @param position */ void onItemClicked(View view, int position); }
VernonLee/Theogony
app/src/main/java/com/nodlee/theogony/ui/adapter/ItemClickedListener.java
Java
mit
247
<?php /** * TOP API: taobao.media.file.delete request * * @author auto create * @since 1.0, 2014-09-13 16:51:05 */ class MediaFileDeleteRequest { /** * 接入多媒体平台的业务code 每个应用有一个特有的业务code **/ private $bizCode; /** * 文件ID字符串,可以一个也可以一组,用英文逗号间隔,如450,120,155 **/ private $fileIds; private $apiParas = ar...
zhangbobell/mallshop
plugins/onekey/taobao/top/request/MediaFileDeleteRequest.php
PHP
mit
1,256
<div class="content"> <h2><?php echo $title;?></h2> <div class="panel panel-default"> <div class="panel-heading"> <b>The following is the list of various seed certification charges of Punjab State Certification Authorityu as applicable from Rabi-2004-05</b> </div> <div class="panel-body text-left"> <tabl...
puneetarora2000/BiS-conformance-
application/views/front/fees.php
PHP
mit
3,364
package com.wt.studio.plugin.pagedesigner.gef.figure; import org.eclipse.draw2d.ColorConstants; import org.eclipse.draw2d.FrameBorder; import org.eclipse.draw2d.Graphics; import org.eclipse.draw2d.IFigure; import org.eclipse.draw2d.PositionConstants; import org.eclipse.draw2d.SchemeBorder; import org.eclipse.draw2d.Ti...
winture/wt-studio
com.wt.studio.plugin.modeldesigner/src/com/wt/studio/plugin/pagedesigner/gef/figure/FormFrameBorder.java
Java
mit
1,556
namespace Deldysoft.Foundation.CommandHandling { public interface ICommandExecuter { void Execute<T>(T command); } }
geekhubdk/geekhub
Deldysoft.Foundation/CommandHandling/ICommandExecuter.cs
C#
mit
139
require 'spec_helper' require 'rddd/authorization/rule' describe Rddd::Authorization::Rule do let(:action) { :foo } let(:block) { lambda { |user, params| true } } let(:authorize) do Rddd::Authorization::Rule.new( action, &block ) end describe 'should raise if rule block is invalid' do l...
petrjanda/rddd
spec/lib/authorization/rule_spec.rb
Ruby
mit
1,195
import os,sys #import ez_setup #ez_setup.use_setuptools() from setuptools import setup, find_packages import numpy from Cython.Build import cythonize # not compatible with distribute #from distutils.extension import Extension #from Cython.Distutils import build_ext version = '0.7.0' README = os.path.join(os.path.di...
mizuy/seqtool
setup.py
Python
mit
2,123
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Linq.Expressions; using System.Reflection; namespace Abc.Zebus.Routing { public class BindingKeyPredicateBuilder : IBindingKeyPredicateBuilder { private stat...
biarne-a/Zebus
src/Abc.Zebus/Routing/BindingKeyPredicateBuilder.cs
C#
mit
4,768
var a = createElement("a"); attr(a, 'href', ""); function anchor(label, href) { var element = createElement(a); attr(element, "href", label); if (isString(label)) { text(element, label); } else { appendChild(element, label); } onclick(element, function (event) { if (/^\w+...
yunxu1019/efront
coms/zimoli/anchor.js
JavaScript
mit
423
'use strict'; /** * Module Dependencies */ var config = require('../config/config'); var _ = require('lodash'); var Twit = require('twit'); var async = require('async'); var debug = require('debug')('skeleton'); // https://github.com/visionmedia/debug var graph ...
justyn-clark/mylockedemo
controllers/api.js
JavaScript
mit
15,388
range.collapse(true); // collapse to the starting point console.log(range.collapsed); // outputs "true"
msfrisbie/pjwd-src
Chapter16DOMLevels2And3/Ranges/CollapsingADOMRange/CollapsingADOMRangeExample01.js
JavaScript
mit
108
<?php /** * TL_ROOT/system/modules/videobox_vimeo/languages/lv/tl_videobox_settings.php * * Contao extension: videobox_vimeo 1.0.1 stable * Latvian translation file * * Copyright : David Enke 2010 * License : GNU/GPL * Author : David Enke (david.enke), www.davidenke.de * Translator: Maris Celmins ...
TechnoGate/contao_template
contao/videobox_vimeo/system/modules/videobox_vimeo/languages/lv/tl_videobox_settings.php
PHP
mit
2,269
<?php class Brandedcrate_Payjunction_Model_Result extends Varien_Object { }
brandedcrate/payjunction-magento
app/code/community/Brandedcrate/Payjunction/Model/Result.php
PHP
mit
82
// Generated by typings // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/80060c94ef549c077a011977c2b5461bd0fd8947/strftime/index.d.ts declare module "strftime" { type strftimeFunction = (format: string, date?: Date) => string; namespace strftime { /** * Sets locale....
liqu0/KentChat
src/server/typings/globals/strftime/index.d.ts
TypeScript
mit
2,057
var Sequelize = require('sequelize'); var sequelize = require('./db.js').Sequelize; var UserRooms = sequelize.define('UserRooms', { }, { updatedAt: false, createdAt: false }); module.exports = UserRooms;
nokia-wroclaw/innovativeproject-meetinghelper
server/NodeTest/models/userRoom.js
JavaScript
mit
236
(function(S, $) { var dom = S.Dom; var sharedUserAdmin = new Spontaneous.MetaView.UserAdmin(); var RootMenuView = new JS.Class(S.PopoverView, { initialize: function(afterCloseCallback) { this.afterCloseCallback = afterCloseCallback; this.callSuper(); }, width: function() { return 250; }, title: fu...
magnetised/spontaneous
application/js/panel/root_menu.js
JavaScript
mit
1,921
using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Text; using System.Threading.Tasks; using UiuCanteen.Domain.Entities; namespace UiuCanteen.Domain.Concrete { public class EFDbContext : DbContext { public DbSet<Product> Products { get; set; } ...
rasel01/Project-1-Online-Cafeteria-
source/UiuCanteen/UiuCanteen.Domain/Concrete/EFDbContext.cs
C#
mit
377
const renderToString = require('rogain-render-string'); const html = require('html').prettyPrint; const config = require('./render.config.js'); const data = require('./fixtures/data.json'); var output = renderToString(config.components.get('Template'), data, config); console.log(html(output, { unformatted: [] }));
krambuhl/rogain
test/render.test.js
JavaScript
mit
318
module.exports = function(planetsData) { planetsData.createPlanet("Earth") .then((planet) => { console.log("Created new Planet"); console.log(planet); }) .catch(() => { console.log("Error"); console.dir(err, { colors: true }); }); }
shopOFF/TelerikAcademyCourses
Web-Applications-with-Node.js/NodeJs-Homeworks & Exams/nodeJSWorkshop/controllers/planets-controller.js
JavaScript
mit
316
// Copyright (c) 2014 Greenheart Games Pty. Ltd. All rights reserved. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "greenworks_workshop_workers.h" #include <algorithm> #include "nan.h" #include "steam/steam_api.h" #include "v8.h" #include "greenworks_u...
greenheartgames/greenworks
src/greenworks_workshop_workers.cc
C++
mit
20,261
class Camera { static init() { this.position = vec3.fromValues(-Terrain.tiles.length/2, -Terrain.tiles[0].length/2, -1 * slider_zoom.value); this.rotation = vec3.fromValues(0, 0, 0); } static getViewMatrix() { var q = quat.create(); quat.rotateX(q, q, this.rotation[0]); qu...
Pilex1/Pilex1.github.io
Projects/Wireworld/camera.js
JavaScript
mit
562
/** * Keyboard event keyCodes have proven to be really unreliable. * This util function will cover most of the edge cases where * String.fromCharCode() doesn't work. */ const _toAscii = { 188: '44', 109: '45', 190: '46', 191: '47', 192: '96', 220: '92', 222: '39', 221: '93', 219: '91', 173: '45...
derrickpelletier/hyper
lib/utils/key-code.js
JavaScript
mit
1,367
/** * result Module * * Description */ angular .module('result') .directive('navBar', navBar); navBar.$inject = ['loginService', '$log', '$location']; function navBar(loginService, $log, $location) { return { restrict: 'A', link: function(scope, element, attrs, controller) { loginService.user() .success(...
techhahn/Result-Analyzer
public/packages/app/directives/app.navigationbarDirective.js
JavaScript
mit
969
<?php defined('BX_DOL') or die('hack attempt'); /** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup UnaCore UNA Core * @{ */ /** * Message constants passed to _t_ext() function by checkAction() * * NOTE: checkAction() returns language dependent me...
unaio/una
inc/classes/BxDolAcl.php
PHP
mit
35,178
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { ViewPropTypes, Text, View } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import getStyles from './styles'; export default class DefaultMarker extends PureComponent { static propTyp...
joshjconlin/react-native-multi-slider-1
DefaultMarker/index.js
JavaScript
mit
1,946
/////////////////////////////////////////////////////////////////////////////// // Name: generic/vlbox.cpp // Purpose: implementation of wxVListBox // Author: Vadim Zeitlin // Modified by: // Created: 31.05.03 // RCS-ID: $Id: vlbox.cpp,v 1.22.2.1 2006/01/18 09:50:37 JS Exp $ // Copyright: (c)...
SickheadGames/Torsion
code/wxWidgets/src/generic/vlbox.cpp
C++
mit
18,240
// // Load the AWS SDK for Node.js // var i = console.log(Math.round(new Date().getTime()/1000.0).toFixed(1)); // var AWS = require('aws-sdk'); // var path = require('path'); // var fs = require('fs'); // // // Load credentials and set region from JSON file // AWS.config.loadFromPath("/Users/jorge/Documents/javas...
PulseraMartin/docking_station
uploader/dynamoDBManager.js
JavaScript
mit
1,405
<?php namespace c2g\Base; /** * FoundationPile base class * * @author Thurairajah Thujeevan <thujee@gmail.com> */ class FoundationPile extends Pile { const LIMIT = 13; const NAME = 'Foundation'; /** * data member of this class, which holds the base card * when this pile is circular ...
thujeevan/c2g
src/Base/FoundationPile.php
PHP
mit
3,047
using System; class SayHello { static void Main() { string name = Console.ReadLine(); printName(name); } static void printName(string name) { Console.WriteLine("Hello, {0}!", name); } }
ndvalkov/TelerikAcademy2016
Homework/CSharp-Part-2/03. Methods/SayHello.cs
C#
mit
235
// Copyright (c) 2011-2013 The BeCoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "addresstablemodel.h" #include "guiutil.h" #include "walletmodel.h" #include "base58.h" #include "wallet/wallet.h" ...
MasterX1582/bitcoin-becoin
src/qt/addresstablemodel.cpp
C++
mit
14,351
import _plotly_utils.basevalidators class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__(self, plotly_name="bgcolor", parent_name="pie.hoverlabel", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
plotly/python-api
packages/python/plotly/plotly/validators/pie/hoverlabel/_bgcolor.py
Python
mit
499
package be.echostyle.moola; import be.echostyle.moola.filters.TransactionFilter; import java.time.LocalDateTime; import java.util.Comparator; import java.util.List; import java.util.Set; import java.util.stream.Collectors; public interface GroupedAccount extends Account { default AccountType getType...
Kjoep/moola
moola-domain/src/main/java/be/echostyle/moola/GroupedAccount.java
Java
mit
3,248
# Options require 'bobkit' include Bobkit::Tasks # Set options (these are only partial, and the defaults) templates_folder 'templates' layouts_folder "#{templates_folder}/layouts" styles_folder 'styles' output_folder 'output' css_output_folder "#{output_folder}/css" js_output_fol...
DannyBen/bobkit
examples/03_options/example.rb
Ruby
mit
558
package seedu.jobs.storage; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Optional; import java.util.logging.Logger; import seedu.jobs.commons.core.LogsCenter; import seedu.jobs.commons.exceptions.DataConversionException; import seedu.jobs.commons.util.FileUti...
CS2103JAN2017-F11-B1/main
src/main/java/seedu/jobs/storage/XmlTaskBookStorage.java
Java
mit
2,457
/** Starting with version 2.0, this file "boots" Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `jasmine.js` and `jasmine_html.js`, but before any project source files or spec files are loaded. Thus this fil...
mukulikadey/SOEN341-Group1
chutzpah/Chutzpah/TestFiles/Jasmine/v2/boot.js
JavaScript
mit
5,936
package net.lightbody.bmp; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.MapMaker; import net.lightbody.bmp.client.ClientUtil; import net.lightbody.bmp.core.har.Har; import net.lightbody.bmp.core.har.HarLog; import net.lightbody.bmp.cor...
misakuo/Dream-Catcher
app/src/main/java/net/lightbody/bmp/BrowserMobProxyServer.java
Java
mit
42,816
require "spec_helper" describe RefreshTraktTokenJob do subject{described_class.new} Given(:credential){create :credential} Given!(:stub) do stub_request(:post, "https://api-v2launch.trakt.tv/oauth/token") .with(body: {refresh_token: credential.data["refresh_token"], grant_type: "refresh_token"}.to_js...
mskog/broad
spec/jobs/refresh_trakt_token_job_spec.rb
Ruby
mit
654
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.11.4-master-5034a04 */ goog.provide('ng.material.components.swipe'); goog.require('ng.material.core'); /** * @ngdoc module * @name material.components.swipe * @description Swipe module! */ /** * @ngdoc directive * @module...
t0930198/shoait
app/bower_components/angular-material/modules/closure/swipe/swipe.js
JavaScript
mit
1,739
# encoding: utf-8 module BitBucket class Repos::Following < API # List repo followers # # = Examples # bitbucket = BitBucket.new :user => 'user-name', :repo => 'repo-name' # bitbucket.repos.following.followers # bitbucket.repos.following.followers { |watcher| ... } # def followers...
fairfaxmedia/bitbucket
lib/bitbucket_rest_api/repos/following.rb
Ruby
mit
1,155
'use strict'; const crypto = require('crypto'); /* lib/handshake.js * WebSocket handshake. * * */ module.exports = exports = function(data){ let headers = exports._headers(data); let sha1 = crypto.createHash('sha1'); sha1.update(headers['sec-websocket-key'] + '258EAFA5-E914-47DA-95CA-C5AB0DC85B11'); let r...
jamen/rela
lib/handshake.js
JavaScript
mit
1,440
require 'spec_helper' describe 'osx::time_machine::ask_to_use_new_disks_for_backup' do let(:facts) { {:boxen_user => 'ilikebees' } } describe('enabled') do let(:params) { {:ensure => 'present'} } it 'should set the value to true' do should contain_boxen__osx_defaults('Toggle Whether Time Machine Asks...
joebadmo/puppet-osx
spec/classes/time_machine/ask_to_use_new_disks_for_backup_spec.rb
Ruby
mit
950
<?php namespace Helpvel\Helpvel; use Illuminate\Support\ServiceProvider; class HelpvelServiceProvider extends ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = false; /** * Bootstrap the application events. * * @return void */ public fu...
Helpvel/helpvel
src/Helpvel/Helpvel/HelpvelServiceProvider.php
PHP
mit
617
############### ### imports ### ############### from fabric.api import cd, env, lcd, put, prompt, local, sudo from fabric.contrib.files import exists ############## ### config ### ############## local_app_dir = './flask_project' local_config_dir = './config' remote_app_dir = '/home/www' remote_git_dir = '/home/git...
kaiocesar/automation-fab
fabfile.py
Python
mit
4,325
# encoding: UTF-8 # Author:: Akira FUNAI # Copyright:: Copyright (c) 2009 Akira FUNAI require "#{::File.dirname __FILE__}/t" class TC_Text < Test::Unit::TestCase def setup meta = nil Bike::Parser.gsub_scalar('$(foo text 3 1..5)') {|id, m| meta = m '' } @f = Bike::Field.instance meta...
afunai/bike
t/test_text.rb
Ruby
mit
2,573
import React from 'react'; import ReactDOM from 'react-dom'; import Deferred from 'deferred-js'; import ElementsModel from './visualizution/elementsModel'; import ElementsList from './visualizution/elementsList'; import ControlsView from './controls/controlsView'; import Immutable from 'immutable'; import styles from '...
vogelino/periodic-table-data-visualization
src/js/index.js
JavaScript
mit
1,705
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SocketDog.Common { public struct ConnectionProtocol { public ConnectionProtocol(Type value) : this() { Value = value; } public ...
deniskucherov/SocketDog
SocketDog.Common/ConnectionProtocol.cs
C#
mit
809
package com.myconnector.domain; import com.myconnector.domain.base.BaseDictionary; public class Dictionary extends BaseDictionary { private static final long serialVersionUID = 1L; /*[CONSTRUCTOR MARKER BEGIN]*/ public Dictionary () { super(); } /** * Constructor for primary key */ public Dictionary (j...
nileshk/myconnector
src/main/java/com/myconnector/domain/Dictionary.java
Java
mit
395
/* * The MIT License * * Copyright 2017 Arvind Sasikumar. * * 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 u...
arvindsasikumar/mysql-db-sync
sync/db/mysql/DBSyncAgent.java
Java
mit
17,612
<?php namespace Forecast\WeatherBundle\DependencyInjection; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\Config\FileLocator; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\DependencyInjection\Loader; /** * This is the class that loads and m...
alexastro/forecast
src/Forecast/WeatherBundle/DependencyInjection/ForecastWeatherExtension.php
PHP
mit
962
from django.contrib import admin from api_boilerplate.models import ApiKey admin.site.register(ApiKey)
kippt/django-api-boilerplate
api_boilerplate/admin.py
Python
mit
105
package com.sparcs.casino; import com.sparcs.casino.game.Bet; public interface Account { /** * @return The {@link Customer} who owns this Account. */ Customer getCustomer(); /** * @return The number of chips the Customer currently holds */ int getChipCount(); /** * A {@link Bet} has been won! - add...
sparcs360/Casino
game-srvkit/src/main/java/com/sparcs/casino/Account.java
Java
mit
538
/* Generated By:JJTree: Do not edit this line. ASTInclusiveORExpression.java Version 4.3 */ /* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=true,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ package org.iguanatool.testobject.cparser; public class ASTIn...
iguanatool/iguana
src/main/java/org/iguanatool/testobject/cparser/ASTInclusiveORExpression.java
Java
mit
742
package fi.csc.chipster.rest.websocket; import java.io.IOException; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import jakarta.websocket.CloseReason;...
chipster/chipster-web-server
src/main/java/fi/csc/chipster/rest/websocket/WebSocketClientEndpoint.java
Java
mit
5,780
require 'open3' When(/^I execute it via the execute function of the PuppetShow module$/) do @results = PuppetShow.execute(@file) end When(/^I execute the PuppetShow binary with the option:$/) do |opt| cmd = "./bin/puppetshow #{opt}" @stdout_str, @status = Open3.capture2(cmd) end When(/^I execute it via the Pu...
ludokng/puppetshow
features/step_definitions/execute_steps.rb
Ruby
mit
428
/* @author rich * Created on 07-Jul-2003 * * This code is covered by a Creative Commons * Attribution, Non Commercial, Share Alike license * <a href="http://creativecommons.org/licenses/by-nc-sa/1.0">License</a> */ package org.lsmp.djep.vectorJep.values; import org.lsmp.djep.vectorJep.*; //import JSci....
Kailashrb/Jep
src/org/lsmp/djep/vectorJep/values/Matrix.java
Java
mit
4,371
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-24 22:03 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('samples', '0004_sample'), ] operations = [ m...
gcrsaldanha/fiocruz
samples/migrations/0005_auto_20170424_1903.py
Python
mit
1,172
# -*- coding:utf-8 -*- import os def split_screen(): val = os.system("xrandr --output HDMI1 --right-of VGA1 --auto") def run_sensorcmd_web(): path = "/home/suyf/swork/git/sensorcmd-web/web/" os.chdir(path) val = os.system("./apprun.py") def run_cas(): path = "/home/suyf/swork/git/cas/web/" os.chdir(path) val = ...
myyyy/wiki
shell/work_start.py
Python
mit
791
package net.trolldad.dashclock.redditheadlines.testactivity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import net.trolldad.dashclock.redditheadlines.activity.PreviewActivity_; /** * Created by jacob-tabak on 1/28/14. */ public class LaunchNonImgurActivity extends Activit...
Trolldad/Reddit-Headlines
Reddit Headlines for DashClock/src/main/java/net/trolldad/dashclock/redditheadlines/testactivity/LaunchNonImgurActivity.java
Java
mit
815
<?php namespace HeroBundle\Form\Paragraph; use HeroBundle\Entity\Item; use HeroBundle\Repository\ItemRepository; use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\CallbackTransformer; use Symfony\Component\Form\Extension\Core\Type\IntegerType; use Symfony\Component\Form\AbstractType; use Sy...
Cryborg/you_are_the_hero
src/HeroBundle/Form/Paragraph/AccessConditionsType.php
PHP
mit
1,613
'use strict'; // CUSTOM ERROR // /** * FUNCTION: createClass() * Creates a CustomError class constructor. Note that we use function generation so that tests may be run in browsers not supporting ES2015 classes. This function may be loaded in non-ES2015 environments, but should only be invoked when ES2015 classes are ...
kgryte/utils-copy-error
test/fixtures/customerror.subclass.js
JavaScript
mit
741
let AutomaticComponent = require('./AutomaticComponent'); class PurifyCss extends AutomaticComponent { /** * Required dependencies for the component. */ dependencies() { if (Config.purifyCss) { throw new Error( 'PurifyCSS support is no longer available. We recommen...
JeffreyWay/laravel-mix
src/components/PurifyCss.js
JavaScript
mit
419
import "ember"; var Router, App, AppView, templates, router, container; var get = Ember.get, set = Ember.set, compile = Ember.Handlebars.compile, forEach = Ember.EnumerableUtils.forEach; function bootApplication() { router = container.lookup('router:main'); Ember.run(App, 'advanceReadiness'); } funct...
g13013/ember.js
packages_es6/ember/tests/routing/basic_test.js
JavaScript
mit
84,137
""" from https://codelab.interviewbit.com/problems/symmetry/ """ # Definition for a binary tree node # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # @param A : root node of tree # @return an integer def isSymm...
JuanCTorres/interview-prep-solutions
codelab/symmetric_trees.py
Python
mit
694
/** * Simple themeing with color overrides */ export namespace Colors { export let flatButtonPrimary = 'rgb(0, 188, 212)'; }
basarat/uic
src/base/styles.tsx
TypeScript
mit
129
package CellContent; import java.util.*; import Cell.Cell; import Models.Ant; import javafx.scene.paint.Color; public class ForagingAntsContent extends CellContent{ List<Ant>antsHere; double homePheromone, foodPheromone, maxPheromone; boolean isFoodSource, isHome; public ForagingAntsContent (int ...
NaijiaoZhang/cellsociety
src/CellContent/ForagingAntsContent.java
Java
mit
2,214
package math.calculus; /** * * @author Joris Schelfaut */ public class NonLinearEquation { }
noisedriver/java-math-library
src/math/calculus/NonLinearEquation.java
Java
mit
111
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("Ea...
Wheredidigo/RebornBuddyPublic
EatMeWpf/EatMeWpf/Properties/AssemblyInfo.cs
C#
mit
1,410
import React from 'react'; import Plus from 'react-icons/fa/plus' export default ({routes, onSelectChange, onCreateLink}) => ( <div className="field has-addons"> <div className="control is-expanded"> <div className="select is-fullwidth"> <select name="route" onChange={e => onSel...
Donluigimx/transporta2_admin
app/components/BusStops/LinkBusStop.js
JavaScript
mit
852
import React from 'react' import clsx from 'clsx' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { push } from 'connected-react-router' import CircularProgress from '@material-ui/core/CircularProgress' import List from '@material-ui/core/List' import { withStyles } from '@mater...
petrdsvoboda/prototype-orders
app/src/components/common/ItemList/ItemList.tsx
TypeScript
mit
1,402
#include "EEPROMWearLevelingReader.h" EEPROMWearLevelingReader::EEPROMWearLevelingReader() { reader.setPosition(findPosition()); reader.next(); // We know the next byte is the begin mark, so just skip it } uint8 EEPROMWearLevelingReader::next() { if (atEnd()) { return 0; } else { return escapeIfNecessary(...
RichoM/Uzi
c++/UziFirmware/EEPROMWearLevelingReader.cpp
C++
mit
1,892
from PyQt4 import QtGui, QtCore from PyQt4 import uic form_class = uic.loadUiType('logWindow.ui')[0] class LogWindow(QtGui.QDialog, form_class): def __init__(self, parent=None): super(LogWindow, self).__init__(parent) self.setup_ui() def setup_ui(self): self.setupUi(self) se...
RaynoldKim/MyTrade
LogWindow.py
Python
mit
394
// DO NOT EDIT. This file is generated #include "../Precompiled.h" #include "../AngelScript/APITemplates.h" #include "../AngelScript/GeneratedIncludes.h" #include "../AngelScript/Manual.h" namespace Urho3D { void FakeAddRef(void* ptr); void FakeReleaseRef(void* ptr); // explicit File::File(Context* context) | File...
henu/Urho3D
Source/Urho3D/AngelScript/Generated_Members_F.cpp
C++
mit
138,861
export default { props: { cats: [ { name: 'cat 0', checked: false }, { name: 'cat 1', checked: false } ] }, html: ` <input type="checkbox"> <input type="checkbox"> `, test({ assert, component, target, window }) { const { cats } = component; const newCats = cats.slice(); ...
sveltejs/svelte
test/runtime/samples/binding-input-checkbox-with-event-in-each/_config.js
JavaScript
mit
695
class Cloudrider::Apiv1::CookieSplashComponent < Cloudrider::Apiv1::Base class Context def icon_image_url "assets/cookie-splash/california.png" end def splash_style :wechat end end private def _context Context.new end end
foxnewsnetwork/cloudrider
lib/cloudrider/apiv1/cookie_splash_component.rb
Ruby
mit
263
using System; using System.IO; namespace CodeEval.LongestLines { /// <summary> /// Longest Lines Challenge /// Difficulty: Medium /// Description: find the 'N' longest lines and return them from longest to smallest. /// Problem Statement: https://www.codeeval.com/open_challenges/2/ /// </summa...
joshimoo/Challenges
CodeEval/Medium/LongestLines/LongestLines.cs
C#
mit
1,145
<?php $data = $this->registration->get_tourist_info($this->session->userdata('uid')); ?> <form class="form" action="/insert_spot" method="post" enctype="multipart/form-data"> <div class="col-md-12"> <div class="fileinput fileinput-new" data-provides="fileinput"> <div class="fileinput-preview t...
sonitgregorio/leytetourismportal
application/views/tourist/setting_tourist.php
PHP
mit
2,175
import { moduleForModel, test } from 'ember-qunit'; moduleForModel('code-system-property-1', 'Unit | Model | CodeSystem_Property1', { needs: [ 'model:meta', 'model:narrative', 'model:resource', 'model:extension', 'model:coding' ] }); test('it exists', function(assert) { const model = this.su...
davekago/ember-fhir
tests/unit/models/code-system-property-1-test.js
JavaScript
mit
354
import _plotly_utils.basevalidators class DataValidator(_plotly_utils.basevalidators.CompoundValidator): def __init__(self, plotly_name="data", parent_name="layout.template", **kwargs): super(DataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
plotly/python-api
packages/python/plotly/plotly/validators/layout/template/_data.py
Python
mit
8,076
require 'assert' require 'qs/io_pipe' require 'thread' class Qs::IOPipe class UnitTests < Assert::Context desc "Qs::IOPipe" setup do # mimic how IO.select responds @io_select_response = Factory.boolean ? [[NULL], [], []] : nil @io_select_called_with = nil Assert.stub(IO, :select)...
redding/qs
test/unit/io_pipe_tests.rb
Ruby
mit
2,162
import io.grpc.BindableService; import io.grpc.ServerInterceptors; import io.grpc.ServerServiceDefinition; import org.redisson.Redisson; import org.redisson.api.RedissonClient; import org.redisson.config.Config; import java.util.LinkedList; import java.util.List; import java.util.logging.Logger; import heartbeat.Heart...
arkbriar/nju_ds_lab2
nodes/src/main/java/MasterNodeServer.java
Java
mit
1,660
function /*like here*/ * foo() { yield /*or here*/* [42]; }
Microsoft/TypeScript-TmLanguage
tests/cases/Issue572.ts
TypeScript
mit
65
<?php namespace WaddlingCo\StreamPerk\Bundle\ForumBundle\Repository; /** * ForumThreadRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class ForumThreadRepository extends \Doctrine\ORM\EntityRepository { }
WaddlingCo/streamperk-bundle
ForumBundle/Repository/ForumThreadRepository.php
PHP
mit
276
from apscheduler.schedulers.blocking import BlockingScheduler from manage import update_live_points, update_for_gw, update_test, update_epl_players from tweetbot import TweetBot sched = BlockingScheduler() # @sched.scheduled_job('cron', day_of_week='wed-sun', hour='22', minute='50-59/1', timezone='America/New_York') ...
code247/FPL_FFC
jobs.py
Python
mit
1,124
import React, { Component } from 'react' import { Modal, Button, message } from 'antd' import LinkSelect from '../../Resource/LinkSelect' import { BAIKE } from '../../../constants' class BaikeButton extends Component { constructor(props) { super(props) this.state = { visible: false, ...
yiweimatou/admin-antd
src/components/ReactQuill/tool/bk.js
JavaScript
mit
1,612
from __future__ import absolute_import, division, print_function import warnings import re import py import pytest from _pytest.recwarn import WarningsRecorder def test_recwarn_functional(testdir): reprec = testdir.inline_runsource(""" import warnings def test_method(recwarn): warning...
MichaelAquilina/pytest
testing/test_recwarn.py
Python
mit
10,978
using System; using System.Collections.Generic; using System.Text; namespace stack_queue { class LinkedList { public Node head = new Node("head"); public Node FindTail() { Node curr = head; while (curr.Next != null) {...
drkrieger1/data-structures
stack_queue/stack_queue/LinkedList.cs
C#
mit
772
<?php define('DS', '/'); define('ROOT', dirname(dirname(__FILE__))); $url = $_GET['url']; require_once (ROOT . DS . 'include' . DS . 'main.inc.php');
neinderthal/river
public/index.php
PHP
mit
157
from scudcloud.resources import Resources from PyQt5 import QtCore from PyQt5.QtCore import QUrl from PyQt5.QtWebKit import QWebSettings from PyQt5.QtWebKitWidgets import QWebView class LeftPane(QWebView): def __init__(self, window): QWebView.__init__(self) self.window = window with open(...
raelgc/scudcloud
scudcloud/leftpane.py
Python
mit
2,425
<section class="content"> <?php echo form_open_multipart( site_url('/admin/save_room'), array( 'class' => 'admin-form' ), array( 'id' => isset($room->id)? $room->id : null ) ); ?> <?php echo foundation_form_input( 'number', array( 'default_value' => isset($room->number)? $room->number : null ) ); ?> <?p...
chloereimer/sleepy-me-hotel
application/views/admin/room_form.php
PHP
mit
1,360
require "yml_object/version" require 'yaml' module YmlObject def self.say_hi 'Hi' end def self.load(file_path) YmlObject::Object.new(YAML.load_file(file_path)) end class Object def initialize(yml_hash) @my_object = yml_hash end def method_missing(method_name, *args, &block) ...
JasonHeylon/yml_object
lib/yml_object.rb
Ruby
mit
584
$(document).ready(function(){ $('#px-product-product_list-form').validate({ rules: { name: { required: true }, product_category_id: { required: true }, price: { required: true }, ...
ilhamudzakir/hijab-master
assets/backend_assets/page/product/product_list_form.js
JavaScript
mit
1,683
<?php namespace Pcic; use Exception; class PcicException extends Exception {};
guojikai/captcha-image-creator
src/PcicException.php
PHP
mit
83
 using System.Collections.Generic; namespace PortableRSS.Interfaces { public interface IChannel { string Title { set; get; } string Link { set; get; } string Description { set; get; } string Language { set; get; } string Copyright { set; get; } string PubDate { s...
waltersoto/PortableRSS
PortableRSS/Interfaces/IChannel.cs
C#
mit
571
<?php use Mouf\Mvc\Splash\Controllers\HttpErrorsController; use Mouf\Mvc\Splash\Utils\ExceptionUtils; /* @var $this HttpErrorsController */ ?> <h1>An error occured</h1> <div>An error occured in the application. Please try again, or contact an administrator.</div> <?php if ($this->debugMode) { echo '<div>'.nl2br($...
thecodingmachine/mvc.splash-common
src/views/500.php
PHP
mit
448