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 |
|---|---|---|---|---|---|
import React from 'react';
import { getCategoryGroups } from '../selectors/categoryGroups';
import { getCategoriesByGroupId } from '../selectors/categories';
import { getSelectedMonthBudgetItemsByCategoryId, getBudgetItemsSumUpToSelectedMonthByCategoryId } from '../selectors/budgetItems';
import { getTransactionsSumUpT... | Nauktis/inab | client/src/components/BudgetTable.js | JavaScript | mit | 2,735 |
class EventProcessor
def initialize(event)
@event = event
end
def process
return SipgateIo::XmlResponse.reject
end
end
| superbilk/sipgate_io | test/dummy/app/models/event_processor.rb | Ruby | mit | 136 |
class RemoveModels < ActiveRecord::Migration[4.2]
def change
drop_table :roles
drop_table :role_names
drop_table :people
end
end
| ZeusWPI/Gandalf | db/migrate/20140308135535_remove_models.rb | Ruby | mit | 145 |
# btp_expression_var_reference.BTPExpressionVarReference
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | [**btp_name.BTPName**](BTPName.md) | | [optional]
**short_descriptor** | **str** | | [optional]
**atomic** | **bool** | | [optional]
**s... | onshape-public/onshape-clients | python/docs/BTPExpressionVarReference.md | Markdown | mit | 907 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>cfgv: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.5.0/cfgv/8.6.0.html | HTML | mit | 7,101 |
'use strict';
module.exports = {
db: 'mongodb://localhost/equinix-test',
port: 3001,
app: {
title: 'Equinix - Test Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callbackURL: 'http://localhost:3000/auth/facebook/callbac... | linhlam/equinix | config/env/test.js | JavaScript | mit | 1,371 |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class PotatoSelections extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
\Schema::create('potato_selections', function (Blueprint $table) {
... | tpavlek/YEGVotes | database/migrations/2016_05_26_103345_potato_selections.php | PHP | mit | 657 |
import { injectReducer } from '../../../../store/reducers'
export default (store) => ({
path: 'admin/positions/add',
/* Async getComponent is only invoked when route matches */
getComponent (nextState, cb) {
/* Webpack - use 'require.ensure' to create a split point
and embed an async module loader (... | kritikasoni/smsss-react | src/routes/Admin/Position/AddPosition/index.js | JavaScript | mit | 828 |
# -*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext_lazy as _
from django.forms import inlineformset_factory
from djangosige.apps.financeiro.models import PlanoContasGrupo, PlanoContasSubgrupo
class PlanoContasGrupoForm(forms.ModelForm):
class Meta:
model = Pl... | thiagopena/djangoSIGE | djangosige/apps/financeiro/forms/plano.py | Python | mit | 1,165 |
/*
* This code is under the MIT License
*
* Copyright 2016, Jonathan Alexander, All rights reserved
*/
using Monitor.Core.Utilities;
using System.IO;
namespace JunctionManager {
class JunctionManager {
public static void MoveWithJunction(string origin, string target) {
//Copy folder and... | notdisliked/JunctionManager | JunctionManager/JunctionManager.cs | C# | mit | 1,368 |
---
layout: micropubpost
date: '2018-02-10T20:03:50.542Z'
title: ''
mf-location:
- 'geo:41.82572,-71.40651;u=27.701000213623047'
slug: '72230'
mf-photo:
- 'https://s3.amazonaws.com/coffeebucks/jimhenson.jpg'
category: social
---
At the Providence Athenaeum
| herestomwiththeweather/herestomwiththeweather.github.io | _posts/2018-02-10-72230.md | Markdown | mit | 261 |
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django.contrib.auth.admin import UserAdmin
from django.contrib import admin
from django import forms
class VoterCreationForm(UserCreationForm):
section = forms.CharField()
def save(self, com... | seanballais/SAElections | SAElections/voting/admin.py | Python | mit | 1,715 |
package main
var (
// Debug var to switch mode from outside
debug string
// CommitHash exported to assign it from main.go
commitHash string
)
// Most easiest way to configure
// an application is define config as
// yaml string and then parse it into
// map.
// How it works see here:
// https://github.com/ole... | jasonf7/memories-of-harambe | server/conf.go | GO | mit | 459 |
package com.dgex.offspring.nxtCore.service;
import java.util.List;
import nxt.Account;
import nxt.Alias;
import nxt.Block;
import nxt.Transaction;
import com.dgex.offspring.nxtCore.core.TransactionHelper.IteratorAsList;
public interface IAccount {
public Account getNative();
public Long getId();
public Str... | incentivetoken/offspring | com.dgex.offspring.nxtCore/src/com/dgex/offspring/nxtCore/service/IAccount.java | Java | mit | 1,085 |
'use strict';
var fetchUrl = require('fetch').fetchUrl;
var packageInfo = require('../package.json');
var httpStatusCodes = require('./http.json');
var urllib = require('url');
var mime = require('mime');
// Expose to the world
module.exports.resolve = resolve;
module.exports.removeParams = removeParams;
/**
* Reso... | andris9/resolver | lib/resolver.js | JavaScript | mit | 4,516 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Clarity.Rpa.Instructions
{
public enum NumberCompareOperation
{
Equal,
NotEqual,
LessThan,
GreaterThan,
LessOrEqual,
GreaterOrEqual,
NumHighCom... | elasota/clarity | Clarity.Rpa/Instructions/NumberCompareOperation.cs | C# | mit | 344 |
require 'tempfile'
require 'fileutils'
require 'config'
require 'open-uri'
require 'data_repository'
class CI
def initialize(opts=Conf.config)
@url = opts.fetch(:url, "http://ci/api/json?tree=jobs[name,builds[timestamp,result,building]]")
@ignored_projects = opts[:ignored_projects] || []
end
def broken_... | reevoo/build-monitor | lib/ci.rb | Ruby | mit | 1,153 |
"use strict"
var o = require("ospec")
var m = require("../../render/hyperscript")
o.spec("hyperscript", function() {
o.spec("selector", function() {
o("throws on null selector", function(done) {
try {m(null)} catch(e) {done()}
})
o("throws on non-string selector w/o a view property", function(done) {
try... | MithrilJS/mithril.js | render/tests/test-hyperscript.js | JavaScript | mit | 18,028 |
<!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>
<title>TestTopicMerge</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script t... | jansc/tmjs | test/unit/TestTopicMerge.html | HTML | mit | 20,928 |
# LD27
**Theme**: 10 Seconds
## Compiling
Requires Haxe 3 and openfl.
```bash
haxelib install HaxePunk
haxelib install HaxePunkTmx
```
Then simply:
```bash
openfl test flash
```
Or remplace flash with neko to have a desktop build.
## MIT License
Copyright (c) 2013 Valentin Lemiere
Permission is hereby granted... | ibilon/LD27 | README.md | Markdown | mit | 1,315 |
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double Pods_VIPER_ExampleTestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_VIPER_ExampleTests... | martinpucik/VIPER-Example | Pods/Target Support Files/Pods-VIPER-ExampleTests/Pods-VIPER-ExampleTests-umbrella.h | C | mit | 338 |
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInitf63a394c8496bb8b8178c286d239e5ee::getLoader();
| jairoserrano/SimpleBlogClase | vendor/autoload.php | PHP | mit | 183 |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["choose_file"] = factory();
else
root["c... | zobzn/choose-file | dist/choose-file.js | JavaScript | mit | 6,946 |
function move(Restangular, $uibModal, $q, notification, $state,$http) {
'use strict';
return {
restrict: 'E',
scope: {
selection: '=',
type: '@',
ngConfirmMessage: '@',
ngConfirm: '&'
},
link: function(scope, element, attrs) {
... | MAGOWARE/backoffice-administration | public/admin/js/smsbatch/move.js | JavaScript | mit | 3,393 |
## Digital Ocean Droplet Notifications for HipChat
Fetches information on droplets from Digital Ocean and notifies a HipChat room when something has changed.
Copy config.yml.sample to config.yml and add your Digital Ocean and HipChat API keys.
## How to use
```heroku create```
```git push heroku master```
```herok... | cggaurav/digitalocean_hipchat | README.md | Markdown | mit | 543 |
let mongoose = require('mongoose');
let URL = process.env.MONGO_URL || 'localhost';
let USER = process.env.MONGO_USR || '';
let PASSWORD = process.env.MONGO_PWD || '';
mongoose.connect(`mongodb://${USER}:${PASSWORD}@${URL}`); //TODO doens't work for localhost
console.log(`Connecting to ${URL}...`);
let db = mongoose.... | tmlewallen/PongPing | server/db.js | JavaScript | mit | 448 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/shared.css">
<link rel="stylesheet" href="css/theme-dark.css">
<link rel="stylesheet" href="css/user-block.css">
<link rel="stylesheet" href="chat.css">
</head>
<body tabindex="-1">
<header>
<div id... | 0----0/sauna | static/chat.html | HTML | mit | 584 |
You must specify a file that contains the private constants ST_DATABASE_SETTINGS and ST_DISCORD_SETTINGS.
You can either have one file for each "database.php" and "discord.php" or you can store both in a file called "00_privateConstants.php". | sciencefyll/stack-guru | config/README.md | Markdown | mit | 242 |
<?php
require_once('./config/accesscontrol.php');
require_once('./utilities.php');
// Set up/check session and get database password etc.
require_once('./config/MySQL.php');
session_start();
sessionAuthenticate();
$mysql = mysql_connect($mysql_host, $mysql_user, $mysql_password);
if (!mysql_select_db($mysql_database... | louiseadennis/primeval_game | www/location32.php | PHP | mit | 1,052 |
define([], function() {
return Backbone.View.extend({
tagName: "a",
className: "projectlink",
attributes: {
href: "#"
},
template: _.template("<%- name %>"),
events: {
"click": "toggleSelection"
},
initialize: function() {
this.listenTo(this.model, "change:selected", function(m, selected) {
... | EusthEnoptEron/bakastats | js/views/projectview.js | JavaScript | mit | 704 |
'use strict';
(function() {
describe('HomeController', function() {
//Initialize global variables
var scope,
HomeController,
myFactory;
// Load the main application module
beforeEach(module(ApplicationConfiguration.applicationModuleName));
beforeEach(inject(function($controller, $rootScope)... | kylelin47/great-unknown | public/modules/core/tests/home.client.controller.test.js | JavaScript | mit | 701 |
<?php
namespace Droath\ConsoleForm\Field;
/**
* Define field interface.
*/
interface FieldInterface
{
/**
* The data type the field holds.
*
* @return string
*/
public function dataType();
/**
* Field question class name.
*
* @return string
* The question class... | droath/console-form | src/Field/FieldInterface.php | PHP | mit | 591 |
using System;
using System.Linq;
namespace GestorONG.Models
{
interface IPaginationCollaborators<T> where T:class
{
/// <summary>
/// Get data paginated.
/// </summary>
/// <param name="filter">Filter applied by user.</param>
/// <param name="initialPage">Initial page.<... | joakDA/gestor-ongd-sps | GestorONG/Models/IPaginationCollaborators.cs | C# | mit | 1,070 |
#!/bin/bash
# --------------------------------------------------------------------------
# Start here...
# --------------------------------------------------------------------------
source $HOME/.dotfiles/scripts/brew.sh
source $HOME/.dotfiles/scripts/zsh.sh
source $HOME/.dotfiles/scripts/home.sh
source $HOME/.dotfile... | awead/dotfiles | bootstrap.sh | Shell | mit | 426 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>XUnit2Params - FAKE - F# Make</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Steffen Forkmann, Mauricio Scheffer, Colin Bull">
... | Haacked/Rothko | tools/FAKE.Core/docs/apidocs/fake-xunit2helper-xunit2params.html | HTML | mit | 19,075 |
package com.bitdubai.fermat_api.layer.dmp_basic_wallet.common.enums;
/**
* Created by natalia on 06/07/15.
*/
public enum BalanceType {
AVAILABLE("AVAILABLE"),
BOOK("BOOK");
private final String code;
BalanceType(String code) {
this.code = code;
}
public String getCode() { retur... | fvasquezjatar/fermat-unused | fermat-api/src/main/java/com/bitdubai/fermat_api/layer/dmp_basic_wallet/common/enums/BalanceType.java | Java | mit | 574 |
//
// DZResponse.h
// DZNetworking
//
// Created by Nikhil Nigade on 7/28/15.
// Copyright (c) 2015 Dezine Zync Studios LLP. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DZResponse : NSObject
@property (nonatomic, copy, readonly) id responseObject;
@property (nonatomic, copy, readonly) NS... | DZNS/DZNetworking | Sources/DZNetworking/Core/DZResponse.h | C | mit | 522 |
<?php namespace TagProNews\Exceptions;
use Exception;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler {
/**
* A list of the exception types that should not be reported.
*
* @var array
*/
protected $dontReport = [
'Symfony\Component\HttpKernel\Excep... | tagpronews/api | app/Exceptions/Handler.php | PHP | mit | 951 |
//
// TLConversationCell.h
// TLChat
//
// Created by 李伯坤 on 16/1/23.
// Copyright © 2016年 李伯坤. All rights reserved.
#import <UIKit/UIKit.h>
#import "TLConversation.h"
#define HEIGHT_CONVERSATION_CELL 64.0f
typedef NS_ENUM(NSInteger, TLConversationCellSeperatorStyle) {
TLConversationCellSeperatorS... | tbl00c/TLChat | TLChat/Modules/Conversation/TLConversationViewController/Views/TLConversationCell.h | C | mit | 742 |
# lurl
little url app
There are lots of public URL shortners. This is my own.
# Functionality
This app has no mechanism (from the web) to add URLs. This is intentional, as
it prevents the need to write a login or authentication system.
# Configuration
This is run as a resident nodejs app.
Two optional environent ... | mattpep/lurl | README.md | Markdown | mit | 718 |
/** @file This file contains the functions to adjust an existing polygon. */
/**
* Creates the adjusting event
* @constructor
* @param {string} dom_attach - The html element where the polygon lives
* @param {array} x - The x coordinates for the polygon points
* @param {array} y - The y coordinates for t... | joelimlimit/LabelMeAnnotationTool | annotationTools/js/adjust_event.js | JavaScript | mit | 17,777 |
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import <iWorkImport/TSCH3DSceneRenderSetup.h>
// Not exported
@interface TSCH3DSceneRenderCameraSetup : TSCH3DSceneRenderSetup
{
}
+ (id)allocWithZone:(struct _NSZone *)arg1;
... | matthewsot/CocoaSharp | Headers/PrivateFrameworks/iWorkImport/TSCH3DSceneRenderCameraSetup.h | C | mit | 550 |
#include <algorithm>
#include <map>
#include <math.h>
#include <mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#ifndef HUGE_JOB_MODE
#include <fj_tool/fapp.h>
#include <fjcoll.h>
#endif
using namespace std;
#include "pearson-3d.h"
bool EXTEND_MISSION=false;
int T_MAX;
int T_MO... | nushio3/formura | examples/pearson-3d-main.cpp | C++ | mit | 6,294 |
# -*- coding: utf-8 -*-
# Simple script to test sending UTF8 text with the GrowlNotifier class
import logging
logging.basicConfig(level=logging.DEBUG)
from gntp.notifier import GrowlNotifier
import platform
growl = GrowlNotifier(notifications=['Testing'],password='password',hostname='ayu')
growl.subscribe(platform.nod... | kfdm/gntp | test/subscribe.py | Python | mit | 347 |
---
author: slowe
categories: Musing
comments: true
date: 2012-06-26T09:02:46Z
slug: thinking-out-loud-why-not-mpls-in-ip
tags:
- Networking
- Virtualization
- VXLAN
- MPLS
- ToL
title: 'Thinking Out Loud: Why Not MPLS-in-IP?'
url: /2012/06/26/thinking-out-loud-why-not-mpls-in-ip/
wordpress_id: 2648
---
As I was revie... | lowescott/weblog | content/post/2012-06-26-thinking-out-loud-why-not-mpls-in-ip.md | Markdown | mit | 2,791 |
{
"date": "2017-12-26",
"type": "post",
"title": "Report for Tuesday 26th of December 2017",
"slug": "2017\/12\/26",
"categories": [
"Daily report"
],
"images": [],
"health": {
"weight": 78.6,
"height": 173,
"age": 13523
},
"nutrition": {
"... | aquilax/quantified.avtobiografia.com | content/post/2017-12-26.md | Markdown | mit | 1,517 |
package dis
func Rearrange(s string, k int) string {
hm := make([]int, 26)
valid := make([]int, 26)
var id, maxF, numOfMaxF int
for _, c := range s {
id = int(c - 'a')
hm[id]++
if hm[id] > maxF {
maxF, numOfMaxF = hm[id], 1
} else if hm[id] == maxF {
numOfMaxF++
}
}
if (maxF-1)*k+numOfMaxF > len(... | Catorpilor/LeetCode | 358_rearrange_string_k_distance_apart/dis.go | GO | mit | 768 |
require 'test_helper'
class KeysallsControllerTest < ActionController::TestCase
setup do
@keysall = keysalls(:one)
end
test "should get index" do
get :index
assert_response :success
assert_not_nil assigns(:keysalls)
end
test "should get new" do
get :new
assert_response :success
en... | JaniKibichi/walkby | test/controllers/keysalls_controller_test.rb | Ruby | mit | 1,014 |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open... | GoC-Spending/data-corporations | html/114613650000.html | HTML | mit | 266,587 |
<!doctype html>
<html>
<head>
<title>You are offline!</title>
<meta charset="utf-8">
<meta name="theme-color" content="#532814">
<link rel="manifest" href="/static/starwarspwa/manifest.json">
<link rel="stylesheet" href="/static/starwarspwa/stylesheets/starwars.css">
</... | jedijulia/starwarspwa | starwarspwa/templates/starwarspwa/offline.html | HTML | mit | 779 |
'use strict';
module.exports = {
images: {
files: [
{
cwd : 'src/assets/img/',
src : '**/*',
dest : '.build/img/',
flatten : false,
expand : true
}
]
},
config: {
file... | Wolox/angular-nodewebkit-seed | grunt/options/copy.js | JavaScript | mit | 548 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<title>client</title>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
| rojimark/tab-tracker | client/index.html | HTML | mit | 285 |
// Write a program that extracts from a given text all palindromes, e.g. "ABBA", "lamal", "exe".
function findPalindromes(input) {
var words = input.replace(/\W+/g, ' ').replace(/\s+/, ' ').trim().split(' '),
palindromes = [],
length = words.length,
currentWord,
i;
for (i = 0;... | danisio/JavaScript-Homeworks | 08.Strings/Problem10-FindPalindromes.js | JavaScript | mit | 958 |
module MailItemsHelper
end
| xsunsmile/smartmail | app/helpers/mail_items_helper.rb | Ruby | mit | 27 |
# yahoo-weather-rs
The `yahoo-weather-rs` create downloads the actual weather data for a given location and transforms it into rust data structures.
---
## Usage
Add `yahoo-weather-rs` as a dependency in `Cargo.toml`:
```toml
[dependencies]
yahoo-weather = "0.2"
```
Use the `get_weather()` function to get the weathe... | Roba1993/yahoo-weather-rs | README.md | Markdown | mit | 628 |
#Scripts to plot the data, currently only in the context of Q&A communites.
| Nik0l/UTemPro | Plot.py | Python | mit | 76 |
package org.shenit.tutorial.android;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
public class HelloWorldActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layou... | jgnan/edu | android/AndroidTutorial/app/src/main/java/org/shenit/tutorial/android/HelloWorldActivity.java | Java | mit | 353 |
package com.sinovoice.pathfinder.hcicloud.hwr;
import android.content.Context;
import android.util.Log;
import com.sinovoice.hcicloudsdk.api.hwr.HciCloudHwr;
import com.sinovoice.hcicloudsdk.common.hwr.HwrInitParam;
import com.sinovoice.pathfinder.hcicloud.sys.SysConfig;
public class HciCloudHwrHelper {
private ... | open-sinovoice/sinovoice-pathfinder | Pathfinder/src/com/sinovoice/pathfinder/hcicloud/hwr/HciCloudHwrHelper.java | Java | mit | 1,907 |
<?php
namespace FdjBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* JoueursTennis
*
* @ORM\Table(name="joueurs_tennis")
* @ORM\Entity(repositoryClass="FdjBundle\Repository\JoueursTennisRepository")
*/
class JoueursTennis
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* ... | Jpilosel/cote | src/FdjBundle/Entity/JoueursTennis.php | PHP | mit | 8,018 |
namespace sharp.Serene.Administration {
@Serenity.Decorators.registerClass()
export class LanguageDialog extends Serenity.EntityDialog<LanguageRow, any> {
protected getFormKey() { return LanguageForm.formKey; }
protected getIdProperty() { return LanguageRow.idProperty; }
protected getL... | narekye/code | sharp/src/Serene/sharp.Serene/sharp.Serene.Web/Modules/Administration/Language/LanguageDialog.ts | TypeScript | mit | 585 |
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>105 brendan oconnor ai-2008-06-05-Clinton-Obama support visualization</title>
</head>
<body>
<p><a title="brendan_oconnor_ai" href="../brendan_oconnor_ai_home.html">brendan_oconnor_ai</a> <a title="brendan_oconnor_ai-2008" href="../home/brendan_oconnor_ai-2008_... | makerhacker/makerhacker.github.io | blog-mining/brendan_oconnor_ai/brendan_oconnor_ai-2008/brendan_oconnor_ai-2008-06-05-Clinton-Obama_support_visualization.html | HTML | mit | 27,937 |
// 19. Write a JavaScript function that returns array elements larger than a number.
//two agrs - an array and a number to be larger than
function isGreater(arr, num) {
//set up an array to contain the results
var resultArray = [];
//iterate through based on length of the arr
for(var i = 0; i < arr.length; i++... | jaj1014/w3-js-exercises | js-functions/exercise-19.js | JavaScript | mit | 517 |
from django.conf.urls.defaults import *
urlpatterns = patterns('member.views',
url(r'^$', 'login', name='passport_index'),
url(r'^register/$', 'register', name='passport_register'),
url(r'^login/$', 'login', name='passport_login'),
url(r'^logout/$', 'logout', name='passport_logout'),
url(r'^active/... | masiqi/douquan | member/urls.py | Python | mit | 478 |
{
"posts": [
{
"url": "/sport/baseball/2018/01/02/BaseballM.1514906011.A.C20.html",
"title": "中職辜 到底怎麼了?",
"image": "http://i.imgur.com/rRjk960.jpg",
"push": "109",
"boo": "8",
"date": "2018-01-02 2... | sunnyKiwi/JustCopy | tag/薪資/json/index.html | HTML | mit | 465 |
## using TrainerRed
TrainerRed is mostly self-evident in use, with a few exceptions; however, it'll still be spelled out below for proper reference.
### contents
* installation
* configuration
* database population
* running a scan
* investigating a user
* investigating a domain
#### installation
Installation of T... | damianb/trainerred | doc/USAGE.md | Markdown | mit | 1,048 |
# -*- coding: utf-8 -*-
"""
The following examples are used to demonstrate how to get/record
analytics
The method signatures are:
Pushbots.get_analytics()
and
Pushbots.record_analytics(platform=None, data=None)
In which you must specify either platform or data.
"""
from pushbots import Pushbots
def example_get_an... | tchar/pushbots | pushbots/examples/analytics.py | Python | mit | 1,805 |
## Request Tokens
Now that you have an Authorization Code, you must exchange it for tokens. Using the extracted Authorization Code (`code`) from the previous step, you will need to `POST` to the [token URL](/api/authentication#authorization-code).
### Example POST to token URL
```har
{
"method": "POST",
"url": "... | yvonnewilson/docs | articles/flows/guides/auth-code/includes/request-tokens.md | Markdown | mit | 3,202 |
<?php
/**
* simplemon
*
* @license ${LICENSE_LINK}
* @link ${PROJECT_URL_LINK}
* @version ${VERSION}
* @package ${PACKAGE_NAME}
* @author Casey McLaughlin <caseyamcl@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*... | caseyamcl/simplemon | app/src/Utility/TwigTryFileLoader.php | PHP | mit | 1,938 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import httpretty
import json
import sure
from pyeqs import QuerySet, Filter
from pyeqs.dsl import Term, Sort, ScriptScore
from tests.helpers import homogeneous
@httpretty.activate
def test_create_queryset_with_host_string():
"""
Create a querys... | Yipit/pyeqs | tests/unit/test_connection.py | Python | mit | 4,100 |
namespace DotNetGroup.Services.Rss
{
using DotNetGroup.Services.Generic;
public class UrlConfigProvider : BaseConfigProvider
{
protected override string Prefix
{
get { return "rss."; }
}
}
}
| sergejusb/DotNetGroup | Services/Rss/UrlConfigProvider.cs | C# | mit | 259 |
module app.domain {
export interface IProduct{
productId: number;
productName: string;
productCode: string;
releaseDate: Date;
price: number;
description: string;
imageUrl: string;
//calculateDiscount(percent:number):number;
}
export class Product implements IProduct{
constructor(public productI... | nrock/Angular-TypeScript | APM/app/products/product.ts | TypeScript | mit | 635 |
.selection-color{
background-color: #B3B3B3;
}
.overlay-color{
background-color: #666666;
color: white;
}
.base-color{
background-color: #4D4D4D;
color: white;
}
.line{
height: 1px;
background-color: grey;
}
.toolbox-border-top{
border-top: 1px solid grey;
}
.toolbox-border-botton{
... | NaturalIntelligence/imglab | css/tags.css | CSS | mit | 2,327 |
/*
* www.javagl.de - Flow
*
* Copyright (c) 2012-2017 Marco Hutter - http://www.javagl.de
*
* 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 w... | javagl/Flow | flow-gui/src/main/java/de/javagl/flow/gui/Shapes.java | Java | mit | 4,028 |
'use strict';
const signup = require('./signup');
const handler = require('feathers-errors/handler');
const notFound = require('./not-found-handler');
const logger = require('./logger');
module.exports = function() {
// Add your custom middleware here. Remember, that
// just like Express the order matters, so err... | le1tuan/feathersjs | src/middleware/index.js | JavaScript | mit | 492 |
'use strict';
var form = $('[name="uploadForm"]');
exports.getForm = function() {
return form;
};
exports.setDetails = function(url, id) {
form.element(by.model('inputText')).sendKeys(url);
form.element(by.model('snapshotId')).sendKeys(id);
};
exports.submit = function() {
form.element(by.css('[ng-c... | cloudify-cosmo/cloudify-ui-selenium-tests-nodejs | src/components/ui/snapshots/uploadSnapshotDialog.js | JavaScript | mit | 352 |
module.exports = {
'resulting promise should be immediately rejected' : function(test) {
var promise = promiseModule.reject('error');
test.ok(promise._status === -1);
test.done();
},
'resulting promise should be rejected with argument if argument is not a promise' : function(test) {... | stenin-nikita/module-promise | test/static.reject.js | JavaScript | mit | 1,112 |
using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(AuctionHouseService.Startup))]
namespace AuctionHouseService
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ConfigureMobileApp(app);
}
}
} | kphillpotts/AuctionHouse | AuctionHouseService/AuctionHouseService/Startup.cs | C# | mit | 286 |
#include "NumberParser.hpp"
#include <algorithm>
/**
* Operator array
* Used to confirm that a token is an operator
*/
QChar NumberParser::m_operators[] = {
'(', ')', '*', '+', '-', '/', '^', '_'
};
/**
* Shunting-yard algorithm
* Info: http://en.wikipedia.org/wiki/Shunting-yard_algorithm
* @param const QSt... | Futsy/LineCalculator | LineCalculator/LineCalculator/NumberParser.cpp | C++ | mit | 5,665 |
//
// PriceFormatter.h
// eBayDemoApp
//
// Created by bulldog on 13-3-24.
// Copyright (c) 2013 Leansoft. All rights reserved.
//
@interface PriceUtil : NSObject
/// Converts given convertedCurrentPrice attributes to a string
+ (NSString *)stringFromConvertedCurrentPrice:(NSNumber *)value currency:(NS... | maxep/PicoKit | Examples/eBayDemoApp/eBayDemoApp/PriceUtil.h | C | mit | 477 |
require File.expand_path('../../../lib/tinytable/layout', __FILE__)
require File.expand_path('../../../lib/tinytable/row', __FILE__)
require File.expand_path('../../../lib/tinytable/cell', __FILE__)
describe TinyTable::Layout do
let(:table) { mock(:table, :has_header? => false, :has_rows? => true, :has_footer? => fa... | leocassarani/tinytable | spec/tinytable/layout_spec.rb | Ruby | mit | 2,108 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="Craig McClellan" name="author">
<title>Craig McClellan - T3316858480492544 </title>
<link ... | craigwmcclellan/craigwmcclellan.github.io | _site/2010/11/12/t3316858480492544.html | HTML | mit | 4,852 |
<?php
namespace SumoCoders\FrameworkMultiUserBundle\Form\Interfaces;
use Symfony\Component\Form\FormTypeInterface;
interface FormWithDataTransferObject extends FormTypeInterface
{
public static function getDataTransferObjectClass(): string;
}
| sumocoders/FrameworkMultiUserBundle | Form/Interfaces/FormWithDataTransferObject.php | PHP | mit | 250 |
package net.ausiasmarch.fartman.util;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
/**
* AudioManager.java
* Gestiona la musica y sonidos
* @author Luis
*
*/
public class AudioManager {
/** Administrador de audio */
public static final AudioManager instance = new AudioManager();
... | fluted0g/Mr.Fartman | core/src/net/ausiasmarch/fartman/util/AudioManager.java | Java | mit | 1,784 |
<!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 | 26bc8db/html/classv8_1_1_handle.html | HTML | mit | 26,695 |
<?php
/**
* Created by PhpStorm.
* User: pkupe
* Date: 2017-02-12
* Time: 19:06
*/
namespace StackExchangeBundle\FormFactory;
use StackExchangeBundle\Form\AnswerType;
use StackExchangeBundle\Form\QuestionType;
use StackExchangeBundle\Model\FormFactory;
use Symfony\Component\Form\AbstractType;
use Symfony\Compon... | Lezas/AutoShare | src/StackExchangeBundle/FormFactory/AnswerFormFactory.php | PHP | mit | 484 |
module Runcible
VERSION = '2.13.1'.freeze
end
| Katello/runcible | lib/runcible/version.rb | Ruby | mit | 48 |
package com.theseventhsense.datetime
import com.theseventhsense.utils.types.SSDateTime
import com.theseventhsense.utils.types.SSDateTime.TimeZone
/**
* Created by erik on 6/15/16.
*/
abstract class AbstractRichTimeZone(timeZone: TimeZone) extends Serializable {
def valid: Boolean
def offsetSecondsAt(instant:... | 7thsense/utils-datetime | shared/src/main/scala/com/theseventhsense/datetime/AbstractRichTimeZone.scala | Scala | mit | 507 |
start:
@docker create -it -p 6006:6006 -v ~/code/tensorflow-playground/src:/src -w /src --name tensorflow-playground tensorflow/tensorflow:1.10.1-py3
@docker start tensorflow-playground
run:
@docker exec -it tensorflow-playground python3 $(file).py $(arg)
tensorboard:
@docker exec -it tensorflow-playground tensor... | isaacanthony/tensorflow-playground | Makefile | Makefile | mit | 821 |
from typing import Union, Iterator
from ...symbols import NOUN, PROPN, PRON
from ...errors import Errors
from ...tokens import Doc, Span
def noun_chunks(doclike: Union[Doc, Span]) -> Iterator[Span]:
"""
Detect base noun phrases from a dependency parse. Works on both Doc and Span.
"""
# fmt: off
l... | spacy-io/spaCy | spacy/lang/id/syntax_iterators.py | Python | mit | 1,515 |
class Commit < ApplicationRecord
has_many :contributions, dependent: :destroy
has_many :contributors, through: :contributions
belongs_to :release, optional: true
scope :with_no_contributors, -> {
select('commits.*'). # otherwise we get read-only records
left_joins(:contributions).
where(contributio... | fxn/rails-contributors | app/models/commit.rb | Ruby | mit | 7,250 |
<div class="footer">
<img src="{{asset('images/pay.png')}}" class="img-responsive" alt=""/>
<ul class="footer_nav">
<li><a href="#">Inicio</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Tienda</a></li>
<li><a href="#">Acerca de nosotros</a></li>
<li><a href="conta... | SoftTecnologias/chocoburbujas | resources/views/partials/footer.blade.php | PHP | mit | 630 |
package sorting
import (
. "gopkg.in/check.v1"
)
var _ = Suite(&MySuite{})
func (s *MySuite) TestNumberOfDiscIntersections(c *C) {
c.Assert(NumberOfDiscIntersections([]int{1, 5, 2, 1, 4, 0}), Equals, 11)
}
func (s *MySuite) BenchmarkNumberOfDiscIntersections(c *C) {
for i := 0; i < c.N; i++ {
NumberOfDiscInter... | theodesp/codility | sorting/NumberOfDiscIntersections_test.go | GO | mit | 361 |
class A
def test
puts 'test'
1
end
def test2
puts 'test2'
2
end
end
##############################
class SimpleCache
@data = {}
def self.cache key, ttl
found = @data[key] # found is like [time, value]
if found
puts "Found in cache: #{key}"
insertion_time, value =... | tmster/aspector | examples/cache_aspect.rb | Ruby | mit | 1,186 |
'use strict';
require('mocha');
const assert = require('assert');
const Generator = require('..');
let base;
describe('.task', () => {
beforeEach(() => {
base = new Generator();
});
it('should register a task', () => {
const fn = cb => cb();
base.task('default', fn);
assert.equal(typeof base.ta... | doowb/composer | test/app.task.js | JavaScript | mit | 4,755 |
declare function fromRichText<T>(richText: any[], serialize: (type: string, data: any, text: string | null, children: T[] | null) => T, htmlSerializer: (data: any, text: string) => T): T[];
export default fromRichText;
| landofjules/cryptopedia | node_modules/prismic-richtext/d.ts/serialize.d.ts | TypeScript | mit | 219 |
package creationalPattern.builder;
public abstract class ColdDrink implements Item {
public Packing packing() {
return new Bottle();
}
public abstract float price();
}
| ajil/Java-Patterns | src/main/java/creationalPattern/builder/ColdDrink.java | Java | mit | 192 |
using System;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL4;
namespace SMH
{
public sealed class VAO : IDisposable
{
private const int InvalidHandle = -1;
public int Handle { get; private set; }
public int VertexCount { get; private set; } // Число вершин для отрисовки
... | Yeyti/Stellaris-Moding-Helper | SMH/GL/VAO.cs | C# | mit | 1,627 |
<html>
<head>
<meta charset="UTF-8">
<title>Test</title>
<style>
html, body {
position: relative;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
background-color: white;
... | ariellebryn/mosaic | Demos/PixelGrid.html | HTML | mit | 7,682 |
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!-- contributed by Atul Varma [atul@mozilla.com] -->
<!-- edited by Noelle Murata [fiveinchpixie@gmail.co... | cerivera/crossfire | bin/firefox/addon-sdk-1.15/doc/module-source/sdk/console/traceback.md | Markdown | mit | 2,027 |
# Ubiquity::Cluster::Adapter
TODO: Write a gem description
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'ubiquity-cluster-adapter'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install ubiquity-cluster-adapter
## Usage
TODO: Write usage instructions here
... | MicrosmartSA/ubiquity-commons | ubiquity-cluster-adapter/README.md | Markdown | mit | 634 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.