repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
nmklotas/BuildHelper
BuildHelper/UI/Data/BuildConfigurationDataSource.cs
932
using EnsureThat; using System; using System.Collections.ObjectModel; namespace BuildHelper.UI.Data { /// <summary> /// Class used to store configuration settings in Visual Studio ConfigurationStore /// </summary> [Serializable] public class BuildConfigurationDataSource { public Observ...
mit
rs6g10/portfolio
public/modules/angular/angular.client.view.html
88
<section data-ng-controller="AngularController"> <h2>This is angular YO</h2> </section>
mit
eroicaleo/DesignPatterns
HeadFirst/ch04/PizzaStoreAbstractFactory/EggPlant.java
85
/** * Created by yangge on 1/29/2016. */ public class EggPlant extends Veggies { }
mit
mnaughto/sails
lib/hooks/session/index.js
14850
/** * Module dependencies. */ var util = require('sails-util'), uuid = require('node-uuid'), path = require('path'), generateSecret = require('./generateSecret'), cookie = require('express/node_modules/cookie'), parseSignedCookie = require('cookie-parser').signedCookie, ConnectSession = require('express/...
mit
jjenki11/blaze-chem-rendering
qca_designer/lib/ml-pnet-0.8.1/mcs-sources/class/System.Security/System.Security.Cryptography.X509Certificates/StoreLocation.cs
1531
// // StoreLocation.cs - System.Security.Cryptography.X509Certificates.StoreLocation // // Author: // Sebastien Pouliot <sebastien@ximian.com> // // (C) 2003 Motus Technologies Inc. (http://www.motus.com) // Copyright (C) 2004 Novell Inc. (http://www.novell.com) // // Permission is hereby granted, free of charge, to a...
mit
stevenblaster/crapengine
doc/latex/resourcesplugin_8cpp.tex
2002
\hypertarget{resourcesplugin_8cpp}{}\section{/mnt/windows/data/programming/crapengine2/source/plugins/resources/source/resourcesplugin.cpp File Reference} \label{resourcesplugin_8cpp}\index{/mnt/windows/data/programming/crapengine2/source/plugins/resources/source/resourcesplugin.\+cpp@{/mnt/windows/data/programming/cra...
mit
detienne11/imie
flights/maquettes/flights.html
2585
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Flights Register</title> <link type="text/css" href="./resources/css/flights.css" rel="stylesheet"/> <script type="text/javascript" src="./resources/js/flights.js"></script> </head> <body> <header> <div class="logo">&nbsp;</div> <...
mit
AndrewMontagne/alliance-auth
static/js/authorize.js
1462
function showErrorMessage(errorMessage) { $("#authorize-prompt") .addClass("error-prompt") .removeClass("success-prompt") .html(errorMessage); } function showSuccessMessage(message) { $("#authorize-prompt") .removeClass("error-prompt") .addClass("success-prompt") ...
mit
xaxa89/mitmproxy
mitmproxy/tools/console/overlay.py
3855
import math import urwid from mitmproxy.tools.console import common from mitmproxy.tools.console import signals from mitmproxy.tools.console import grideditor class SimpleOverlay(urwid.Overlay): def __init__(self, master, widget, parent, width, valign="middle"): self.widget = widget self.master ...
mit
aerialls/Turtle
src/turtle/gui/panel/TeamBehaviorPanel.java
2309
/* * This file is part of the Turtle project * * (c) 2011 Julien Brochet <julien.brochet@etu.univ-lyon1.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ package turtle.gui.panel; import java.awt.BorderLayout; import java.awt.e...
mit
v-chuqin/Language-Psychology
Clickbait/Data-sets/Clickbait-Challenge.md
2366
# [Clickbait Challenge 2017](http://www.clickbait-challenge.org/) ### Important Dates: | Date | event | | ------------------------ | ------------------------------ | | March 31, 2017 | Registration begins. | | March 31, 2017 | Release of train...
mit
zaccolley/songkick.pink
src/components/Icon/svg/bookmark.js
75
module.exports = [ 'M6 2 L26 2 L26 30', 'L16 24 L6 30 Z' ].join(' ');
mit
degica/barcelona
app/serializers/plugin_serializer.rb
121
class PluginSerializer < ActiveModel::Serializer attributes :name attribute :plugin_attributes, key: :attributes end
mit
koharjidan/litecoin
src/test/key_tests.cpp
9233
// Copyright (c) 2012-2013 The Bitcoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "key.h" #include "base58.h" #include "script/script.h" #include "uint256.h" #include "util.h" #include "utilstr...
mit
erikmr/Java-Api-Rest
src/main/java/platzi/app/InstructorRepository.java
250
package platzi.app; import java.util.Optional; import org.springframework.data.jpa.repository.JpaRepository; public interface InstructorRepository extends JpaRepository<Instructor, Long> { Optional<Instructor> findByUsername(String username); }
mit
skounis/ionic-stage
stage/e20/index.html
3851
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title></title> <!-- build:css styles/vendor.css --> <!-- bower:css --> <link rel="stylesheet" href="bower_components/ionic/release/css/ionic.css" /> <li...
mit
JoshEngebretson/duktape
api-testcases/test-require-buffer.c
2133
/*=== buffer: ptr-is-NULL=0, sz=1024 buffer buffer: ptr-is-NULL=-1, sz=0 buffer buffer: ptr-is-NULL=0, sz=1024 buffer buffer: ptr-is-NULL=-1, sz=0 buffer rc=0, result=undefined rc=1, result=TypeError: not buffer rc=1, result=TypeError: not buffer rc=1, result=TypeError: not buffer ===*/ int test_1(duk_context *ctx) { ...
mit
Consdata/sonarqube-companion
README.md
5145
# SonarQube Companion SonarQube Companion application for Scrum teams. [![Build Status](https://travis-ci.org/Consdata/sonarqube-companion.svg?branch=master)](https://travis-ci.org/Consdata/sonarqube-companion) ## Building ```bash $ ./mvnw clean package ``` ### Running builded artifact ```bash $ java -jar sonarqu...
mit
tapichu/highway-maps
project/settings.py
3183
import os ADMINS = ( # ('Eduardo Lopez', 'eduardo.biagi@gmail.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. 'NAME': os.path.join(os.path.dirname(__file__), 'highways.db')...
mit
dexternidia/redcomand
app/home/views/consultas/index.php
6788
<div class="container"> <div class="card-panel darken-2 z-depth-2"> <h5 class="red-text"><i class="fa fa-search-plus"></i> CONSULTA</h5> <br> <form action="<?php echo baseUrl ?>home/consultas/index" method="POST" class="col s12"> <?php echo Token::field() ?> <div class="row"> <div clas...
mit
mgalushka/cpp-start
linux/echo.c
314
#include "common.h" #define BUFFSIZE 4096 int main(void) { int n; char buf[BUFFSIZE]; while ((n = read(STDIN_FILENO, buf, BUFFSIZE)) > 0) { if (write(STDOUT_FILENO, buf, n) != n) { err_sys("write error"); } } if (n < 0) { err_sys("read error"); } exit(0); }
mit
longbai/happy-dns-android
library/src/main/java/com/qiniu/android/dns/http/DnspodFree.java
1751
package com.qiniu.android.dns.http; import com.qiniu.android.dns.Domain; import com.qiniu.android.dns.IResolver; import com.qiniu.android.dns.NetworkInfo; import com.qiniu.android.dns.Record; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; /** * Create...
mit
swaldman/ethereumj
ethereumj-core/src/test/java/test/ethereum/core/BlockTest.java
10826
package test.ethereum.core; import test.ethereum.TestContext; import org.ethereum.config.SystemProperties; import org.ethereum.core.Block; import org.ethereum.core.BlockchainImpl; import org.ethereum.core.Genesis; import org.ethereum.facade.Blockchain; import org.ethereum.manager.WorldManager; import org.junit.After...
mit
lriki/Lumino.Core
src/IO/Process_UNIX.h
5736
#include "../Internal.h" #include <sys/types.h> #include <sys/wait.h> #include <Lumino/Base/ElapsedTimer.h> #include <Lumino/IO/Process.h> #if defined(LN_OS_MAC) #include <crt_externs.h> #define environ (*_NSGetEnviron()) #else extern char **environ; #endif LN_NAMESPACE_BEGIN namespace detail { //================...
mit
ivandevp/villatec-js
css/main.css
272
.left { left: -8.33%; text-align: left; float: left; width: 50%; z-index: -10; } .right { left: 31.25%; top: 75px; float: right; text-align: right; z-index: -10; width: 50% } .img-center { background-position: center; background-size: cover; width: 100%; }
mit
CslaGenFork/CslaGenFork
trunk/CoverageTest/Plain/Plain-WIN-VB/DocStore.Business/DocType.Designer.vb
23207
' This file was generated by CSLA Object Generator - CslaGenFork v4.5 ' ' Filename: DocType ' ObjectType: DocType ' CSLAType: EditableRoot Imports System Imports System.Data Imports System.Data.SqlClient Imports Csla Imports Csla.Data Imports DocStore.Business.Util Imports Csla.Rules Imports Csla....
mit
lukaspustina/Evernote.lbaction
CHANGELOG.md
536
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] ## [0.2.1] - 2018-07-02 ### Fixed - Fix #12: Open on...
mit
DobrinAlexandru/Wabbit-Messenger---android-client
Wabbit/src/com/wabbit/libraries/Installation.java
1373
package com.wabbit.libraries; import android.content.Context; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.RandomAccessFile; import java.util.UUID; public class Installation { private static String sID = null; private static final String INSTALLATION = "INS...
mit
loschke/sevenx-wordpress-blank
single.php
626
<?php get_header(); ?> <main role="main" class="main-content"> <!-- section --> <section> <?php if (have_posts()): while (have_posts()) : the_post(); ?> <h1><?php the_title();?></h1> <?php get_template_part( 'template-parts/content', 'single' );?> <span><...
mit
axclogo/AxcMapLocationEngine
Demo/AxcMapLocationEngine/AxcMapLocationEngine_SDK/MapEngine/FMMapKit/Release-iphoneos/include/FMMapKit/FMKImageLayer.h
1194
// // FMKImageMarkerLayer.h // FMMapKit // // Created by FengMap on 15/6/2. // Copyright (c) 2015年 FengMap. All rights reserved. // #import "FMKLayer.h" @class FMKImageMarker; /** 自定义图层 地图图片标注层节点,用于添加地图的图片标注 同一楼层可添加多个图片层 使用"addLayer:" 获取方式 FMKMap getImageLayerByGroupID: */ @interface FMKImageLayer : FMKLaye...
mit
dangkhoasdc/dangkhoasdc.github.io
post/review_good_will_hunting/index.html
19056
<!DOCTYPE html> <html lang="en-us"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="theme" content="hugo-academic"> <meta name="generator" content="Hugo 0.36.1" /> <meta name="author" conten...
mit
Siv3D/OpenSiv3D
Siv3D/include/Siv3D/VertexShaderAssetData.hpp
1971
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2022 Ryo Suzuki // Copyright (c) 2016-2022 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include "Common.hpp" # include...
mit
nazar/MediaCMS
test/unit/server_task_test.rb
204
require File.dirname(__FILE__) + '/../test_helper' class ServerTaskTest < Test::Unit::TestCase fixtures :server_tasks # Replace this with your real tests. def test_truth assert true end end
mit
hedi103/projet-decision-commerciale
src/Project/Bundle/AceThemeBundle/Resources/public/css/themes/default/assets/advanced-datatable/media/unit_testing/tests_onhold/1_dom/5396-fnUpdate-arrays-mData.js
2746
// DATA_TEMPLATE: empty_table oTest.fnStart("5396 - fnUpdate with 2D arrays for a single row"); $(document).ready(function () { $('#example thead tr').append('<th>6</th>'); $('#example thead tr').append('<th>7</th>'); $('#example thead tr').append('<th>8</th>'); $('#example thead tr').append('<th>9</th...
mit
mrswoop/BubbleSort2DArrayRange
BubbleSort2D/src/BubbleSort2D/person.java
253
package BubbleSort2D; public class person { String name; int age; boolean sortme = false; public person(String n, int a) { name = n; age = a; } public String toString(){ return name + " " + Integer.toString(age); } }
mit
mikity-mikity/Mothra2
Mothra/Numerics.cs
9553
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ShoNS.Array; using Rhino.Geometry; namespace mikity.ghComponents { public partial class Mothra2 : Grasshopper.Kernel.GH_Component { private DoubleArray[] baseFunction; priva...
mit
garfix/nli-go
doc/manual/system-developer/processing.md
9510
# Processing Processing a request consists of these phases: * Dialog Context: check if the input is just an answer to a question by the system * Tokenization: from raw text to a string of tokens * Parsing: from tokens to parse tree with attached generic relations * Relationizer: combine the relations to a single set ...
mit
magik6k/OCWeb
vm/bios.lua
4782
JSON = JSON[0] local function checkArg(n, have, ...) have = type(have) local function check(want, ...) if not want then return false else return have == want or check(...) end end if not check(...) then local msg = string.format("bad argument #%d (%s expected, got %s)", ...
mit
haefele/Mileage
src/03 Server/Mileage.Server.Infrastructure/Commands/Mileage/ResetIndexesCommandHandler.cs
1966
using System.ComponentModel.Composition.Hosting; using System.Threading.Tasks; using LiteGuard; using Mileage.Server.Contracts.Commands; using Mileage.Server.Contracts.Commands.Mileage; using Mileage.Shared.Results; using Raven.Client; using Raven.Client.Indexes; namespace Mileage.Server.Infrastructure.Commands.Milea...
mit
Jezfx/rocket-theme
site assets/plugins/smart-grid-gallery/includes/lightboxes/tosrus/js/media/jquery.tosrus.html.min.js
462
/* * jQuery Touch Optimized Sliders "R"Us * HTML media * * Copyright (c) Fred Heusschen * www.frebsite.nl */ !function(i){var n="tosrus",e="html";i[n].media[e]={filterAnchors:function(n){return"#"==n.slice(0,1)&&i(n).is("div")},initAnchors:function(e,t){i('<div class="'+i[n]._c("html")+'" />').append(i(t)).appen...
mit
knook/knook-mailer
index.js
396
/** * Knook-mailer * https://github.com/knook/knook.git * Auhtors: Alexandre Lagrange-Cetto, Olivier Graziano, Olivier Marin * Created on 15/04/2016. * version 0.1.0 */ 'use strict'; module.exports = { Accounts: require('./src/Accounts'), Email: require('./src/Email'), Init: require('./src/Init'), ...
mit
ZhipingYang/FORScrollViewEmptyAssistant
Example/Pods/FORGestureTrackDisplay/FORGestureTrackDisplay/FORGestureTrack.h
263
// // FORGestureTrack.h // FORGestureTrackDisplayDemo // // Created by Daniel on 31/05/2017. // Copyright © 2017 Daniel. All rights reserved. // #import "FORTrackGesture.h" @interface UIWindow (tracking) - (void)startTracking; - (void)endTracking; @end
mit
sfstarter/SfsAdminBundle
Tests/Fixtures/TestBundle/Admin/PageAdmin.php
587
<?php namespace Sfs\AdminBundle\Tests\Fixtures\TestBundle\Admin; use Sfs\AdminBundle\Controller\AdminController; use Sfs\AdminBundle\Tests\Fixtures\TestBundle\Admin\Form\Type\PageType; class PageAdmin extends AdminController { protected $resourceName = "Page"; public function setListFields() { return array( ...
mit
mmonkey/Automator
src/main/java/com/github/mmonkey/Automator/Migrations/MigrationRunner.java
701
package com.github.mmonkey.Automator.Migrations; import com.github.mmonkey.Automator.Automator; public abstract class MigrationRunner { protected Automator plugin; protected int version; protected int latest = 0; public void run() { while (this.version != this.latest) { Migratio...
mit
Hem/SimpleNet
SimpleNet.ServiceHost/Behaviors/ErrorHandler.cs
1174
using System; using System.Diagnostics; using System.ServiceModel.Channels; using System.ServiceModel.Dispatcher; namespace SimpleNet.ServiceHost.Behaviors { public class ErrorHandler : IErrorHandler { // Provide a fault. The Message fault parameter can be replaced, or set to // null...
mit
Lavinski/Enexure.MicroBus
src/Enexure.MicroBus.MessageContracts/IQuery.cs
203
namespace Enexure.MicroBus { public interface IQuery<in TQuery, out TResult> : IQuery, IMessage where TQuery : IQuery<TQuery, TResult> { } public interface IQuery { } }
mit
whence/powerlife
scala/powercards_actor/core/Card.scala
542
package core trait Card { def name: String def cost: Int } trait Actionable { } trait Treasurable { def coin: Int } trait Victoriable { def vp: Int } object Estate extends Card with Victoriable { val name = "Estate" val cost = 2 val vp = 1 } object Copper extends Card with Treasurable { val name =...
mit
mijra/georgiankeyboard.com
data.js
8583
module.exports = { KeyQ: { printable: true, keyCode: 81, Default: 'ქ', Shift: '', CapsLock: 'Ⴕ', Shift_CapsLock: '', Alt: '', Alt_Shift: '' }, KeyW: { printable: true, keyCode: 87, Default: 'წ', Shift: 'ჭ', CapsLock: 'Ⴜ', Shift_CapsLock: 'Ⴝ', Alt: '∑', ...
mit
tarlepp/symfony-flex-backend
tests/Integration/Rest/Traits/Methods/src/UpdateMethodTestClass.php
899
<?php declare(strict_types = 1); /** * /tests/Integration/Rest/Traits/Methods/UpdateMethodTestClass.php * * @author TLe, Tarmo Leppänen <tarmo.leppanen@pinja.com> */ namespace App\Tests\Integration\Rest\Traits\Methods\src; use App\Rest\Controller; use App\Rest\Interfaces\ResponseHandlerInterface; use App\Rest\Int...
mit
rdkmaster/jigsaw
src/app/demo/pc/steps/events/demo.component.html
949
<!-- ignore the following lines, they are not important to this demo --> <jigsaw-demo-description [summary]="summary" [content]="description"> </jigsaw-demo-description> <!-- start to learn the demo from here --> <jigsaw-header [level]="2">演示步骤条的添加和删除节点的方法</jigsaw-header> <jigsaw-steps #jigsawSteps class="steps" [data...
mit
kmlsz/sketchclub
styles/components/_post.css
446
.post { lost-column: 1/1 0 0; margin-top: 124px; padding: 40px 50px 0; @media (--tablet) { padding-left: 35px; padding-right: 35px; } @media (--desktop) { padding-left: 20px; padding-right: 20px; } &-container { lost-center: 980px; lost-align: center; text-align: center; ...
mit
asposemarketplace/Aspose-Words-Java
src/loadingandsaving/loadingandsavinghtml/splitintohtmlpages/java/Topic.java
791
/* * Copyright 2001-2014 Aspose Pty Ltd. All Rights Reserved. * * This file is part of Aspose.Words. The source code in this file * is only intended as a supplement to the documentation, and is provided * "as is", without warranty of any kind, either expressed or implied. */ package loadingandsaving.loadi...
mit
mrhenry/lalala-ng
lib/generators/lalala/page/templates/page.rb
346
class <%= class_name %> < ApplicationPage # self.route = nil # slug # self.allow_create = true # self.allow_destroy = true # self.minimum_children = nil # self.minimum_children = nil # self.allowed_children = [] # form do |f| # f.inputs # f.buttons # end # def static_child...
mit
archimatetool/archi
org.opengroup.archimate.xmlexchange/src/org/opengroup/archimate/xmlexchange/XMLModelParserException.java
597
/** * This program and the accompanying materials * are made available under the terms of the License * which accompanies this distribution in the file LICENSE.txt */ package org.opengroup.archimate.xmlexchange; /** * XML Exception * * @author Phillip Beauvoir */ public class XMLModelParserException extends E...
mit
wxIshiko/wxCharts
include/wx/charts/wxmath2dplotctrl.h
3792
/* Copyright (c) 2016-2019 Xavier Leclercq and the wxCharts contributors 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 r...
mit
innni/hypela
js/simulation/boid.js
7239
window.Boid = (function(){ function Boid(x, y, settings){ this.location = new Vector(x, y); this.acceleration = new Vector(0, 0); this.velocity = new Vector(Helper.getRandomInt(-1,1), Helper.getRandomInt(-1,1)); this.settings = settings || {}; this.show_connections = settings.show_connections || true;...
mit
MKA-Nigeria/MKAN-Report-Android
mkan_report_app/src/main/java/com/aliumujib/majlis/mkan_report_app/addnew/fragments/SihateJismaniPart2.java
1164
package com.aliumujib.majlis.mkan_report_app.addnew.fragments; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.aliumujib.majlis.mkan_report_app.R; import com.stepstone.stepper.VerificationError; public class SihateJismaniPart2 extends ...
mit
WellCommerce/LocaleBundle
Copier/LocaleCopier.php
3103
<?php /* * WellCommerce Open-Source E-Commerce Platform * * This file is part of the WellCommerce package. * * (c) Adam Piotrowski <adam@wellcommerce.org> * * For the full copyright and license information, * please view the LICENSE file that was distributed with this source code. */ namespace WellCommerce\...
mit
mktange/FFXIV-BattleSimulator
src/engine/DrawingUtils.ts
704
/// <reference path="vector2d.ts" /> function fillCircle(x: number, y: number, radius: number, color: string) { context.beginPath(); context.arc(x, y, radius, 0, Math.PI * 2); context.fillStyle = color; context.fill(); } function fillCircleWithFace(context: CanvasRenderingContext2D, x: number, y: number, rad...
mit
threax/EdityMcEditface
EdityMcEditface.Mvc/Config/SiteBuilderEventArgs.cs
517
using EdityMcEditface.HtmlRenderer.SiteBuilder; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace EdityMcEditface.Mvc.Config { public class SiteBuilderEventArgs { /// <summary> /// The site builder to customize. /// </summary> ...
mit
jjhesk/slideSelectionList
SmartSelectionList/hbsdk/src/main/java/com/hypebeast/sdk/api/model/hypebeaststore/ReponseNormal.java
438
package com.hypebeast.sdk.api.model.hypebeaststore; import com.google.gson.annotations.SerializedName; import com.hypebeast.sdk.api.model.Alternative; import com.hypebeast.sdk.api.model.symfony.taxonomy; /** * Created by hesk on 7/1/2015. */ public class ReponseNormal extends Alternative { @SerializedName("prod...
mit
ngageoint/geopackage-ios
geopackage-iosTests/extension/nga/properties/GPKGPropertiesExtensionTest.h
274
// // GPKGPropertiesExtensionTest.h // geopackage-iosTests // // Created by Brian Osborn on 7/24/18. // Copyright © 2018 NGA. All rights reserved. // #import "GPKGCreateGeoPackageTestCase.h" @interface GPKGPropertiesExtensionTest : GPKGCreateGeoPackageTestCase @end
mit
Azure/azure-sdk-for-ruby
management/azure_mgmt_network/lib/2018-06-01/generated/azure_mgmt_network/security_rules.rb
30357
# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::Network::Mgmt::V2018_06_01 # # SecurityRules # class SecurityRules include MsRestAzure # # Creates and initializes a new ...
mit
alphagov/ier-frontend
app/uk/gov/gds/ier/transaction/forces/confirmation/ConfirmationMustache.scala
17239
package uk.gov.gds.ier.transaction.forces.confirmation import uk.gov.gds.ier.mustache.{MustacheData, StepMustache} import uk.gov.gds.ier.model.{HasAddressOption, WaysToVoteType, MovedHouseOption} import uk.gov.gds.ier.validation.constants.{NationalityConstants, DateOfBirthConstants} import uk.gov.gds.ier.logging.Loggi...
mit
efbey13/student-fund-me-app
app/other assets/index.html
8954
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf...
mit
gdewald/Sputter
jni/external/sdl/src/audio/arts/SDL_artsaudio.c
11070
/* Simple DirectMedia Layer Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this ...
mit
mozamimy/nymphia
lib/nymphia/cli.rb
1155
require 'nymphia' require 'optparse' require 'pathname' module Nymphia class CLI def self.start(argv) new(argv).run end def initialize(argv) @argv = argv.dup parser.parse!(@argv) end def run validate_args! dsl_code_file = File.open(@file_path) absolute_dsl_f...
mit
Azure/azure-sdk-for-java
sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java
875
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.containerservice.generated; import com.azure.core.util.Context; /** Samples for ManagedClusters List. */ public final class Man...
mit
Azure/azure-sdk-for-java
sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ProximityPlacementGroupListResult.java
2679
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.compute.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.azure.resou...
mit
GunnerJnr/_CodeInstitute
Stream-2/Back-End-Development/18.Using-Python-with-MySQL-Part-Three-Intro/3.How-to-Build-an-Update-SQL-String/database/mysql.py
7289
import MySQLdb as _mysql from collections import namedtuple import re # Only needs to compile one time so we put it here float_match = re.compile(r'[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?$').match def is_number(string): return bool(float_match(string)) class MySQLDatabase(object): """ This is the driver class ...
mit
FiveTimesTheFun/corefx
src/System.Collections.Concurrent/tests/ConcurrentDictionaryTests.cs
37935
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections; using System.Collections.Concurrent; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; usi...
mit
jonesd/st2x
src/main/java/info/dgjones/st2x/transform/method/intra/TransformCreateCall.java
2846
/** * The MIT License * Copyright (c) 2003 David G Jones * * 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, ...
mit
py-in-the-sky/challenges
codility/equi_leader.py
707
""" https://codility.com/programmers/task/equi_leader/ """ from collections import Counter, defaultdict def solution(A): def _is_equi_leader(i): prefix_count_top = running_counts[top] suffix_count_top = total_counts[top] - prefix_count_top return (prefix_count_top * 2 > i + 1) and (suffi...
mit
blue20080/blue20080.github.io
life/2013-07-19-Beijing-Rent.md
7071
--- layout: post title: "北京租房记事一二" date: 2013-07-19 11:48:43 tags: - 生活 --- &emsp;&emsp;有时候有些恍惚,仿佛一下回到三年前,那时我住黄港村,那地方让你看不出是北京。我和一个朋友兼同事合租着一个不足十平米的小单间,租金很便宜,坐公交到公司一个小时左右。附近没什么大型超市,多是加盖的小楼房,有几家小卖铺,小餐馆,小菜店,到了过年,这些可以消费的地方都关了门。当然,在当时没觉得有多惨。 &emsp;&emsp;上班坐的公交是693,现在还记得很清楚。大约7点左右出门,7:30到公交站,旁边有一位卖煎饼果子的阿姨,买一个煎饼,然后上车出发。生活很...
mit
dubzzz/Py2Cpp
examples/Makefile
454
all: build build: 01-primitives_to_cpp 02-to_cpp_containers 03-to_cpp_classes 01-primitives_to_cpp: make -C 01-primitives_to_cpp 02-to_cpp_containers: make -C 02-to_cpp_containers 03-to_cpp_classes: make -C 03-to_cpp_classes test: make test -C 01-primitives_to_cpp make test -C 02-to_cpp_containers make test -...
mit
Shark/powerdns-consul
backend/soa/generator.go
3613
package soa import ( "encoding/json" "fmt" "strconv" "time" "github.com/Shark/powerdns-consul/backend/store" ) type soaEntry struct { NameServer string EmailAddr string Sn uint32 Refresh int32 Retry int32 Expiry int32 Nx int32 } type soaRevision struct { SnModifyIndex uint6...
mit
10Dimensional/soundcloud-visualizer
README.md
3577
# Soundcloud Visualizer This is an experiment in using the web audio API together with canvas to make some interesting and cool-looking visualizations. Since this is my first foray into the world of both canvas and web audio, I have slowly iterated over a number of ideas and trials which are all in the `/tests` folde...
mit
Angrypotato0/RayTraycerDE
source/CTestTestfile.cmake
414
# CMake generated Testfile for # Source directory: /home/elyas/RayTracerDE # Build directory: /home/elyas/RayTracerDE/source # # This file includes the relevant testing commands required for # testing this directory and lists subdirectories to be tested as well. add_test(tests "/home/elyas/RayTracerDE/source/build/R...
mit
bouzuya/blog.bouzuya.net
data/2012/12/2012-12-02-do-nothing.md
251
今日は1日部屋に居た。ぼんやりしていた。このところは平気で1日ぼんやりできるから困る。ぼくみたく朝から晩まで動かない動物が居たら、動物園で人気にはならないだろうな。 2 min.
mit
djkoloski/pb
Assets/Pb/TileMap/ChunkRenderer.cs
932
using UnityEngine; using System.Collections; using System.Collections.Generic; namespace Pb.TileMap { /// <summary> /// Base class for chunk renderers /// </summary> [System.Serializable] public class ChunkRenderer : ScriptableObject { /// <summary> /// Renders a chunk with a tile map controller, chunk, an...
mit
cartoon-battle/cartoon-battle.github.io
cards.html
1758
--- title: Cards weight: 8 --- <p class="alert alert-info"> <a href="#usage">Did you know you can embed those cards on your site? (click to see how!)</a> </p> <hr> <style type="text/css">cb-card { font-size: 27%; float: left } #results { margin-top: 2em; }</style> <div id="cards" class=row></div> <script type="tex...
mit
dianedouglas/CD-Organizer
lib/cd.rb
897
class Cd @@all_Cds = {} attr_accessor :name, :artist def initialize(attributes) @name = attributes[:album_name] @artist = attributes[:artist_name] end def self.all output_Cds = [] @@all_Cds.each_value do |album| output_Cds << album end output_Cds end def save @@all_...
mit
caseywatson/Mantle
v0/Mantle/Mantle.Hosting.WindowsServices/Properties/AssemblyInfo.cs
1436
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("Ma...
mit
jameseunson/twitchy-backend
app/controllers/api/code_controller.rb
470
class Api::CodeController < Api::BaseController def create @code = Code.new @code.save end def status @success = false if !params.has_key?(:id) || !params.has_key?(:hash) return end hash = Digest::SHA1.hexdigest "#{params[:id]}#{Rails.application.secrets.twitch_client_secret}" puts hash if ...
mit
LeeCIT/FallApp
FallApp/src/ie/lc/fallApp/ActivityFallHeight.java
5073
package ie.lc.fallApp; import java.text.DecimalFormat; import android.os.Bundle; import android.app.Activity; import android.content.Intent; import android.text.Editable; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.*; public class Activity...
mit
dvberkel/rails.girls.utrecht.2015
js/heart.js
4014
/*global window*/ (function($){ 'use strict'; var Observable = function(){ this.observers = {}; }; Observable.prototype.on = function(event, observer){ (this.observers[event] = this.observers[event] || []).push(observer); }; Observable.prototype.emit = function(event){ v...
mit
troccoli/lva
database/seeders/DatabaseSeeder.php
653
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { public function run(): void { $this->call(SeasonsTableSeeder::class); $this->call(CompetitionsTableSeeder::class); $this->call(DivisionsTableSeeder::class); $this->call(Ven...
mit
coq-bench/coq-bench.github.io-old
clean/Linux-x86_64-4.01.0-1.2.0/unstable/8.4.5/contrib:automata/8.4.dev/2014-11-21_18-05-12.html
14139
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Coq bench</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet...
mit
jintoppy/react-training
step9-redux/node_modules/lodash-es/parseInt.js
1161
import root from './_root.js'; import toString from './toString.js'; /* Built-in method references for those with the same name as other `lodash` methods. */ var nativeParseInt = root.parseInt; /** * Converts `string` to an integer of the specified radix. If `radix` is * `undefined` or `0`, a `radix` of `10` is use...
mit
cuckata23/wurfl-data
data/htc_sensation_ver1.php
1299
<?php return array ( 'id' => 'htc_sensation_ver1', 'fallback' => 'htc_pyramid_ver1', 'capabilities' => array ( 'uaprof' => 'http://www.htcmms.com.tw/Android/Common/PG58/ua-profile.xml', 'model_name' => 'Z710', 'brand_name' => 'HTC', 'marketing_name' => 'Sensation', 'release_date' => '2011_j...
mit
dkubb/axiom-optimizer
lib/axiom/optimizer/aggregate/maximum.rb
350
# encoding: utf-8 module Axiom class Optimizer class Aggregate # Abstract base class representing Maximum optimizations class Maximum < self Axiom::Aggregate::Maximum.optimizer = chain( UnoptimizedOperand ) end # class Maximum end # class Aggregate end # class...
mit
atd/cartodb.js
test/setup/setup.js
855
import $ from 'jquery'; module.exports = function(root) { root = root ? root : global; root.expect = root.chai.expect; root.$ = $; beforeEach(() => { // Using these globally-available Sinon features is preferrable, as they're // automatically restored for you in the subsequent `afterEach` root.san...
mit
gxcsoccer/unit-test-demo
README.md
182
unit-test-demo ============== [![Build Status](https://travis-ci.org/gxcsoccer/unit-test-demo.png?branch=master)](https://travis-ci.org/gxcsoccer/unit-test-demo) A Unit Test Demo
mit
nikhilrajaram/nikhilrajaram.github.io
instructors/Thuy_Phuc_Huynh.md
1062
--- layout: page title: "Thuy Phuc Huynh" comments: true description: "blanks" keywords: "Thuy Phuc Huynh,CU,Boulder" --- <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script> <!-- <...
mit
Spardevil/angular-crm
server/server/services/auth.service.js
184
const mongoose = require('mongoose'); const UserModel = mongoose.model('User'); module.exports = { login: (email, password) => { return UserModel.findOne({email, password}); } };
mit
renatorp/SeriesMonitor
src/series_monitor.rb
1278
# encoding: utf-8 require 'rubygems' require 'file_manager' class SeriesMonitor DEFAULT_INTERVAL = 7200 attr_accessor :interval attr_accessor :notification_callback def initialize(parser) @parser = parser end def call_notification_callback(message, link = nil) if notification_callback notification_ca...
mit
modulr/modulr
api/api/services/LogService.js
1506
module.exports = { login: function(user, req) { // Parse detailed information from user-agent string var r = require('ua-parser').parse(req.headers['user-agent']); // Create new UserLogin row to database sails.models.loglogin.create({ ip: req.ip, host: req.host, agent: req.headers...
mit
janakagithub/taxonomy_service
lib/taxonomy_service/taxonomy_serviceClient.pm
39662
package taxonomy_service::taxonomy_serviceClient; use JSON::RPC::Client; use POSIX; use strict; use Data::Dumper; use URI; use Bio::KBase::Exceptions; my $get_time = sub { time, 0 }; eval { require Time::HiRes; $get_time = sub { Time::HiRes::gettimeofday() }; }; use Bio::KBase::AuthToken; # Client version sh...
mit
maximusvladimir/randomfinder
src/com/maximusvladimir/randomfinder/Test.java
3649
package com.maximusvladimir.randomfinder; import java.awt.Cursor; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JTex...
mit
dhruv4/capitalgains
README.md
72595
![](https://lh4.googleusercontent.com/-PVw-ZUM9vV8/UuWeH51os0I/AAAAAAAAD6M/0Ikg7viJftQ/w1286-h566-no/hackathon-starter-logo.jpg) Hackathon Starter [![Dependency Status](https://david-dm.org/sahat/hackathon-starter/status.svg?style=flat)](https://david-dm.org/sahat/hackathon-starter) [![Build Status](https://travis-ci.o...
mit