repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
SockDrawer/SockSite | oembed.js | 1976 | 'use strict';
var EMBED_WIDTH = 600;
var EMBED_HEIGHT = 300;
var mustache = require('mustache'),
url = require('url');
var cache = require('./cache');
exports.getEmbedCode = function getEmbedCode(_, request, response) {
var params = url.parse(request.url, true).query;
if (!params.url) {
respond('', 400, response... | mit |
jbe2277/dotnetpad | src/DotNetPad/DotNetPad.Applications/Samples/Tuples.vb | 1013 | Imports System.Collections.Generic
Imports System.Console
Namespace Waf.DotNetPad.Samples
Module Tuples
Sub Main()
' Create a tuple with semantic names
Dim namedLetters1 As (alpha As String, beta As String) = ("a", "b")
Dim namedLetters2 = (alpha:="a", beta:="b"... | mit |
FluffyJack/snake_case | lib/snake_case/version.rb | 41 | module SnakeCase
VERSION = "0.0.1"
end
| mit |
Chattered/proplcf | BootstrapDIY.hs | 5524 | -- | Just enough theorems to get us going with conversions, proven using a tree
-- notation that allows us to make assumptions.
module BootstrapDIY where
import Data.Foldable
import Data.List
import Utils
-- | Proof terms with assumptions. In the notes, we write Γ ⊢ P to denote a proof
-- with conclusion P and assu... | mit |
carmargut/portfolio | Dockerfile | 82 | FROM node:4.6
WORKDIR /app
ADD . /app
RUN npm install
EXPOSE 443 80
CMD npm start
| mit |
wernerd46/TeachMe-Technology | Home.html | 1752 | <!doctype html>
<html>
<head>
<title>TeachMe Technology</title>
<link rel="stylesheet" href="css/reset.css">
<link rel="stylesheet" href="css/global.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
</head>
<body>
<header class="row">
... | mit |
ChristCoin7/christcoin | src/bitcoinrpc.cpp | 48589 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "util.h"
#include "sync.h"
#include "ui_interface.h"
#includ... | mit |
lizhenghn123/myAlgorithmStudy | trim_continuous_space/trim_continuous_space.cpp | 1862 | //https://gist.github.com/Ninputer/2227226 https://gist.github.com/chenshuo/2232954
//ÇëʵÏÖÏÂÃæµÄº¯Êý£¬ÊäÈë²ÎÊýbaseStrÊÇÒ»¸ö£¨¿ÉÒÔ¸ü¸ÄµÄ£©×Ö·û´®£¬Ç뽫ÆäÖÐËùÓÐÁ¬Ðø³öÏֵĶà¸ö¿Õ¸ñ¶¼Ìæ»»³ÉÒ»¸ö¿Õ¸ñ£¬µ¥Ò»¿Õ¸ñÐè±£Áô¡£
//ÇëÖ±½ÓʹÓÃbaseStrµÄ¿Õ¼ä£¬ÈçÐ迪±ÙеĴ洢¿Õ¼ä£¬²»Äܳ¬¹ýo(N)£¨×¢ÒâÊÇСo£¬NÊÇ×Ö·û´®µÄ³¤¶È£©¡£·µ»ØÖµÊÇÌæ»»ºó... | mit |
joryschmidt/angular-contacts-app | app/contacts/contacts.js | 4767 | 'use strict';
angular.module('myContacts.contacts', ['ngRoute', 'firebase'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/contacts', {
templateUrl: 'contacts/contacts.html',
controller: 'ContactsController'
});
}])
.controller('ContactsController', ['$scope', '$firebaseArra... | mit |
troch/route-node | src/matchChildren.ts | 3921 | import { omit, parse } from 'search-params'
import { MatchOptions, MatchResponse, RouteNode } from './RouteNode'
import { TestMatch } from 'path-parser'
const getPath = (path: string): string => path.split('?')[0]
const getSearch = (path: string): string => path.split('?')[1] || ''
const matchChildren = (
nodes: R... | mit |
rgscherf/gainful2 | parsing/parsinglib/jobcontainer.py | 2667 | from ..models import Job
import datetime
class JobContainer():
def __init__(self):
self.organization = None
self.title = None
self.division = None
self.date_posted = None
self.date_closing = None
self.date_collected = None
self.url_detail = None
sel... | mit |
helen-dikareva/testcafe-phoenix | test/functional/fixtures/api/raw/before-after-each-hooks/test.js | 2401 | var expect = require('chai').expect;
// NOTE: we run tests in chrome only, because we mainly test server API functionality.
describe('[Raw API] beforeEach/afterEach hooks', function () {
it('Should run hooks for all tests', function () {
var test1Err = null;
return runTests('./testcafe-fixtures/ru... | mit |
sapran/sapran.github.io | _posts/2017-02-12-how-to-spot-a-psychopath.md | 4816 | ---
layout: post
title: Як розпізнати психопата
date: 2017-02-12
author: Vlad Styran
excerpt_separator: <!-- more -->
---
Працюючи в кібер-безпеці, нерідко чую риторичні питання типу "да що ж вони за люди такі"? Як можна вимагати гроші в медичної клініки? Як можна експлуатувати дітей для зйомки порно? Як можна доводити... | mit |
InfinityStudio/ILauncher | src/renderer/hooks/useInstance.ts | 10224 | import { computed, reactive, toRefs } from '@vue/composition-api'
import { Frame as GameSetting } from '@xmcl/gamesetting'
import { useBusy, useSemaphore } from './useSemaphore'
import { useService, useServiceOnly } from './useService'
import { useStore } from './useStore'
import { useCurrentUser } from './useUser'
imp... | mit |
dgmstuart/urmum | spec/urmum_spec.rb | 127 | require 'spec_helper'
describe Urmum do
it 'should have a version number' do
Urmum::VERSION.should_not be_nil
end
end
| mit |
EricRabil/steel-framework | docs/api/v1-b2/elementlist.js | 591 |
var ApiGen = ApiGen || {};
ApiGen.elements = [["c", "ErrorController"], ["c", "ErrorModel"], ["c", "ErrorView"], ["c", "ExampleController"], ["c", "ExampleModel"], ["c", "ExampleView"], ["c", "IController"], ["c", "IErrorController"], ["c", "IErrorModel"], ["c", "IModel"], ["c", "IndexController"], ["c", "Inde... | mit |
andrewdefries/ToxCast | Figure3/Tox21_nnm/WorkHere/494-52-0.smi.png.html | 1670 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>494-52-0.smi.png.html</title>
</head>
<... | mit |
Rodz3rd2/my-framework | app/Http/Controllers/PageController.php | 198 | <?php
namespace App\Http\Controllers;
class PageController extends Controller
{
public function index($request, $response)
{
return $this->twigView->render($response, "auth/index.twig");
}
}
| mit |
samphilipd/github | spec/github/client/gists/get_spec.rb | 1482 | # encoding: utf-8
require 'spec_helper'
RSpec.describe Github::Client::Gists, '#get' do
let(:gist_id) { 1 }
before {
stub_get(request_path).to_return(body: body, status: status,
headers: {content_type: "application/json; charset=utf-8"})
}
after { reset_authentication_for(subject) }
context "re... | mit |
auth0/rules | src/rules/check-last-password-reset.js | 675 | /**
* @title Check last password reset
* @overview Check the last time that a user changed his or her account password.
* @gallery true
* @category access control
*
* This rule will check the last time that a user changed his or her account password.
*
*/
function checkLastPasswordReset(user, context, callback... | mit |
fasttakerbg/Final-Project | public/scripts/main.js | 87 | import { router } from 'router';
$('body').ready(function() {
router.start();
}); | mit |
yasenm/a4-netcore | A4CoreBlog/A4CoreBlog.Data.Services/Implementations/SystemImageService.cs | 1409 | using System;
using A4CoreBlog.Data.Services.Contracts;
using A4CoreBlog.Data.UnitOfWork;
using AutoMapper;
using A4CoreBlog.Data.Models;
using System.Linq;
using AutoMapper.QueryableExtensions;
namespace A4CoreBlog.Data.Services.Implementations
{
public class SystemImageService : ISystemImageService
{
... | mit |
Azure/azure-sdk-for-net | sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/Models/PrivateLinkResourceProperties.cs | 1732 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.ResourceManager.Sql.Models
{
/// <summary> Properties of a private link resource. </summary>
public parti... | mit |
iEFdev/browser-upgrade-page | upgrade/js/detect_support.js | 1304 | /**
* Simple script to detect misc CSS @support's.
* If not... Redirect to: /upgrade
*
* To minify (example):
* uglifyjs detect_support.js -o detect_support.min.js -c -m
*/
(function detectSupport() {
var upradeURL = '/upgrade',
/**
* List your CSS @support tests.
* On the upgr... | mit |
AirVantage/av-sched | src/main/java/net/airvantage/sched/app/ServiceLocator.java | 12317 | package net.airvantage.sched.app;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import javax.sql.DataSource;
import org.apache.commons.dbcp2.ConnectionFactory;
import org.apache.commons.dbcp2.DriverManagerConnectionFactory;
import org.apache.commons.dbcp2.PoolableConnection;
import org.apache.co... | mit |
opengl-8080/Samples | java/java9/jigsaw/src/main/java/module-info.java | 33 | module foo {
exports foo;
} | mit |
cdeil/slippy-astro-images | ng2-router/README.md | 1177 | # Ng2Router
This project was generated with [angular-cli](https://github.com/angular/angular-cli) version 1.0.0-beta.10.
## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng g... | mit |
steam-maker/EHS-CN | 03/18/cn.md | 939 | 那年秋天,我听到了[巴特勒·拉姆泼逊(Butler Lampson)](http://baike.baidu.com/view/2009279.htm)一场精彩的谈话,内容是关于CAL-TSS,它是个基于用户能力的操作系统(capability-based operating system)([參考資料](discussion.md)),看上去十分具备“面向对象”的特性【拉姆泼逊 69】。
不可伪造的指针(ala B5000)由限制对象内部操作权限的位屏蔽(bit-mask)延伸。
这与我“对象即为服务者(objects as server)”的比喻不谋而合。
这个系统中异常情况处理(exception handling)的方... | mit |
hovsepm/azure-libraries-for-net | src/ResourceManagement/BatchAI/Generated/Models/ExecutionState.cs | 1323 | // <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// </auto-generated>
namespace Microsoft.Azure.Management.BatchAI.Fluent.Mod... | mit |
mmithril/XChange | xchange-btcchina/src/test/java/org/knowm/xchange/btcchina/dto/trade/response/BTCChinaGetMarketDepthResponseTest.java | 1445 | package org.knowm.xchange.btcchina.dto.trade.response;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.math.BigDecimal;
import org.junit.Test;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.knowm.xchange.btcchina.dto.trade.BTCChinaMarketDepthOrder;
public class ... | mit |
cezarykluczynski/stapi | auth/src/main/java/com/cezarykluczynski/stapi/auth/common/factory/RequestSortDTOFactory.java | 784 | package com.cezarykluczynski.stapi.auth.common.factory;
import com.cezarykluczynski.stapi.model.common.dto.RequestSortClauseDTO;
import com.cezarykluczynski.stapi.model.common.dto.RequestSortDTO;
import com.cezarykluczynski.stapi.model.common.dto.enums.RequestSortDirectionDTO;
import com.google.common.collect.Lists;
i... | mit |
jaybkun/machine-learning-library | src/main/java/com/bah/app/perceptron.java | 3562 | package com.bah.app;
import com.bah.ml.classifiers.Perceptron;
import org.apache.commons.cli.*;
import org.apache.log4j.BasicConfigurator;
import java.util.Arrays;
import java.util.logging.Level;
import java.util.logging.Logger;
public class perceptron {
private static final Logger log = Logger.getLogger(percept... | mit |
Vyacheslav-1991/parceltracker | ParcelTracker/Program.cs | 487 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace ParcelTracker
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
... | mit |
panchaldineshb/Sarabi | TemplateApp/TemplateApp.Data/Models/Subsidiary.cs | 843 | using System.Collections.Generic;
namespace TemplateApp.Data.Models
{
public class Subsidiary : EntityBase
{
//
// Constructor
public Subsidiary()
{
Locations = new HashSet<Location>();
Subsidiaries = new HashSet<Subsidiary>();
Divisions = ne... | mit |
Ecotrust/floodplain-restoration | ui/test/spec/controllers/sitenew.js | 513 | 'use strict';
describe('Controller: SitenewCtrl', function () {
// load the controller's module
beforeEach(module('uiApp'));
var SitenewCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
SitenewCtrl = $co... | mit |
lhew/manguezal-test | src/components/Menu.js | 2593 | import React, {Component} from 'react';
import LanguageSwitcher from './LanguageSwitcher';
import Navigation from './Navigation';
import $ from 'jquery';
const Translate = require('react-i18nify').Translate;
export default class Menu extends Component{
constructor(){
super();
let self = this;
this.sta... | mit |
ReidAtcheson/integral | test/Makefile | 209 |
CPP := /Users/silentvoice/clang+llvm-3.6.2-x86_64-apple-darwin/bin/clang++
ALL : test.cpp
$(CPP) -g --std=c++14 test.cpp -o test
.PHONY : clean
clean :
rm -rf ./test
rm -rf ./test.dSYM
rm -rf ./out
| mit |
smotyn/Pretzel | src/Pretzel/Exception/Server/IllegalValueForType.php | 180 | <?php if (!defined('PRETZEL_EXCEPTION_SERVER')) exit('No Pretzel No (Server) Exception');
class Pretzel_Exception_Server_IllegalValueForType extends Pretzel_Exception_Server
{
} | mit |
WikipediaLibrary/TWLight | conf/README.md | 90 | # README.md
This directory contains system configuration files that TWLight relies upon.
| mit |
WebSeed/PolygonJS | polygonjs/surfaces/CanvasSurface.js | 3361 | define(
['polygonjs/math/Color'],
function (Color) {
"use strict";
var Surface = function (opts) {
opts = opts || {};
this.width = opts.width || 640;
this.height = opts.height || 480;
this.cx = this.width / 2;
this.cy = this.height / ... | mit |
g-yonchev/TelerikAcademy | Homeworks/C# 1/02.PrimitiveDataTypesHW/05. BooleanVariable/Properties/AssemblyInfo.cs | 1414 | 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("05... | mit |
leejay-schmidt/java-libs | FunJavaPrograms/PowerSet.java | 1040 | import java.util.*;
public class PowerSet
{
public static Set<Set<Integer>> powerset(Set<Integer> set) {
Set<Set<Integer>> ps = new HashSet<Set<Integer>>();
if(set.isEmpty()) {
Set<Integer> emptySet = new HashSet<Integer>();
ps.add(emptySet);
return ps;
}
List<Integer> list = new Ar... | mit |
spencerlyon2/randomNotes | content/post/linux.md | 2162 | ---
title: "Linux Tips"
date: "2013-12-28"
author: "Spencer Lyon"
series: ["Hacking"]
tags: ["tips"]
---
## dpkg errors
I wasn't able to get `apt-get` to do anything. The problem was that my `/boot` partition was full.
I checked that this was the problem using
```bash
df -i
```
and
```bash
df -i
```
I then iter... | mit |
CodeCatz/litterbox | cats.html | 169 | <html>
<head>
<title> Cats </title>
</head>
<body>
<p><center><strong> This is a litterbox.<br><br>Feel free to shit code here. </strong></center></p>
</body>
</html> | mit |
dsimandl/teamsurmandl | assets/css/home.css | 839 | body {
padding-top: 70px;
background: url("../img/cream_dust.png");
}
h1 {
font-family: 'Lobster', Helvetica, Arial, sans-serif;
}
.navbar, p, h2, h3, h4, h5, #blog_title, .help-block, #clear_photo, li, .btn, label {
font-family: 'Cabin', Helvetica, Arial, sans-serif;
}
.navbar-fixed-top {
border... | mit |
skwasjer/CSModBase | ModBase.cs | 4864 | // © 2015 skwas
using System;
using System.IO;
using System.Linq;
using System.Reflection;
using ColossalFramework.Plugins;
using ColossalFramework.Steamworks;
using ICities;
namespace skwas.CitiesSkylines
{
/// <summary>
/// Base class for mod implementations. Takes mod info from the type and assembly (AssemblyIn... | mit |
LeonardVollmann/GameEngine2D | src/nona/gameengine2d/maths/Vector4f.java | 421 | package nona.gameengine2d.maths;
public class Vector4f extends Vector {
public Vector4f() {
super(4);
}
public Vector4f(float x, float y, float z, float w) {
super(x, y, z, w);
}
public Vector4f(float[] v) {
super(v);
}
public Vector4f(Vector4f r) {
super(r);
}
@Override
public Vector norma... | mit |
oshanrube/iva | src/Acme/MenusBundle/Tests/Controller/DefaultControllerTest.php | 399 | <?php
namespace Acme\MenusBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/hello/Fabien');
$this->asser... | mit |
EmoneyCN/EMSpeed | Core/category/NSString+URLEncoding.h | 405 | //
// EMEncoding.h
// EMStock
//
// Created by Mac mini 2012 on 15-2-6.
// Copyright (c) 2015年 flora. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSString (EncodingAdditions)
/**
* URL encode
*
* @return encode后的字符串
*/
- (NSString *)URLEncodedString;
/**
* URL decode
*
* @... | mit |
bubkoo/crx-element-capture | src/js/background.js | 4787 | 'use strict';
var handler = {
fragments: null,
tab: null,
tabId: 0,
windowId: 0,
captureCmd: '',
initContextMenu: function () {},
queryActiveTab: function (callback) {
chrome.tabs.query({
active: true,
lastFocusedWindow: true
}, function (tabs) {
var tab = tabs && tabs[0] ... | mit |
byronka/xenos | utils/pmd-bin-5.2.2/docs/pmd-plsql/xref/net/sourceforge/pmd/lang/plsql/ast/ASTView.html | 3598 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>ASTView xref</title>
<link type="text/css" rel=... | mit |
fraguada/three.js | docs/api/zh/objects/LineLoop.html | 1390 | <!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8" />
<base href="../../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
[page:Object3D] → [page:Line] →
<h1>环线([name])</h1>
<p class=... | mit |
coq-bench/coq-bench.github.io-old | clean/Linux-x86_64-4.01.0-1.2.0/unstable/hott/contrib:ptsatr/dev/2014-12-01_15-32-11.html | 6798 | <!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 |
EvgeniiVoskoboinik/arendahashtag-client | src/app/shared/gallery/ngx-gallery-thumbnails.component.html | 828 | <div class="ngx-gallery-thumbnails-wrapper ngx-gallery-thumbnail-size-{{size}}">
<div class="ngx-gallery-thumbnails" [style.left]="thumbnailsLeft">
<div class="ngx-gallery-thumbnail" *ngFor="let image of images; let i = index;" [style.background-image]="getSafeUrl(image)" (click)="handleClick($event, i)" [s... | mit |
christophehurpeau/Springbok-Framework-Plugins | connectedSite/config/lang.fr.php | 89 | <?php return array(
'plugin.connectedSite.ConnectedServices'=>'Services connectés',
);
| mit |
MatthewWCook/PICSTART | PICSD/PICSD.X/PICSD.h | 5358 | /***********************************************************************
* FILENAME : PICSD.h
*
* PURPOSE :
* Header for main test program, and contains all configuation bit settings
*
* FUNCTIONS :
* void configOscillator(void)
* void configUSART(void)
* putch(char data)
* void mai... | mit |
liqipeng/helloGithub | Book-Code/ASP.NET Design Pattern/ASPPatternsc05/ASPPatterns.Chap5.DependencyInjection/ASPPatterns.Chap5.DependencyInjection.Model/Product.cs | 289 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ASPPatterns.Chap5.DependencyInjection.Model
{
public class Product
{
public void AdjustPriceWith(IProductDiscountStrategy discount)
{
}
}
}
| mit |
bterlson/dm-more | dm-tags/lib/dm-tags/tagging.rb | 428 | class Tagging
include DataMapper::Resource
property :id, Serial
property :tag_id, Integer, :nullable => false
property :taggable_id, Integer, :nullable => false
property :taggable_type, String, :nullable => false
property :tag_context, String, :nullable => false
belongs_to :tag
... | mit |
code-warrior/dockspacer | libs/stoi.c | 1424 | #include <stdio.h>
#include <ctype.h> // for isdigit
#include <stdlib.h> // for strtol
#include "../constants.h"
#include "stoi.h"
/* =========={ STOI - STRING TO INTEGER }========================================
Take an array of characters as a number and return its integer equivalent.
=======================... | mit |
todorm85/TelerikAcademy | Courses/Programming/C# Part 2/08. Text Files/01. Odd lines/Properties/AssemblyInfo.cs | 1402 | 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("_0... | mit |
kokorin/vk-java-sdk | sdk/src/main/java/com/vk/api/sdk/objects/users/UserXtrCounters.java | 1010 | package com.vk.api.sdk.objects.users;
import com.google.gson.annotations.SerializedName;
import java.util.Objects;
/**
* UserXtrCounters object
*/
public class UserXtrCounters extends UserFull {
@SerializedName("counters")
private UserCounters counters;
public UserCounters getCounters() {
retu... | mit |
FUKUZAWA-Tadashi/Hayat | compiler/hyCClassInfo.h | 10026 | /* -*- coding: sjis-dos; -*- */
/*
* copyright 2010 FUKUZAWA Tadashi. All rights reserved.
*/
#ifndef m_HYCCLASSINFO_H_
#define m_HYCCLASSINFO_H_
#include "hyBMap.h"
#include "hySymbolID.h"
#include "hyCFfiType.h"
#include "hyCStrTable.h"
#include "hyCSignature.h"
#include "hyTuning.h"
#include <... | mit |
eyang414/superFriend | electronApp/node_modules/electron-builder-http/out/electron-builder-http.d.ts | 11265 | declare module "electron-builder-http/out/CancellationToken" {
/// <reference types="node" />
import { EventEmitter } from "events"
export class CancellationToken extends EventEmitter {
private parentCancelHandler
private _cancelled
readonly cancelled: boolean
private _parent
parent: Cancella... | mit |
mwveliz/sitio | app/prod/cache/twig/b4/b462afc70965e9a17df2a81b97874458452b1f180b2dd42f516196f0e7c44238.php | 9504 | <?php
/* :menu:show.html.twig */
class __TwigTemplate_c6c87740e1e23e28cd7ec08186f946f29f7e280dd27072f88536dcc022e66357 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("base.html.twig",... | mit |
dakota/cakephp | src/View/Widget/MultiCheckboxWidget.php | 9482 | <?php
declare(strict_types=1);
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files m... | mit |
hebrinkmann/mybatis | src/main/java/de/henningBrinkmann/mybatisSample/mapper/DescriptionMapper.java | 378 | package de.henningBrinkmann.mybatisSample.mapper;
import org.apache.ibatis.annotations.Select;
import de.henningBrinkmann.mybatisSample.xmltv.Description;
public interface DescriptionMapper {
void insertDescription(Description description);
@Select("SELECT * FROM mybatissample.description WHERE `value` = #{value... | mit |
KonradIT/goprohero | GoProHERO4Controller/app/src/main/java/com/chernowii/hero4/OCVideo.java | 4726 | package com.chernowii.hero4;
import android.app.Activity;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.... | mit |
sithmel/iter-tools | generate/babel-generate.config.js | 456 | const isAsync = (caller) => caller && caller.ASYNC;
module.exports = api => {
const ASYNC = api.caller(isAsync);
return {
babelrc: false,
plugins: [
['./babel-plugin-$-identifiers-and-imports', { ASYNC }],
['macros', { async: { ASYNC } }],
// use dead code elimination to clean up if(fals... | mit |
clayop/sbdmm | README.md | 515 | # Steem Dollar Pegging Bot
## Installation
```
sudo apt-get install python-dev python3-pip git
sudo pip3 install requests
sudo pip3 install steem
sudo pip3 install pycrypto
git clone https://github.com/clayop/sbdmm
screen -S sbdmm
cd sbdmm
# If you want to run a bot on Bittrex
python3 sbdmm.py
# If you want to run a... | mit |
chrismacp/chrismacp.github.io | _posts/2017-10-01-managing-more-microservices.md | 3549 | ---
title: "Managing More Micro-services"
date: 2017-10-01
header:
image: /assets/images/globular-cluster-IC-4499.jpg
caption: "Photo credit: NASA/ESA"
category:
- dev
tags:
- microservices
- SOA
- jenkins
- kibana
- grafana
- slack
---
When I wrote the initial [post][1] on this blog I had been working on ... | mit |
SoftyFire/profiling-training | public/css/site.css | 2058 | html,
body {
height: 100%;
}
.wrap {
min-height: 100%;
height: auto;
margin: 0 auto -60px;
padding: 0 0 60px;
}
.wrap > .container {
padding: 70px 15px 20px;
}
.footer {
height: 60px;
background-color: #f5f5f5;
border-top: 1px solid #ddd;
padding-top: 20px;
}
.jumbotron {
... | mit |
AstromechZA/TweetDNS | tests/sources/source_base_test.py | 579 | import unittest
from tweet_dns.sources.source_base import SourceBase
class SourceBaseTest(unittest.TestCase):
def test_regex(self):
text = """
1.1.1.1
192.168.0.1
127.0.0.1
255.255.255.255
256.
1.1..1
1.200.3.4
... | mit |
afk11/bitcoin | test/functional/wallet_resendwallettransactions.py | 3194 | #!/usr/bin/env python3
# Copyright (c) 2017-2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test that the wallet resends transactions periodically."""
from collections import defaultdict
import t... | mit |
JasperFx/Marten | src/Marten.Testing/Examples/event_store_quickstart.cs | 7180 | using System;
using System.Linq;
using System.Threading.Tasks;
using Baseline;
using Marten.Testing.Events;
using Marten.Testing.Events.Projections;
using Marten.Testing.Harness;
using Shouldly;
namespace Marten.Testing.Examples
{
public class event_store_quickstart
{
public void capture_events()
... | mit |
kbariotis/kostasbariotis.com | src/components/blog/Posts.js | 367 | import React from 'react';
import PropTypes from 'prop-types';
import Post from './Post';
const Posts = ({ posts }) => (
<div>
{posts
.filter(post => post.frontmatter.title.length > 0)
.map((post, index) => <Post key={index} post={post} />)}
</div>
);
Posts.propTypes = {
posts: PropTypes.arrayO... | mit |
misshie/bioruby-ucsc-api | spec/hg18/burgernaseqgemmapperalignbreastallrawsignal_spec.rb | 527 | require 'bio-ucsc'
describe "Bio::Ucsc::Hg18::BurgeRnaSeqGemMapperAlignBreastAllRawSignal" do
describe "#find_by_interval" do
context "given range chr1:1-10,000" do
it 'returns a record (r.chrom == "chr1")' do
Bio::Ucsc::Hg18::DBConnection.default
Bio::Ucsc::Hg18::DBConnection.connect
... | mit |
shentt3214/mcms | src/main/java/com/mingsoft/people/dao/IPeopleUserDao.java | 1907 | /**
The MIT License (MIT) * Copyright (c) 2016 铭飞科技
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, m... | mit |
djsedulous/namecoind | libs/boost_1_50_0/doc/html/BOOST_MPI_CALLING_CONVENTION.html | 4150 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Macro BOOST_MPI_CALLING_CONVENTION</title>
<link rel="stylesheet" href="../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Th... | mit |
dunkenj/DimbleData | QTstats.py | 1981 | from BeautifulSoup import BeautifulSoup as b
from collections import Counter
import urllib2, numpy
import matplotlib.pyplot as plt
response = urllib2.urlopen('http://en.wikipedia.org/wiki/List_of_Question_Time_episodes')
html = response.read()
soup = b(html)
people = []
tables = soup.findAll('table','wikitable')[2:... | mit |
oronaldosantos/xenon_analytics | application/assets/js/devexpress-web-14.1/css/dx.exporter.light.css | 10311 | /*!
* DevExtreme Exporter
* Version: 14.2.6
* Build date: Mar 18, 2015
*
* Copyright (c) 2012 - 2015 Developer Express Inc. ALL RIGHTS RESERVED
* EULA: https://www.devexpress.com/Support/EULAs/DevExtreme.xml
*/
.dx-menu-base
{
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: n... | mit |
shenanigans/node-sublayer | static/docs/generated/module/string_decoder/index.html | 2277 | <!DOCTYPE html>
<html>
<head>
<title>string_decoder documentation</title>
<link rel="stylesheet" type="text/css" href="../../index.css" />
<link rel="stylesheet" type="text/css" href="../../highlight.css" />
<script type="text/javascript" src="../../index.js"></script>
</head>
<body class="module" id="c... | mit |
oddbird/sassdoc-theme-herman | lib/utils/assets.js | 801 | 'use strict';
const Promise = require('bluebird');
const { Transform } = require('readable-stream');
const vfs = require('vinyl-fs');
module.exports = function assets(src, dest, options = {}) {
const { parser, env } = options;
Reflect.deleteProperty(options, 'parser');
Reflect.deleteProperty(options, 'env');
... | mit |
Skryptex/Nexus-Proof-of-Stake-Coin | src/checkpoints.cpp | 18523 | // Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/foreach.hpp>
#include "checkpoints.h"
#include "d... | mit |
technosophos/perkdb | berkeleydb/environment.go | 633 | package berkeleydb
/*
#cgo LDFLAGS: -ldb
#include <db.h>
#include "bdb.h"
*/
import "C"
type Environment struct {
environ *C.DB_ENV
}
func NewEnvironment() (*Environment, error) {
var env *C.DB_ENV
err := C.db_env_create(&env, 0)
if err > 0 {
return nil, createError(err)
}
return &Environment{env}, nil
}
f... | mit |
jocoonopa/lubri | resources/views/flap/posmember/import_task/_formAct.blade.php | 3704 | <div class="form-group has-warning">
{!! Form::label(
App\Import\Flap\POS_Member\Import::OPTIONS_CATEGORY,
'*任務名稱',
['class' => 'control-label'])
!!}
{!! Form::text(
'name',
$task->name,
['id'=> 'name', 'class' => 'form-control', 'required' => true, 'plac... | mit |
vladibalan/evesym | Entity/Industryactivityproducts.php | 3604 | <?php
namespace Vibs\EvesymBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Industryactivityproducts
*
* @ORM\Table(name="industryActivityProducts", indexes={@ORM\Index(name="ix_industryActivityProducts_typeID", columns={"typeID"}), @ORM\Index(name="ix_industryActivityProducts_productTypeID", columns={"produ... | mit |
mpakus/excurso | app/controllers/admin/tours_controller.rb | 1106 | class Admin::ToursController < Admin::ApplicationController
before_action :set_tour, only: [:show, :edit, :update, :destroy]
def index
@tours = Tour.includes(:city).newest.page(params[:page])
end
def show;end
def new
@tour = Tour.new
end
def edit
end
def create
@tour = Tour.new(tour_p... | mit |
librarytestuser/librarytestuser.github.io | _presentations/example-presentation.md | 199 | ---
layout: slide
title: Example Presentation
theme: sky
transition: slide
---
<section data-markdown>
## This is a slide
</section>
<section data-markdown>
## This is another slide
</section>
| mit |
nunomaduro/laravel-desktop-notifier | src/Notification.php | 620 | <?php
/**
* This file is part of Laravel Desktop Notifier.
*
* (c) Nuno Maduro <enunomaduro@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NunoMaduro\LaravelDesktopNotifier;
use Joli\JoliNotif\Notificatio... | mit |
elpadi/js-library | dist/utils.js | 496 | 'use strict';
function injectJS(src, cb) {
var script = document.createElement('script');
script.setAttribute('type', 'text/javascript');
script.onreadystatechange = script.onload = function () {
var readyState = script.readyState;
if (!readyState || readyState == 'loaded' || readyState == 'complete' || readySt... | mit |
neceo/neceo.github.io | README.md | 37 | neceo.github.io
===============
N/A
| mit |
enmeen/2017studyPlan | someDemo/虚拟DOM实现/util.js | 307 | /**
* Created by desen on 2017/7/24.
*/
function isArray(value) {
if (typeof Array.isArray === "function") {
return Array.isArray(value);
} else {
return Object.prototype.toString.call(value) === "[object Array]";
}
}
// 进行虚拟DOm的类型的判断
function isVtext(vNode) {
return true;
}
| mit |
akkirilov/SoftUniProject | 04_DB Frameworks_Hibernate+Spring Data/03_OOP Principles EX/src/mankind/Worker.java | 539 | package mankind;
public class Worker extends Human {
Double weekSalary;
Double workHoursPerDay;
public Worker(String firstName, String lastName, Double weekSalary, Double workHoursPerDay) {
super(firstName, lastName);
this.weekSalary = weekSalary;
this.workHoursPerDay = workHoursPerDay;
}
public Double ... | mit |
vovantics/flask-bluebone | app/utils.py | 427 | # -*- coding: utf-8 -*-
"""
Utils has nothing to do with models and views.
"""
from datetime import datetime
from flask import current_app
def get_current_time():
return datetime.utcnow()
def format_date(value, format='%Y-%m-%d %H:%M:%S'):
return value.strftime(format)
def get_resource_as_string(name... | mit |
kamyu104/GoogleCodeJam-2016 | Round 1A/rank-and-file.py | 774 | # Copyright (c) 2016 kamyu. All rights reserved.
#
# Google Code Jam 2016 Round 1A - Problem B. Rank and File
# https://code.google.com/codejam/contest/4304486/dashboard#s=p1
#
# Time: O(N^2)
# Space: O(N^2), at most N^2 numbers in the Counter
#
from collections import Counter
def rank_and_file():
N = input()
... | mit |
boubre/BayouBot | Workspace/src/workspace/WorkspaceWidget.java | 3255 | package workspace;
import java.util.Collection;
import javax.swing.JComponent;
import renderable.RenderableBlock;
/** WorkspaceWidgets are components within the workspace other than blocks that
* include bars, buttons, factory drawers, and single instance widgets such as
* the MiniMap and the TrashCan.
*/
pu... | mit |
velvia/velvia.github.io | _posts/2016-02-11-Apache-Cassandra-Query-Speeds-Storage-Costs.md | 914 | ---
layout: post
title: Apache Cassandra for Analytics - Performance and Storage Cost Analysis
tags: [cassandra, big data, FiloDB, benchmarking]
date: 2016-02-11
---
Apache Cassandra is one of the most widely used distributed NoSQL databases in the modern open source data engineering repertoire. While lots of posts e... | mit |
knes1/springmockedtests | src/test/java/com/knesek/springmockedtests/service/impl/UserServiceImplIntegrationTest.java | 3082 | package com.knesek.springmockedtests.service.impl;
import com.knesek.springmockedtests.TestAppConfig;
import com.knesek.springmockedtests.com.knesek.springmockedtests.util.MockedBeans;
import com.knesek.springmockedtests.model.User;
import com.knesek.springmockedtests.repository.UserRepository;
import com.knesek.sprin... | mit |
alexeyraspopov/message-script | rollup.config.js | 83 | import babel from 'rollup-plugin-babel';
export default {
plugins: [babel()]
};
| mit |
AndersenJ/Vim | src/mode/modeHandler.ts | 2801 | import * as _ from 'lodash';
import * as vscode from 'vscode';
import {Mode, ModeName} from './mode';
import NormalMode from './modeNormal';
import InsertMode from './modeInsert';
import VisualMode from './modeVisual';
import Configuration from '../configuration';
type ModeChangedHandler = (mode: Mode) => void;
expo... | mit |