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 |
|---|---|---|---|---|---|
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... | nmklotas/BuildHelper | BuildHelper/UI/Data/BuildConfigurationDataSource.cs | C# | mit | 932 |
<section data-ng-controller="AngularController">
<h2>This is angular YO</h2>
</section> | rs6g10/portfolio | public/modules/angular/angular.client.view.html | HTML | mit | 88 |
/**
* Created by yangge on 1/29/2016.
*/
public class EggPlant extends Veggies {
}
| eroicaleo/DesignPatterns | HeadFirst/ch04/PizzaStoreAbstractFactory/EggPlant.java | Java | mit | 85 |
/**
* 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/... | mnaughto/sails | lib/hooks/session/index.js | JavaScript | mit | 14,850 |
//
// 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... | jjenki11/blaze-chem-rendering | qca_designer/lib/ml-pnet-0.8.1/mcs-sources/class/System.Security/System.Security.Cryptography.X509Certificates/StoreLocation.cs | C# | mit | 1,531 |
\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... | stevenblaster/crapengine | doc/latex/resourcesplugin_8cpp.tex | TeX | mit | 2,002 |
<!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"> </div>
<... | detienne11/imie | flights/maquettes/flights.html | HTML | mit | 2,585 |
function showErrorMessage(errorMessage) {
$("#authorize-prompt")
.addClass("error-prompt")
.removeClass("success-prompt")
.html(errorMessage);
}
function showSuccessMessage(message) {
$("#authorize-prompt")
.removeClass("error-prompt")
.addClass("success-prompt")
... | AndrewMontagne/alliance-auth | static/js/authorize.js | JavaScript | mit | 1,462 |
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 ... | xaxa89/mitmproxy | mitmproxy/tools/console/overlay.py | Python | mit | 3,855 |
/*
* 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... | aerialls/Turtle | src/turtle/gui/panel/TeamBehaviorPanel.java | Java | mit | 2,309 |
# [Clickbait Challenge 2017](http://www.clickbait-challenge.org/)
### Important Dates:
| Date | event |
| ------------------------ | ------------------------------ |
| March 31, 2017 | Registration begins. |
| March 31, 2017 | Release of train... | v-chuqin/Language-Psychology | Clickbait/Data-sets/Clickbait-Challenge.md | Markdown | mit | 2,366 |
module.exports = [
'M6 2 L26 2 L26 30',
'L16 24 L6 30 Z'
].join(' ');
| zaccolley/songkick.pink | src/components/Icon/svg/bookmark.js | JavaScript | mit | 75 |
class PluginSerializer < ActiveModel::Serializer
attributes :name
attribute :plugin_attributes, key: :attributes
end
| degica/barcelona | app/serializers/plugin_serializer.rb | Ruby | mit | 121 |
// 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... | koharjidan/litecoin | src/test/key_tests.cpp | C++ | mit | 9,233 |
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);
}
| erikmr/Java-Api-Rest | src/main/java/platzi/app/InstructorRepository.java | Java | mit | 250 |
<!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... | skounis/ionic-stage | stage/e20/index.html | HTML | mit | 3,851 |
/*===
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) {
... | JoshEngebretson/duktape | api-testcases/test-require-buffer.c | C | mit | 2,133 |
# SonarQube Companion
SonarQube Companion application for Scrum teams.
[](https://travis-ci.org/Consdata/sonarqube-companion)
## Building
```bash
$ ./mvnw clean package
```
### Running builded artifact
```bash
$ java -jar sonarqu... | Consdata/sonarqube-companion | README.md | Markdown | mit | 5,145 |
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')... | tapichu/highway-maps | project/settings.py | Python | mit | 3,183 |
<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... | dexternidia/redcomand | app/home/views/consultas/index.php | PHP | mit | 6,788 |
#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);
}
| mgalushka/cpp-start | linux/echo.c | C | mit | 314 |
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... | longbai/happy-dns-android | library/src/main/java/com/qiniu/android/dns/http/DnspodFree.java | Java | mit | 1,751 |
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... | swaldman/ethereumj | ethereumj-core/src/test/java/test/ethereum/core/BlockTest.java | Java | mit | 10,826 |
#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 {
//================... | lriki/Lumino.Core | src/IO/Process_UNIX.h | C | mit | 5,736 |
.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%;
} | ivandevp/villatec-js | css/main.css | CSS | mit | 272 |
' 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.... | CslaGenFork/CslaGenFork | trunk/CoverageTest/Plain/Plain-WIN-VB/DocStore.Business/DocType.Designer.vb | Visual Basic | mit | 23,207 |
# 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... | lukaspustina/Evernote.lbaction | CHANGELOG.md | Markdown | mit | 536 |
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... | DobrinAlexandru/Wabbit-Messenger---android-client | Wabbit/src/com/wabbit/libraries/Installation.java | Java | mit | 1,373 |
<?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><... | loschke/sevenx-wordpress-blank | single.php | PHP | mit | 626 |
//
// 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... | axclogo/AxcMapLocationEngine | Demo/AxcMapLocationEngine/AxcMapLocationEngine_SDK/MapEngine/FMMapKit/Release-iphoneos/include/FMMapKit/FMKImageLayer.h | C | mit | 1,194 |
<!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... | dangkhoasdc/dangkhoasdc.github.io | post/review_good_will_hunting/index.html | HTML | mit | 19,056 |
//-----------------------------------------------
//
// 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... | Siv3D/OpenSiv3D | Siv3D/include/Siv3D/VertexShaderAssetData.hpp | C++ | mit | 1,971 |
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
| nazar/MediaCMS | test/unit/server_task_test.rb | Ruby | mit | 204 |
// 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... | 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 | JavaScript | mit | 2,746 |
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);
}
} | mrswoop/BubbleSort2DArrayRange | BubbleSort2D/src/BubbleSort2D/person.java | Java | mit | 253 |
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... | mikity-mikity/Mothra2 | Mothra/Numerics.cs | C# | mit | 9,553 |
# 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 ... | garfix/nli-go | doc/manual/system-developer/processing.md | Markdown | mit | 9,510 |
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)",
... | magik6k/OCWeb | vm/bios.lua | Lua | mit | 4,782 |
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... | haefele/Mileage | src/03 Server/Mileage.Server.Infrastructure/Commands/Mileage/ResetIndexesCommandHandler.cs | C# | mit | 1,966 |
/*
* 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... | Jezfx/rocket-theme | site assets/plugins/smart-grid-gallery/includes/lightboxes/tosrus/js/media/jquery.tosrus.html.min.js | JavaScript | mit | 462 |
/**
* 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'),
... | knook/knook-mailer | index.js | JavaScript | mit | 396 |
//
// 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
| ZhipingYang/FORScrollViewEmptyAssistant | Example/Pods/FORGestureTrackDisplay/FORGestureTrackDisplay/FORGestureTrack.h | C | mit | 263 |
<?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(
... | sfstarter/SfsAdminBundle | Tests/Fixtures/TestBundle/Admin/PageAdmin.php | PHP | mit | 587 |
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... | mmonkey/Automator | src/main/java/com/github/mmonkey/Automator/Migrations/MigrationRunner.java | Java | mit | 701 |
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... | Hem/SimpleNet | SimpleNet.ServiceHost/Behaviors/ErrorHandler.cs | C# | mit | 1,174 |
namespace Enexure.MicroBus
{
public interface IQuery<in TQuery, out TResult> : IQuery, IMessage
where TQuery : IQuery<TQuery, TResult>
{
}
public interface IQuery
{
}
} | Lavinski/Enexure.MicroBus | src/Enexure.MicroBus.MessageContracts/IQuery.cs | C# | mit | 203 |
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 =... | whence/powerlife | scala/powercards_actor/core/Card.scala | Scala | mit | 542 |
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: '∑',
... | mijra/georgiankeyboard.com | data.js | JavaScript | mit | 8,583 |
<?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... | tarlepp/symfony-flex-backend | tests/Integration/Rest/Traits/Methods/src/UpdateMethodTestClass.php | PHP | mit | 899 |
<!-- 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... | rdkmaster/jigsaw | src/app/demo/pc/steps/events/demo.component.html | HTML | mit | 949 |
.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;
... | kmlsz/sketchclub | styles/components/_post.css | CSS | mit | 446 |
/*
* 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... | asposemarketplace/Aspose-Words-Java | src/loadingandsaving/loadingandsavinghtml/splitintohtmlpages/java/Topic.java | Java | mit | 791 |
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... | mrhenry/lalala-ng | lib/generators/lalala/page/templates/page.rb | Ruby | mit | 346 |
/**
* 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... | archimatetool/archi | org.opengroup.archimate.xmlexchange/src/org/opengroup/archimate/xmlexchange/XMLModelParserException.java | Java | mit | 597 |
/*
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... | wxIshiko/wxCharts | include/wx/charts/wxmath2dplotctrl.h | C | mit | 3,792 |
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;... | innni/hypela | js/simulation/boid.js | JavaScript | mit | 7,239 |
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 ... | MKA-Nigeria/MKAN-Report-Android | mkan_report_app/src/main/java/com/aliumujib/majlis/mkan_report_app/addnew/fragments/SihateJismaniPart2.java | Java | mit | 1,164 |
<?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\... | WellCommerce/LocaleBundle | Copier/LocaleCopier.php | PHP | mit | 3,103 |
/// <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... | mktange/FFXIV-BattleSimulator | src/engine/DrawingUtils.ts | TypeScript | mit | 704 |
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>
... | threax/EdityMcEditface | EdityMcEditface.Mvc/Config/SiteBuilderEventArgs.cs | C# | mit | 517 |
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... | jjhesk/slideSelectionList | SmartSelectionList/hbsdk/src/main/java/com/hypebeast/sdk/api/model/hypebeaststore/ReponseNormal.java | Java | mit | 438 |
//
// 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
| ngageoint/geopackage-ios | geopackage-iosTests/extension/nga/properties/GPKGPropertiesExtensionTest.h | C | mit | 274 |
# 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 ... | Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2018-06-01/generated/azure_mgmt_network/security_rules.rb | Ruby | mit | 30,357 |
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... | alphagov/ier-frontend | app/uk/gov/gds/ier/transaction/forces/confirmation/ConfirmationMustache.scala | Scala | mit | 17,239 |
<!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... | efbey13/student-fund-me-app | app/other assets/index.html | HTML | mit | 8,954 |
/*
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 ... | gdewald/Sputter | jni/external/sdl/src/audio/arts/SDL_artsaudio.c | C | mit | 11,070 |
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... | mozamimy/nymphia | lib/nymphia/cli.rb | Ruby | mit | 1,155 |
// 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... | Azure/azure-sdk-for-java | sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java | Java | mit | 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.compute.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resou... | Azure/azure-sdk-for-java | sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/ProximityPlacementGroupListResult.java | Java | mit | 2,679 |
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 ... | 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 | Python | mit | 7,289 |
// 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... | FiveTimesTheFun/corefx | src/System.Collections.Concurrent/tests/ConcurrentDictionaryTests.cs | C# | mit | 37,935 |
/**
* 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, ... | jonesd/st2x | src/main/java/info/dgjones/st2x/transform/method/intra/TransformCreateCall.java | Java | mit | 2,846 |
"""
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... | py-in-the-sky/challenges | codility/equi_leader.py | Python | mit | 707 |
---
layout: post
title: "北京租房记事一二"
date: 2013-07-19 11:48:43
tags:
- 生活
---
  有时候有些恍惚,仿佛一下回到三年前,那时我住黄港村,那地方让你看不出是北京。我和一个朋友兼同事合租着一个不足十平米的小单间,租金很便宜,坐公交到公司一个小时左右。附近没什么大型超市,多是加盖的小楼房,有几家小卖铺,小餐馆,小菜店,到了过年,这些可以消费的地方都关了门。当然,在当时没觉得有多惨。
  上班坐的公交是693,现在还记得很清楚。大约7点左右出门,7:30到公交站,旁边有一位卖煎饼果子的阿姨,买一个煎饼,然后上车出发。生活很... | blue20080/blue20080.github.io | life/2013-07-19-Beijing-Rent.md | Markdown | mit | 7,071 |
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 -... | dubzzz/Py2Cpp | examples/Makefile | Makefile | mit | 454 |
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... | Shark/powerdns-consul | backend/soa/generator.go | GO | mit | 3,613 |
# 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... | 10Dimensional/soundcloud-visualizer | README.md | Markdown | mit | 3,577 |
# 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... | Angrypotato0/RayTraycerDE | source/CTestTestfile.cmake | CMake | mit | 414 |
今日は1日部屋に居た。ぼんやりしていた。このところは平気で1日ぼんやりできるから困る。ぼくみたく朝から晩まで動かない動物が居たら、動物園で人気にはならないだろうな。
2 min.
| bouzuya/blog.bouzuya.net | data/2012/12/2012-12-02-do-nothing.md | Markdown | mit | 251 |
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... | djkoloski/pb | Assets/Pb/TileMap/ChunkRenderer.cs | C# | mit | 932 |
---
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... | cartoon-battle/cartoon-battle.github.io | cards.html | HTML | mit | 1,758 |
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_... | dianedouglas/CD-Organizer | lib/cd.rb | Ruby | mit | 897 |
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... | caseywatson/Mantle | v0/Mantle/Mantle.Hosting.WindowsServices/Properties/AssemblyInfo.cs | C# | mit | 1,436 |
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 ... | jameseunson/twitchy-backend | app/controllers/api/code_controller.rb | Ruby | mit | 470 |
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... | LeeCIT/FallApp | FallApp/src/ie/lc/fallApp/ActivityFallHeight.java | Java | mit | 5,073 |
/*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... | dvberkel/rails.girls.utrecht.2015 | js/heart.js | JavaScript | mit | 4,014 |
<?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... | troccoli/lva | database/seeders/DatabaseSeeder.php | PHP | mit | 653 |
<!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... | 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 | HTML | mit | 14,139 |
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... | jintoppy/react-training | step9-redux/node_modules/lodash-es/parseInt.js | JavaScript | mit | 1,161 |
<?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... | cuckata23/wurfl-data | data/htc_sensation_ver1.php | PHP | mit | 1,299 |
# 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... | dkubb/axiom-optimizer | lib/axiom/optimizer/aggregate/maximum.rb | Ruby | mit | 350 |
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... | atd/cartodb.js | test/setup/setup.js | JavaScript | mit | 855 |
unit-test-demo
==============
[](https://travis-ci.org/gxcsoccer/unit-test-demo)
A Unit Test Demo
| gxcsoccer/unit-test-demo | README.md | Markdown | mit | 182 |
---
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>
<!-- <... | nikhilrajaram/nikhilrajaram.github.io | instructors/Thuy_Phuc_Huynh.md | Markdown | mit | 1,062 |
const mongoose = require('mongoose');
const UserModel = mongoose.model('User');
module.exports = {
login: (email, password) => {
return UserModel.findOne({email, password});
}
}; | Spardevil/angular-crm | server/server/services/auth.service.js | JavaScript | mit | 184 |
# 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... | renatorp/SeriesMonitor | src/series_monitor.rb | Ruby | mit | 1,278 |
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... | modulr/modulr | api/api/services/LogService.js | JavaScript | mit | 1,506 |
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... | janakagithub/taxonomy_service | lib/taxonomy_service/taxonomy_serviceClient.pm | Perl | mit | 39,662 |
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... | maximusvladimir/randomfinder | src/com/maximusvladimir/randomfinder/Test.java | Java | mit | 3,649 |

Hackathon Starter [](https://david-dm.org/sahat/hackathon-starter) [![Build Status](https://travis-ci.o... | dhruv4/capitalgains | README.md | Markdown | mit | 72,595 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.