repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
gejiawen/guides
style.md
169
Style ===== **Author**: gejiawen **Email**: [email protected] **Desp**: > 将会阐述一些基本的代码样式、文件命名、变量命名、代码组织等规范
mit
tovic/simple-text-editor-library
index.html
11800
<!DOCTYPE html> <html dir="ltr"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Text Editor</title> <link href="favicon.ico" rel="shortcut icon"> </head> <body spellcheck="false"> <p style=" background: #ffa; border: 1px dashed; ...
mit
activewarehouse/activewarehouse
lib/active_warehouse/prejoin_fact.rb
3448
module ActiveWarehouse #:nodoc: # Class that supports prejoining a fact table with dimensions. This is useful if you need # to list facts along with some or all of their detail information. class PrejoinFact # The fact class that this engine instance is connected to attr_accessor :fact_class ...
mit
yuraic/koza4ok
skTMVA/sci_bdt_electron_DecisionTree.py
1980
from array import array import numpy as np import matplotlib.pyplot as plt from sklearn import datasets from sklearn.tree import DecisionTreeClassifier from sklearn.ensemble import AdaBoostClassifier from sklearn.metrics import classification_report, roc_auc_score, roc_curve from sklearn import tree import cPickle ...
mit
14islands/14islands-com
app/_layouts/post.html
1017
--- layout: default og_type: article --- <article class="post grid u-pad-both pjax-animate"> <section class="grid__row"> <span class="post__date typography__mono">{{ page.date | date: "%-d %B %Y" }}</span> {{ content }} </section> </article> {% if page.comments != Nil %} {% assign showComments = page.comments ...
mit
justayak/ALP5
src/utils/Utils.java
14112
package utils; import java.io.*; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; ...
mit
DustinCampbell/vscode
src/vs/workbench/api/electron-browser/mainThreadDocumentContentProviders.ts
4197
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
mit
mind0n/hive
Cache/Libs/net46/wpf/src/Core/CSharp/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs
39816
//--------------------------------------------------------------------------- // // <copyright file="ByteAnimationUsingKeyFrames.cs" company="Microsoft"> // Copyright (C) Microsoft Corporation. All rights reserved. // </copyright> // // This file was generated, please do not edit it directly. // // Please see http:...
mit
SystangoTechnologies/Hapiness
lib/context.js
672
'use strict'; const Hoek = require('hoek'); exports.plugin = { register: async (plugin, options) => { plugin.ext('onPreResponse', (request, h) => { try { var internals = { devEnv: (process.env.NODE_ENV === 'development'), meta: options.meta, credentials: request.auth.isAuthenticated ? request...
mit
armackey/spa_practice
public/modules/customers/services/customers.client.service.js
724
'use strict'; //Customers service used to communicate Customers REST endpoints angular.module('customers') .factory('Customers', ['$resource', function($resource) { return $resource('customers/:customerId', { customerId: '@_id' }, { update: { method: 'PUT' } }); } ]) .factory('Notify', ['$rootScope'...
mit
snoobvn/HuffMan
HuffMan/PathUtil.h
1305
#pragma once char separator; #ifdef _WIN32 #define DIR_SEPARATOR '\\' #else #define DIR_SEPARATOR '/' #endif #include <string> #include <algorithm> using namespace std; class PathUtil{ public: /*A small function to extract FileName from File Path C:/File.exe -> File.exe */ string static extractFileName(string Fil...
mit
HomegrownMarine/boat_computer
apps/wifi_allow/app.js
603
/* some devices call home before accepting a wifi access point. Spoof those responses. */ var path = require('path'); exports.load = function(server, boatData, settings) { var endpointMap = [ {'route': '/kindle-wifi/wifiredirect.html', 'responseFile': 'kindle.html'} , {'route': '/kindle-wifi/wi...
mit
klosorio10/ExamenFinalWebDev
README.md
866
# twitterStreamerMap To start the project ``` git clone https://github.com/klosorio10/ExamenFinalWebDev.git cd ExamenFinalWebdev cd ExamenFinal ``` A simple boilerplate for a Meteor 1.4 Twitter streamer application with React. Uses the twitter [npm](https://www.npmjs.com/package/twitter) module for connecting to ...
mit
CSCfi/antero
db_archive/sql_archive/762__create_table_vipunentk_erikoislaakarikoulutus.sql
2268
USE [VipunenTK] GO /****** Object: Table [dbo].[d_erikoislaakarikoulutus] Script Date: 14.9.2017 13:55:52 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[d_erikoislaakarikoulutus]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[d...
mit
kmARC/diofa-vendeghaz-orfu
README.md
51
# diofa-vendeghaz-orfu www.diofa-vendeghaz-orfu.hu
mit
robokopp/toast
docs/introduction.md
7511
# Basics Toast is a Rack application that hooks into Ruby on Rails providing a REST interface for ActiveRecord models. For each model a HTTP interface can be configured. Using Toast's configuration DSL one declares which of its attributes are exposed, which are readable and/or writable using white lists. Web...
mit
jtwebman/GenericTestProjectGenerator
TestProjectFromCsv/Program.cs
5551
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using TestProjectFromCsv.ValidationSteps; namespace TestProjectFromCsv { public class Program { public static void Main(string[] args) {...
mit
quattro004/scratches
app/controllers/albums_controller.rb
1594
class AlbumsController < ApplicationController respond_to :html, :xml, :json attr_reader :current_album_type, :author_name load_and_authorize_resource def index @albums = Album.by_type params[:album_type] respond_with(@albums) end def show get_current_album_type get_author_name if @cur...
mit
yukik/koyomi
test/format/josu.js
14614
// フォーマット var koyomi = require('../..').create(); var format = koyomi.format.bind(koyomi); var eq = require('assert').equal; koyomi.startMonth = 1; // 序数 (CC:経過日数) eq(format(20150101, 'CC'), '1'); eq(format(20150101, 'CC>0'), '1st'); eq(format(20150102, 'CC>0'), '2nd'); eq(format(20150103, 'CC>0'), '3rd');...
mit
melvitax/AFImageHelper
README.md
4059
# ImageHelper [![Version](https://img.shields.io/cocoapods/v/AFImageHelper.svg?style=flat)](http://cocoapods.org/pods/AFImageHelper) [![License](https://img.shields.io/cocoapods/l/AFImageHelper.svg?style=flat)](http://cocoapods.org/pods/AFImageHelper) [![Platform](https://img.shields.io/cocoapods/p/AFImageHelper.svg?s...
mit
sinfin/folio
react/src/ducks/files.js
14083
import { apiGet, apiPut, apiDelete } from 'utils/api' import { flashError, flashSuccess } from 'utils/flash' import { takeLatest, takeEvery, call, put, select } from 'redux-saga/effects' import { filter, find, without, omit } from 'lodash' import { filesUrlSelector } from 'ducks/app' import { makeUploadsSelector } fro...
mit
adabadyitzaboy/ShiftCaptain
ShiftCaptain/Infrastructure/Authentication.cs
3191
using ShiftCaptain.Models; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Security.Principal; using System.Web; using System.Web.Security; namespace ShiftCaptain.Infrastructure { public static class Authentication { public...
mit
the-front/angularjs-ee-ll-boilerplate
docs/en/README.md
11914
# Angular.js Enterprise Edition Lazy Load Boilerplate > **TODO:** review and update This boilerplate (seed project, starting project) helps you build large scale [Angular.js](https://angularjs.org/) applications with [Require.js](http://requirejs.org/) -- <!-- toc --> * [Overview](#overview) * [Installation Guide]...
mit
zenozeng/ASM-80C51
keydown-counter.asm
670
;;; keydown-counter.asm -- Count keydown form P3.2 and outputs in P1 using LED ;; Author: Zeno Zeng <[email protected]> ;; Time-stamp: <2014-12-25 21:56:36 Zeno Zeng> ;;; Commentary: ;; Count keydown from P3.2 then ouputs using 8bit P1 (in LED) ;;; Code: ORG 0000H AJMP INIT ORG 0003H AJ...
mit
Aldlevine/Kaskade.js-node
lib/cfg.js
577
var self = module.exports; self = (function(){ self.debug = true; self.prefix = '/kaskade'; self.ssl = false; /*{ key: {PEM}, cert: {PEM} }*/ self.port = 80; self.host = '0.0.0.0'; self.onConnectionClose = new Function(); self.redis = false; ...
mit
mudasobwa/qipowl
lib/qipowl.rb
1211
# encoding: utf-8 require_relative "qipowl/version" require_relative "qipowl/constants" require_relative "qipowl/core/mapper" require_relative "qipowl/core/ruler" require_relative "qipowl/core/bowler" require_relative "qipowl/bowlers/html" require_relative "qipowl/bowlers/i_sp_ru" #require_relative "qipowl/bowlers/c...
mit
em2046/nova
docs/retina.html
1784
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Retina</title> <link rel="stylesheet" href="http://pic.lvmama.com/min/index.php?f=/styles/v6/header_new.css"> <link rel="stylesheet" href="css/monokai-sublime.css"> <link rel="stylesheet" href="css/docs.css"> <link rel="styles...
mit
tapwork/frozenrefreshcontrol
testspinner/AppDelegate.h
286
// // AppDelegate.h // testspinner // // Created by Christian Menschel on 29/09/15. // Copyright © 2015 TAPWORK. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
mit
epikcraw/ggool
public/Windows 10 x64 (19041.264)/_PPM_IDLE_STATES.html
2573
<html><body> <h4>Windows 10 x64 (19041.264)</h4><br> <h2>_PPM_IDLE_STATES</h2> <font face="arial"> +0x000 InterfaceVersion : UChar<br> +0x001 IdleOverride : UChar<br> +0x002 EstimateIdleDuration : UChar<br> +0x003 ExitLatencyTraceEnabled : UChar<br> +0x004 NonInterruptibleTransition : UChar<br>...
mit
tleonhardt/Python_Interface_Cpp
cython/wrap_c/setup.py
193
# coding=utf-8 from setuptools import setup from Cython.Build import cythonize setup( name="cyfib", ext_modules=cythonize('cyfib.pyx', compiler_directives={'embedsignature': True}), )
mit
meggermo/hierarchical-matrices
src/main/java/org/eggermont/hm/cluster/ClusterFactory.java
669
package org.eggermont.hm.cluster; import cern.colt.matrix.DoubleFactory1D; import cern.colt.matrix.DoubleMatrix1D; import cern.colt.matrix.DoubleMatrix2D; public class ClusterFactory { private final DoubleMatrix2D x; private final DoubleMatrix1D blocks; private final DoubleMatrix1D vMin; private f...
mit
Rohansi/RohBot
RohBot/WebSocketServer.cs
3255
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Threading; using SharpDeflate; using vtortola.WebSockets; using vtortola.WebSockets.Rfc6455; namespace RohBot { public sealed class WebSocketServer<TClient> : IDisposable where TClient : WebSocketClient, new(...
mit
warehouseman/meteor-mantra-kickstarter
.pkgs/mmks_widget/.e2e_tests/features/widgets/step_defs.js
5126
/* eslint-disable no-undef */ const cukeBtnSubmit = '//button[@data-cuke="save-item"]'; const cukeInpSize = '//input[@data-cuke="size"]'; const cukeInpTitle = '//input[@data-cuke="title"]'; const cukeInpContent = '//textarea[@data-cuke="content"]'; const cukeSize = '//x-cuke[@id="size"]'; const cukeTitle = '//x-cu...
mit
prash1987/GamifyWebsite
login.php
3756
<!DOCTYPE html> <?php include("initial-header.php"); include("config.php"); include('swift/lib/swift_required.php'); $error = ""; if($_SERVER["REQUEST_METHOD"] == "POST") { // username and password sent from form $db = mysqli_connect(DB_SERVER,DB_USERNAME,DB_PASSWORD,DB_DATABASE); ...
mit
dustin/java-digg
src/main/java/net/spy/digg/parsers/StoriesParser.java
621
package net.spy.digg.parsers; import java.io.IOException; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import org.xml.sax.SAXException; import net.spy.digg.Story; /** * Parse a stories response. */ public class StoriesParser extends TimePagedItemParser<Story> { @Override protected String getRootEl...
mit
mswietlicki/OptimalizationFun
OptimalizationFun/Properties/AssemblyInfo.cs
1410
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("Op...
mit
viadeo/rorschart
test/data/pivot_series_test.rb
3811
require "../test_helper" require "rorschart/data/rorschart_data" module Rorschart class TestPivotSeries < Minitest::Unit::TestCase def test_pivot # Given data = [ {"collector_tstamp"=> Date.parse("2013-11-02"), "series" => "A", "count"=> 1}, {"collect...
mit
comstud/filament
src/locking/fil_lock.c
16390
/* * The MIT License (MIT): http://opensource.org/licenses/mit-license.php * * Copyright (c) 2013-2014, Chris Behrens * * 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 restrict...
mit
Nanobot5770/DasMusikQuiz
src/de/thomas/dreja/ec/musicquiz/gui/dialog/SortOrderSelectionDialog.java
1823
package de.thomas.dreja.ec.musicquiz.gui.dialog; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.app.DialogFragment; import android.content.DialogInterface; import android.os.Bundle; import de.thomas.dreja.ec.musicquiz.R; import de.thomas.dreja.ec.musicqu...
mit
scottdejonge/bonafide-bangers
src/styles/components/panel.css
401
/* * Panel */ .panel { margin: 5rem auto; max-width: 64rem; background: $white; border: 0.4rem solid $black; box-shadow: 5px 5px 0px $black; &:first-child { margin-top: 0; } &:last-child { margin-bottom: 0; } } .panel-header { padding: 2rem; background: $secondary; border-bottom: 0.4rem solid $bl...
mit
kjvelarde/angular-multiselectsearchtree
README.md
1739
angular-multi-select-tree ============================= A native Angular multi select tree. No JQuery. ![BrowserStack Status](https://www.browserstack.com/automate/badge.svg?badge_key=<badge_key>) #### Demo Page: [Demo] (http://htmlpreview.github.io/?https://github.com/kjvelarde/angular-multiselectsearchtree/b...
mit
dawnnnnn/DNTagView
DNTagViewDemo/TagView/DNTag.h
1153
// // DNTag.h // DNTagView // // Created by dawnnnnn on 16/9/1. // Copyright © 2016年 dawnnnnn. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface DNTag : NSObject @property (nonatomic, copy) NSString *text; @property (nonatomic, copy) NSAttribute...
mit
katieporter/docs
source/API_Reference/SMTP_API/scheduling_parameters.md
3769
--- seo: title: Scheduling Parameters description: Scheduling an email with SMTP keywords: SMTP, send email, scheduling title: Scheduling Parameters weight: 10 layout: page navigation: show: true --- With scheduling, you can send large volumes of email in queued batches or target individual recipients by speci...
mit
vladimirgamalian/fontbm
src/freeType/FtLibrary.h
441
#pragma once #include "FtInclude.h" #include <string> namespace ft { class Library { public: Library(); ~Library(); FT_Library library = nullptr; Library(const Library&) = delete; Library(Library&&) = delete; Library& operator = (const Library&) = delete; Library& operat...
mit
fhtw-swp-tutorium/java-swp-test-tool
test-console/src/main/java/com/github/fhtw/swp/tutorium/guice/LeafTypeProviderImpl.java
709
package com.github.fhtw.swp.tutorium.guice; import com.github.fhtw.swp.tutorium.composite.Leaf; import com.github.fhtw.swp.tutorium.composite.LeafTypeProvider; import com.github.fhtw.swp.tutorium.reflection.AnnotatedTypeFinder; import org.reflections.Configuration; import javax.inject.Inject; import java.util.Set; p...
mit
csitd/shell-utils
which.sh
732
#!/bin/sh tokenizer() { STRNG="${1}" DELIM="${2}" while : do NEW="${STRNG%${DELIM}}" while case "$NEW" in *${DELIM}*);; *)break;; esac do NEW="${NEW%${DELIM}*}" done TOKEN="${NEW%${DELIM}...
mit
vokal/MH4U-Dex
MH4U Dex/RegionContainerViewController.h
316
// // RegionContainerViewController.h // MH4U Dex // // Created by Joseph Goldberg on 3/6/15. // Copyright (c) 2015 Joseph Goldberg. All rights reserved. // #import <UIKit/UIKit.h> @class Region; @interface RegionContainerViewController : UIViewController @property (nonatomic, strong) Region *region; @end
mit
OpenDenton/opendenton.github.io
_drafts/welcome-to-jekyll.markdown
1251
--- layout: post title: "Welcome to Jekyll!" date: 2015-12-13 00:34:28 -0600 author: kyletaylored category: jekyll image: get-started-with-jekyll.png --- You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, bu...
mit
floum/cooper
features/updating_documents_spec.rb
386
# cooper document with one key example class RevisionedObject include Cooper::Document revision_field :key, type: String end describe 'Updating documents' do let(:object) do RevisionedObject.new end it 'works like Mongoid::Document' do object.key = 'value0' object.save object.update_attribut...
mit
haciel/sistema_comtable
tests/BackendBundle/Controller/DefaultControllerTest.php
394
<?php namespace BackendBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class DefaultControllerTest extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/'); $this->assert...
mit
soiya/AIT_MAIKON
README.md
71
# AIT_MAIKON マイコン演習最終課題<br> 詳しくはwiki見て
mit
Adventech/sabbath-school-lessons
src/en/2021-03/11/04.md
5019
--- title: The “Example” of Rest date: 07/09/2021 --- Besides the examples we already have looked at, this idea of types and symbols can apply to the biblical concept of rest as well. To see this, we go to the New Testament book of Hebrews. `Read Hebrews 4:1–11. What is the remaining promise of entering His rest re...
mit
SiroccoHub/CakesNoteProxy
src/CakesNoteProxy/NoteProxyConfigure.cs
1514
using System; using System.Net; using Microsoft.Extensions.Logging; namespace CakesNoteProxy { public static class NoteProxyConfigure { public static ILoggerFactory LoggerFactory; public static class NoteApi { public static string SiteFqdn { get; private set; }...
mit
niquola/health_seven
lib/health_seven/2.5/segments/rq1.rb
581
module HealthSeven::V2_5 class Rq1 < ::HealthSeven::Segment # Anticipated Price attribute :anticipated_price, St, position: "RQ1.1" # Manufacturer Identifier attribute :manufacturer_identifier, Ce, position: "RQ1.2" # Manufacturer's Catalog attribute :manufacturer_s_catalog, St, position: "RQ1.3" # Vendor...
mit
lunt/lunt
src/Lunt/AssetDependency.cs
1748
using System; using Lunt.IO; namespace Lunt { /// <summary> /// Represent a dependency to an asset. /// </summary> public sealed class AssetDependency { private readonly FilePath _path; private readonly long _fileSize; private readonly string _checksum; /// <summar...
mit
supermirtillo/polito-c-apa
L08/E04/main.c
8509
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "liste.h" #include "atl.h" #include "es.h" #define FILE_ATLETI "atleti.txt" #define FILE_ESERCIZI "esercizi.txt" #define MAX_NOME 25 #define LUNG_CODICE 5 #define non_strutturato ;; #ifdef _WIN32 #define F_CLEAR "cls" #else ...
mit
murataka9/iOSinOF-NativeGUISample
of_v0.9.3_ios_release/libs/openFrameworks/video/ofQuickTimeGrabber.cpp
25185
#include "ofQuickTimeGrabber.h" #include "ofUtils.h" #if !defined(TARGET_LINUX) && !defined(MAC_OS_X_VERSION_10_7) //--------------------------------- #ifdef OF_VIDEO_CAPTURE_QUICKTIME //--------------------------------- //-------------------------------------------------------------- static ComponentResult frameI...
mit
controlshift/vertebrae
spec/logger_spec.rb
412
# frozen_string_literal: true require 'spec_helper' describe 'logging' do it "should have a logger" do expect(Dummy).to respond_to(:logger) end it "should be able to log debug methods" do expect(Dummy.logger).to respond_to(:debug) end it "should be settable" do expect(Dummy).to respond_to(:log...
mit
myhgew/iLogo
iLogo/iLogo/model/expression/RepeatExpression.h
436
// // RepeatExpression.h // iLogo // // Created by Yuhua Mai on 10/27/13. // Copyright (c) 2013 Yuhua Mai. All rights reserved. // #import "ScopedExpression.h" //#import "Expression.h" @interface RepeatExpression : ScopedExpression { Expression *variableExpression; NSMutableArray *commandExpression; } ...
mit
byllyfish/oftr
src/ofp/tablestatus.cpp
1028
// Copyright (c) 2015-2018 William W. Fisher (at gmail dot com) // This file is distributed under the MIT License. #include "ofp/tablestatus.h" #include "ofp/writable.h" using namespace ofp; bool TableStatus::validateInput(Validation *context) const { size_t length = context->length(); if (length < sizeof(Tabl...
mit
moneytrack/moneytrack.github.io
styles/main.css
26617
@charset "UTF-8"; /* MFG Labs iconset 1.0 ------------------------------------------------------- License ------------------------------------------------------- • The MFG Labs iconset font is licensed under the SIL Open Font License - http://scripts.sil.org/OFL • MFG Labs inconset CSS fi...
mit
AleksandarFaraj/postitapp
index.html
7026
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>Post It App</title> <link rel="apple-touch-icon" sizes="57x57" href="/icon2015/apple-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/icon2015/apple-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" hre...
mit
Cyberwatch/cbw-security-fixes
Ubuntu_14.04_LTS/x86_64/2016/USN-2950-5.sh
794
#!/bin/sh # CYBERWATCH SAS - 2017 # # Security fix for USN-2950-5 # # Security announcement date: 2016-05-25 00:00:00 UTC # Script generation date: 2017-01-01 21:05:27 UTC # # Operating System: Ubuntu 14.04 LTS # Architecture: x86_64 # # Vulnerable packages fix on version: # - samba:2:4.3.9+dfsg-0ubuntu0.14.04.3 ...
mit
sljuka/bizflow
lib/bizflow/business_model/simple_wrapper.rb
294
require 'delegate' module Bizflow module BusinessModel class SimpleWrapper < SimpleDelegator def self.wrap(item) new item end def self.wraps(items) res = items.map do |item| new item end res end end end end
mit
majusko/codility
PermMissingElem.java
392
class Solution { public int solution(int[] A) { int[] temArray = new int[A.length + 2]; for (int i = 0; i < A.length; i++) { temArray[A[i]] = 1; } for (int i = 1; i < temArray.length + 1; i++) { if(temArray[i] == 0){ return i; ...
mit
johndoechang888/popcorn
fe/app/js/controllers/EditMovieCtrl.js
882
function EditMovieCtrl(MovieService,$stateParams) { // ViewModel const edit = this; edit.title = 'Edit Movies' + $stateParams.id; edit.back = function(){ window.history.back() } edit.checker = function(bool){ if(bool=='true') return true; if(bool=='false') return false; } ...
mit
agramonte/CGGameCircle
README.md
53
# CGGameCircle Marmalade Lua Binding for Game Circle
mit
lauracurley/2016-08-ps-react
node_modules/eslint/lib/rules/object-curly-newline.js
7202
/** * @fileoverview Rule to require or disallow line breaks inside braces. * @author Toru Nagashima */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ let astUtils = requ...
mit
J216/gimp_be
gimp_be/draw/draw.py
26770
import random, math import gimp_be #from gimp_be.utils.quick import qL from gimp_be.image.layer import editLayerMask from effects import mirror import numpy as np import UndrawnTurtle as turtle def brushSize(size=-1): """" Set brush size """ image = gimp_be.gimp.image_list()[0] drawable = gimp_be.p...
mit
scipper/angularjs-cli
src/angularjs-cli/options/help.option.ts
210
import {Option} from "./option"; export class HelpOption extends Option { /** * */ constructor() { super(); this.shortName = 'h'; this.longName = 'help'; this.argument = ''; } }
mit
keystonejs/keystone
design-system/packages/icons/src/icons/ShieldIcon.tsx
186
import * as React from 'react'; import { createIcon } from '../Icon'; export const ShieldIcon = createIcon( <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" />, 'ShieldIcon' );
mit
Ovaldi/node-cqrs
src/util.js
194
"use strict"; var GLOBAL_MOUNT_POINT_MAX = Math.pow(2, 53); var util = { uuid: function(){ return Math.ceil(Math.random() * GLOBAL_MOUNT_POINT_MAX); } }; module.exports = util;
mit
estelsmith/toy-language
src/Core/Lexer/Lexer.php
486
<?php namespace ToyLang\Core\Lexer; use ToyLang\Core\Lexer\Token\Token; use ToyLang\Core\Lexer\Token\TokenType; interface Lexer { /** * @param TokenType $tokenType * @return $this */ public function addTokenType(TokenType $tokenType); /** * @param TokenType[] $tokenTypes * @retu...
mit
XiangqiTu/XQDemo
XQDemo/XQDemo/Sections/HomePageCoverFlow/SubView/HomeDateContainerView.h
220
// // HomeDateContainerView.h // XQDemo // // Created by XiangqiTu on 15-4-13. // // #import <UIKit/UIKit.h> @interface HomeDateContainerView : UIView - (void)caculateDateWithTimestamp:(NSString *)timestamp; @end
mit
chinxianjun/autorepair
test/unit/customer_questionship_test.rb
134
require 'test_helper' class CustomerQuestionshipTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
mit
MKelm/pixi.js
src/pixi/display/DisplayObjectContainer.js
7407
/** * @author Mat Groves http://matgroves.com/ @Doormat23 */ /** * A DisplayObjectContainer represents a collection of display objects. * It is the base class of all display objects that act as a container for other objects. * * @class DisplayObjectContainer * @extends DisplayObject * @constructor */ PIXI.D...
mit
BedrockSolid/BedrockSolid.github.io
aboutspacex.html
6716
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/...
mit
NonLogicalDev/ucsd_cat125
client/scripts/ga.js
31
function ga() {} var _gaq = []
mit
code-corps/ember-stripe-elements
app/components/stripe-card.js
72
export { default } from 'ember-stripe-elements/components/stripe-card';
mit
lioneil/pluma
config/broadcasting.php
1626
<?php return [ /** *-------------------------------------------------------------------------- * Default Broadcaster *-------------------------------------------------------------------------- * * This option controls the default broadcaster that will be used by the * framework when ...
mit
HBClab/NiBetaSeries
.github/ISSUE_TEMPLATE/bug_report.md
546
--- name: Bug report about: Create a report to help us improve --- **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. use option '...' 3. See error **Expected behavior** A clear and concise description of what you expected to ...
mit
Andlon/aria
src/util/binary_buffer.cpp
4531
#include "binary_buffer.hpp" #include <iterator> #include <algorithm> #include <sstream> #include <boost/endian/conversion.hpp> using boost::endian::native_to_big; using boost::endian::big_to_native; namespace { using aria::byte; template <typename P> void append_bytes_to_vector(std::vector<byte> & vec,...
mit
simoneramo/simple
app/_partials/simple-partials/code/objects/thumbnail.html
747
<pre><code class="css">h1(class='s-simple-title u-fs-h5x') Thumbnail Object h2.s-simple-title--sub Default .s-simple-objects.thumbnail .o-thumb img(class="o-thumb__item" src= "http://placehold.it/200") .s-simple-code include ../code/highlight/highlight-code-javascript.html h2.s-simple-title--sub Thumbnail Roun...
mit
wajahatch888/JASONETTE-iOS
app/Pods/Target Support Files/Pods-Jasonette/Pods-Jasonette-acknowledgements.markdown
64190
# Acknowledgements This application makes use of the following third party libraries: ## AFNetworking Copyright (c) 2011–2016 Alamofire Software Foundation (http://alamofire.org/) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "So...
mit
qvl/ghbackup
readme.md
4415
# :floppy_disk: ghbackup [![GoDoc](https://godoc.org/qvl.io/ghbackup?status.svg)](https://godoc.org/qvl.io/ghbackup) [![Build Status](https://travis-ci.org/qvl/ghbackup.svg?branch=master)](https://travis-ci.org/qvl/ghbackup) [![Go Report Card](https://goreportcard.com/badge/qvl.io/ghbackup)](https://goreportcard.com/...
mit
yogeshsaroya/new-cdnjs
ajax/libs/foundation/5.4.1/js/foundation/foundation.equalizer.min.js
129
version https://git-lfs.github.com/spec/v1 oid sha256:a2aca9cd81f31f3e9e83559fdcfa84d3ee900090ee4baeb2bae129e9d06473eb size 1264
mit
depjs/dep
scripts/install.js
676
const exec = require('child_process').exec const path = require('path') const fs = require('fs') const execPath = process.execPath const binPath = path.dirname(execPath) const dep = path.join(execPath, '../../lib/node_modules/dep') const repository = 'https://github.com/depjs/dep.git' const bin = path.join(dep, 'bin/de...
mit
winterdouglas/aspnet-identity-mongo
src/AspNet.Identity.MongoDB/IndexChecks.cs
993
using MongoDB.Driver; namespace AspNet.Identity.MongoDB { public class IndexChecks { public static void EnsureUniqueIndexOnUserName<TUser>(IMongoCollection<TUser> users) where TUser : IdentityUser { var userName = Builders<TUser>.IndexKeys.Ascending(t => t.UserName); var unique = new CreateIndexOptions...
mit
woese/guara-crm
app/models/system_module.rb
262
class SystemModule < ActiveRecord::Base attr_accessible :name def self.CUSTOMER readonly.find_by_name("Customer") end def self.USER readonly.find_by_name("User") end def self.CONTACT readonly.find_by_name("Contact") end end
mit
cfreeley/github-language-rainbow
README.md
50
# github-language-rainbow Just look at the colors
mit
markovandooren/chameleon
src/org/aikodi/chameleon/support/statement/StatementExprList.java
2449
package org.aikodi.chameleon.support.statement; import org.aikodi.chameleon.core.declaration.Declaration; import org.aikodi.chameleon.core.element.ElementImpl; import org.aikodi.chameleon.core.lookup.DeclarationSelector; import org.aikodi.chameleon.core.lookup.LookupContext; import org.aikodi.chameleon.core.lookup.Loo...
mit
IonicaBizau/arc-assembler
clients/ace-builds/src-min-noconflict/snippets/matlab.js
172
"use strict"; ace.define("ace/snippets/matlab", ["require", "exports", "module"], function (e, t, n) { "use strict"; t.snippetText = undefined, t.scope = "matlab"; });
mit
lejoying/ibrainstroms
web/PhysicsJS/src/util/pubsub.js
3581
(function(){ /** * PubSub implementation (fast) */ var PubSub = function PubSub( defaultScope ){ if (!(this instanceof PubSub)){ return new PubSub( defaultScope ); } this._topics = {}; this.defaultScope = defaultScope || this; }; PubSub.prototype...
mit
brtdesign/brtdesign.github.io
work/af-december2016/assets/js/_default.js
2769
function fixPosition() { console.log($(window).scrollTop()); // if its anywhee but at the very top of the screen, fix it if ($(window).scrollTop() >= headerHeight) { // magic number offset that just feels right to prevent the 'bounce' // if (headPosition.top > 0){ $('body').addClass('js-fix-positi...
mit
h0kui/hokui
cache/compiled/files/02efd2c2255a28026bd81d6a8068c728.yaml.php
452
<?php return [ '@class' => 'Grav\\Common\\File\\CompiledYamlFile', 'filename' => '/Users/kenrickkelly/Sites/hokui/user/plugins/admin/languages/tlh.yaml', 'modified' => 1527231007, 'data' => [ 'PLUGIN_ADMIN' => [ 'LOGIN_BTN_FORGOT' => 'lIj', 'BACK' => 'chap', '...
mit
ulno/ulnoiot
lib/system_boot/raspi-boot.sh
1840
#!/usr/bin/env bash # Run a raspberry pi as ulnoiot gateway (wifi router and mqtt_broker) # # To enable this, # make sure ulnoiot-run script is porperly setup (for example in /home/pi/bin) # add the following to the end of /etc/rc.local with adjusted location of the # run-script: # export PATH="/usr/local/sbin:/usr/loc...
mit
frank-weindel/react-live-demo
app/index.js
5927
import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'underscore'; import babel from 'babel-core/browser'; import esprima from 'esprima'; import escodegen from 'escodegen'; import estraverse from 'estraverse'; import Codemirror from 'react-codemirror'; import classNames from 'classnames'; import ...
mit
florianb/atom-editorconfig
spec/iss118-spec.js
1733
/** @babel */ /* eslint-env jasmine, atomtest */ /* This file contains verifying specs for: https://github.com/sindresorhus/atom-editorconfig/issues/118 */ import fs from 'fs'; import path from 'path'; const testPrefix = path.basename(__filename).split('-').shift(); const projectRoot = path.join(__dirname, 'fixt...
mit
matthewsot/CocoaSharp
Headers/PrivateFrameworks/HomeSharing/HSItemDataRequest.h
419
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import <HomeSharing/HSRequest.h> @interface HSItemDataRequest : HSRequest { } + (id)requestWithDatabaseID:(unsigned int)arg1 itemID:(unsigned long long)arg2 format:(id)arg3; -...
mit
matthewsot/CocoaSharp
Headers/Frameworks/Foundation/NSCompoundPredicateOperator.h
569
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard. */ #import <Foundation/NSPredicateOperator.h> @interface NSCompoundPredicateOperator : NSPredicateOperator { } + (id)notPredicateOperator; + (id)orPredicateOperator; + (id)andPred...
mit