code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
#include "serverstatus.h" #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <syslog.h> #include <string.h> #include <time.h> #include <iostream> #include <fstream> #include <limits> #include <signal.h> #include <unistd...
Fidi/Server-Status
serverstatus.cpp
C++
mit
15,505
module TokyoMetro::Modules::ToFactory::Api::Convert::Patch::TrainTimetable::YurakuchoLine::Generate::List def generate( max = nil ) ary = super( max ) return ::TokyoMetro::Factory::Convert::Patch::Api::TrainTimetable::YurakuchoLine::Generate::List.updated( ary ) end end
osorubeki-fujita/odpt_tokyo_metro
lib/tokyo_metro/modules/to_factory/api/convert/patch/train_timetable/yurakucho_line/generate/list.rb
Ruby
mit
285
# Howto Set Startup Links in Ubuntu for Boot Scripts ## Set the Links ``` $ sudo update-rc.d script_name defaults 99 ``` ## Remove Links ``` $ sudo update-rc.d -f script_name remove ```
tripattern/howtos
linux/ubuntu/setStartupLinks.md
Markdown
mit
189
module DeviseSslSessionVerifiable VERSION = "3.0.4".freeze end
mobalean/devise_ssl_session_verifiable
lib/devise_ssl_session_verifiable/version.rb
Ruby
mit
65
package org.github.sriki77.edgesh.command; public class CommandException extends RuntimeException { public CommandException(String message) { super(message); } }
sriki77/edgesh
src/main/java/org/github/sriki77/edgesh/command/CommandException.java
Java
mit
180
#!/usr/bin/env python3 from framework import do_exit, get_globals, main def do_work(): global g_test_import global globals1 print("do_work") globals1 = get_globals() g_test_import = globals1["g_test_import"] print("do_work: g_test_import = %s" % str(g_test_import)) main(do_work)
jtraver/dev
python3/globals/test1.py
Python
mit
308
<?php include ('clases/User.php'); include ('clases/Rss.php'); session_start(); if(!isset($_SESSION['user'])) { header ("location: index.php"); exit; } $usuarios = USER::TraerTodosLosUsersSP(); ?> <!DOCTYPE html> <html> <head> <?php include('modules/headContent.html'); ?> <title>Casita</title> <?php ...
AlvarezElias/Consuministisismo
home.php
PHP
mit
1,712
var sourceFolder = 'src', destFolder = 'public', configFolder = 'config'; module.exports = { folders: { source: sourceFolder, dest: destFolder }, files: { scripts: [ `${sourceFolder}/js/utils.js`, `${sourceFolder}/js/sprites/weapon.js`, ...
themadknights/wellofeternity
config/gulp.config.js
JavaScript
mit
1,714
require 'base64' require 'bcrypt' module Passrock class PasswordDbFinder RECORD_LENGTH = 12 def self.bcrypt_hash(secret, salt) BCrypt::Engine.hash_secret(secret, "$2a$07$#{salt}") end attr_reader :password_db, :private_key def initialize(opts = {}) @password_db = opts[:password_...
bitium/passrock
lib/passrock/password_db_finder.rb
Ruby
mit
2,164
#ifndef _3DUTILITIES_H #define _3DUTILITIES_H #pragma once #include "../ext/Quaternion.h" /* These functions should probably be folded into 3dbasics at some point. But they're here for now. */ Quaternion RotateTowards(const Quaternion& from, const Quaternion& to, float maxDegreesDelta); #endif
Benjins/CCSPage
schoolwork/particle-system/code/FullEngine/header/int/3DUtilities.h
C
mit
300
package fr.univ.nantes.roomanager.dao.typetitre import fr.univ.nantes.roomanager.bean.TarifBean import fr.univ.nantes.roomanager.dao.Dao /** * @author Pierre Gaultier * @author Alexis Giraudet */ trait TypeTitreDao extends Dao[TarifBean] {}
Giraudux/roomanager
src/main/scala/fr/univ/nantes/roomanager/dao/typetitre/TypeTitreDao.scala
Scala
mit
246
using Newtonsoft.Json.Linq; using Skybrud.Essentials.Json.Extensions; using Skybrud.Essentials.Time; namespace Skybrud.Social.Slack.Models.Conversations { /// <summary> /// Class representing the topic a Slack conversation. /// </summary> public class SlackConversationTopic : SlackObject { #...
abjerner/Skybrud.Social.Slack
src/Skybrud.Social.Slack/Models/Conversations/SlackConversationTopic.cs
C#
mit
1,870
package storageapi // 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 regenera...
Azure/azure-sdk-for-go
services/storage/mgmt/2021-08-01/storage/storageapi/interfaces.go
GO
mit
19,150
module.exports = { server: { host: '0.0.0.0', port: 3000 }, database: { host: '158.85.190.240', port: 27017, db: 'hackathon', username: 'administrator', password: 'hunenokGaribaldi9' } };
esmoreit-hack/hackathon
src/server/config.js
JavaScript
mit
259
'use strict'; /* istanbul ignore next */ /* eslint-disable no-console */ /** * Handle failures in the application by terminating. * @param {Exception} err - Exception to handle. */ module.exports = (err) => { console.log(err); console.log(err.stack); process.exit(-1); };
steve-gray/swagger-codegen
src/failure-handler.js
JavaScript
mit
290
__history = [{"date":"Sun, 30 Mar 2014 19:01:57 GMT","sloc":70,"lloc":24,"functions":1,"deliveredBugs":0.13739293667703853,"maintainability":55.96019418981483,"lintErrors":0,"difficulty":6.375}]
dalekjs/dalekjs.github.io
package/dalek-browser-firefox/master/complexity/files/lib_commands_marionette_execute_js/report.history.js
JavaScript
mit
194
Write-Host -Object 'Installing ISESteroids' $version = $PSVersionTable.PSVersion.Major if ($version -lt 3) { Write-Warning 'ISESteroids requires PowerShell 3 or better.' Write-Warning "Your current PowerShell version is $version." return } $isepath = Join-Path -Path $pshome -ChildPath 'powershell_ise.exe' $is...
lweniger/PowerShell
Modules/downloaded/powershellgallery/ISESteroids/install.ps1
PowerShell
mit
13,143
php中变量类型是可以随意转换的。比较常见的是字符串与数字,数字/字符串与布尔值之间的转换。 <?php $a=3; $b='abc'; echo $a+$b; // 输出3 $b='12abc'; echo $a+$b; //输出15 $b='abc12'; echo $a+$b; //输出3 ,这是因为在引号内第一个识别出的变量值不为数字,则引号内的所有都被视为字符串 ?> 数字到字符串的转换 $a=3; $b='abc'; echo $a.$b; //输出3abc var_dump($a.$b);...
youngpao/youngpao.github.io
_posts/2017-1-8-php变量类型改变.md
Markdown
mit
3,108
<?php namespace Bostick\Stocker; /** * The plugin.php file (called the plugin initialization script) defines the plugin information class. */ use System\Classes\PluginBase; class Plugin extends PluginBase { public function pluginDetails() { return [ 'name' => 'Stocker', ...
billbostick/Stocker
Plugin.php
PHP
mit
629
import Omi from 'omi/dist/omi' import { CellsTitle, Cells, CellHeader, CellBody, CellFooter } from '../cell' Omi.makeHTML('CellsTitle', CellsTitle); Omi.makeHTML('Cells', Cells); Omi.makeHTML('CellHeader', CellHeader); Omi.makeHTML('CellBody', CellBody); Omi.makeHTML('CellFooter', CellFooter); export default class Li...
omijs/omi-weui
src/components/list/list.js
JavaScript
mit
1,425
--- uid: SolidEdgePart.ComponentSketch.Type summary: Specifies the type of the object being referenced. remarks: ---
SolidEdgeCommunity/docs
docfx_project/apidoc/SolidEdgePart.ComponentSketch.Type.md
Markdown
mit
121
package spaceinvaders.command.client; import static spaceinvaders.command.ProtocolEnum.UDP; import spaceinvaders.client.mvc.Controller; import spaceinvaders.client.mvc.View; import spaceinvaders.command.Command; /** Flush the screen. */ public class FlushScreenCommand extends Command { private transient Controller...
apetenchea/SpaceInvaders
src/main/java/spaceinvaders/command/client/FlushScreenCommand.java
Java
mit
771
/** @module ember-flexberry-gis */ import Ember from 'ember'; /** Class implementing base stylization for markers. @class BaseMarkerStyle */ export default Ember.Object.extend({ /** Gets default style settings. @method getDefaultStyleSettings @return {Object} Hash containing default style settin...
Flexberry/ember-flexberry-gis
addon/markers-styles/-private/base.js
JavaScript
mit
1,493
/* * The MIT License * * Copyright 2017 michael. * * 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, modify,...
bThink-BGU/BPjs
src/test/java/il/ac/bgu/cs/bp/bpjs/analysis/DfsBProgramVerifierTest.java
Java
mit
23,981
namespace live.asp.net.Models { public enum ShowStatus { OffAir = 1, OnAir = 2, Standby = 3 } }
matsprea/live.asp.net
src/live.asp.net/Models/ShowStatus.cs
C#
mit
131
#include <stdio.h> int findbig(const int*,int); int main(int argc, char const *argv[]) { int lines; char s[1010]={'\0'},*pstr=s; scanf("%d",&lines); getchar(); while(lines--){ int count[26]={0}; gets(s); pstr=s; while(*pstr) count[*pstr++-'a']++; printf("%c\n",findbig(count,26)+'a'); } return 0; }...
oOXuOo/ACM
zimutongji.c
C
mit
464
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.Build.Framework { public delegate void AnyEventHandler(object sender, Microsoft.Build.Framework.BuildEventArgs e); [System.Runtime.InteropSer...
rainersigwald/msbuild
ref/Microsoft.Build.Framework/netstandard/Microsoft.Build.Framework.cs
C#
mit
55,579
using System; using System.Diagnostics.Contracts; namespace Graph { public class Edge<TVertex> : IEdge<TVertex> { public Edge (TVertex source, TVertex target) { if (source == null) { throw new ArgumentNullException(nameof(source)); } ...
EGrun/Grun.Math
src/Graph/Edge.cs
C#
mit
663
(() => { 'use strict'; angular.module('RestTestApp') .config(($urlRouterProvider, $locationProvider) => { $locationProvider.html5Mode(true); }) .config(function(RestTestStateConfigProvider) { RestTestStateConfigProvider.initialize(); }); })();
svaldivia/restTest-purchasesLedger
app/scripts/app.js
JavaScript
mit
266
import { NgModule, Component, ElementRef, AfterContentInit, AfterViewInit, AfterViewChecked, OnInit, OnDestroy, DoCheck, Input, ViewContainerRef, ViewChild, Output, SimpleChange, EventEmitter, ContentChild, ContentChildren, Renderer, IterableDiffers, QueryList, TemplateRef, ChangeDetectorRef, Inject, forwardRef...
rohitsindhu90/Primeng-custom-4.0.0.0-rc3
components/datatable/datatable.ts
TypeScript
mit
101,388
# NFig.Redis [![NuGet version](https://badge.fury.io/nu/NFig.Redis.svg)](http://badge.fury.io/nu/NFig.Redis) [![Build status](https://ci.appveyor.com/api/projects/status/9erli0y6pmmig9wh/branch/master?svg=true)](https://ci.appveyor.com/project/bretcope/nfig-redis/branch/master) NFig.Redis is a configuration/settings ...
NFig/NFig.Redis
README.md
Markdown
mit
7,045
/* * * The MIT License * * Copyright (c) 2015, Sebastian Sdorra * * 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...
AjithVas/ACP
sample/scripts/sample-01.js
JavaScript
mit
2,096
\begin{figure}[H] \centering \includegraphics[width=6in]{figs/run_29/run_29_turb_visc_total_vs_r_meshscatter} \caption{Scatter plot of non-equilibrium based $\nu_T$ vs radius at $z/c$=7.75, $V_{free}$=31.26, station 3.} \label{fig:run_29_turb_visc_total_vs_r_meshscatter} \end{figure}
Jwely/pivpr
texdocs/figs/run_29/run_29_turb_visc_total_vs_r_meshscatter.tex
TeX
mit
287
require("lua/tracer") tracer_clear() glib_add([=[ uniform sampler2D tex_rand; uniform usampler3D tex_vox; uniform float scene_sb_offs; const vec3[] lcol = vec3[]( vec3(0.5, 0.5, 0.5), vec3(0.7, 0.4, 0.4), vec3(0.3, 0.7, 0.3), vec3(0.45, 0.45, 0.7), vec3(0.7, 0.1, 0.7) ); uint voxel_fetch(int layer, ivec3 cell)...
iamgreaser/ds15-rt
lua/scene/voxygen.lua
Lua
mit
7,165
module VirusGame { export const enum CellState { Empty, Alive, Dead }; export class BoardCell extends Phaser.Image { state: CellState = CellState.Empty; player: BoardPlayer; isPossibleToMoveTo: boolean = false; constructor(public row: number, public col: number, pub...
asyler/virus-game
game/BoardCell.ts
TypeScript
mit
3,199
#!/usr/bin/env python # # Copyright (c) 2001 - 2016 The SCons Foundation # # 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 us...
EmanueleCannizzaro/scons
test/Execute.py
Python
mit
4,013
using System; 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: Asse...
davetz/ModelGraph
ModelGraph/ModelGraph/Properties/AssemblyInfo.cs
C#
mit
1,052
/* global require, module */ var EmberApp = require('ember-cli/lib/broccoli/ember-app'); var app = new EmberApp(); // Use `app.import` to add additional libraries to the generated // output files. // // If you need to use different assets in different // environments, specify an object as the first parameter. That /...
surreymagpie/club
client/Brocfile.js
JavaScript
mit
763
<?php namespace App\VitrineBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class ProjetControllerTest extends WebTestCase { /* public function testCompleteScenario() { // Create a new client to browse the application $client = static::createClient(); ...
optimusThePrime/vitrine
src/App/VitrineBundle/Tests/Controller/ProjetControllerTest.php
PHP
mit
1,938
// // HCPInstallationWorker.h // // InfinitusHotCodePush // // Created by M on 16/8/30. // #import <Foundation/Foundation.h> #import "HCPWorker.h" #import "HCPFilesStructure.h" /** * 安装类 * * @see HCPWorker */ @interface HCPInstallationWorker : NSObject<HCPWorker> /** * 初始化 * * @param newVersion 需要安装的新版...
myeveryheart/infinitus-hot-code-push
src/ios/Updater/HCPInstallationWorker.h
C
mit
525
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_71) on Tue Feb 16 15:23:20 EST 2016 --> <meta http-equiv="Content-Type" content="text/html" charset="utf-8"> <title>org.apache.so...
koneksys/KLD
middleware/solr/docs/solr-analytics/org/apache/solr/analytics/accumulator/facet/package-tree.html
HTML
mit
7,543
"use strict"; var CropTouch = (function () { function CropTouch(x, y, id) { this.id = id || 0; this.x = x || 0; this.y = y || 0; this.dragHandle = null; } return CropTouch; }()); exports.CropTouch = CropTouch; //# sourceMappingURL=cropTouch.js.map
ToruHyuga/angular2-img-cropper-v2
src/model/cropTouch.js
JavaScript
mit
291
<?php namespace LaNet\LaNetBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link http://symfony...
TiTaN4532/lalala
src/LaNet/LaNetBundle/DependencyInjection/Configuration.php
PHP
mit
879
(function () { 'use strict'; angular .module('Debug', ['pullrefresh']); })();
stomt/angular-pullrefresh
debug/debug-app.js
JavaScript
mit
87
The MIT License =============== Copyright (c) Ales Kafka 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, modify, merge, ...
wavelo/PluginMacro
licence.md
Markdown
mit
1,082
--- layout: "journal_by_tag" tag: "kodak instamatic" title: "Kodak Instamatic" description: "Etiquetas" permalink: "/blog/tag/kodak-instamatic/" header-img: "img/archive-bg.jpg" ---
davidhdz/davidhdz.github.io
blog/tag/kodak-instamatic.md
Markdown
mit
182
/* * (c) 2010 Koninklijke Philips Electronics N.V., All rights reserved * * This source code and any compilation or derivative thereof is the * proprietary information of Koninklijke Philips Electronics N.V. and is * confidential in nature. * Under no circumstances is this software to be exposed to or placed un...
tim-vandecasteele/Philips-Wifi-TV-Remote
Libs/DirectFB_Voodoo/include/plfapiconn_types.h
C
mit
1,700
# Gem rake-wordpress_upgrader_former03 Rake tasks for upgrading wordpress with wp-cli ## Installation Add this line to your application's Gemfile: ```ruby gem 'rake-wordpress_upgrader_former03' ``` And then execute: $ bundle install Or install it yourself as: $ gem install rake-wordpress_upgrader_forme...
former03/rake-wordpress_upgrader_former03
README.md
Markdown
mit
708
//MIT License // //Copyright (c) 2019 Mindaugas Vinkelis // //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, modify...
fraillt/bitsery
include/bitsery/ext/std_variant.h
C
mit
4,314
<?php namespace Yadakhov; use mikehaertl\shellcommand\Command; /** * A simple wrapper class for Tor * @package Yadakhov */ class Tor { public function __construct() { if (!$this->isRunning()) { $this->command('start'); } } /** * Execute tor command * * @...
yadakhov/tor
src/Tor.php
PHP
mit
4,631
module.exports = function(knex) { describe('Transactions', function() { it('should be able to commit transactions', function(ok) { var id = null; return knex.transaction(function(t) { knex('accounts') .transacting(t) .returning('id') .insert({ f...
viniborges/designizando
node_modules/knex/test/integration/builder/transaction.js
JavaScript
mit
2,294
<?php namespace PhpParser\Node\Scalar; use PhpParser\Node\Scalar; /** * @property array $parts Encaps list */ class Encapsed extends Scalar { /** * Constructs an encapsed string node. * * @param array $parts Encaps list * @param array $attributes Additional attributes */ publ...
Amaire/filmy
vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/Encapsed.php
PHP
mit
532
// Source file for alignment utility functions // Include files #include "R3Shapes.h" // Namespace namespace gaps { R3Box R3BoundingBox(const RNArray<R3Point *>& points) { // Compute bounding box R3Box bbox = R3null_box; for (int i = 0; i < points.NEntries(); i++) { bbox.Union(*points[i]); } /...
tomfunkhouser/gaps
pkgs/R3Shapes/R3Align.cpp
C++
mit
16,484
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <policy/feerate.h> #include <tinyformat.h> const std::string CURRENCY_...
Bushstar/UFO-Project
src/policy/feerate.cpp
C++
mit
1,149
var util = require("util"); var choreography = require("temboo/core/choreography"); /* CreateDeployment Create a RightScale Deployment. */ var CreateDeployment = function(session) { /* Create a new instance of the CreateDeployment Choreo. A TembooSession object, containing a valid set o...
nikmeiser/temboo-geocode
node_modules/temboo/Library/RightScale.js
JavaScript
mit
67,107
package org.graylog2.plugin.httpmonitor; import org.graylog2.plugin.PluginConfigBean; import org.graylog2.plugin.PluginModule; import java.util.Collections; import java.util.Set; /** * Extend the PluginModule abstract class here to add you plugin to the system. */ public class HttpMonitorInputModule extends Plugin...
sivasamyk/graylog2-plugin-input-httpmonitor
src/main/java/org/graylog2/plugin/httpmonitor/HttpMonitorInputModule.java
Java
mit
892
var path = require('path'); var webpack = require('webpack'); var _ = require('lodash'); var baseConfig = require('./base'); // Add needed plugins here var BowerWebpackPlugin = require('bower-webpack-plugin'); var config = _.merge({ entry: [ 'webpack-dev-server/client?http://127.0.0.1:8000', 'webpack/hot/o...
rsamec/react-designer
cfg/dev.js
JavaScript
mit
784
/*eslint-env mocha*/ /* * mochify.js * * Copyright (c) 2014 Maximilian Antoni <mail@maxantoni.de> * * @license MIT */ 'use strict'; var assert = require('assert'); var fs = require('fs'); var run = require('./fixture/run'); var sandbox = require('./fixture/sandbox'); describe('node', function () { it('passe...
mantoni/mochify.js
test/node-test.js
JavaScript
mit
11,515
// Copyright (c) 2011-2014 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "omnicoinamountfield.h" #include "omnicoinunits.h" #include "guiconstants.h" #include "qvaluecombobox.h" #include ...
MeshCollider/Omnicoin
src/qt/omnicoinamountfield.cpp
C++
mit
8,247
# TerrariaCombatHotkeysMod A Terraria mod which adds four hotkeys that allow quick-using of the last 4 items on the hotbar.
LyraelRayne/TerrariaCombatHotkeysMod
README.md
Markdown
mit
124
var http = require('http') var https = require('https') var corsify = require('corsify') var collect = require('stream-collector') var pump = require('pump') var iterate = require('random-iterate') var limiter = require('size-limit-stream') var eos = require('end-of-stream') var flushHeaders = function (res) { if (r...
supriyantomaftuh/signalhub
server.js
JavaScript
mit
2,767
<?php include("../partials/header.php"); include("../inc/database.php"); include("controller.php"); if (strlen($_SERVER["QUERY_STRING"])>0){ $result_response = process_request($_GET["length"],$_GET["width"],$_GET["rent_type"]); //make this a hash so you can access the values with a string $db = $result_r...
JordanLittell/bidwell
pricing/index.php
PHP
mit
2,056
# calendar.py > A small (and personal) script for managing a Markdown calendar via terminal and Chrome. You might be wondering "why this, what's this crap?" Since I use my laptop a **lot** and my phone is just for calls and texting I developed this very basic script for my needs. ## Requirements Sorry if it's too r...
oss6/calendar.py
README.md
Markdown
mit
892
body { padding-top:50px; padding-bottom: 40px; margin-left:200px; -webkit-transition: margin 500ms ease; -moz-transition: margin 500ms ease; -ms-transition: margin 500ms ease; -o-transition: margin 500ms ease; transition: margin 500ms ease; font-family: "Helvetica Neue",Helvetica,Arial,"Microsoft Yahei UI","Mi...
blale-zhang/codegen
WebContent/component/layoutit-master/css/layoutit.css
CSS
mit
6,533
'use strict'; module.exports = function(app) { var users = require('../../app/controllers/users'); var centers = require('../../app/controllers/centers'); // Centers Routes app.route('/centers') .get(centers.list) app.route('/centers') .get(centers.create) app.route('/centers/:centerId') .get(centers.r...
jiashenwang/LG_report
app/routes/centers.server.routes.js
JavaScript
mit
561
# encoding: utf-8 require "mongoid/criterion/complex" require "mongoid/criterion/exclusion" require "mongoid/criterion/inclusion" require "mongoid/criterion/optional" module Mongoid #:nodoc: # The +Criteria+ class is the core object needed in Mongoid to retrieve # objects from the database. It is a DSL that essent...
adorr/mongoid
lib/mongoid/criteria.rb
Ruby
mit
7,764
//============================================================================== // TorqueLab -> // Copyright (c) 2015 All Right Reserved, http://nordiklab.com/ //------------------------------------------------------------------------------ //============================================================================...
NordikLab/TorqueLab
tlab/EditorLab/gui/editorTools/EGlobalInspector.cs
C#
mit
2,081
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("Br...
jspuij/breeze.server.net
Breeze.ContextProvider.EF6/Properties/AssemblyInfo.cs
C#
mit
1,451
<?xml version="1.0" encoding="utf-8"?> <!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" xml:lang="en" lang="en"> <head> <title>ActionController::Instrumentation::ClassMethods</title> <meta htt...
kristoferrobin/p2p
doc/api/classes/ActionController/Instrumentation/ClassMethods.html
HTML
mit
1,794
FROM tutum/nginx RUN rm /etc/nginx/sites-enabled/default RUN mkdir /etc/nginx/ssl ADD sites-enabled/ /etc/nginx/sites-enabled
CSUChico-CINS465/CINS465-Fall2017-Lecture-Examples
nginx/Dockerfile
Dockerfile
mit
125
<p> comp-2615 works! </p>
angular/angular-cli-stress-test
src/app/components/comp-2615/comp-2615.component.html
HTML
mit
28
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "CDStructures.h" #import <IDEFoundation/IDEArchivedContent.h> @class DVTFilePath; @interface IDEArchivedInAppContent : IDEArchivedContent { } + (id)keyPathsForValuesAffec...
kolinkrewinkel/Multiplex
Multiplex/IDEHeaders/IDEHeaders/IDEFoundation/IDEArchivedInAppContent.h
C
mit
768
html { height:100%; } body { margin: 0; padding: 0; font-family: Helvetica, sans-serif; color: #555555; } #main { border: none; } h1, h2 { color: #97316e; font-weight: normal; } h1 { font-size: 40px; } h2 { font-size: 20px; } a { text-decoration: none; color: #97316e; } #content ul li { ...
UKRSE/UKRSE.github.io
stylesheets/stylesheet.css
CSS
mit
2,629
(function(){$(document).ready(function(){$(".joindin").each(function(){var e=$(this);var t=e.attr("href");var n=parseInt(t.substr(t.lastIndexOf("/")+1));$.getJSON("https://api.joind.in/v2.1/talks/"+n+"?callback=?",function(t){var n=t.talks[0].average_rating;if(n>0){e.after(' <img src="/images/ji-ratings/rating-'+n+'.gi...
asgrim/jamestitcumb
public/js/joindin-ratings.min.js
JavaScript
mit
339
{% extends base.html %} {% block content%} <p id="error">oops, you got 404'ed</p> {% endblock %}
davidhax0r/chota
chota/templates/404.html
HTML
mit
97
class ImageUploader < CarrierWave::Uploader::Base include CarrierWave::RMagick def store_dir "vanzeiro/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end version :thumb do process resize_to_fill: [69, 69] end version :thumb2x do process resize_to_fill: [312, 312] end d...
Cabuum/vanzeiro
app/uploaders/image_uploader.rb
Ruby
mit
438
/* ** functions.c for functions.c in /home/kiwi/CPool_evalexpr ** ** Made by Lyes Kaïdi ** Login <kiwi@epitech.net> ** ** Started on Fri Oct 28 17:44:44 2016 Lyes Kaïdi ** Last update Fri Oct 28 17:47:02 2016 Lyes Kaïdi */ #include "./include/calc.h" #include "./include/my_functs.h" int next_token_index = 0;...
LyesKaidi/Eval_Expr
functions.c
C
mit
2,147
package io.picopalette.apps.event_me.Utils; import android.annotation.SuppressLint; import android.content.Context; import android.support.design.widget.CoordinatorLayout; import android.support.v7.widget.Toolbar; import android.util.AttributeSet; import android.view.View; import com.facebook.drawee.view.SimpleDrawee...
picopalette/event-me
app/src/main/java/io/picopalette/apps/event_me/Utils/ImageBehaviour.java
Java
mit
4,149
require "rubygems" require "bundler/setup" require "mini_magick" require "sample_file/version" require "sample_file/base" require "sample_file/image" require "sample_file/video" module SampleFile class << self def image(type='png', opts={}) Image.new(type, opts).file end def image_path(type='png'...
mcls/sample_file
lib/sample_file.rb
Ruby
mit
553
<?php namespace JoshP\MainBundle\Entity; use Doctrine\ORM\Mapping as ORM; use FOS\UserBundle\Model\User as BaseUser; /** * User * * @ORM\Table() * @ORM\Entity(repositoryClass="JoshP\MainBundle\Entity\UserRepository") */ class User extends BaseUser { /** * @var integer * * @ORM\Column(name="id"...
mushiie/hosting
src/src/JoshP/MainBundle/Entity/User.php
PHP
mit
555
--- key: PANM16 slug: SST-CSharp-dataset type: conference title: "A Dataset of Simplified Syntax Trees for C#" authors: - proksch - amann - nadi - mezini published_in: "Proceedings of the 13th International Conference on Mining Software Repositories" series: "MSR 2016" year: 2016 doi: 10.1145/2901739.2903507 ab...
salsolatragus/sven-amann.de
_publications/2016-05-MSR-SST-dataset.md
Markdown
mit
884
.hidden {display: none;} .in-place-textfield-bhv, .in-place-textarea-bhv, .in-place-html-textarea-bhv { border: 1px dotted #666; padding: 0 3px; padding-right: 20px; background-image: url(../images/pencil.png); background-position: top right; background-repeat: no-repeat; } .inplaceeditor-form input, .inplaceedi...
jsgoecke/skype_utils
gui/public/hobothemes/clean/stylesheets/rapid-ui.css
CSS
mit
2,531
const path = require('path') const merge = require('webpack-merge') const webpack = require('webpack') const baseWebpackConfig = require('./webpack.base.config') const ExtractTextPlugin = require("extract-text-webpack-plugin") const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') function resolve (di...
jocodev1/mithril-cli
src/build/webpack.prod.config.js
JavaScript
mit
1,266
/** * db.hpp * * Database abstraction part of Disc Data Base. * * Copyright (c) 2010-2011 Wincent Balin * * Based upon ddb.pl, created years before and serving faithfully until today. * * Uses SQLite database version 3. * * Published under MIT license. See LICENSE file for further information. */ #in...
wincentbalin/DDB
db.cpp
C++
mit
11,489
{-# LANGUAGE RecordWildCards #-} {-# LANGUAGE OverloadedStrings #-} -- | The GhostLang.Node.Flow module is implementing the Flows - -- business logic - for the Node. module GhostLang.Node.Flow ( getHttpConfig , setHttpConfig , listPrograms , listPatternsFromProgram , runNamedPattern , runRando...
kosmoskatten/ghost-lang
ghost-node/src/GhostLang/Node/Flow.hs
Haskell
mit
8,813
use strict; use Data::Dumper; use Carp; # # This is a SAS Component # =head1 NAME get_relationship_IsContainedIn =head1 SYNOPSIS get_relationship_IsContainedIn [-c N] [-a] [--fields field-list] < ids > table.with.fields.added =head1 DESCRIPTION This relationship connects a subsystem spreadsheet cell to the featu...
kbase/kb_seed
scripts/get_relationship_IsContainedIn.pl
Perl
mit
6,112
<!-- Page Content --> <div id="page-content-wrapper"> <div class="container-fluid"> <div class="row"> <div style="margin:0px auto; width:70%; line-height:26px; overflow:hidden;"> <div class="col-md-12"> <div class="page-header"> <h1 class="text-dange...
dy0607/dy0607.github.io
_includes/about-messager.html
HTML
mit
695
#pragma once #ifdef SWIGJAVA class IsrCallback { public: virtual ~IsrCallback() { } virtual void run() { /* empty, overloaded in Java*/ } private: }; static void generic_callback_isr (void* data) { IsrCallback* callback = (IsrCallback*) data; callback->run(); } #endif
GSmurf/upm
src/IsrCallback.h
C
mit
309
# #552 Freeform Popsicle Airways aka Aircraft Navigation Lights! Demonstrating a simple aircraft navigation beacon sequence implemented with a couple of 555 timers. ![Build](./assets/AircraftNavigationLights_build.jpg?raw=true) Here's a quick demo.. [![clip](https://img.youtube.com/vi/AiXiwGwCQng/0.jpg)](https://w...
tardate/LittleArduinoProjects
Electronics101/555Timer/AircraftNavigationLights/README.md
Markdown
mit
2,993
package gea.api; public class Api extends Thread{ }
acalvoa/GEA-FRAMEWORK
src/gea/api/Api.java
Java
mit
55
<div class="set-area"> <form id="search" action="" method="get" class="searchform"> 用户名:<input type="text" value="<?=!empty($search['username']) ? $search['username'] : ''?>" name="username" class="input-txt w100" style=""> 真实姓名:<input type="text" value="<?=!empty($search['realname']) ? $search['rea...
zl0314/ruida
bak/application/views/manager/usercp/index.php
PHP
mit
2,329
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2012 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any...
Oriense/orsens
include/OGRE/RenderSystems/Direct3D9/OgreD3D9MultiRenderTarget.h
C
mit
2,341
require 'spec_helper' module Donaghy module Middleware describe Stats do let(:manager) { man = mock(:manager, name: "test_mock_manager"); man.stub_chain(:async, :event_handler_finished).and_return(true); man } let(:event_handler) { EventHandler.new(manager) } let(:event) do Event.from...
Amicus/donaghy
spec/lib/donaghy/middleware/stats_spec.rb
Ruby
mit
3,047
export default { html: ` <p>42</p> <p>42</p> `, async test({ assert, component, target }) { await component.updateStore(undefined); assert.htmlEqual(target.innerHTML, '<p>undefined</p><p>42</p>'); await component.updateStore(33); assert.htmlEqual(target.innerHTML, '<p>33</p><p>42</p>'); await compon...
sveltejs/svelte
test/runtime/samples/reactive-value-dependency-not-referenced/_config.js
JavaScript
mit
752
// extglyde // // Glyde Glue Plugin // (c)2015 by Cylexia, All Rights Reserved // // Version: 1.15.0625 // // MIT License var ExtGlyde = { GLUE_STOP_ACTION: -200, plane: null, // Canvas resources: null, styles: null, buttons: null, keys: null, button_sequence: [], timers: null, timer_manager:...
cylexia/glyde-chromeapp
glue/extglyde.js
JavaScript
mit
21,282
#!/usr/bin/perl use warnings; use strict; use Data::Dumper; use GD::Graph::lines; my $request_fields = ["id", "us", "sy", "wa"]; my $fields = { r => 0, b => 1, swpd => 2, free => 3, buff => 4, cache => 5, si => 6, so => 7, bi => 8, bo ...
posohin/vmstat_graph
scripts/vmstat_graph.pl
Perl
mit
1,735
// Copyright (c) 2014 blinkbox Entertainment Limited. All rights reserved. package com.blinkboxbooks.android.authentication; import android.accounts.AbstractAccountAuthenticator; import android.accounts.Account; import android.accounts.AccountAuthenticatorResponse; import android.accounts.AccountManager; import androi...
blinkboxbooks/android-app
app/src/main/java/com/blinkboxbooks/android/authentication/BBBAuthenticator.java
Java
mit
6,858
using Heisenslaught.Infrastructure.MongoDb; using System.Collections.Generic; namespace Heisenslaught.Draft { public interface IDraftStore : ICrudMongoStore<string, DraftModel> { DraftModel FindByDraftToken(string draftToken); List<DraftModel> FindByUserId(string userId); } }
chetjan/heisenslaught
src/Heisenslaught/Context/Draft/Stores/IDraftStore.cs
C#
mit
309
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>hammer-tactics: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap....
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.02.3-2.0.6/released/8.7.1+2/hammer-tactics/1.3.1+8.13.html
HTML
mit
7,409
# apix.db.mysql
apix-live/apix.db.mysql
README.md
Markdown
mit
15