code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
Style ===== **Author**: gejiawen **Email**: gejiawen@baidu.com **Desp**: > 将会阐述一些基本的代码样式、文件命名、变量命名、代码组织等规范
gejiawen/guides
style.md
Markdown
mit
169
<!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; ...
tovic/simple-text-editor-library
index.html
HTML
mit
11,800
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 ...
activewarehouse/activewarehouse
lib/active_warehouse/prejoin_fact.rb
Ruby
mit
3,448
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 ...
yuraic/koza4ok
skTMVA/sci_bdt_electron_DecisionTree.py
Python
mit
1,980
--- 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 ...
14islands/14islands-com
app/_layouts/post.html
HTML
mit
1,017
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; ...
justayak/ALP5
src/utils/Utils.java
Java
mit
14,112
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
DustinCampbell/vscode
src/vs/workbench/api/electron-browser/mainThreadDocumentContentProviders.ts
TypeScript
mit
4,197
//--------------------------------------------------------------------------- // // <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:...
mind0n/hive
Cache/Libs/net46/wpf/src/Core/CSharp/System/Windows/Media/Animation/Generated/ByteAnimationUsingKeyFrames.cs
C#
mit
39,816
'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...
SystangoTechnologies/Hapiness
lib/context.js
JavaScript
mit
672
'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'...
armackey/spa_practice
public/modules/customers/services/customers.client.service.js
JavaScript
mit
724
#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...
snoobvn/HuffMan
HuffMan/PathUtil.h
C
mit
1,305
/* 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...
HomegrownMarine/boat_computer
apps/wifi_allow/app.js
JavaScript
mit
603
# 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 ...
klosorio10/ExamenFinalWebDev
README.md
Markdown
mit
866
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...
CSCfi/antero
db_archive/sql_archive/762__create_table_vipunentk_erikoislaakarikoulutus.sql
SQL
mit
2,268
# diofa-vendeghaz-orfu www.diofa-vendeghaz-orfu.hu
kmARC/diofa-vendeghaz-orfu
README.md
Markdown
mit
51
# 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...
robokopp/toast
docs/introduction.md
Markdown
mit
7,511
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) {...
jtwebman/GenericTestProjectGenerator
TestProjectFromCsv/Program.cs
C#
mit
5,551
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...
quattro004/scratches
app/controllers/albums_controller.rb
Ruby
mit
1,594
// フォーマット 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');...
yukik/koyomi
test/format/josu.js
JavaScript
mit
14,614
# 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...
melvitax/AFImageHelper
README.md
Markdown
mit
4,059
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...
sinfin/folio
react/src/ducks/files.js
JavaScript
mit
14,083
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...
adabadyitzaboy/ShiftCaptain
ShiftCaptain/Infrastructure/Authentication.cs
C#
mit
3,191
# 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]...
the-front/angularjs-ee-ll-boilerplate
docs/en/README.md
Markdown
mit
11,914
;;; keydown-counter.asm -- Count keydown form P3.2 and outputs in P1 using LED ;; Author: Zeno Zeng <zenoofzeng@gmail.com> ;; 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...
zenozeng/ASM-80C51
keydown-counter.asm
Assembly
mit
670
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; ...
Aldlevine/Kaskade.js-node
lib/cfg.js
JavaScript
mit
577
# 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...
mudasobwa/qipowl
lib/qipowl.rb
Ruby
mit
1,211
<!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...
em2046/nova
docs/retina.html
HTML
mit
1,784
// // 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
tapwork/frozenrefreshcontrol
testspinner/AppDelegate.h
C
mit
286
<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>...
epikcraw/ggool
public/Windows 10 x64 (19041.264)/_PPM_IDLE_STATES.html
HTML
mit
2,573
# coding=utf-8 from setuptools import setup from Cython.Build import cythonize setup( name="cyfib", ext_modules=cythonize('cyfib.pyx', compiler_directives={'embedsignature': True}), )
tleonhardt/Python_Interface_Cpp
cython/wrap_c/setup.py
Python
mit
193
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...
meggermo/hierarchical-matrices
src/main/java/org/eggermont/hm/cluster/ClusterFactory.java
Java
mit
669
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(...
Rohansi/RohBot
RohBot/WebSocketServer.cs
C#
mit
3,255
/* 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...
warehouseman/meteor-mantra-kickstarter
.pkgs/mmks_widget/.e2e_tests/features/widgets/step_defs.js
JavaScript
mit
5,126
<!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); ...
prash1987/GamifyWebsite
login.php
PHP
mit
3,756
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...
dustin/java-digg
src/main/java/net/spy/digg/parsers/StoriesParser.java
Java
mit
621
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...
mswietlicki/OptimalizationFun
OptimalizationFun/Properties/AssemblyInfo.cs
C#
mit
1,410
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...
viadeo/rorschart
test/data/pivot_series_test.rb
Ruby
mit
3,811
/* * 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...
comstud/filament
src/locking/fil_lock.c
C
mit
16,390
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...
Nanobot5770/DasMusikQuiz
src/de/thomas/dreja/ec/musicquiz/gui/dialog/SortOrderSelectionDialog.java
Java
mit
1,823
/* * 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...
scottdejonge/bonafide-bangers
src/styles/components/panel.css
CSS
mit
401
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...
kjvelarde/angular-multiselectsearchtree
README.md
Markdown
mit
1,739
// // 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...
dawnnnnn/DNTagView
DNTagViewDemo/TagView/DNTag.h
C
mit
1,153
--- 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...
katieporter/docs
source/API_Reference/SMTP_API/scheduling_parameters.md
Markdown
mit
3,769
#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...
vladimirgamalian/fontbm
src/freeType/FtLibrary.h
C
mit
441
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...
fhtw-swp-tutorium/java-swp-test-tool
test-console/src/main/java/com/github/fhtw/swp/tutorium/guice/LeafTypeProviderImpl.java
Java
mit
709
#!/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}...
csitd/shell-utils
which.sh
Shell
mit
732
// // 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
vokal/MH4U-Dex
MH4U Dex/RegionContainerViewController.h
C
mit
316
--- 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...
OpenDenton/opendenton.github.io
_drafts/welcome-to-jekyll.markdown
Markdown
mit
1,251
# 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...
floum/cooper
features/updating_documents_spec.rb
Ruby
mit
386
<?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...
haciel/sistema_comtable
tests/BackendBundle/Controller/DefaultControllerTest.php
PHP
mit
394
# AIT_MAIKON マイコン演習最終課題<br> 詳しくはwiki見て
soiya/AIT_MAIKON
README.md
Markdown
mit
71
--- 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...
Adventech/sabbath-school-lessons
src/en/2021-03/11/04.md
Markdown
mit
5,019
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; }...
SiroccoHub/CakesNoteProxy
src/CakesNoteProxy/NoteProxyConfigure.cs
C#
mit
1,514
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...
niquola/health_seven
lib/health_seven/2.5/segments/rq1.rb
Ruby
mit
581
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...
lunt/lunt
src/Lunt/AssetDependency.cs
C#
mit
1,748
#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 ...
supermirtillo/polito-c-apa
L08/E04/main.c
C
mit
8,509
#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...
murataka9/iOSinOF-NativeGUISample
of_v0.9.3_ios_release/libs/openFrameworks/video/ofQuickTimeGrabber.cpp
C++
mit
25,185
# 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...
controlshift/vertebrae
spec/logger_spec.rb
Ruby
mit
412
// // 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; } ...
myhgew/iLogo
iLogo/iLogo/model/expression/RepeatExpression.h
C
mit
436
// 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...
byllyfish/oftr
src/ofp/tablestatus.cpp
C++
mit
1,028
@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...
moneytrack/moneytrack.github.io
styles/main.css
CSS
mit
26,617
<!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...
AleksandarFaraj/postitapp
index.html
HTML
mit
7,026
#!/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 ...
Cyberwatch/cbw-security-fixes
Ubuntu_14.04_LTS/x86_64/2016/USN-2950-5.sh
Shell
mit
794
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
sljuka/bizflow
lib/bizflow/business_model/simple_wrapper.rb
Ruby
mit
294
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; ...
majusko/codility
PermMissingElem.java
Java
mit
392
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; } ...
johndoechang888/popcorn
fe/app/js/controllers/EditMovieCtrl.js
JavaScript
mit
882
# CGGameCircle Marmalade Lua Binding for Game Circle
agramonte/CGGameCircle
README.md
Markdown
mit
53
/** * @fileoverview Rule to require or disallow line breaks inside braces. * @author Toru Nagashima */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ let astUtils = requ...
lauracurley/2016-08-ps-react
node_modules/eslint/lib/rules/object-curly-newline.js
JavaScript
mit
7,202
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...
J216/gimp_be
gimp_be/draw/draw.py
Python
mit
26,770
import {Option} from "./option"; export class HelpOption extends Option { /** * */ constructor() { super(); this.shortName = 'h'; this.longName = 'help'; this.argument = ''; } }
scipper/angularjs-cli
src/angularjs-cli/options/help.option.ts
TypeScript
mit
210
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' );
keystonejs/keystone
design-system/packages/icons/src/icons/ShieldIcon.tsx
TypeScript
mit
186
"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;
Ovaldi/node-cqrs
src/util.js
JavaScript
mit
194
<?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...
estelsmith/toy-language
src/Core/Lexer/Lexer.php
PHP
mit
486
// // HomeDateContainerView.h // XQDemo // // Created by XiangqiTu on 15-4-13. // // #import <UIKit/UIKit.h> @interface HomeDateContainerView : UIView - (void)caculateDateWithTimestamp:(NSString *)timestamp; @end
XiangqiTu/XQDemo
XQDemo/XQDemo/Sections/HomePageCoverFlow/SubView/HomeDateContainerView.h
C
mit
220
require 'test_helper' class CustomerQuestionshipTest < ActiveSupport::TestCase # test "the truth" do # assert true # end end
chinxianjun/autorepair
test/unit/customer_questionship_test.rb
Ruby
mit
134
/** * @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...
MKelm/pixi.js
src/pixi/display/DisplayObjectContainer.js
JavaScript
mit
7,407
<!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/...
BedrockSolid/BedrockSolid.github.io
aboutspacex.html
HTML
mit
6,716
function ga() {} var _gaq = []
NonLogicalDev/ucsd_cat125
client/scripts/ga.js
JavaScript
mit
31
export { default } from 'ember-stripe-elements/components/stripe-card';
code-corps/ember-stripe-elements
app/components/stripe-card.js
JavaScript
mit
72
<?php return [ /** *-------------------------------------------------------------------------- * Default Broadcaster *-------------------------------------------------------------------------- * * This option controls the default broadcaster that will be used by the * framework when ...
lioneil/pluma
config/broadcasting.php
PHP
mit
1,626
--- 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 ...
HBClab/NiBetaSeries
.github/ISSUE_TEMPLATE/bug_report.md
Markdown
mit
546
#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,...
Andlon/aria
src/util/binary_buffer.cpp
C++
mit
4,531
<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...
simoneramo/simple
app/_partials/simple-partials/code/objects/thumbnail.html
HTML
mit
747
# 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...
wajahatch888/JASONETTE-iOS
app/Pods/Target Support Files/Pods-Jasonette/Pods-Jasonette-acknowledgements.markdown
Markdown
mit
64,190
# :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/...
qvl/ghbackup
readme.md
Markdown
mit
4,415
version https://git-lfs.github.com/spec/v1 oid sha256:a2aca9cd81f31f3e9e83559fdcfa84d3ee900090ee4baeb2bae129e9d06473eb size 1264
yogeshsaroya/new-cdnjs
ajax/libs/foundation/5.4.1/js/foundation/foundation.equalizer.min.js
JavaScript
mit
129
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...
depjs/dep
scripts/install.js
JavaScript
mit
676
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...
winterdouglas/aspnet-identity-mongo
src/AspNet.Identity.MongoDB/IndexChecks.cs
C#
mit
993
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
woese/guara-crm
app/models/system_module.rb
Ruby
mit
262
# github-language-rainbow Just look at the colors
cfreeley/github-language-rainbow
README.md
Markdown
mit
50
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...
markovandooren/chameleon
src/org/aikodi/chameleon/support/statement/StatementExprList.java
Java
mit
2,449
"use strict"; ace.define("ace/snippets/matlab", ["require", "exports", "module"], function (e, t, n) { "use strict"; t.snippetText = undefined, t.scope = "matlab"; });
IonicaBizau/arc-assembler
clients/ace-builds/src-min-noconflict/snippets/matlab.js
JavaScript
mit
172
(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...
lejoying/ibrainstroms
web/PhysicsJS/src/util/pubsub.js
JavaScript
mit
3,581
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...
brtdesign/brtdesign.github.io
work/af-december2016/assets/js/_default.js
JavaScript
mit
2,769
<?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', '...
h0kui/hokui
cache/compiled/files/02efd2c2255a28026bd81d6a8068c728.yaml.php
PHP
mit
452
#!/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...
ulno/ulnoiot
lib/system_boot/raspi-boot.sh
Shell
mit
1,840
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 ...
frank-weindel/react-live-demo
app/index.js
JavaScript
mit
5,927
/** @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...
florianb/atom-editorconfig
spec/iss118-spec.js
JavaScript
mit
1,733
/* * 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; -...
matthewsot/CocoaSharp
Headers/PrivateFrameworks/HomeSharing/HSItemDataRequest.h
C
mit
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 <Foundation/NSPredicateOperator.h> @interface NSCompoundPredicateOperator : NSPredicateOperator { } + (id)notPredicateOperator; + (id)orPredicateOperator; + (id)andPred...
matthewsot/CocoaSharp
Headers/Frameworks/Foundation/NSCompoundPredicateOperator.h
C
mit
569