repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
zekewang918/QuitSmoking
bbs/static/js/forum.js
22328
/* [Discuz!] (C)2001-2099 Comsenz Inc. This is NOT a freeware, use is subject to license terms $Id: forum.js 33082 2013-04-18 11:13:53Z zhengqingpeng $ */ function saveData(ignoreempty) { var ignoreempty = isUndefined(ignoreempty) ? 0 : ignoreempty; var obj = $('postform') && (($('fwin_newthread') && $(...
mit
Yusuke-KOMIYAMA/aiv
binder/app/Vendor/ivan-novakov/php-openid-connect-client/src/InoOicClient/Oic/Exception/InvalidErrorCodeException.php
115
<?php namespace InoOicClient\Oic\Exception; class InvalidErrorCodeException extends \RuntimeException { }
mit
ATMakersOrg/OpenIKeys
original/IntelliKeys/WindowsOld/common/MoreFiles/CHeaders/ConditionalMacros.h
72327
/* File: ConditionalMacros.h Contains: Set up for compiler independent conditionals Version: Technology: Universal Interface Files Release: Universal Interfaces 3.4.1 Copyright: © 1993-2001 by Apple Computer, Inc., all rights reserved Bugs?: For bug ...
mit
sc101111/sokay
kr-kcu/index.html
20336
<!DOCTYPE html> <html> <head> <!-- Site made with Mobirise Website Builder v4.0.9, # --> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="generator" content="Mobirise v4.0.9, #"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut ...
mit
webjay/npm-search-store
lib/npm-api.js
382
/*jslint node: true */ 'use strict'; var npm = require('npm'); module.exports = Npm; function Npm (callback) { var conf = { jobs: 1 }; npm.load(conf, callback); } Npm.prototype.search = function (searchTerms, callback) { npm.commands.search(searchTerms, true, callback); }; Npm.prototype.view = function...
mit
LeadGrabr/api
src/services/email/mailers/helpers.js
1611
import { EmailTemplate } from 'email-templates' import Promise from 'bluebird' const sendgrid = require('sendgrid')(process.env.SENDGRID_MAILER_KEY) const sendEmail = Promise.promisify(sendgrid.send, { context: sendgrid }) const DEVELOPMENT = process.env.NODE_ENV === 'development' const sanitize = DEVELOPMENT ? require...
mit
kmagiera/react-native-gesture-handler
example/src/new_api/chat_heads/index.tsx
5897
import React, { useState } from 'react'; import { StyleSheet, ImageStyle, LayoutChangeEvent } from 'react-native'; import { Gesture, GestureDetector } from 'react-native-gesture-handler'; import Animated, { useAnimatedStyle, useDerivedValue, useSharedValue, withSpring, } from 'react-native-reanimated'; import {...
mit
umpirsky/Extraload
src/Extraload/Extractor/ExtractorInterface.php
121
<?php namespace Extraload\Extractor; interface ExtractorInterface extends \Iterator { public function extract(); }
mit
burdiuz/webstorm-angular-unittest-templates
tests/1.3/index.html
1295
<!DOCTYPE html> <html> <head lang="en"> <base href="/"> <meta charset="UTF-8"> <title>WebStorm Angular unit-test templates test app</title> <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"> </head> <body data-ng-app="aw.test" data-ng-controller="TestController as ctrl"> <h3>{{ct...
mit
pblack/kaldi-hugo-cms-template
site/content/pages2/afa28.md
339
--- title: afa28 type: products image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png heading: a28 description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj main: heading: Foo Bar BAz description: |- ***This is i a thing***kjh hjk kj # Blah Blah ## Blah![undefined](undefined) ### Baah image1:...
mit
coinkeeper/2015-06-22_19-13_florincoin
src/qt/sendcoinsdialog.cpp
18849
// Copyright (c) 2011-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "sendcoinsdialog.h" #include "ui_sendcoinsdialog.h" #include "init.h" #include "walletmodel.h" #include "addresstabl...
mit
jeremymcrae/denovoFilter
denovoFilter/missing_symbols.py
5967
""" Copyright (c) 2016 Genome Research Ltd. 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, publish, distr...
mit
ionomy/ion
src/netbase.h
2739
// Copyright (c) 2009-2015 The Bitcoin Core developers // Copyright (c) 2018-2020 The Ion Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_NETBASE_H #define BITCOIN_NETBASE_H #if defined(HAVE_CONF...
mit
synapsestudios/react-stepper
webpack.config.demo.js
1531
/* globals __dirname */ 'use strict'; var autoprefixer = require('autoprefixer-core'); var Webpack = require('webpack'); var HtmlWebpack = require('html-webpack-plugin'); var path = require('path'); var npmPath = path.resolve(__dirname, 'node_modules'); var config = { sassOptions : ( ...
mit
elelay/meteor-blaze-styleguide
client/sg_layout.css
355
#main > .container-fluid { width: 100%; } .row-content { display: flex; flex-wrap: wrap; min-height: 100%; } .row-content > [class*=col] { display: flex; flex-direction: column; } .row-screen { text-align: right; margin-right: 50px; margin-bottom: 40px; width: 100%; } #renderer { transform-origin: left t...
mit
duopixel/Method-Draw
src/js/Keyboard.js
7291
MD.Keyboard = function(){ const keys = { "v": { name: "Select tool", cb: ()=> state.set("canvasMode", "select") }, "q": { name: "Freehand tool", cb: ()=> state.set("canvasMode", "fhpath") }, "l": { name: "Line tool", cb: ()=> state.set("canvasMode", "fhplineath")}, "r": { name...
mit
Barings/Barings.Controls.WPF
Barings.Controls.WPF/CodeEditors/Highlighting/HighlightMatchingWords.cs
2681
using System; using System.Linq; using System.Windows.Media; using ICSharpCode.AvalonEdit.Document; using ICSharpCode.AvalonEdit.Rendering; using SolutionsUtilities.UI.WPF.Highlighting; namespace Barings.Controls.WPF.CodeEditors.Highlighting { public class HighlightMatchingWords : DocumentColorizingTransformer ...
mit
xiekunRonaldo/YMDPickerView
YMDPickerView/NSDate+YMDExtensions.h
409
// // NSDate+Helper.h // YMDPickerVIewDemo // // Created by ronaldo on 7/24/14. // Copyright (c) 2014 ronaldo. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDate (YMDExtensions) + (NSDate *)dateWithYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day; - (NSInteger)year; - (NSI...
mit
dodolangus/rep_bnv_app
application/views/event/eval_ins_nps.php
2357
<!-- Map --> <section id="contact" class="map"> <div class="container"> <div class="row text-left"> <div class="col-lg-12 "> <div class="row"> <div class="col-lg-12"> <h4 style="color:#006e89"><?php echo $kelas[0]['TRAINING']?></h4> <div ...
mit
annex-apps/tenant-bundle
BrightpearlApiClient/lib/Model/SalesChannel.php
9169
<?php /** * SalesChannel * * PHP version 5 * * @category Class * @package BrightpearlApiClient * @author http://github.com/swagger-api/swagger-codegen * @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2 * @link https://github.com/swagger-api/swagger-codegen */ /** * Copyright 2016...
mit
mike3run/manila-mixins
mixins/flex-columns/flex-columns.test.js
186
const path = require('path') const sassTrue = require('sass-true') const sassFile = path.join(__dirname, 'flex-columns.test.scss') sassTrue.runSass({ file: sassFile }, describe, test)
mit
bworkman1/lapp
application/views/forms/edit-form.php
24529
<div class="row"> <div id="base_url" data-base="<?php echo base_url(); ?>"></div> <div class="col-lg-4 col-md-6"> <div class="x_panel"> <div class="x_title"> <h2><i class="fa fa-file"></i> Edit Form</h2> <div class="clearfix"></div> </div> ...
mit
Symfony-Plugins/diemPlugin
dmCorePlugin/lib/controller/dmFrontWebController.php
319
<?php class dmFrontWebController extends sfFrontWebController { /** * @see sfFrontWebController */ public function redirect($url, $delay = 0, $statusCode = 302) { $this->dispatcher->notify(new sfEvent($this, 'dm.controller.redirect')); return parent::redirect($url, $delay, $statusCode); } }
mit
Morloth1274/EVE-Online-POCO-manager
tests/test_eve.py
20398
import mock from tests.compat import unittest from tests.utils import APITestCase import evelink.eve as evelink_eve class EVETestCase(APITestCase): def setUp(self): super(EVETestCase, self).setUp() self.eve = evelink_eve.EVE(api=self.api) def test_character_names_from_ids(self): sel...
mit
pastahito/remus
src/renderer_process/app/entry.js
1603
// React app import React from 'react' import {render} from 'react-dom' import App from './components/base_layout/App.jsx' // Redux state manager import { Provider } from 'react-redux' import { createStore } from 'redux' import reducers from './state_manager/reducers' // Electron IPC communication events import ipcRe...
mit
toshi-k/Kaggle-Denoising-Dirty-Documents
1_data.lua
1267
torch.setdefaulttensortype('torch.FloatTensor') ---------- library ---------- require 'torch' require 'image' require "lib/getfilename" require "lib/window" require "lib/patch" require "lib/calc_rsme" -- read dataset: ---------- functions ---------- function load_imgs(folderpath) filepaths = getFilename(folder...
mit
jrichardlai/jrichardlai.github.io
assets/css/style.css
11839
/* Reset */ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,e...
mit
goodheads/yourtube
server/models/user.server.model.js
984
var mongoose = require('mongoose'), bcrypt = require('bcrypt'), userSchema = mongoose.Schema({ fullName: { type: String }, email: { type: String, required: true, unique: true, lowercase: true }, password: { type: String, required: true }, user_avatar...
mit
prologic/spyda
spyda/processors.py
385
try: from calais import Calais except ImportError: # pragma: no cover Calais = None # NOQA if Calais is not None: def process_calais(content, key): calais = Calais(key) response = calais.analyze(content) people = [entity["name"] for entity in getattr(response, "entities", []) if...
mit
vickyi/scoala
pachong/pythonClass/switch.py
685
import datetime day = datetime.datetime.now().weekday() def get_sunday(): return "Today it's Sunday" def get_monday(): return "Today it's Monday" def get_tuesday(): return "Today it's Tuesday" def get_wednesday(): return "Today it's Wednesday" def get_thursday(): return "Today it's Thursday" def g...
mit
poweredbysearch/pbs-tw-api
README.md
22
# Teamwork API Client
mit
Anastaszor/Cachalot
classes/statements/parts/specifications/DropColumnSpecificationStatement.php
961
<?php /** * DropColumnSpecificationStatement class file. * * @author Anastaszor */ class DropColumnSpecificationStatement extends CachalotObject implements IDropColumnSpecificationStatement { /** * The name of the column to drop * * @var string */ private $_column_name = null; /** * Sets the ...
mit
jgin/testphp
web/bundles/hrmpayroll/app/view/MobileUnit/UpdateMobileUnit.js
15982
Ext.define('sisprod.view.MobileUnit.UpdateMobileUnit', { extend: 'sisprod.view.base.BaseDataWindow', alias: 'widget.updateMobileUnit', messages: { basicDataTitle: 'Basic Data', componentsTitle: 'Allocation of Components', featuresTitle: 'Additional Features', equipment...
mit
fredwulei/fredsneverland
fredsneverland/timeline/urls.py
130
from django.conf.urls import url from timeline import views urlpatterns = [ url(r'^$', views.timelines, name='timelines'), ]
mit
kfriedgen/friedgen-starter
templates/icons/camera.php
2037
<svg version="1.1" class="o-icon__camera" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 277.3 203" style="enable-background:new 0 0 277.3 203;" xml:space="preserve"> <style type="text/css"> .st0{fill:#302D33;} .st1{fill:none;stroke:#302D33;st...
mit
hellozts4120/IFE-2016
task2/serial5/task32-zts/task.js
6127
// 对字符串头尾进行空格字符的去除、包括全角半角空格、Tab等,返回一个字符串 function trim(str) { var regex1 = /^\s*/; var regex2 = /\s*$/; return (str.replace(regex1, "")).replace(regex2, ""); } // 给一个element绑定一个针对event事件的响应,响应函数为listener function addEvent(element, event, listener, isCorrect) { if (element.addEventListener) { el...
mit
aenon/OnlineJudge
leetcode/1.Array_String/125.valid_palindrome.java
423
/* 125.valid_palindrome */ public class Solution { public int[] twoSum(int[] nums, int target) { for (int i = 0; i < nums.length; i++) { int ni = nums[i]; for (int j = i + 1; j < nums.length; j++) { int nj = nums[j]; if (ni + nj == target) { return new int[] {i, j...
mit
ernstsson/ErnKit
Source/ErnKit/ResourceFactories/ERNNullResourceFactory.h
160
#import <Foundation/Foundation.h> #import "ERNResourceFactory.h" @interface ERNNullResourceFactory : NSObject <ERNResourceFactory> +(instancetype)create; @end
mit
tangjinzhou/biz-mobile-ui
examples/App/temp/Progress.js
1718
import * as React from 'react'; import {px2rem} from '@bizfe/biz-mobile-ui/build/util/util'; import { Button, LinearProgress, CircleProgress } from '@bizfe/biz-mobile-ui'; const styles = { progress: { width: '90%', margin: '20px auto 0', }, } export default class Progress extends Re...
mit
cdnjs/cdnjs
ajax/libs/crel/4.1.0/crel.js
4862
/* Copyright (C) 2012 Kory Nunn 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, publish, distribute, subli...
mit
jmptable/earthquake-converter
src/index.js
1275
const fs = require('fs'); const dns = require('dns'); const argv = require('yargs').argv; const Seismometer = require('./seismometer'); const Communicator = require('./communicator'); function assertOnline() { return new Promise((fulfill, reject) => { dns.resolve('www.google.com', err => { if (err) { ...
mit
skunkworks002/SearchDemo
_includes/header.html
949
<nav class="navigation"> <section class="container"> <ul class="left-section sites"> <li> <a href="{{site.baseurl}}">SearchDemo</a> </li> <li> <a href="{{site.baseurl}}">Auto</a> </li> </ul> <div class="right-section float-right"> <ul class="navigation-list"> <li class="navigation-item">...
mit
ritzau/end-of-stuff
src/app/item.ts
69
export class Item { constructor(public title: string) { } }
mit
MobilityLabs/pdredesign-server
app/controllers/concerns/shared_analysis_fetch.rb
527
module SharedAnalysisFetch extend ActiveSupport::Concern def analysis inventory_id = params[:inventory_id] id = params[:analysis_id] || params[:id] @analysis = Analysis.where('inventory_id = ? AND (analyses.id = ? OR analyses.share_token = ?)', inventory_id.to_i, id.to_i, id).first unless @analysis...
mit
EduardAl/Proyectos-Visual-Studio
Editando/Conejo/Conejo/Asociado.Designer.cs
28967
namespace Conejo { partial class Asociado { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param na...
mit
kz/balances-android
app/src/main/java/in/iamkelv/balances/alarms/SchedulingService.java
5935
package in.iamkelv.balances.alarms; import android.app.IntentService; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.support.v4.app.Notificati...
mit
fenglyu/projecteuler
README.md
471
# Start Project Euler ## Run specific unit test ``` go test -timeout 30s github.com/fenglyu/projecteuler/golang/common -run ^\(TestTailFib\)$ ``` ## Go pprof ``` > https://github.com/campoy/go-tooling-workshop/blob/master/3-dynamic-analysis/3-profiling/2-pprof.md > http://www.graphviz.org/ go tool pprof 27.prof ...
mit
axypro/fs-ifs
MetaData.php
1647
<?php /** * @package axy\fs\ifs * @author Oleg Grigoriev <go.vasac@gmail.com> */ namespace axy\fs\ifs; /** * The file stream meta data * * @SuppressWarnings(PHPMD.CamelCasePropertyName) */ class MetaData { /** * The file name * * @var string */ public $filename; /** * TRUE...
mit
wrpinheiro/easy-factory
core/src/main/java/com/thecodeinside/easyfactory/core/Attribute.java
795
package com.thecodeinside.easyfactory.core; /** * A factory's attribute. * * @author Wellington Pinheiro <wellington.pinheiro@gmail.com> * * @param <T> type of the attribute */ public class Attribute<T> { private String id; private T value; public String getId() { return this.id; } ...
mit
mamal72/dgkala-web
src/routes.js
470
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './App'; import IncredibleOffersContainer from './IncredibleOffers/IncredibleOfferContainer'; export default ( <Route path="/" component={App}> <IndexRoute component={IncredibleOffersContainer} /> <Route path="/spec...
mit
CslaGenFork/CslaGenFork
trunk/Samples/DeepLoad/ParentLoadROSoftDelete.Business/ERLevel/E05_SubContinent_ReChild.cs
904
using System; using Csla; namespace ParentLoadROSoftDelete.Business.ERLevel { public partial class E05_SubContinent_ReChild { #region OnDeserialized actions /*/// <summary> /// This method is called on a newly deserialized object /// after deserialization is comple...
mit
nbv3/voogasalad_CS308
src/com/syntacticsugar/vooga/gameplayer/objects/items/bullets/SlowBullet.java
465
package com.syntacticsugar.vooga.gameplayer.objects.items.bullets; import com.syntacticsugar.vooga.gameplayer.event.implementations.SlowEvent; import com.syntacticsugar.vooga.gameplayer.objects.GameObjectType; public class SlowBullet extends AbstractBullet { public SlowBullet(BulletParams params, double speedDecrea...
mit
matrixdevelopments/laravelVentas
app/models/User.php
904
<?php use Illuminate\Auth\Reminders\RemindableInterface; use Illuminate\Auth\Reminders\RemindableTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\UserTrait; /** * User * * @property-write mixed $password * @property-read \Illuminate\Database\Eloquent\Collection|\Role[] $roles * @property-read \Ill...
mit
CodeForPhilly/chime
src/chime_dash/app/templates/en/definitions.md
2769
## Guidance on Selecting Inputs * **Hospitalized COVID-19 Patients:** The number of patients currently hospitalized with COVID-19 **at your hospital(s)**. This number is used in conjunction with Hospital Market Share and Hospitalization % to estimate the total number of infected individuals in your region. * **...
mit
justanr/flask-allows
src/flask_allows/additional.py
5469
from contextlib import contextmanager from functools import wraps from werkzeug.local import LocalProxy, LocalStack _additional_ctx_stack = LocalStack() __all__ = ("current_additions", "Additional", "AdditionalManager") @LocalProxy def current_additions(): """ Proxy to the currently added requirements ...
mit
asiboro/asiboro.github.io
vsdoc/topic_000000000000069D.html
11754
<!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/html; charset=utf-8" /> <meta name="GENERATOR" content="VSdocman - documentation generator; htt...
mit
IvanSostarko/ivy-theme
src/scripts/console.js
200
console.style('<css="color: rgba(0, 0, 0, 0.6);font-size: 30px;background-color: rgb(110, 110, 110);text-shadow: rgba(255, 255, 255, 0.2) 3px 2px 3px; padding-left:10px;">Welcome to Ivy Theme</css>');
mit
erikzhouxin/CSharpSolution
OSS/Alipay/F2FPayDll/Projects/alipay-sdk-NET20161213174056/Request/KoubeiMarketingDataCustomreportDeleteRequest.cs
2427
using System; using Aop.Api.Domain; using System.Collections.Generic; using Aop.Api.Response; namespace Aop.Api.Request { /// <summary> /// AOP API: koubei.marketing.data.customreport.delete /// </summary> public class KoubeiMarketingDataCustomreportDeleteRequest : IAopRequest<KoubeiMarketingDataCustom...
mit
Mohamed-Abo-El-Soud/NexusJS
config/env/development.js
341
function normalizePort(val) { var port = parseInt(val, 10); if (isNaN(port)) { // named pipe return val; } if (port >= 0) { // port number return port; } return false; } var port = normalizePort(process.env.PORT || '3000'); module.exports = { port: port, db: 'mongodb://'+proce...
mit
algolia/algoliasearch-client-csharp
src/Algolia.Search/Models/Rules/Rule.cs
3092
/* * Copyright (c) 2018 Algolia * http://www.algolia.com/ * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify...
mit
PShatalov/LC-registration
web/client/app/app.route.js
580
(function() { 'use strict'; angular .module('lcRegistration') .config(["$routeProvider", function($routeProvider) { $routeProvider .when("/", { templateUrl: "/client/app/regForm/regForm.html", controller: "registrationControlle...
mit
Smartrak/GTFS
GTFS.IO.Desktop/GTFSDirectorySource.cs
5420
// The MIT License (MIT) // Copyright (c) 2014 Ben Abelshausen // 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, co...
mit
jackhummah/bootles
vendor/mapbox/mapbox.js-2.4.0/docs/_posts/api/v2.2.3/0200-01-01-l-mapbox-sanitize.html
831
--- layout: api title: "v2.2.3 JavaScript Library: L.mapbox.sanitize(string)" categories: api version: v2.2.3 permalink: /api/v2.2.3/l-mapbox-sanitize --- <h2 id="section-l-mapbox-sanitize">L.mapbox.sanitize(string)</h2> <p>A HTML sanitization function, with the same effect as the default value of the <code>sanitizer</...
mit
dotJEM/aspnetcore-fluentrouting
src/DotJEM.AspNetCore.FluentRouting/Invoker/MSInternal/LambdaExecutorAwaitable.cs
3756
using System; using System.Runtime.CompilerServices; namespace DotJEM.AspNetCore.FluentRouting.Invoker.MSInternal { /* This class originates from the https://github.com/aspnet/Common project, as it is * internal a slightly modified version of the code has been copied into this source, * the license of t...
mit
yahonda/rails
guides/source/upgrading_ruby_on_rails.md
100984
**DO NOT READ THIS FILE ON GITHUB, GUIDES ARE PUBLISHED ON https://guides.rubyonrails.org.** Upgrading Ruby on Rails ======================= This guide provides steps to be followed when you upgrade your applications to a newer version of Ruby on Rails. These steps are also available in individual release guides. --...
mit
RickyNRoses87/almendra-psr7
src/Psr/Messages/Response.php
8925
<?php namespace Almendra\Http\Psr\Messages; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\StreamInterface; /** * Represents a response * * @package Almendra\Http */ class Response extends Message implements ResponseInterface { /** * HTTP Response codes. * */ const HTTP_CONTINUE...
mit
Koceto/SoftUni
Old Code/Programming Fundamentals/Data Types and Variables/Exact Sum of Real Numbers/Exact Sum of Real Numbers/Program.cs
552
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _180117_Lectures { class Program { static void Main(string[] args) { int numbersToAdd = int.Parse(Console.ReadLine()); decimal totalNumbers = 0M...
mit
cdnjs/cdnjs
ajax/libs/boardgame-io/0.39.4/esm/internal.min.js
183
export{C as CreateGameReducer,G as Game}from"./reducer-b8b81041.js";import"immer";export{I as InitializeGame}from"./initialize-2ee3d05a.js";export{A as Async}from"./base-c99f5be2.js";
mit
imtiaz-rahi/scripts
scripts/sql/pg-disk-use-tables-size.sql
366
-- https://wiki-bsse.ethz.ch/display/ITDOC/Check+size+of+tables+and+objects+in+PostgreSQL+database SELECT relname as "Table", pg_size_pretty(pg_total_relation_size(relid)) As "Size", pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid)) as "External Size" FROM pg_catalog.pg_statio_user_tables...
mit
rla/xhr-json
tests/server.js
1686
var express = require('express'); var http = require('http'); var path = require('path'); var app = express(); app.use(express.bodyParser()); app.use(app.router); app.use(express.static(__dirname + '/public')); // Simple REST server. var users = []; app.post('/user', function(req, res) { users[req.body.name] = ...
mit
grinning/war-tommybranch
war/src/main/java/com/tommytony/war/job/ResetCursorJob.java
2006
package com.tommytony.war.job; import org.bukkit.block.Block; import org.bukkit.block.BlockFace; import com.tommytony.war.War; import com.tommytony.war.volume.BlockInfo; public class ResetCursorJob implements Runnable { private final Block cornerBlock; private final BlockInfo[] originalCursorBlocks; private fina...
mit
socialcast/glyph_filter
spec/views/glyph_filter/_glyph.html_spec.rb
1535
=begin Copyright (c) 2011-2012 VMware, Inc. All Rights Reserved. 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,...
mit
MXWXZ/DuiMini
DuiMini/include/UIBuildConfig.h
203
/** * This file was generated by cmake, do NOT modify. */ #ifndef DUI_UIBUILDCONFIG_H_ #define DUI_UIBUILDCONFIG_H_ /* #undef HAVE_STRICMP */ #define HAVE_STRCASECMP #endif // !DUI_UIBUILDCONFIG_H_
mit
shaunakv1/geo-forms
config/initializers/session_store.rb
145
# Be sure to restart your server when you modify this file. GeoForms::Application.config.session_store :cookie_store, key: '_geo-forms_session'
mit
smith1511/AzureBlast
AzureBlast.Web/App_Start/RouteConfig.cs
555
using System.Web.Mvc; using System.Web.Routing; namespace Microsoft.Azure.Blast.Web { public class RouteConfig { public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapMvcAttributeRoutes(); r...
mit
camieac/bits-and-bobs
django_modal.html
896
{% if not missions %} <div class="modal fade in" id="modal-dialog" style="display: block; padding-right: 15px;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class=...
mit
dieng444/smart-search
web/docs/series/2015-11-10/ed-edd-n-eddy/index.html
80059
<!DOCTYPE html> <!--[if IE 9]><html class="lt-ie9" lang="fr"><![endif]--> <!--[if !IE]><!--><html lang="fr"><!--<![endif]--> <head> <title>Ed, Edd n Eddy - Série (1999) - Danny Antonucci - SensCritique</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> ...
mit
pblack/kaldi-hugo-cms-template
site/content/pages2/avx18.md
339
--- title: avx18 type: products image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png heading: x18 description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj main: heading: Foo Bar BAz description: |- ***This is i a thing***kjh hjk kj # Blah Blah ## Blah![undefined](undefined) ### Baah image1:...
mit
wuyuntao/Synchronica
SynchronicaUnityExamples/Assets/Scripts/SynchronicaUnityExamples/SimpleClient.cs
5149
using FlatBuffers; using FlatBuffers.Schema; using Synchronica.Examples.Schema; using Synchronica.Replayers; using Synchronica.Schema; using System; using System.Collections.Generic; using System.IO; using System.Net.Sockets; using System.Threading; using UnityEngine; namespace Synchronica.Unity.Examples { class ...
mit
icloudcity/iCUi
examples/docs/navbar.md
528
## Navbar 导航栏 ### 使用指南 ``` javascript import { NavBar } from 'icui'; Vue.component(NavBar.name, NavBar); ``` ### 代码演示 #### :::demo ```html <ic-navbar title="NavBar" leftContent="返回" leftIcon rightIcon ></ic-navbar> ``` ::: ### Options | 参数 | 说明 | 类型 | 默认值 | |-----------|--...
mit
felixrieseberg/Ghost-Desktop
main/preload/upgrade-notification.js
1100
'use strict'; function getBetterUpgradeMessage(foundVersion) { let version = (foundVersion && foundVersion[1]) ? `(${foundVersion[1]}) ` : ''; return `A new version of Ghost Core ${version}is available! Hot Damn. \ <a href="http://support.ghost.org/how-to-upgrade/" target="_blank">Click here</a> \ to learn mor...
mit
claudiosanchez/QBank
iOS.Client/AppDelegate.cs
2075
using System.Threading; using MonoTouch.Foundation; using MonoTouch.UIKit; using iOS.Client.Screens; using iOS.Client.MonoTouch.Dialog; using MonoTouch.Dialog; using System.Drawing; namespace iOS.Client { // The UIApplicationDelegate for the application. This class is responsible for launching the // User In...
mit
formly-js/ng-formly
demo/src/app/home.component.ts
331
import { Component } from '@angular/core'; @Component({ selector: 'formly-demo-home', template: ` <div class="container markdown github"> <div [innerHtml]="contnent"></div> </div> `, }) export class HomeComponent { contnent = require('!!raw-loader!!highlight-loader!markdown-loader!./../../../READ...
mit
killthekitten/route_cow
lib/route_cow.rb
76
require "route_cow/version" module RouteCow # Your code goes here... end
mit
Stefangansevles/RemindMe
RemindMe/Forms/MaterialForms/MaterialPopup.Designer.cs
13938
namespace RemindMe { partial class MaterialPopup { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <p...
mit
pugnusferreus/wamlibrary
test/functional/notification_test.rb
157
require 'test_helper' class NotificationTest < ActionMailer::TestCase # replace this with your real tests test "the truth" do assert true end end
mit
maurer/tiamat
samples/Juliet/testcases/CWE416_Use_After_Free/CWE416_Use_After_Free__malloc_free_char_11.c
5310
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE416_Use_After_Free__malloc_free_char_11.c Label Definition File: CWE416_Use_After_Free__malloc_free.label.xml Template File: sources-sinks-11.tmpl.c */ /* * @description * CWE: 416 Use After Free * BadSource: Allocate data using malloc(), initialize memory bl...
mit
wooorm/unified-engine
lib/index.js
4229
'use strict' var PassThrough = require('stream').PassThrough var statistics = require('vfile-statistics') var fileSetPipeline = require('./file-set-pipeline') module.exports = run // Run the file set pipeline once. // `callback` is invoked with a fatal error, or with a status code (`0` on // success, `1` on failure)...
mit
mganeko/hand
README.md
1567
# Hand Signaling for WebRTC WebRTCのシグナリングを手動で行うサンプルです こちらから実際に試すことができます。 https://mganeko.github.io/hand/ ## Hand signaling vanilla ICE https://mganeko.github.io/hand/signaling_vanilla.html ### 使い方 * Chrome または Firefoxで、リンク先のページを2つ開きます * この際に別ウィンドウで開き、横に並べるのがオススメです * 両方のウィンドウで、[Start video]ボタンをクリックし、カメラを取得します * 許可を求...
mit
ScriptRock/content
automation/puppet/upguard.rb
14212
require 'puppet' require 'json' require 'erb' Puppet::Reports.register_report(:upguard) do VERSION = "v1.5.6" CONFIG_FILE_NAME = "upguard.yaml" VERSION_TAG = "Added by #{File.basename(__FILE__)} #{VERSION}" desc "Create a node (if not present) and kick off a node scan in UpGuard if changes were made." conf...
mit
OinkIguana/tactical-rpg
public_html/script/test/draw.js
29943
'use strict'; import {should as should_} from 'chai'; const should = should_(); import {spy, stub} from 'sinon'; import {setCanvas, canvas, context} from '../src/canvas'; import draw from '../src/draw'; // import {Sprite} from '../../../script/src/sprite'; describe('draw.js', () => { let ctx; before(() => { ...
mit
pblack/kaldi-hugo-cms-template
site/content/pages2/anq44.md
339
--- title: anq44 type: products image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png heading: q44 description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj main: heading: Foo Bar BAz description: |- ***This is i a thing***kjh hjk kj # Blah Blah ## Blah![undefined](undefined) ### Baah image1:...
mit
CslaGenFork/CslaGenFork
trunk/Samples/DeepLoad/DAL-DTO/SelfLoadSoftDelete.DataAccess.Sql/ERLevel/G09_Region_ReChildDal.cs
197
using System; using Csla; using SelfLoadSoftDelete.DataAccess.ERLevel; namespace SelfLoadSoftDelete.DataAccess.Sql.ERLevel { public partial class G09_Region_ReChildDal { } }
mit
pulzarraider/SonataDoctrineORMAdminBundle
tests/Block/AuditBlockServiceTest.php
2855
<?php declare(strict_types=1); /* * This file is part of the Sonata Project package. * * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sonata\DoctrineORMAdminBundl...
mit
prabhucomo/symfonytask
src/Demo/TaskBundle/Tests/Controller/DefaultControllerTest.php
398
<?php namespace Demo\TaskBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class DefaultControllerTest extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/hello/Fabien'); $this->assert...
mit
2tvnow/tech_docs
atom/shortcuts.md
1580
|操作 |Windows |Mac | Note | |--------------------|--------------------------|-------------------------|--------------------------| |開啟檔案 |`Ctrl + P` |`Cmd + P` | | |複製行 ...
mit
lemonlimester/hangman_twitter_bot
main.rb
184
# require '/Users/Helen/Documents/Rails/hangman_twitter_bot/lib/hangman_twitter_bot' require './lib/hangman_twitter_bot' require 'pry' controller = MainController.new controller.start
mit
developerTajul/eshoper
assets/backEnd/img/ios-style-checkboxes/slider_right-63584.html
2255
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <HTML> <HEAD> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> <meta http-equiv="Content-Language" content="pl"> <style type="text/css"> body {font-family: arial; background: #ffffff; font-size: 8px color: white;} td { font-family: verdana;...
mit
jeremyje/android-beryl
beryl/src/org/beryl/app/AndroidVersion.java
6414
package org.beryl.app; /** Convenience class for retrieving the current Android version that's running on the device. * * Code example on how to use AndroidVersion to load a multi-versioned class at runtime for backwards compatibility without using reflection. * <pre class="code"><code class="java"> import org.bery...
mit
btford/socialjam
css/style.css
11196
/** * HTML5 ✰ Boilerplate * * style.css contains a reset, font normalization and some base styles. * * Credit is left where credit is due. * Much inspiration was taken from these projects: * - yui.yahooapis.com/2.8.1/build/base/base.css * - camendesign.com/design/ * - praegnanz.de/weblog/htmlcssjs-kickstart *...
mit