repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
BanBart/Symfony2-Project-Final
src/Project/LineOfWorkBundle/Admin/CommercialAdmin.php
1235
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace Project\LineOfWorkBundle\Admin; use Sonata\AdminBundle\Admin\Admin; use Sonata\AdminBundle\Datagrid\ListMapper; use S...
mit
g0v/projectV
mirror/prvCode_07/cityCode_000-areaCode_07-deptCode_035/voteCode_20120101T1A2-qryType_ctks-prvCode_05-cityCode_000-areaCode_07-deptCode_035-liCode_0650.html
5979
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- 選舉資料查詢 --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>中選會選舉資料庫網站</title> <link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css"> <script typ...
mit
dfergar/PHP_practica2
application/models/Productos_model.php
3985
<?php class Productos_model extends CI_Model{ function __construct() { parent::__construct(); $this->load->database(); } function get_destacados($por_pagina,$segmento) { $consulta = $this->db->query("SELECT * FROM Producto WHERE Destacado=1 LIMIT $segmento, $por_pag...
mit
emberjs/ember.js
node-tests/fixtures/acceptance-test/mocha.js
526
import { describe, it, beforeEach, afterEach } from 'mocha'; import { expect } from 'chai'; import startApp from 'my-app/tests/helpers/start-app'; import { run } from '@ember/runloop'; describe('Acceptance | foo', function () { let application; beforeEach(function () { application = startApp(); }); after...
mit
GitHubTai/MijnPizza
src/ShopBundle/Entity/CustomerRepository.php
258
<?php namespace ShopBundle\Entity; use Doctrine\ORM\EntityRepository; /** * CustomerRepository * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class CustomerRepository extends EntityRepository { }
mit
Telestream/telestream-cloud-python-sdk
telestream_cloud_qc_sdk/docs/AudioLengthTest.md
381
# AudioLengthTest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **reject_on_error** | **bool** | | [optional] **checked** | **bool** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documen...
mit
anderson-abc/Superjobs
src/Superjobs/HomeBundle/Resources/public/css/feedback.css
3711
/* To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. */ /* Created on : 24 juil. 2015, 03:28:54 Author : ubuntu */ /* iCheck plugin Flat skin, blue ----------------------------------- */ ...
mit
Red-Folder/red-folder.com
src/Red-Folder.com/Models/Activity/PluralsightActivity.cs
300
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Red_Folder.com.Models.Activity { public class PluralsightActivity: IActivity { [JsonProperty("courses")] public List<Course> Courses; } }
mit
lucasbrsa/OpenCV-3.2
docs/3.2/dd/d17/structcv_1_1cudev_1_1maximum_3_01ushort_01_4-members.html
9582
<!-- HTML header for doxygen 1.8.6--> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" conte...
mit
mcodegeeks/OpenKODE-Framework
01_Develop/libXMCocos2D-v3/Source/3d/C3DEffectManager.cpp
5124
#include "3d/Base.h" #include "3d/C3DEffect.h" #include "3d/C3DElementNode.h" #include "3d/C3DEffectManager.h" #include "3d/C3DElementNode.h" namespace cocos3d { static C3DEffectManager* __effectManagerInstance = NULL; C3DEffectManager::C3DEffectManager() { } C3DEffectManager::~C3DEffectManager() { __effectManager...
mit
Feng-Zihao/protox-webapp-archetype
jersey-ext/src/main/java/me/protox/archetype/jersey/ext/config_property/ConfigPropertyFeature.java
1271
package me.protox.archetype.jersey.ext.config_property; import org.glassfish.hk2.api.InjectionResolver; import org.glassfish.hk2.api.TypeLiteral; import org.glassfish.hk2.utilities.binding.AbstractBinder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.inject.Singleton; import javax.ws.rs.core.C...
mit
teoreteetik/api-snippets
lookups/lookup-get-cname-example-1/lookup-get-cname-example-1.6.x.py
417
# Download the Python helper library from twilio.com/docs/python/install from twilio.rest import Client # Your Account Sid and Auth Token from twilio.com/user/account account_sid = "ACCOUNT_SID" auth_token = "your_auth_token" client = Client(account_sid, auth_token) number = client.lookups.phone_numbers("+16502530000...
mit
JMStewart00/stewartblog
_posts/2017-06-09-AngularJS-CardGame.md
6360
--- layout: post title: "AngularJS Card Game: A Technical Approach" date: 2017-06-09 12:00:00 -0400 categories: jekyll update --- Hey Everyone- For those checking in on me pretty regularly this blog post might get a little technical. And as you're reading it please don't just check out too soon. Thank you, again, ...
mit
alexsad/guessit-frontend
src/find-me/info-bar/assets/info-bar.css
756
.info-bar{ width:100%; height:70px; margin-bottom:4px; background-color: #128A7A; background-image: url("./guessit-logo-min.png"); background-repeat: no-repeat; background-position:5px center; } .info-bar .players-count{ margin:4px; width:30px; margin-top:22px; padding-top:3px; font-size: 15px; border-bo...
mit
lucaviolanti/scala-redbook
answerkey/parallelism/09.answer.scala
409
/* For a thread pool of size 2, `fork(fork(fork(x)))` will deadlock, and so on. Another, perhaps more interesting example is `fork(map2(fork(x), fork(y)))`. In this case, the outer task is submitted first and occupies a thread waiting for both `fork(x)` and `fork(y)`. The `fork(x)` and `fork(y)` tasks are submitted a...
mit
Yelp/occam
occam/util.py
715
import json from dateutil import parser as datetime_parser from occam.app import get_redis from occam.runtime import OCCAM_SERVER_CONFIG_KEY def get_servers(): redis = get_redis() servers = json.loads(redis.get(OCCAM_SERVER_CONFIG_KEY)) return servers.items() def iterate_servers(): redis = get_re...
mit
luigi-sk/la-department-watcher
db/migrate/20140205165029_create_la_department_watcher_events.rb
372
class CreateLaDepartmentWatcherEvents < ActiveRecord::Migration def change create_table :la_department_watcher_events do |t| t.string :type t.datetime :start_at t.datetime :end_at t.text :text_description t.datetime :notify_sent_at t.string :notify_sent_to t.text :agents_...
mit
railsware/global
lib/global/backend/aws_parameter_store.rb
3790
# frozen_string_literal: true module Global module Backend # Loads Global configuration from the AWS Systems Manager Parameter Store # https://docs.aws.amazon.com/systems-manager/latest/userguide/systems-manager-parameter-store.html # # This backend requires the `aws-sdk` or `aws-sdk-ssm` gem, so mak...
mit
delano/humanoid
lib/humanoid/criterion/inclusion.rb
3086
# encoding: utf-8 module Humanoid #:nodoc: module Criterion #:nodoc: module Inclusion # Adds a criterion to the +Criteria+ that specifies values that must all # be matched in order to return results. Similar to an "in" clause but the # underlying conditional logic is an "AND" and not an "OR". Th...
mit
sbj42/roze
src/db/MockFilesystem.test.ts
3297
import {IFilesystem} from './Filesystem'; export type Node = Directory | string; export type Directory = {[name: string]: Node}; export class MockFilesystem implements IFilesystem { files: Directory = {}; constructor(files?: Directory) { this.files = files || {}; } private get(path: string, ...
mit
xzrunner/easyeditor
easyeditor/include/ee/OneFloatValue.h
255
#ifndef _EASYEDITOR_ONE_FLOAT_VALUE_H_ #define _EASYEDITOR_ONE_FLOAT_VALUE_H_ namespace ee { class OneFloatValue { public: virtual ~OneFloatValue() {} virtual float GetValue() const = 0; }; // OneFloatValue } #endif // _EASYEDITOR_ONE_FLOAT_VALUE_H_
mit
oktail/borealos
libs/lib_ihm/src/progress_bar.cpp
247
#include <progress_bar.hh> PROGRESS_BAR :: PROGRESS_BAR(int x, int y, int w, int h, void(*opf)(void), void(*orf)(void), int ea, int ia, int l) : WIDGET(x,y,w,h,opf,orf) { this->ext_angle = ea; this->int_angle = ia; this->level = l; }
mit
matsko/angular
packages/common/src/pipes/index.ts
1312
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @module * @description * This module provides a set of common Pipes. */ import {AsyncPipe} from './async_p...
mit
GovHack2015TeamBoba/MapAllTheThings
views/map.html
469
{% extends 'layout.html' %} {% block headerjs %} <script src="https://maps.googleapis.com/maps/api/js?v=3&amp;sensor=false&amp;libraries=visualization,places"></script> {% endblock %} {% block content %} <input id="pac-input" class="controls" type="text" placeholder="Enter a location"> <div id="map-canvas"> ...
mit
SamSix/s6-db
src/main/java/net/crowmagnumb/database/SqlColumn.java
4933
package net.crowmagnumb.database; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.builder.ToStringBuilder; public class SqlColumn implements SqlComponent { private final String _name; private final SqlColumnType _type; private SqlTable _table; private f...
mit
cazzar/VocaDbTagger
VocaDbModel/Domain/Tags/ITagUsageFactory.cs
137
 namespace VocaDb.Model.Domain.Tags { public interface ITagUsageFactory<T> where T : TagUsage { T CreateTagUsage(Tag tag); } }
mit
SyntaxBlitz/syntaxblitz.github.io
mining-lear/process/step6.py
1654
import json f = open('text-stripped-3.json') out = open('text-lines.json', 'w') start_obj = json.load(f) end_obj = {'data': []} characters_on_stage = [] currently_speaking = None last_scene = '1.1' for i in range(len(start_obj['data'])): obj = start_obj['data'][i] if obj['type'] == 'entrance': if obj['characte...
mit
nhnent/tui.editor
apps/editor/src/ui/components/toolbar/imagePopupBody.ts
5214
import removeClass from 'tui-code-snippet/domUtil/removeClass'; import addClass from 'tui-code-snippet/domUtil/addClass'; import { HookCallback } from '@t/editor'; import { Emitter } from '@t/event'; import { ExecCommand, HidePopup, TabInfo } from '@t/ui'; import i18n from '@/i18n/i18n'; import { cls } from '@/utils/do...
mit
exercism/xswift
exercises/pythagorean-triplet/README.md
825
# Pythagorean Triplet A Pythagorean triplet is a set of three natural numbers, {a, b, c}, for which, ```text a**2 + b**2 = c**2 ``` For example, ```text 3**2 + 4**2 = 9 + 16 = 25 = 5**2. ``` There exists exactly one Pythagorean triplet for which a + b + c = 1000. Find the product a * b * c. ## Setup Go through ...
mit
stefankon/CShomeworkAndLabIssues
CSharp-List-More-Exercises/p04.UnunionLists/Properties/AssemblyInfo.cs
1403
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("p04...
mit
linghuaj/node-social-auth
app/models/user.js
1581
let mongoose = require('mongoose') let userSchema = mongoose.Schema({ // userModel properties here... local: { email: { type: String, required: true }, password: { type: String, required: true } }, facebook: { id: ...
mit
voidcontext/scala-easyvalidator
src/main/scala/io/github/voidcontext/easyvalidator/rule/string/StringRule.scala
1085
package io.github.voidcontext.easyvalidator.rule package string import scala.util.Try import scala.util.matching.Regex abstract class StringRule(value: String) extends Rule[String](value) abstract class ThanableStringRule(value: String) extends StringRule(value) { def than(expected: Int): Try[String] } case class ...
mit
DevelopersWin/VoteReporter
Framework/DragonSpark/Aspects/Specifications/SpecificationConstructor.cs
460
using DragonSpark.Sources.Parameterized; using System; namespace DragonSpark.Aspects.Specifications { sealed class SpecificationConstructor : AdapterConstructorSource<ISpecification> { public static IParameterizedSource<Type, Func<object, ISpecification>> Default { get; } = new SpecificationConstructor().ToCache(...
mit
kerzyte/OWLib
STULib/Types/Dump/STU_F92E0197.cs
446
// File auto generated by STUHashTool using static STULib.Types.Generic.Common; namespace STULib.Types.Dump { [STU(0xF92E0197)] public class STU_F92E0197 : STUInstance { [STUField(0xDAE04657)] public float m_DAE04657; [STUField(0x96960C7F)] public float m_96960C7F; [ST...
mit
kikoseijo/AndroidPopularMovies
app/src/main/java/com/sunnyface/popularmovies/MainActivity.java
3149
package com.sunnyface.popularmovies; import android.content.Intent; import android.databinding.DataBindingUtil; import android.os.Build; import android.os.Bundle; import android.support.v4.app.ActivityOptionsCompat; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; impor...
mit
JavaScript-NZ/javascript-website-v2
app/lib/collections/2_photos.js
1358
Photos = new orion.collection('photos', { singularName: 'photo', pluralName: 'photos', link: { title: 'Photos' }, tabular: { columns: [ {data: 'title', title: 'Title'}, {data: 'state', title: 'State'}, //ToDo: Thumbnail orion.attributeColumn('markdown', 'body', 'Content'), ...
mit
rajdeep26/MyProgramRepository
ShowPrograms.php
7658
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Rajdeep's Programs Repository</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- Le styles --> <link href="...
mit
fs/backbone-base
gulp/modules/server/development.js
690
import browserSync from 'browser-sync'; import config from '../../config'; import middlewaresStack from '../middlewares_stack'; import apiMiddleware from '../middlewares/api'; import mockMiddleware from '../middlewares/mock'; export default () => { const port = process.env.PORT; const middlewares = apiMiddleware()...
mit
oferlitver/oferlitver.github.io
projects.md
82
--- layout: page title: Projects permalink: /projects/ --- # List of my projects
mit
geographiclib/geographiclib
dotnet/Projections/PolyPanel.cs
6048
/** * \file NETGeographicLib\PolyPanel.cs * \brief NETGeographicLib.PolygonArea example * * NETGeographicLib is copyright (c) Scott Heiman (2013) * GeographicLib is Copyright (c) Charles Karney (2010-2012) * <charles@karney.com> and licensed under the MIT/X11 License. * For more information, see * https://geogr...
mit
nirvaris/nirvaris-djangofence
djangofence/urls.py
566
from django.conf.urls import url, include from django.contrib import admin from django.contrib.auth.decorators import login_required from .views import UploadBlackListView, DemoView, UdateBlackListView urlpatterns = [ url(r'^admin/', include(admin.site.urls)), url(r'^upload-blacklist$', login_required(Upload...
mit
pieter-lazzaro/cssnano
tests/modules/postcss-font-family.js
3673
'use strict'; module.exports.name = 'cssnano/postcss-minify-font-values'; module.exports.tests = [{ message: 'should unquote font names', fixture: 'h1{font-family:"Helvetica Neue"}', expected: 'h1{font-family:Helvetica Neue}' }, { message: 'should unquote and join identifiers with a slash, if numeric',...
mit
yinkou/WarSprites-Arduboy
warspritesSample/warsprites.h
839
#ifndef WARSPRITES #define WARSPRITES #include <avr/pgmspace.h> extern const unsigned char warsprite_grass1[]; extern const unsigned char warsprite_grass2[]; extern const unsigned char warsprite_trees[]; extern const unsigned char warsprite_dirt[]; extern const unsigned char warsprite_mountain[]; extern const unsigne...
mit
temcocontrols/T3000_Building_Automation_System
T3000/Tstat8HelpSystem/CTstat8HelpSystem.cpp
10412
#include <cstdlib> #include <stdexcept> #include <vector> #include <algorithm> #include "Platform.h" #include "T3000.h" #include "Position.h" #include "Selection.h" using namespace T3000; void CTstat8HelySystem::MoveForInsertDelete(bool insertion, Sci::Position startChange, Sci::Position length) { if (insertio...
mit
russjohnson09/rdjgvus
public_html/resume/index.html
5209
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Resume</title> </head> <body> <div class="container"> <h1 class="header" data-bind="text:i18n().russ_full"></h1> <div class="contact"> <h1><span data-bind="{text: i18n().contact_info}"></span></h1> <ul id="contactList" data-b...
mit
Sufflavus/Algorithms
Source/Tests/QuickFindTests.cs
1178
using AlgorithmsLibrary; using Xunit; namespace Tests { public class QuickFindTests { [Fact] public void IsConnected_NotConnectedByDefault() { var algorithm = new QuickFind(2); Assert.Equal(0, algorithm.Result[0]); Assert.Equal(1, algor...
mit
reactormonk/ccpwgl
src/curves/Tw2VectorSequencer.js
1489
function Tw2VectorSequencer() { this.name = ''; this.start = 0; this.value = vec3.create(); this.operator = 0; this.functions = []; this._tempValue = vec3.create(); } Tw2VectorSequencer.prototype.GetLength = function () { var length = 0; for (var i = 0; i < this.functions.length; ++i)...
mit
ShamiulHaque-repository/WeatherForecastDataGenerator
README.md
4542
# Weather Forecast Data Generator Weather forecast data generator is a programe for periodically reading a list of locations and temperature limits in a streaming manner, connects to external on demand data service, gets raw weather data according to the locations, compares temperature limit and creates an alert statu...
mit
huajianmao/learning
framework/react-native/meituan/README.md
500
# React Native based Meituan Client ## Environment setup ### OS X ``` shell # 1. install node and system tools brew install node brew install watchman brew install flow # You may need to get the write permission to the `/usr/local` directory # or get the ownership of `/usr/local` by `chown` # 2. install react-nativ...
mit
commercetools/commercetools-dotnet-sdk
commercetools.NET/Zones/Extensions.cs
434
using commercetools.Common; namespace commercetools.Zones { /// <summary> /// Extensions /// </summary> public static class Extensions { /// <summary> /// Creates an instance of the ZoneManager. /// </summary> /// <returns>ZoneManager</returns> public static...
mit
Julien-Mialon/StormXamarin
StormXamarin/Storm.Mvvm/Funq/ServiceKey.cs
3739
#region License // Microsoft Public License (Ms-PL) // // This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. // // 1. Definitions // // The terms "reproduce," "reproduction," "derivative works," and "d...
mit
MrBri/javascript_koans
README.md
535
#javascript_koans This is an automated copy of the work I did on a private repo, originally a project from the [Hack Reactor](http://hackreactor.com) curriculum. For technical reasons, the history has been omitted, and my code is mixed with that of my pair and the exercise's starting point. As such, this repo is rep...
mit
the-ress/electron
shell/browser/ui/webui/pdf_viewer_ui.h
1736
// Copyright (c) 2017 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef SHELL_BROWSER_UI_WEBUI_PDF_VIEWER_UI_H_ #define SHELL_BROWSER_UI_WEBUI_PDF_VIEWER_UI_H_ #include <memory> #include <string> #include "base/macros.h" #include "content/public/...
mit
pkafei/Flask-Visualization
README.md
592
Simple Flask Visualization =========== ## Who Am I? I am a flask application that wants to grow up and become a kick-ass visualizatioin app. For now, I am still trying to figure out how to use d3 to render my data stored in Postgres. ## What can you do? Take a sneak peak at the issues links, if you have any pointe...
mit
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.10.2-2.0.6/released/8.14.1/dblib/8.7.0.html
6997
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>dblib: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
mit
rajasegar/compack
component/search-bar/search-bar.css
401
@mixin centerer { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .parent { position: relative; } .child { @include centerer; } .searchBar { background:#fee; padding:5px; margin:5p...
mit
gallenmu/MoonGen
libmoon/deps/tbb/doc/html/a00388.html
17980
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" con...
mit
tyler-johnson/Legends
gulpfile.js
1023
// Include gulp var gulp = require('gulp'); // Include Our Plugins var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var rename = require('gulp-rename'); var header = require('gulp-header'); var footer = require('gulp-footer'); // Build Task gulp.task('default', function() { gulp.src([ "src/...
mit
Dingf/Icewrack
content/dota_addons/icewrack/panorama/styles/custom_game/maps/main_menu/iw_main_menu.css
415
.MainMenuRoot { width: 100%; height: 95%; vertical-align: bottom; flow-children: down; opacity: 0.0; } .MainMenuFX { width: 1000px; height: 360px; vertical-align: top; horizontal-align: center; } .MainMenuLogo { horizontal-align: center; } .MainMenuLogoContainer { width: 100%; } .MainMenuButtonContainer ...
mit
clkao/grano
grano/views/sessions_api.py
5328
import requests from flask import session, Blueprint, redirect from flask import request from grano import authz from grano.lib.exc import BadRequest from grano.lib.serialisation import jsonify from grano.views.cache import validate_cache from grano.core import db, url_for, app from grano.providers import github, twi...
mit
brandonroberts/platform
projects/ngrx.io/src/index.html
4153
<!doctype html> <html> <head> <meta charset="utf-8"> <title>NgRx Docs</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="assets/images/favicons/favicon.ico"> <link rel="icon" type="image/png" href="assets/images/favicons/...
mit
u3u/Lyric
src/components/Step/src/Step.html
568
<!-- steps --> <el-row> <el-col :lg="{ span: 20, push: 2 }"> <el-steps :active="active" process-status="process" finish-status="success"> <el-step title="载入音乐文件" description="可以选择上传本地音乐文件或选择网络文件"></el-step> <el-step title="编辑歌词" description="填写好以下信息跟着音乐编辑歌词"></el-step> <el-step title="预览歌词并下载" d...
mit
GenSolutionRep/Note
src/main/java/com/dasa/approval/service/ApprovalService.java
3931
package com.dasa.approval.service; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.mybatis.spring.support.SqlSessionDaoSupport; import org.springframework.beans.factory.annotation.Autowired; import com.dasa.approva...
mit
schoolphp/library
Core/fw.js
2095
var myTimeout = 12000; Storage.prototype.setObject = function(key, value) { this.setItem(key, JSON.stringify(value)); }; Storage.prototype.getObject = function(key) { var value = this.getItem(key); return value && JSON.parse(value); }; // Обеспечиваем поддержу XMLHttpRequest`а в IE var xmlVersions = new Array( ...
mit
izakfilmalter/the-verge
the-verge-article/Google is killing CAPTCHA as we know it The Verge_files/yad.js
24061
/*! YAD - v1.0.0 - 82bbc70 - 2014-12-02 * Yahoo Personalised Content Widget * Copyright (c) 2014 ; Licensed */ (function(){var f=window.document,e={Error:function(a){this.message=a},Bootstrap:function(a,b,c){this.widgetInitialisationStartedAt=this.timeSinceNavigationStart();this.snippetLoadedAt=c?this.timeSinceNav...
mit
hatimeria/HatimeriaExtJS
docs/source/LockingView.html
5533
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>The source code</title> <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="../resources/prettify/prettify.js"></script> <style type="t...
mit
WellingtonJJ/wellingtonjj.github.io
index.html
7411
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>EcoTroca - Mude o Mundo e ganhe...
mit
youcatastrophe/youcatastrophe.github.io
_posts/2016-02-18-models-views-controllers.md
4310
--- layout: post title: Models and Views and Controllers! Oh My! description: "Learning from my mistakes..." category: articles tags: [web, technical, internet] --- Today we're going to talk about the purpose of models, controllers, and views and how they work (mainly within the context of Sinatra). So grab a cup of c...
mit
xenserver/openpegasus
pegasus/src/Pegasus/Client/tests/AssociationClient/Makefile
1979
#//%LICENSE//////////////////////////////////////////////////////////////// #// #// Licensed to The Open Group (TOG) under one or more contributor license #// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with #// this work for additional information regarding copyright ownership. #// Each contributo...
mit
mijdavis2/starter_weppy
tests/selenium/run.sh
156
#!/usr/bin/env bash python run.py --test & sleep 1 py.test -v -s --driver PhantomJS tests/selenium exit_code=$? pkill -9 -f run.py && exit ${exit_code}
mit
jnaO/grunt-webfont
tasks/engines/fontforge.js
2457
/** * grunt-webfont: fontforge engine * * @requires fontforge, ttfautohint 1.00+ (optional), eotlitetool.py * @author Artem Sapegin (http://sapegin.me) */ module.exports = function(o, allDone) { 'use strict'; var fs = require('fs'); var path = require('path'); var temp = require('temp'); var async = require...
mit
chasingegg/Online_Judge
leetcode/617_Merge-Two-Binary-Trees/MergeTrees.cpp
558
#include <iostream> #include <vector> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution { public: TreeNode* mergeTrees(TreeNode* t1, TreeNode* t2) { if (t1 == NULL) return t2; if (...
mit
CmdrZin/chips_avr_examples
LCD_16100_CP/LCD_16100_CP/LCD_16100_CP_DevCode/io_led_button.h
1917
/* * The MIT License (MIT) * * Copyright (c) 2016 Nels D. "Chip" Pearson (aka CmdrZin) * * 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 limitati...
mit
czenker/wichtlr
lib/Czenker/Wichtlr/ConsoleHelper/Reindeer.php
6574
<?php /* * The MIT License (MIT) * * Copyright (c) 2013 Christian Zenker <dev@xopn.de> * * 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 limitati...
mit
verkri/designermarka
lib/form/doctrine/base/BaseMarkaCategoryForm.class.php
1491
<?php /** * MarkaCategory form base class. * * @method MarkaCategory getObject() Returns the current form's model object * * @package sf_sandbox * @subpackage form * @author Your name here * @version SVN: $Id: sfDoctrineFormGeneratedTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $ */ abstrac...
mit
cyrusinnovation/american_ebola_response
data_sources/parse_individual.rb
1137
require 'csv' @file_name = ARGV[0] file = File.new('inputs/' + @file_name, 'r') n_lines = 0 @headers = nil @contents = {} @dates = [] def parse_headers(fields) @headers = fields.slice(1..(fields.length-1)) @headers = @headers.map(&:chomp) @headers.each do |name| @contents[name] = [] end end def parse_line(fi...
mit
riccardotommasini/shell-scripting-course
section-eight/exe2.sh
231
#!/bin/bash function logfun(){ local MEX=$@ echo $MEX logger -s -i -t "randomly" -p user.info "The number is "${MEX} } logfun "Got a new random: "$RANDOM logfun "Got a new random: "$RANDOM logfun "Got a new random: "$RANDOM
mit
jamesnetherton/homehub-cli
cmd/samba_ip_test.go
420
package cmd import ( "testing" gomock "github.com/golang/mock/gomock" "github.com/jamesnetherton/homehub-cli/service" ) func TestSambaIPCommand(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() hub := NewMockHub(ctrl) service.SetHub(hub) service.AuthenticationComplete() hub.EXPECT().Samb...
mit
strotz/pustota
src/Pustota.Maven.Base.Tests/Validations/RepositoryValidatorTests.cs
2836
using System.Linq; using Moq; using NUnit.Framework; using Pustota.Maven.Models; using Pustota.Maven.Validation; namespace Pustota.Maven.Base.Tests.Validations { [TestFixture] public class RepositoryValidatorTests { private RepositoryValidator _validator; private Mock<IRepositoryValidationFactory...
mit
eonlepapillon/parametrizedLocation
LICENSE.md
1078
The MIT License (MIT) Copyright (c) 2013 Peter Ahlers 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, pub...
mit
dirtyhenry/blog-deadrooster-org
_posts/2015-05-09-faut-il-sauver-michel-sardou.md
8012
--- layout: post title: "Faut-il Sauver Michel Sardou ?" date: 2015-05-09 10:00:00 authors: - Dirty Henry tags: - laurent chalumeau - livres - michel sardou cover: http://s3-eu-west-1.amazonaws.com/org.deadrooster.blog/sardou-chalumeau.jpg description: > Quelles conclusions tirer de la lecture de Kif, de L...
mit
programmerr47/guitar-chords
app/src/main/java/com/github/programmerr47/chords/representation/adapter/item/SelectionModeAdapterItem.java
1102
package com.github.programmerr47.chords.representation.adapter.item; /** * Simple expansion of interface {@link AdapterItem} for organization of * "selection mode". * * @author Michael Spitsin * @since 2014-10-08 */ public abstract class SelectionModeAdapterItem implements AdapterItem { protected boolean is...
mit
atsaki/golang-cloudstack-library
AddressApi_test.go
2665
package cloudstack import ( "fmt" "net/http" "net/http/httptest" "net/url" "testing" ) func TestAssociateIpAddress(t *testing.T) { server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { responses := map[string]string{ "associateIpAddress": ` { "associateipaddre...
mit
trust-wenderson/super-dao-demo
src/main/java/br/com/trustsystems/demo/provider/DatabasePersistenceProvider.java
1812
package br.com.trustsystems.demo.provider; import br.com.trustsystems.persistence.Persistent; import br.com.trustsystems.persistence.dao.IUnitOfWork; import br.com.trustsystems.persistence.provider.jpa.JpaPersistenceProvider; import org.springframework.stereotype.Service; import org.springframework.transaction.annotat...
mit
jd823592/puppeteer
src/Puppet/Master/Interpreter.hs
1473
module Puppet.Master.Interpreter ( InterpreterWorker , newInterpreterWorker , ask , eval , typeOf ) where import Exception import Control.Monad import GH...
mit
Shkyrockett/engine
Engine.Geometry/Primitives/Size2D.cs
46593
// <copyright file="Size2D.cs" company="Shkyrockett" > // Copyright © 2005 - 2020 Shkyrockett. All rights reserved. // </copyright> // <author id="shkyrockett">Shkyrockett</author> // <license> // Licensed under the MIT License. See LICENSE file in the project root for full license information. // </license> /...
mit
kit25a/se-cpp
khalin-yevhen/src/khalin04_tests/KeyboardButtonTest.h
681
/** * @file KeyboardButtonTest.h * @brief Contains KeyboardButtonTest fixture * @author Khalin Yevhen * @version 0.0.1 * @date 28.09.17 */ #pragma once #include <gtest\gtest.h> #include "..\khalin04\KeyboardButton.h" #include "..\khalin04\KeyboardButton.cpp" /** * @brief Test fixture for using the sam...
mit
GrygrFlzr/Subreddit-Stylesheets
SchoolIdolFestival/main.css
57736
/*virtual sticky*/ #siteTable { display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; } .stickied { -webkit-order: -2; order: -2; } .id-t3_3wr79q { -webkit-order: -1; order: -1; } .id-t3_3wr79q>.rank { visibili...
mit
yoan-durand/test-api-platform
apps/platform/vendor/api-platform/core/tests/Bridge/Doctrine/Util/QueryJoinParserTest.php
3658
<?php /* * This file is part of the API Platform project. * * (c) Kévin Dunglas <dunglas@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace ApiPlatform\Core\Tests\Doctrine\Util; use ApiPlatform\Core\Bridge\Doct...
mit
joshcarr/minimal-commerce
app/models/model.rb
211
class Model < ActiveRecord::Base # Relationships to other Entities has_many :products validates_presence_of :name validates_length_of :name, :within => 2..32 validates_uniqueness_of :name end
mit
hanakin/rotory
src/model/layers/index.js
2763
'use strict'; var fs = require('fs'), path = require('path'); // path.basename('/foo/bar/baz/asdf/quux.html', '.html') = quux // path.dirname('/foo/bar/baz/asdf/quux.html') = /foo/bar/baz/asdf/ // path.parse('/home/user/dir/file.txt') // returns // { // root : "/", // dir : "/ho...
mit
DANA-Laboratory/EMSOModelLibrary.jl
JuliaEMSOModels/water_steam/power_plant/CorrenteVap.jl
1944
#------------------------------------------------------------------- #* EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. #* #* This LIBRARY is free software; you can distribute it and/or modify #* it under the therms of the ALSOC FREE LICENSE as available at #* http://www.enq.ufrgs.br/alsoc. #* #* EMSO Copyrig...
mit
mohayonao/libogg.js
include/stdlib.js
777
var NULL = null; function NOP() {} function NOT_IMPLEMENTED() { throw new Error("not implemented."); } function int(x) { return x|0; } function pointer(src, offset, length) { offset = src.byteOffset + offset * src.BYTES_PER_ELEMENT; if (typeof length === "number") { return new src.constructor(src.buffer, o...
mit
goforward01/follow_vue
src/directives/model/index.js
1765
var _ = require('../../util') var handlers = { text: require('./text'), radio: require('./radio'), select: require('./select'), checkbox: require('./checkbox') } module.exports = { priority: 800, twoWay: true, handlers: handlers, /** * Possible elements: * <select> * <textarea> * <...
mit
SkillsFundingAgency/das-commitments
src/SFA.DAS.Commitments.Support.SubSite/assets/fontawesome-5.0.2/README.md
21
# Font Awesome 5.0.2
mit
phpmetrics/website
report/v2/js/classes.js
98017
var classes = [ { "name": "Hal\\Report\\Html\\Reporter", "interface": false, "methods": [ { "name": "__construct", "role": null, "public": true, "private": false, "_type": "Hal\\Metric\\FunctionMetric...
mit
gcorreageek/noctem
src/main/webapp/app/components/alert/alert.directive.js
864
(function() { 'use strict'; var jhiAlert = { template: '<div class="alerts" ng-cloak="">' + '<div ng-repeat="alert in $ctrl.alerts" ng-class="[alert.position, {\'toast\': alert.toast}]">' + '<uib-alert ng-cloak="" type="{{alert.type}}" close="alert.cl...
mit
EOSIO/eos
unittests/incbin.h
11177
/** * From https://github.com/graphitemaster/incbin licenced in public domain */ #ifndef INCBIN_HDR #define INCBIN_HDR #include <limits.h> #if defined(__AVX512BW__) || \ defined(__AVX512CD__) || \ defined(__AVX512DQ__) || \ defined(__AVX512ER__) || \ defined(__AVX512PF__) || \ defined(...
mit
Theo-Drappier/dip-purple
views/base/header.php
1870
<header class="main-header"> <!-- Logo --> <a href="" class="logo"> <!-- mini logo for sidebar mini 50x50 pixels --> <span class="logo-mini"><b>G'</b>GO</span> <!-- logo for regular state and mobile devices --> <span class="logo-lg"><b>Gaspi'</b>GO</span> </a> <!-- Header Navbar:...
mit
Jaap-/fellmannia-customer-survey
css/balls.css
1862
/* * Pallot */ .sphere {text-align:center; border:1px solid rgba(0,0,0,0.2); _box-shadow:inset 0 0 10px #fff; border-radius:9999px; _outline:1px solid #f00;} .sphere p {padding:10px; width:90%; color:#777; _outline:1px solid #000; } .sphere-top {top:10px;} .sphere-bottom {bottom:10px;} .like-icon {width:80px; heigh...
mit