repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
Nauktis/inab | client/src/components/BudgetTable.js | 2735 | import React from 'react';
import { getCategoryGroups } from '../selectors/categoryGroups';
import { getCategoriesByGroupId } from '../selectors/categories';
import { getSelectedMonthBudgetItemsByCategoryId, getBudgetItemsSumUpToSelectedMonthByCategoryId } from '../selectors/budgetItems';
import { getTransactionsSumUpT... | mit |
superbilk/sipgate_io | test/dummy/app/models/event_processor.rb | 136 | class EventProcessor
def initialize(event)
@event = event
end
def process
return SipgateIo::XmlResponse.reject
end
end
| mit |
ZeusWPI/Gandalf | db/migrate/20140308135535_remove_models.rb | 145 | class RemoveModels < ActiveRecord::Migration[4.2]
def change
drop_table :roles
drop_table :role_names
drop_table :people
end
end
| mit |
onshape-public/onshape-clients | python/docs/BTPExpressionVarReference.md | 907 | # 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... | mit |
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 | 7101 | <!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... | mit |
linhlam/equinix | config/env/test.js | 1371 | '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... | mit |
tpavlek/YEGVotes | database/migrations/2016_05_26_103345_potato_selections.php | 657 | <?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) {
... | mit |
kritikasoni/smsss-react | src/routes/Admin/Position/AddPosition/index.js | 828 | 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 (... | mit |
thiagopena/djangoSIGE | djangosige/apps/financeiro/forms/plano.py | 1165 | # -*- 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... | mit |
notdisliked/JunctionManager | JunctionManager/JunctionManager.cs | 1368 | /*
* 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... | mit |
herestomwiththeweather/herestomwiththeweather.github.io | _posts/2018-02-10-72230.md | 261 | ---
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
| mit |
seanballais/SAElections | SAElections/voting/admin.py | 1715 | 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... | mit |
jasonf7/memories-of-harambe | server/conf.go | 459 | 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... | mit |
incentivetoken/offspring | com.dgex.offspring.nxtCore/src/com/dgex/offspring/nxtCore/service/IAccount.java | 1085 | 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... | mit |
andris9/resolver | lib/resolver.js | 4516 | '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... | mit |
elasota/clarity | Clarity.Rpa/Instructions/NumberCompareOperation.cs | 344 | 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... | mit |
reevoo/build-monitor | lib/ci.rb | 1153 | 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_... | mit |
MithrilJS/mithril.js | render/tests/test-hyperscript.js | 18028 | "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... | mit |
jansc/tmjs | test/unit/TestTopicMerge.html | 20928 | <!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... | mit |
ibilon/LD27 | README.md | 1315 | # 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... | mit |
martinpucik/VIPER-Example | Pods/Target Support Files/Pods-VIPER-ExampleTests/Pods-VIPER-ExampleTests-umbrella.h | 338 | #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... | mit |
jairoserrano/SimpleBlogClase | vendor/autoload.php | 183 | <?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInitf63a394c8496bb8b8178c286d239e5ee::getLoader();
| mit |
zobzn/choose-file | dist/choose-file.js | 6946 | (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... | mit |
MAGOWARE/backoffice-administration | public/admin/js/smsbatch/move.js | 3393 | function move(Restangular, $uibModal, $q, notification, $state,$http) {
'use strict';
return {
restrict: 'E',
scope: {
selection: '=',
type: '@',
ngConfirmMessage: '@',
ngConfirm: '&'
},
link: function(scope, element, attrs) {
... | mit |
cggaurav/digitalocean_hipchat | README.md | 543 | ## 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... | mit |
tmlewallen/PongPing | server/db.js | 448 | 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.... | mit |
0----0/sauna | static/chat.html | 584 | <!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... | mit |
sciencefyll/stack-guru | config/README.md | 242 | 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". | mit |
louiseadennis/primeval_game | www/location32.php | 1052 | <?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... | mit |
EusthEnoptEron/bakastats | js/views/projectview.js | 704 | 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) {
... | mit |
kylelin47/great-unknown | public/modules/core/tests/home.client.controller.test.js | 701 | '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)... | mit |
droath/console-form | src/Field/FieldInterface.php | 591 | <?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... | mit |
joakDA/gestor-ongd-sps | GestorONG/Models/IPaginationCollaborators.cs | 1070 | 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.<... | mit |
awead/dotfiles | bootstrap.sh | 426 | #!/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... | mit |
Haacked/Rothko | tools/FAKE.Core/docs/apidocs/fake-xunit2helper-xunit2params.html | 19075 | <!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">
... | mit |
fvasquezjatar/fermat-unused | fermat-api/src/main/java/com/bitdubai/fermat_api/layer/dmp_basic_wallet/common/enums/BalanceType.java | 574 | 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... | mit |
DZNS/DZNetworking | Sources/DZNetworking/Core/DZResponse.h | 522 | //
// 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... | mit |
tagpronews/api | app/Exceptions/Handler.php | 951 | <?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... | mit |
tbl00c/TLChat | TLChat/Modules/Conversation/TLConversationViewController/Views/TLConversationCell.h | 742 | //
// 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... | mit |
mattpep/lurl | README.md | 718 | # 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 ... | mit |
joelimlimit/LabelMeAnnotationTool | annotationTools/js/adjust_event.js | 17777 | /** @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... | mit |
matthewsot/CocoaSharp | Headers/PrivateFrameworks/iWorkImport/TSCH3DSceneRenderCameraSetup.h | 550 | /*
* 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;
... | mit |
nushio3/formura | examples/pearson-3d-main.cpp | 6294 | #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... | mit |
kfdm/gntp | test/subscribe.py | 347 | # -*- 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... | mit |
lowescott/weblog | content/post/2012-06-26-thinking-out-loud-why-not-mpls-in-ip.md | 2791 | ---
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... | mit |
aquilax/quantified.avtobiografia.com | content/post/2017-12-26.md | 1517 | {
"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": {
"... | mit |
Catorpilor/LeetCode | 358_rearrange_string_k_distance_apart/dis.go | 768 | 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(... | mit |
JaniKibichi/walkby | test/controllers/keysalls_controller_test.rb | 1014 | 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... | mit |
GoC-Spending/data-corporations | html/114613650000.html | 266587 |
<!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... | mit |
jedijulia/starwarspwa | starwarspwa/templates/starwarspwa/offline.html | 779 | <!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">
</... | mit |
Wolox/angular-nodewebkit-seed | grunt/options/copy.js | 548 | 'use strict';
module.exports = {
images: {
files: [
{
cwd : 'src/assets/img/',
src : '**/*',
dest : '.build/img/',
flatten : false,
expand : true
}
]
},
config: {
file... | mit |
rojimark/tab-tracker | client/index.html | 285 | <!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>
| mit |
danisio/JavaScript-Homeworks | 08.Strings/Problem10-FindPalindromes.js | 958 | // 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;... | mit |
xsunsmile/smartmail | app/helpers/mail_items_helper.rb | 27 | module MailItemsHelper
end
| mit |
Roba1993/yahoo-weather-rs | README.md | 628 | # 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... | mit |
Nik0l/UTemPro | Plot.py | 76 | #Scripts to plot the data, currently only in the context of Q&A communites.
| mit |
jgnan/edu | android/AndroidTutorial/app/src/main/java/org/shenit/tutorial/android/HelloWorldActivity.java | 353 | 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... | mit |
open-sinovoice/sinovoice-pathfinder | Pathfinder/src/com/sinovoice/pathfinder/hcicloud/hwr/HciCloudHwrHelper.java | 1907 | 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 ... | mit |
Jpilosel/cote | src/FdjBundle/Entity/JoueursTennis.php | 8018 | <?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")
* ... | mit |
narekye/code | sharp/src/Serene/sharp.Serene/sharp.Serene.Web/Modules/Administration/Language/LanguageDialog.ts | 585 | 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... | mit |
makerhacker/makerhacker.github.io | blog-mining/brendan_oconnor_ai/brendan_oconnor_ai-2008/brendan_oconnor_ai-2008-06-05-Clinton-Obama_support_visualization.html | 27937 | <!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_... | mit |
jaj1014/w3-js-exercises | js-functions/exercise-19.js | 517 | // 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++... | mit |
masiqi/douquan | member/urls.py | 478 | 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/... | mit |
sunnyKiwi/JustCopy | tag/薪資/json/index.html | 465 | {
"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... | mit |
damianb/trainerred | doc/USAGE.md | 1048 | ## 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... | mit |
tchar/pushbots | pushbots/examples/analytics.py | 1805 | # -*- 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... | mit |
yvonnewilson/docs | articles/flows/guides/auth-code/includes/request-tokens.md | 3202 | ## 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": "... | mit |
caseyamcl/simplemon | app/src/Utility/TwigTryFileLoader.php | 1938 | <?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.
*... | mit |
Yipit/pyeqs | tests/unit/test_connection.py | 4100 | # -*- 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... | mit |
sergejusb/DotNetGroup | Services/Rss/UrlConfigProvider.cs | 259 | namespace DotNetGroup.Services.Rss
{
using DotNetGroup.Services.Generic;
public class UrlConfigProvider : BaseConfigProvider
{
protected override string Prefix
{
get { return "rss."; }
}
}
}
| mit |
nrock/Angular-TypeScript | APM/app/products/product.ts | 635 | 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... | mit |
NaturalIntelligence/imglab | css/tags.css | 2327 | .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{
... | mit |
javagl/Flow | flow-gui/src/main/java/de/javagl/flow/gui/Shapes.java | 4028 | /*
* 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... | mit |
le1tuan/feathersjs | src/middleware/index.js | 492 | '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... | mit |
cloudify-cosmo/cloudify-ui-selenium-tests-nodejs | src/components/ui/snapshots/uploadSnapshotDialog.js | 352 | '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... | mit |
stenin-nikita/module-promise | test/static.reject.js | 1112 | 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) {... | mit |
kphillpotts/AuctionHouse | AuctionHouseService/AuctionHouseService/Startup.cs | 286 | using Microsoft.Owin;
using Owin;
[assembly: OwinStartup(typeof(AuctionHouseService.Startup))]
namespace AuctionHouseService
{
public partial class Startup
{
public void Configuration(IAppBuilder app)
{
ConfigureMobileApp(app);
}
}
} | mit |
Futsy/LineCalculator | LineCalculator/LineCalculator/NumberParser.cpp | 5665 | #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... | mit |
maxep/PicoKit | Examples/eBayDemoApp/eBayDemoApp/PriceUtil.h | 477 | //
// 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... | mit |
leocassarani/tinytable | spec/tinytable/layout_spec.rb | 2108 | 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... | mit |
craigwmcclellan/craigwmcclellan.github.io | _site/2010/11/12/t3316858480492544.html | 4852 | <!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 ... | mit |
sumocoders/FrameworkMultiUserBundle | Form/Interfaces/FormWithDataTransferObject.php | 250 | <?php
namespace SumoCoders\FrameworkMultiUserBundle\Form\Interfaces;
use Symfony\Component\Form\FormTypeInterface;
interface FormWithDataTransferObject extends FormTypeInterface
{
public static function getDataTransferObjectClass(): string;
}
| mit |
fluted0g/Mr.Fartman | core/src/net/ausiasmarch/fartman/util/AudioManager.java | 1784 | 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();
... | mit |
v8-dox/v8-dox.github.io | 26bc8db/html/classv8_1_1_handle.html | 26695 | <!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... | mit |
Lezas/AutoShare | src/StackExchangeBundle/FormFactory/AnswerFormFactory.php | 484 | <?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... | mit |
Katello/runcible | lib/runcible/version.rb | 48 | module Runcible
VERSION = '2.13.1'.freeze
end
| mit |
7thsense/utils-datetime | shared/src/main/scala/com/theseventhsense/datetime/AbstractRichTimeZone.scala | 507 | 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:... | mit |
isaacanthony/tensorflow-playground | Makefile | 821 | 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... | mit |
spacy-io/spaCy | spacy/lang/id/syntax_iterators.py | 1515 | 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... | mit |
fxn/rails-contributors | app/models/commit.rb | 7250 | 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... | mit |
SoftTecnologias/chocoburbujas | resources/views/partials/footer.blade.php | 630 | <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... | mit |
theodesp/codility | sorting/NumberOfDiscIntersections_test.go | 361 | 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... | mit |
tmster/aspector | examples/cache_aspect.rb | 1186 | 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 =... | mit |
doowb/composer | test/app.task.js | 4755 | '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... | mit |
landofjules/cryptopedia | node_modules/prismic-richtext/d.ts/serialize.d.ts | 219 | 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;
| mit |
ajil/Java-Patterns | src/main/java/creationalPattern/builder/ColdDrink.java | 192 | package creationalPattern.builder;
public abstract class ColdDrink implements Item {
public Packing packing() {
return new Bottle();
}
public abstract float price();
}
| mit |
Yeyti/Stellaris-Moding-Helper | SMH/GL/VAO.cs | 1627 | 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; } // Число вершин для отрисовки
... | mit |
ariellebryn/mosaic | Demos/PixelGrid.html | 7682 | <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;
... | mit |
cerivera/crossfire | bin/firefox/addon-sdk-1.15/doc/module-source/sdk/console/traceback.md | 2027 | <!-- 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... | mit |
MicrosmartSA/ubiquity-commons | ubiquity-cluster-adapter/README.md | 634 | # 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
... | mit |