code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 3 942 | language stringclasses 30
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.objects.adsweb.responses;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.objects.Validable;
import com.vk.api.sdk.objects.annotations.Required;
import java.util.Objects;
/*... | VKCOM/vk-java-sdk | sdk/src/main/java/com/vk/api/sdk/objects/adsweb/responses/GetAdCategoriesResponseCategoriesCategory.java | Java | mit | 1,929 |
import knockout = require("knockout");
class Item
{
public Id:KnockoutObservable<string> = knockout.observable("");
public Title:KnockoutObservable<string> = knockout.observable("");
constructor(data:{Id:string; Title:string })
{
this.Id(data.Id);
this.Title(data.Title);
}
public DragStart(target:Item, ev... | Lillemanden/TierList | TierList/App/Components/Item/Item.ts | TypeScript | mit | 563 |
#!/usr/bin/env ruby
require 'i3rb'
include I3::API
include I3::Bar::Widgets
host = I3::Bar::Widgets::HOSTNAME
host.color = "#00FFFF"
host.add_event_callback do |w|
system "xterm", "-e", "top"
end
cmus = I3::Bar::Widgets::CMUS
cmus.add_event_callback do |w,e|
if e["button"]== 1
system "cmus-remote", "--pause"... | MinasMazar/dotfiles | i3.symlink/i3ba.rb | Ruby | mit | 574 |
#!/usr/bin/perl
# Runs 20 children that expose "PerlToUpper" before returning the result.
use strict; use warnings;
use constant CHILDREN => 20;
use Time::HiRes qw(usleep);
use Gearman::Worker;
$|++;
my @child_pids;
for (1 .. CHILDREN) {
if (my $pid = fork) {
push @child_pids, $pid;
next;
}
eval {
... | mikespook/gearman-go | example/pl/worker_multi.pl | Perl | mit | 728 |
import { connect } from 'react-redux';
import { makeSelectClaimForUri } from 'lbry-redux';
import LivestreamLink from './view';
const select = (state, props) => ({
channelClaim: makeSelectClaimForUri(props.uri)(state),
});
export default connect(select)(LivestreamLink);
| lbryio/lbry-app | ui/component/livestreamLink/index.js | JavaScript | mit | 275 |
#include "AnimationComponentModule.h"
#include "AnimationComponent.h"
using namespace PaintsNow;
using namespace PaintsNow::NsMythForest;
using namespace PaintsNow::NsSnowyStream;
AnimationComponentModule::AnimationComponentModule(Engine& engine) : ModuleImpl<AnimationComponent>(engine) {} | paintsnow/paintsnow | Source/Utility/MythForest/Component/Animation/AnimationComponentModule.cpp | C++ | mit | 292 |
set :runner, VirtualMonkey::Runner::Nginx
before do
@runner.stop_all
@runner.launch_all
@runner.wait_for_all("operational")
end
test "default" do
@runner.run_nginx_checks
@runner.probe(".*", "su - mysql -s /bin/bash -c \"ulimit -n\"") { |r,st| r.to_i > 1024 }
@runner.check_monitoring
@runner.reboot_all
... | kevin-bockman/virtualmonkey | features/nginx_pass_mysql_aio.rb | Ruby | mit | 405 |
var request = require("request");
var util = require("util");
var async = require("async");
var config = require("./config");
var log = require("./log");
var error = require("./error");
var tools = require("./tools");
var buffer = require("./buffer");
var api = {};
//url:http://127.0.0.1/path
//data: an object
//ifb... | JustAnotherCan/wechat-ship | server/core/api.js | JavaScript | mit | 2,796 |
uis.directive('uiSelect',
['$document', 'uiSelectConfig', 'uiSelectMinErr', 'uisOffset', '$compile', '$parse', '$timeout',
function($document, uiSelectConfig, uiSelectMinErr, uisOffset, $compile, $parse, $timeout) {
return {
restrict: 'EA',
templateUrl: function(tElement, tAttrs) {
var theme = tAtt... | 90TechSAS/ui-select | src/uiSelectDirective.js | JavaScript | mit | 15,230 |
#include <bandit/bandit.h>
#include <bitfield/util.hpp>
#include <bitfield/container/vector.hpp>
#include <bitfield/section/base.hpp>
#include <bitfield/section/list.hpp>
#include <vector>
namespace bitfield { namespace util {
namespace hex_dump_traits_test {
template<typename T>
using std_vector =... | mrk21/bitfield | test/spec/util_spec.cpp | C++ | mit | 5,997 |
package cz.muni.fi.pa165.languageschool.test;
import java.util.Collection;
import javax.persistence.EntityManager;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import org.junit.runner.RunWith;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.spring... | fuca/languageschool | language-school-bus-impl-module/src/test/java/cz/muni/fi/pa165/languageschool/test/BaseTest.java | Java | mit | 1,161 |
require 'morpheus/api/api_client'
class Morpheus::NetworkStaticRoutesInterface < Morpheus::RestInterface
def base_path
"/api/networks"
end
def get_static_route(network_id, route_id, params={}, headers={})
validate_id!(network_id)
validate_id!(route_id)
execute(method: :get, url: "#{base_path}/#... | gomorpheus/morpheus-cli | lib/morpheus/api/network_static_routes_interface.rb | Ruby | mit | 1,349 |
/**********************************************************************
* File: topitch.h (Formerly to_pitch.h)
* Description: Code to determine fixed pitchness and the pitch if fixed.
* Author: Ray Smith
* Created: Tue Aug 24 16:57:29 BST 1993
*
* (C) Copyright 1993, Hewlett-Packard Ltd.
** Licensed u... | BonexGu/Blik2D-SDK | Blik2D/addon/tesseract-3.04.01_for_blik/textord/topitch.h | C | mit | 9,585 |
import {singularize} from './noun';
export {
singularize
};
| Yomguithereal/talisman | src/inflectors/spanish/index.js | JavaScript | mit | 63 |
import time
import json
import redis
import subprocess
from subprocess import Popen, check_output
import shlex
import os
from py_cf_new_py3.chain_flow_py3 import CF_Base_Interpreter
from redis_graph_py3 import farm_template_py3
class Process_Control(object ):
def __init__(self):
pass
de... | glenn-edgar/local_controller_3 | process_control_py3.py | Python | mit | 9,357 |
---
layout: page
permalink: /all-base-R/debug/
---
## __debug__
#### _Debug a Function_
### Usage
### Arguments
### Notes
| rich-iannone/all-base-R | debug.md | Markdown | mit | 127 |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | DustinCampbell/vscode | src/vs/base/browser/ui/tree/indexTreeModel.ts | TypeScript | mit | 14,919 |
---
layout: page
subheadline: ""
title: "Study on Readability of Korean Online Media Page"
teaser: ""
breadcrumb: true
categories:
- projects
permalink: "/project/eyetracking/"
header: no
---
<h4> Summary </h4>
<div class="row">
<div class="medium-4 columns">
<img src="http://heeryung.github.io/images/e... | heeryung/heeryung.github.com | pages/eyetracking.md | Markdown | mit | 2,076 |
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\AdminBundle\Tests\Act... | jordisala1991/SonataAdminBundle | tests/Action/SetObjectFieldValueActionTest.php | PHP | mit | 14,552 |
module.exports={
"file":1, // fname, mode, contents
"filedelete":2, // fname
"checkout":3, // fname
"checkin":4, // fname
"ping":5, // -
"pong":6, // -
"edit":{
"open":100, // fname
"close":101, // fname
"open_ok":102, // fname
"open_err":103, // fname
"close_ok":104, // fname
"close_err":105 // fna... | tomsmeding/gvajnez | msgtype.js | JavaScript | mit | 329 |
package com.mines.main;
import com.mines.domain.enums.BoardSize;
import com.mines.domain.enums.Difficulty;
public class MineField{
private int[][] field;
private BoardSize size;
private Difficulty diff;
private int nrMines = 0;
public MineField(){
diff = Difficulty.EASY;
size = BoardSi... | tonycatapano/JMinesField | src/main/java/com/mines/main/MineField.java | Java | mit | 1,804 |
// Decompiled with JetBrains decompiler
// Type: System.Fabric.Management.ServiceModel.ApplicationPoliciesType
// Assembly: System.Fabric.Management.ServiceModel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// MVID: C6D32D4D-966E-4EA3-BD3A-F4CF14D36DBC
// Assembly location: C:\Git\ServiceFabricSd... | aL3891/ServiceFabricSdkContrib | System.Fabric.Management.ServiceModel/ApplicationPoliciesType.cs | C# | mit | 2,017 |
# Django settings for obi project.
from os.path import abspath, dirname
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
# Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'ENGINE': 'django.db.... | adityadharne/TestObento | obi/obi/settings.py | Python | mit | 6,014 |
var Cheerleaders = angular.module('Cheerleaders', [ 'ngRoute', 'ngDragDrop', 'angularjs-dropdown-multiselect']);
Cheerleaders.config(function ($routeProvider) {
$routeProvider.when('/', {
templateUrl: 'partials/index.html',
controller: 'routineIndexController',
access: {restricted: true}
})
... | richard-mack/cheer-planner | client/app.js | JavaScript | mit | 1,525 |
require 'cocaine'
require 'English'
require 'time'
require_relative 'result'
require_relative 'error'
class LittleneckClamAV
class Clam
def engine
version[:engine] if available?
end
def database_version
version[:database_version].to_i if available?
end
def database_date
Time.... | theozaurus/littleneck_clamav | lib/littleneck_clamav/clam.rb | Ruby | mit | 2,029 |
using System;
using System.Threading.Tasks;
using work.bacome.async;
using work.bacome.imapclient.support;
using work.bacome.trace;
namespace work.bacome.imapclient
{
public partial class cIMAPClient
{
internal cMessageHandleList SetUnseenCount(iMailboxHandle pMailboxHandle)
{
var ... | bacome/imapclient | imapclient/imapclient/client/setunseencount.cs | C# | mit | 2,008 |
<!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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | v8-dox/v8-dox.github.io | ba5a697/html/structv8_1_1Isolate_1_1CreateParams-members.html | HTML | mit | 8,198 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_02) on Mon Apr 25 06:16:42 CEST 2016 -->
<meta http-equiv="Content-Type" content="text/html" charset="utf-8">
<title>org.gradle.plugins... | HenryHarper/Acquire-Reboot | gradle/docs/javadoc/org/gradle/plugins/ide/eclipse/model/package-frame.html | HTML | mit | 1,254 |
OLT
===
Open Lute Tab
| laoo/OLT | README.md | Markdown | mit | 23 |
import assert from "assert";
import BufSamples from "../../../src/scapi/units/BufSamples";
describe("scapi/units/BufSamples", () => {
it(".kr should create control rate node", () => {
const node = BufSamples.kr(1);
assert.deepEqual(node, {
type: "BufSamples", rate: "control", props: [ 1 ]
});
})... | mohayonao/neume | test/scapi/units/BufSamples.js | JavaScript | mit | 684 |
<?php
namespace AerialShip\SteelMqBundle\Entity;
use Symfony\Component\Security\Core\Role\Role;
use Symfony\Component\Security\Core\User\UserInterface;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @ORM\Entity(repositoryClass="AerialShip\SteelMqBundle\Entity\Repository\User... | aerialship/steel-mq | src/AerialShip/SteelMqBundle/Entity/User.php | PHP | mit | 11,457 |
<?php
namespace GuildWars2\Api\Entity;
use GuildWars2\Api\SetEntityBase;
abstract class ItemInfoBase extends SetEntityBase
{
private $_itemId;
private $_amount;
private $_skinId;
private $_upgradeIds;
private $_infusionIds;
private $_bindType;
private $_boundCharacterName;
protected ... | TorbenKoehn/gw2-php | Api/Entity/ItemInfoBase.php | PHP | mit | 2,373 |
#pragma once
/* LightedMaterial.hpp
*
* Copyright (C) 2017 Dynamic Reflectance
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
//std
#include <string>
#include <vector>
namespace core {
namespace utils {
std::vector<std::s... | dynamicreflectance/core | utils/source/Tokenizer.hpp | C++ | mit | 558 |
FROM php:7.3-alpine
RUN apk --update add libbz2 bzip2-dev && \
apk del build-base && \
rm -rf /var/cache/apk/*
RUN docker-php-ext-install bz2
VOLUME ["/app"]
WORKDIR /app
| tommy-muehle/tooly-composer-script | .docker/php-7.3/Dockerfile | Dockerfile | mit | 179 |
import { combineReducers } from 'redux';
import { routerReducer as routing } from 'react-router-redux';
import account from '../reducers/account';
import authentication from '../reducers/authentication';
import user from '../reducers/user';
import modelPortfolio from '../reducers/modelPortfolio';
import portfolio from ... | AlexisDeschamps/portfolio-rebalancer | app/reducers/index.js | JavaScript | mit | 1,039 |
/* VARIABLES */
/* BASE */
html,
body {
font-family: "helvetica neue";
font-size: 1em;
line-height: 1.4;
height: 100%;
margin: 0;
padding: 0;
background-color: #fafafa; }
a {
text-decoration: none;
color: inherit; }
.container {
overflow: hidden;
*zoom: 1;
margin: 0 20px; }
.site-content {
... | asepnur/fascal-static | src/css/sign.css | CSS | mit | 3,815 |
#!/bin/sh
IP=192.168.0.101
timer=30
events=500
throttle=350
adb usb
sleep 2
adb tcpip 5555
sleep 5
#TODO: Get args from terminal
adb connect $IP
sleep 3
connectStatus=`adb devices|wc -l`
if [[ $connectStatus -gt 3 ]]; then
echo "Safe to Disconnect"
for i in `seq $timer 1`;
do
echo $i
sleep 1
done... | rahatm1/AndroidMonkeyPrank | AndroidMonkeyPrank.sh | Shell | mit | 532 |
#ifndef BITCOIN_QT_ASKPASSPHRASEPAGE_H
#define BITCOIN_QT_ASKPASSPHRASEPAGE_H
#include <QDialog>
namespace Ui {
class AskPassphrasePage;
}
class WalletModel;
/** Ask for passphrase. Used for unlocking at startup.
*/
class AskPassphrasePage : public QDialog
{
Q_OBJECT
public:
enum Mode {
Encryp... | onsightit/solarcoin | src/qt/askpassphrasepage.h | C | mit | 948 |
## 100x=37
| dvberkel/SPA2014-lightning-talk | slides/100x37.md | Markdown | mit | 12 |
---
layout: post
title: "JAVA8实战 - 基础知识"
date: 2017-10-26 22:47:37
categories: 读书笔记
---
# 概要
- JAVA8是发布以来变化最大的一次
- 完全向下兼容
- 引入新的语法和设计模式,帮助开发者编写更清楚、更简洁的代码
- 引入函数式编程方式
- 其他的一些优化改进
# 基础知识
- 总结java的主要变化:`Lambda、方法引用、流和默认方法`
- 了解行为`参数化`,这是一种`软件开发模式`,也是引入Lambda的主要原因
- 全面解释Lambda和方法引用
## 为什么要关心Java8
- Java8让开发者使用起来更容... | stoneyangxu/stoneyangxu.github.io | _posts/blog/2017-10-26-java-8-in-action-1.md | Markdown | mit | 28,394 |
//! WARNING: This file is generated, derived from table payment.exchange_rate, DO NOT EDIT
use chrono::datetime::DateTime;
use chrono::offset::utc::UTC;
use gen::column;
use gen::schema;
use gen::table;
use rustc_serialize::json::Json;
use rustc_serialize::json::ToJson;
use rustorm::dao::Dao;
use rustorm::dao::IsDao;
... | ivanceras/codegenta | tests/gen/payment/exchange_rate.rs | Rust | mit | 13,914 |
---
path: '/fpv/how-to-direct-solder-vtx-antenna/'
date: '2017-10-22'
title: 'How to direct solder an antenna to your vtx'
author: 'Georgi Yanev'
affiliate: 'Links to Banggood or Amazon in this article are affiliate links and would support the blog if used to make a purchase.'
draft: false
category: 'fpv'
tags:
- 'wi... | jumpalottahigh/blog.georgi-yanev.com | content/posts/fpv/2017-10-22-how-to-direct-solder-vtx-antenna/index.md | Markdown | mit | 7,427 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>Many-to-Many</title>
<link rel="stylesheet" type="text/css" href="/styles/main.css?v=2.5.1">
<script src="/scripts/vendor.js?v=2.5.1"></script>
<... | many-to-many/ica | app/index.html | HTML | mit | 28,050 |
var mongo = require('mongodb');
var fs = require('fs');
var path = require("path");
var Server = mongo.Server,
Db = mongo.Db,
BSON = mongo.BSONPure;
var server = new Server('localhost', 27017, {auto_reconnect: true});
db = new Db('vivudb', server);
function getExtPart(str){
var n=str.split(".");
return n[... | tonycaovn/vivuserver | services/audio.js | JavaScript | mit | 5,449 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | kuhlenh/port-to-core | Reports/ta/tavisca.travelnxt.activity.lib.1.4.15.55/Tavisca.TravelNxt.Caching.Client-net40.html | HTML | mit | 9,679 |
# Guardia
Javascript library for the Specification and Enforcement of Security Policies at application level.
## Description
- TODO
## Install
GUARDIA depends on some external libraries. Make sure you include these libraries before guardia:
- trait.js @ npm
## Usage
Guardia is an internal DSL as such you need an ... | scull06/guardia | README.md | Markdown | mit | 4,668 |
var gulp = require('gulp');
var connect = require('gulp-connect');
var wiredep = require('wiredep').stream;
var $ = require('gulp-load-plugins')();
var del = require('del');
var jsReporter = require('jshint-stylish');
var annotateAdfPlugin = require('ng-annotate-adf-plugin');
var pkg = require('./package.json');
var a... | reshak/angular-dashboard-framework | sample/widgets/deviceInventory/gulpfile.js | JavaScript | mit | 2,787 |
from rest_framework import serializers
from rest_auth.serializers import UserDetailsSerializer
class UserSerializer(UserDetailsSerializer):
website = serializers.URLField(source="userprofile.website", allow_blank=True, required=False)
about = serializers.CharField(source="userprofile.about", allow_blank=True... | ZachLiuGIS/reactjs-auth-django-rest | django_backend/user_profile/serializers.py | Python | mit | 1,016 |
/** @license React vundefined
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !... | cdnjs/cdnjs | ajax/libs/react/18.0.0-alpha-bdd6d5064-20211001/umd/react.development.js | JavaScript | mit | 112,128 |
<?
$prefix = $_SERVER['DOCUMENT_ROOT'];
require_once($prefix . '/common/markdown.php');
require_once($prefix . '/common/smartypants.php');
// Connect to Database
include('common/dbconnect.php');
// Only items that have been published
// (No posts scheduled for the future)
$post_cutoff_time = time();
// Number of Pos... | mk14/Long-Beach | atom-feed.php | PHP | mit | 3,777 |
<div id="sidetoggle">
<div>
<div class="sidefilter">
<form class="toc-filter">
<span class="glyphicon glyphicon-filter filter-icon"></span>
<span class="glyphicon glyphicon-remove clear-icon" id="toc_filter_clear"></span>
<input type="text" id="toc_filter_input" placeholder="Enter ... | piedoom/TumblrSharp | docs/api/toc.html | HTML | mit | 132,145 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
namespace Azure.ResourceManager... | AsrOneSdk/azure-sdk-for-net | sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/NetworkWatcherGetAzureReachabilityReportOperation.cs | C# | mit | 3,516 |
angular.module('ExampleCtrl', []).controller('ExampleCtrl', ['$scope',
function($scope) {
$scope.createItems = function() {
$scope.items = [];
for (var i = 0; i < 100; i++) {
$scope.items[i] = {
ratio: Math.max(0.4, Math.random() * 2),
color: ... | homerjam/angular-columnify | example/app.js | JavaScript | mit | 557 |
package model.expression;
/**
* The type Operation.
*/
public class Operation
{
/**
* The constant ADD.
*/
public static final int ADD = 1;
/**
* The constant SUBTRACT.
*/
public static final int SUBTRACT = 2;
/**
* The constant MULTIPLY.
*/
public static fi... | leyyin/university | advanced-programming-methods/labs/toy-interpreter-java/src/model/expression/Operation.java | Java | mit | 895 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_10) on Fri Feb 02 11:42:09 PST 2007 -->
<TITLE>
Index
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
<SCRIP... | IncaProject/IncaProject.github.io | releases/2.0/javawsdocs/index-all.html | HTML | mit | 249,778 |
var _ = require('lodash'),
EventEmitter = require('events').EventEmitter,
config = require('./config'),
Channel = require('./channel'),
Connection = require('./connection'),
Bus = require('./bus'),
API = require('./utils');
var subscribedChannels;
func... | dobrite/gusher | src/javascripts/gusher.js | JavaScript | mit | 1,015 |
# https://www.reddit.com/r/zsh/comments/eblqvq/del_pgup_and_pgdown_input_in_terminal/fb7337q/
# If NumLock is off, translate keys to make them appear the same as with NumLock on.
bindkey -s '^[OM' '^M' # enter
bindkey -s '^[Ok' '+'
bindkey -s '^[Om' '-'
bindkey -s '^[Oj' '*'
bindkey -s '^[Oo' '/'
bindkey -s '^[OX' '='... | pdelre/dotfiles | zsh/bindkey.zsh | Shell | mit | 2,100 |
var less = require('less');
var lessStr = '.class { width: (1+1)}';
less.render(lessStr, function(e, output) {
console.log(output.css);
});
console.log(less.render(lessStr)); | escray/besike-nodejs-harp | lessExample.js | JavaScript | mit | 177 |
# -*- mode: julia; -*-
VERSION >= v"0.4.0-dev+6521" && Base.__precompile__(true)
module WAV
export wavread, wavwrite, wavappend, wavplay
export WAVArray, WAVFormatExtension, WAVFormat
export isextensible, isformat, bits_per_sample
export WAVE_FORMAT_PCM, WAVE_FORMAT_IEEE_FLOAT, WAVE_FORMAT_ALAW, WAVE_FORMAT_MULAW
using... | JuliaPackageMirrors/WAV.jl | src/WAV.jl | Julia | mit | 30,238 |
namespace LibMinecraft
{
public struct Vector3
{
public static Vector3 Zero
{
get { return new Vector3(0, 0, 0); }
}
public static Vector3 UpX
{
get { return new Vector3(1, 0, 0); }
}
public static Vector3 UpY
{
get { return new Vector3(0, 1, 0); }
}
public static Vector3 UpZ
{
get... | inku25253/MineProtocol.net | LibMinecraft/Vector3.cs | C# | mit | 996 |
//
// BViewController.h
// MainProject
//
// Created by casa on 2016/12/10.
// Copyright © 2016年 casa. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface BViewController : UIViewController
- (instancetype)initWithContentText:(NSString *)contentText;
@end
| ModulizedProject/MainProject | MainProject/MainProject/BViewController/BViewController.h | C | mit | 274 |
# Glass Plate Game Markers
Copyright © 2014 Bart Massey
This package generates three files of printable SVG
useful for feeding to a laser cutter to make wooden markers
for the [Glass Plate Game](http://glassplategame.com).
The SVG generator is written in Python 3. The easiest way
to get the files is to just run "mak... | BartMassey/gpgame-markers | README.md | Markdown | mit | 1,411 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TheCode
{
public class Customer
{
public string Id { get; set; }
public string Name { get; set; }
public bool Pro { get; set; }
}
}
| chadmichel/UnitTest | TheCode/Customer.cs | C# | mit | 298 |
<?php
$ISO_3166_2 = array();
$ISO_3166_2['01'] = "Adana";
$ISO_3166_2['02'] = "Adiyaman";
$ISO_3166_2['03'] = "Afyonkarahisar";
$ISO_3166_2['04'] = "Agri";
$ISO_3166_2['68'] = "Aksaray";
$ISO_3166_2['05'] = "Amasya";
$ISO_3166_2['06'] = "Ankara";
$ISO_3166_2['07'] = "Antalya";
$ISO_3166_2['75'] = "Ardahan";
$ISO_3166_2... | Yarduddles/ISO-3166 | PHP/ISO-3166-2-TR.php | PHP | mit | 2,522 |
---
layout: post
title: "Wonderfull article (CHANGE ME)"
date: 2016-11-28 19:27:02
categories: General
tags:
excerpt: This post is all about XYZ (CHANGE ME)
---
http://graphs.grevian.org/documentation
http://www.graphviz.org/content/node-shapes
http://www.graphviz.org/content/attrssimpl
http://www.graphviz.org/Do... | thalib/thalib.github.io | _drafts/2016-11-28-dot-language-graphviz.md | Markdown | mit | 451 |
<?php
require_once(__DIR__ . "/../model/config.php");
//takes and stores exp - exp4
//$exp = filter_input(INPUT_POST, "exp", FILTER_SANITIZE_STRING);
//$exp1 = filter_input(INPUT_POST, "exp1", FILTER_SANITIZE_STRING);
//$exp2 = filter_input(INPUT_POST, "exp2", FILTER_SANITIZE_STRING);
//$exp3 = filter_input(INPUT_POST... | SimonAnna/final | Php/controller/save-user.php | PHP | mit | 815 |
import React from "react";
import { SelectAddressModal } from "../ImportAccount";
import { roundingNumber } from "../../utils/converter"
import PathSelector from "../../containers/CommonElements/PathSelector";
const ImportByDeviceView = (props) => {
function choosePath(dpath) {
let inputPath = document.getEleme... | KyberNetwork/KyberWallet | src/js/components/ImportAccount/ImportByDeviceView.js | JavaScript | mit | 4,782 |
// Copyright (c) 2014 The Bitcoin Core developers
// Copyright (c) 2014-2015 The Singularity developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "primitives/transaction.h"
#include "main.h"
#include <boost/t... | grumpydevelop/singularity | src/test/main_tests.cpp | C++ | mit | 806 |
# qlass
A classical inheritance implementation in JavaScript
# usage
```
npm install
npm test
```
# example
```javascript
qlass("Animal", {
Animal: function(name) { this.name = name; },
walk: function() { return this.name + " is walking."; }
});
qlass("Animals.Dog : Animal", {
Dog: function(name) { this.base(name... | lksmth/qlass | README.md | Markdown | mit | 547 |
class FixColumnName < ActiveRecord::Migration
def change
rename_column :posts, :user, :username
rename_column :tagged_posts, :user, :username
add_column :posts, :likes, :integer
add_column :tagged_posts, :likes, :integer
end
end
| joannangx/visionaria_app | db/migrate/20161029100010_fix_column_name.rb | Ruby | mit | 254 |
# CMAKE generated file: DO NOT EDIT!
# Generated by "MinGW Makefiles" Generator, CMake Version 2.8
# Relative path conversion top directories.
SET(CMAKE_RELATIVE_PATH_TOP_SOURCE "D:/lang/OpenCV-2.2.0")
SET(CMAKE_RELATIVE_PATH_TOP_BINARY "D:/lang/OpenCV-2.2.0/dbg-w32")
# Force unix paths in dependencies.
SET(CMAKE_FOR... | eirTony/INDI1 | to/lang/OpenCV-2.2.0/dbg-w32/modules/highgui/CMakeFiles/CMakeDirectoryInformation.cmake | CMake | mit | 1,061 |
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>coffIT - Admin</title>
<link rel="stylesheet" type="text/css" href="/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<link href="/favicon.ico" title="Icon" type="image/x-icon" rel="icon" />
</head>
... | U-Boot-Sidekicks/CoffeeKiosk | Server/templates/index.html | HTML | mit | 1,734 |
package iso20022
// Details of the securities trade.
type SecuritiesTradeDetails54 struct {
// Reference assigned to the trade by the investor or the trading party. This reference will be used throughout the trade life cycle to access/update the trade details.
TradeIdentification []*Max35Text `xml:"TradId,omitempty... | fgrid/iso20022 | SecuritiesTradeDetails54.go | GO | mit | 4,526 |
const Discord = require('discord.js');
const client = new Discord.Client({
forceFetchUsers: true,
autoReconnect: true,
disableEveryone: true,
});
const settings = require('./auth.json');
const chalk = require('chalk');
const fs = require('fs');
const moment = require('moment');
require('./util/eventLoader')(client);... | Ryahn/SoEBot | bot.js | JavaScript | mit | 2,929 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hammer: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.04.2-2.0.5/released/8.9.1/hammer/1.3.2+8.14.html | HTML | mit | 7,377 |
class TokyoMetro::App::Renderer::RealTimeInfos::EachRailwayLine < TokyoMetro::Factory::Decorate::MetaClass
TRAIN_OPERATION_STATUS_FOR_TEST = ::YAML.load_file( "#{ ::TokyoMetro::DICTIONARY_DIR }/view/train_operation_status_for_test.yaml" )
def initialize( request , railway_line , http_client , test_mode )
supe... | osorubeki-fujita/odpt_tokyo_metro | lib/tokyo_metro/app/renderer/real_time_infos/each_railway_line.rb | Ruby | mit | 7,218 |
# -*- coding: utf-8 -*-
"""
flask_via.examples.basic
========================
A simple ``Flask-Via`` example Flask application.
"""
from flask import Flask
from flask.ext.via import Via
from flask.ext.via.routers.default import Functional
app = Flask(__name__)
def foo(bar=None):
return 'Functional Foo View!'... | thisissoon/Flask-Via | flask_via/examples/basic.py | Python | mit | 542 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>of-ocaml: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.0-2.0.5/released/8.7.1+2/of-ocaml/2.0.0.html | HTML | mit | 7,008 |
<?php
use App\Match;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
class CreateMatchesTable extends Migration
{
public function up()
{
Schema::create('matches', function(Blueprint $table) {
$table->increments(... | nixsolutions/ggf | database/migrations/2015_07_07_144512_create_matches_table.php | PHP | mit | 1,556 |
<ion-view view-title={{pub.name}}>
<ion-content data-tap-disabled="false" class="specific-pub-page">
<div>
About this pub:<br>
<div class="pub-description">
{{pub.description}}
</div>
</div>
<div>
Owner: {{owner.fullName}}
</div>
<ion-toggle ng-show="pub.promotio... | lupascugabrielcristian/PubMeWeb | Mobile/www/templates/specific.html | HTML | mit | 1,505 |
require('server.babel'); // babel registration (runtime transpilation for node)
const path = require('path');
const LodashModuleReplacementPlugin = require('lodash-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const autoprefixer = require('autoprefixer');
const webpack = require... | sankalplakhina/isomorphic-universal-react-redux-boilerplate-seed | webpack/prod.config.js | JavaScript | mit | 5,226 |
<!-- SEMESTERS OSCSS ALUM WESBITE PAGE -->
<!doctype html>
<html lang="en">
<html>
<head>
<title>SEMESTERS</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--STYLESHEETS-->
<link rel="stylesheet... | jencol/OSCSSALUMNI | semesters.html | HTML | mit | 4,175 |
using System.ComponentModel.DataAnnotations;
namespace OptionsWebSite.ViewModels.Account
{
public class ExternalLoginConfirmationViewModel
{
[Required]
[EmailAddress]
public string Email { get; set; }
}
}
| FriendlyNPC/MVC6_Mac | OptionsWebsite/ViewModels/Account/ExternalLoginConfirmationViewModel.cs | C# | mit | 253 |
package com.dev.lambda.demo;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.junit.BeforeClass;
import org.junit.Test;
import com.amazonaws.services.lambda.runtime.Context;
import com.dev.lambda.demo.model.Input;
/**
* A simple test harness for locally invoking your Lambda fu... | kaulavinash/berryme | src/test/java/com/dev/lambda/demo/LambdaFunctionHandlerTest.java | Java | mit | 1,143 |
GeekTool Circle Generator
=========================
This script generates circles to indicate different percentages. This is useful for displaying processor, memory, and battery information through GeekTool.
Instructions
============
- Open 'src/Geeklet Images.xcodeproj' with Xcode.
- Modify the 'path' variable in f... | jprider63/GeekTool-Circle-Generator | README.md | Markdown | mit | 424 |
/*****************************************************************************
* *
* OpenNI 2.x Alpha *
* Copyright (C) 2012 PrimeSense Ltd. *
* ... | Windowsfreak/NIStreamer | Android/NiViewer.Android/src/org/openni/android/tools/niviewer/NiViewerActivity.java | Java | mit | 10,505 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>flocq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.15.0/flocq/3.3.1.html | HTML | mit | 7,341 |
/*
glext-emu
Header-only libraries for emulation of select OpenGL extensions for easier
programming while maintaining backwards compatibility with feature-challenged
drivers.
The MIT License (MIT)
Copyright (c) 2013 Leszek Godlewski
Permission is hereby granted, free of charge, to any person obtaining a copy of
thi... | inequation/glext-emu | include/GL/glext-emu.h | C | mit | 12,519 |
{% extends "base.html" %}
{% block title %}资产管理{% endblock %}
{% block link %}
{{ super() }}
<link href="/static/css/dataTables/dataTables.bootstrap.min.css" rel="stylesheet">
<link href="/static/bootstrap-slider/css/bootstrap-slider.min.css" rel="stylesheet">
<link href="/static/bootstrap-datetimepick... | 51reboot/actual_09_homework | 09/huxianglin/cmdb09/user/templates/asset.html | HTML | mit | 7,993 |
<?php
namespace Vision\DependencyInjection;
use Psr\Container\NotFoundExceptionInterface;
use RuntimeException;
class NotFoundException extends RuntimeException implements NotFoundExceptionInterface
{
}
| Trainmaster/Vision | src/DependencyInjection/NotFoundException.php | PHP | mit | 206 |
canvas-pong
===========
A pong game created trying to figure out how to make games in Javascript. Utilies some kind of entity component system.
| nohatssir/canvas-pong | README.md | Markdown | mit | 145 |
<?php defined('KOHANASYSPATH') or die('No direct script access.');
/**
* UTF8::from_unicode
*
* @package Kohana
* @author Kohana Team
* @copyright (c) 2007-2011 Kohana Team
* @copyright (c) 2005 Harry Fuecks
* @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt
*/
function _from... | ivantcholakov/codeigniter-utf8 | application/third_party/kohana/utf8/from_unicode.php | PHP | mit | 1,718 |
<!DOCTYPE html>
<html class="theme-next muse use-motion" lang="zh-Hans">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta name="theme-color" content="#222">
<script src="//cdn.boo... | Yoree/Yoree.github.io | 2018/01/02/【2018-1-1】-三个月的开始/index.html | HTML | mit | 12,062 |
/*
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | boggad/jdk9-sample | sample-catalog/spring-jdk9/src/spring.jms/org/springframework/jms/connection/JmsResourceHolder.java | Java | mit | 7,474 |
module HaSC.Prim.IntermedSyntax where
import HaSC.Prim.ObjInfo
type IProgram = [IDecl]
type IVar = ObjInfo
type Label = String
data IDecl = IVarDecl IVar
| IFunDecl IVar [IVar] [ICode]
deriving(Show, Eq, Ord)
data ICode = ILabel Label
| ILet IVar IVar
| IL... | yu-i9/HaSC | src/HaSC/Prim/IntermedSyntax.hs | Haskell | mit | 794 |
<?php
namespace GRT\MainBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class GRTMainBundle extends Bundle
{
}
| mwd410/GRT-Interview | src/GRT/MainBundle/GRTMainBundle.php | PHP | mit | 122 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0-beta2) on Mon Mar 19 19:30:20 CST 2007 -->
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>
接口 javax.lang.model.element.An... | piterlin/piterlin.github.io | doc/jdk6_cn/javax/lang/model/element/class-use/AnnotationValueVisitor.html | HTML | mit | 12,010 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!--http://paulrhayes.com/experiments/cube-3d/-... | Skoshi/Aviation-site_new_ | Hangar.html | HTML | mit | 18,137 |
import { Component, Inject, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { AuthService } from './auth.service';
import { IToastr, TOASTR_TOKEN } from '../common/toastr.service';
@Component({
templateUrl: 'app/user... | AdamNagy/FrontendTryouts | Angular/EventManager/app/user/profile.component.ts | TypeScript | mit | 1,870 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | kuhlenh/port-to-core | Reports/fm/fm.websync.chat.ondemand.4.6.3/FM.WebSync.Chat-wp7.html | HTML | mit | 13,777 |