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 |
|---|---|---|---|---|---|
# fis3-hook-npm
[](https://travis-ci.org/qqiangwu/fis3-hook-npm)
Modularity is a big problem in web development. Now we have a great compiler for our front-end code, how do we achieve modularity?
+ Firstly, we must have a modularity standa... | qqiangwu/fis3-hook-npm | README.md | Markdown | mit | 3,462 |
/* eslint-disable */
import * as Types from '../graphqlTypes.generated';
import { gql } from '@apollo/client';
import { ProjectPromotionFieldsFragmentDoc } from './queries.generated';
import * as Apollo from '@apollo/client';
const defaultOptions = {};
export type PromoteProjectMutationVariables = Types.Exact<{
proj... | neinteractiveliterature/larp_library | app/javascript/ProjectPromotions/mutations.generated.ts | TypeScript | mit | 5,256 |
/**
* Calculates the radius of the Hill Sphere,
* for a body with mass `m1`
* @param {Number} m1 Mass of the lighter body
* @param {Number} m2 Mass of the heavier body
* @param {Number} a Semi-major axis
* @param {Number} e Eccentricity
* @return {Number} Hill Sphere radius
*/
function hillSphere( m1, ... | jhermsmeier/node-hill-sphere | lib/hill-sphere.js | JavaScript | mit | 432 |
# ----------------------------------------------------------------------------
# Copyright 2015-2016 Nervana Systems Inc.
# 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.apa... | matthijsvk/multimodalSR | code/Experiments/neon-master/tests/test_bleuscore.py | Python | mit | 1,914 |
/*
* Created on Apr 28, 2005
*/
package jsrl.net;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import jsrl.LoadLibrary;
/**
* JavaPing
* Java Bindings for the SRL Library's Ping Logic
*/
public class JavaPing implemen... | 311labs/SRL | java/src/jsrl/net/JavaPing.java | Java | mit | 5,558 |
<?php
namespace Abbiya\GrabberBundle\Services;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of ParseHtml
*
* @author seshachalam
*/
use Goutte\Client;
use ... | mseshachalam/grabber | src/Abbiya/GrabberBundle/Services/ParseHtml.php | PHP | mit | 7,572 |
phonegapmob
===========
Quick start of phonegapmob from ipad
| jerteach/phonegapmob | README.md | Markdown | mit | 62 |
//
// MHYouKuAnthologyHeaderView.h
// MHDevelopExample
//
// Created by CoderMikeHe on 17/2/17.
// Copyright © 2017年 CoderMikeHe. All rights reserved.
//
#import <UIKit/UIKit.h>
@class MHYouKuAnthologyHeaderView,MHYouKuAnthologyItem;
@protocol MHYouKuAnthologyHeaderViewDelegate <NSObject>
@optional
/** 更多按钮被点击 ... | CoderMikeHe/MHDevelopExample_Objective_C | MHDevelopExample/MHDevelopExample/Classes/Comment/YouKu/View/MHYouKuAnthologyHeaderView.h | C | mit | 958 |
//
// GONMarkupFont.h
// GONMarkupParserSample
//
// Created by Nicolas Goutaland on 25/06/14.
// Copyright (c) 2014 Nicolas Goutaland All rights reserved.
//
// Define a generic markup to configure font
// "size" is used to define font size
// If missing, current font size will be used. If not found is set,... | chengkaizone/GONMarkupParser | Classes/GONMarkupFont.h | C | mit | 1,638 |
var httpRequester = (function() {
var makeHttpRequest = function(url, type, data) {
var deferred = $.Deferred();
$.ajax({
url: url,
type: type,
contentType: 'application/json',
data: data,
success: function(resultData) {
def... | Vali0/WBTA | public/js/httpRequester.js | JavaScript | mit | 664 |
{-# LANGUAGE TupleSections #-}
module Y2016.M09.D09.Solution where
import Control.Arrow (first)
import Control.Monad (guard, (>=>))
import Data.Function (on)
import Data.List (sortBy)
import Data.Map (Map)
import qualified Data.Map as Map
-- below import available from 1HaskellADay git repository
import Control.Lis... | geophf/1HaskellADay | exercises/HAD/Y2016/M09/D09/Solution.hs | Haskell | mit | 3,206 |
+ *Paste a link to your [USERNAME].github.io repository.*
http://ello21.github.io/
+ *Explain how to create a repository on GitHub and clone the repository to your local computer to a non-technical person.*
- Click on the ``+`` sybmol at the top right, next to your profile pic. Select ``New Repository``
- Fill in ... | ello21/phase-0 | week-1/my-website-1-reflection.md | Markdown | mit | 3,123 |
<?php
/**
* Description of SectionType
*
* @author Birko
*/
namespace Jamii\UserBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
class UserType extends AbstractType
{
protected $em;
public function __construct(\Doctrine\ORM\EntityManager $em)
{
... | birko/Jamii | src/Jamii/UserBundle/Form/UserType.php | PHP | mit | 2,074 |
//
// UINavigationMenuManager.h
// Pods
//
// Created by Ilter Cengiz on 25/02/15.
//
//
#import <Foundation/Foundation.h>
#import "UINavigationMenuController.h"
@interface UINavigationMenuManager : NSObject
/**
Returns a view controller for the given index that will be presented by the navigation menu controll... | iltercengiz/NavigationMenuController | Pod/Classes/UINavigationMenuManager.h | C | mit | 1,779 |
import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosCopy extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<polygon points="144,416 144,400 144,112 112,112 112,448 352,448 352,416 160,416 "></polygon>
<g>
<path d="M325.3,64H160v... | fbfeix/react-icons | src/icons/IosCopy.js | JavaScript | mit | 693 |
body {
padding-bottom: 20px;
}
a,
a:focus,
a:hover {
color: #fff;
}
/* Ensemble des class de positionnement général */
.top5 {
margin-top:5px;
}
.top10 {
margin-top:10px;
}
.top15 {
margin-top:15px;
}
.top20 {
margin-top:17px;
}
.top30 {
margin-top:30px !important;
}
/* Configuration de la navbar *... | Aeryia/projetportfolio | assets/css/style.css | CSS | mit | 2,155 |
//
// Stroustrup - Programming Principles & Practice
//
// Chapter 21 Exercise 14
//
// Write a word query program that provides information about the text in a
// document. Use the text cleaner from ex13 to produce input.
//
#include <iostream>
#include <stdexcept>
#include <string>
#include <map>
#include <vector>
... | Chrinkus/learn-cpp | chapter21/ex14_word_query.cpp | C++ | mit | 3,191 |
Before do |test_case|
if settings.skip_test_case?(test_case)
skip_this_scenario "Configured to be skipped"
end
end
| Shashikant86/bbc-a11y | standards/support/skipper.rb | Ruby | mit | 123 |
module Captions
class Cue
include Util
# Text Properties supported
ALIGNMENT = "alignment"
COLOR = "color"
POSITION = "position"
# List of Text Properties
TEXT_PROPERTIES = [ALIGNMENT, COLOR, POSITION]
attr_accessor :number, :start_time, :end_time, :duration, :text, :p... | navinre/captions | lib/captions/cue.rb | Ruby | mit | 2,887 |
<?php
namespace Ekyna\Bundle\SurveyBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Ekyna\Bundle\SurveyBundle\Model\AnswerInterface;
use Ekyna\Bundle\SurveyBundle\Model\QuestionInterface;
use Ekyna\Bundle\SurveyBundle\Model\ResultInterface;
/**
* Class Answer
* @package Ekyna\Bundle\SurveyBundle... | ekyna/SurveyBundle | Entity/Answer.php | PHP | mit | 3,139 |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router-dom';
import _ from 'lodash';
import User from './User';
import Loading from '../../components/Icon/Loading';
import './InterestingPeople.less';
import steemAPI... | ryanbaer/busy | src/components/Sidebar/InterestingPeopleWithAPI.js | JavaScript | mit | 2,712 |
package com.xcode.mobile.smilealarm.alarmpointmanager;
import android.content.Context;
import java.io.IOException;
import java.sql.Date;
import java.sql.Time;
import java.util.Calendar;
import java.util.HashMap;
import com.xcode.mobile.smilealarm.DataHelper;
import com.xcode.mobile.smilealarm.DateTimeHelp... | anhnguyenbk/XCODE-MOBILE-APPS-DEV | SmileAlarm/app/src/main/java/com/xcode/mobile/smilealarm/alarmpointmanager/RisingPlanHandler.java | Java | mit | 7,754 |
<!-- Content Header (Page header) -->
<section class="content-header">
<div class="row">
<div class='col-md-3'>
<div class="menutext">
<?php echo $content_header; ?>
</div>
</div>
<div class='col-md-2'></div>
<div class='col-md-2'><a type='button' class='btn bg-purple btn-lg' id='b... | leesaw/posngg | views/includes/content_header.php | PHP | mit | 1,102 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hapil.Testing.NUnit;
using NUnit.Framework;
namespace Hapil.UnitTests.Statements
{
[TestFixture]
public class CallStatementTests : NUnitEmittedTypesTestBase
{
[Test]
public void CanCallVoidMethodOnReferenceTypeTarget()
... | felix-b/Hapil | Source/Hapil.UnitTests/Statements/CallStatementTests.cs | C# | mit | 5,789 |
package ny2.ats.model.tool;
import java.util.function.BiPredicate;
/**
* 取引条件計算の演算子のクラスです
*/
public enum TradeConditionOperator {
EQUAL((d1, d2) -> Double.compare(d1, d2) == 0, null, "="),
LESS((d1, d2) -> d1 < d2, null, "<"),
LESS_EQUAL((d1, d2) -> d1 <= d2, null, "<="),
GRATER((d1, d2) -> d1 >... | Naoki-Yatsu/FX-AlgorithmTrading | ats/src/main/java/ny2/ats/model/tool/TradeConditionOperator.java | Java | mit | 1,710 |
Simple mobile frontend for logging of daily reflections
Powered by ionic framework
Created by Dominik Facher, 2014 | dfacher/reflect-ionic | README.md | Markdown | mit | 114 |
#include <iostream>
#include <vector>
using namespace std;
void separateOddsAndEvens(const vector<int>& arr, vector<int>& odds, vector<int>& evens);
void printVector(const vector<int>& vec);
int main() {
vector<int> arrUnsplit = {1,2,3,4,5,6,7,8,9,10};
vector<int> odds, evens;
cout << "main array is: " << endl;
... | playmice/cplusplus_snippets | References/separateOddsAndEvens.cpp | C++ | mit | 1,006 |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LevelEditor.Extensibility.ReadOnlyViewModels;
namespace LevelEditor.ViewModels
{
public class ElementToolBoxViewModel : RootedViewModel, IReadOn... | bitcraftCoLtd/level-editor | LevelEditor/ViewModels/ElementToolBoxViewModel.cs | C# | mit | 2,511 |
//
// ContrastChannelView.h
// contrast
//
// Created by Johan Halin on 6.7.2015.
// Copyright © 2015 Aero Deko. All rights reserved.
//
#import <UIKit/UIKit.h>
#define CONTRAST_COLOR_OUTLINE [UIColor colorWithRed:(253.0 / 255.0) green:(225.0 / 255.0) blue:(209.0 / 255.0) alpha:1.0]
#define CONTRAST_COLOR_FULL ... | superjohan/contrast | contrast/ContrastChannelView.h | C | mit | 1,350 |
package com.fragmobile;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public... | Pinablink/FragMobile | FragMobile/app/src/test/java/com/fragmobile/ExampleUnitTest.java | Java | mit | 408 |
#include "log/logger.h"
#include "log/stdoutlog.h"
//#include <windows.h>
//void SetColor(unsigned short forecolor = 4, unsigned short backgroudcolor = 0)
//{
// HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE); //»ñÈ¡»º³åÇø¾ä±ú
// SetConsoleTextAttribute(hCon, forecolor | backgroudcolor); //ÉèÖÃÎı¾¼°±³¾°É«
//}
... | tamzr/code-snippet | code_cpp/common/main.cc | C++ | mit | 572 |
<?php
namespace InfinityGames\InfinityBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class ReponseTopicForumType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, ... | thomaschvt/Infinity-Games | src/InfinityGames/InfinityBundle/Form/ReponseTopicForumType.php | PHP | mit | 955 |
var pagerun = require('pagerun');
// set for debug
// pagerun.modulesRoot = '../';
pagerun.mode = 'test';
// pagerun.loadNpmPlugin('httpresponse');
pagerun.loadNpmPlugin('httpsummary');
pagerun.loadNpmPlugin('httperror');
pagerun.loadNpmPlugin('htmlhint');
pagerun.loadNpmPlugin('jserror');
pagerun.loadNpmPlugin('page... | yaniswang/pageRun-sampleProject | pagerun.js | JavaScript | mit | 580 |
using System;
using System.Collections.Generic;
using AssemblyLine.DAL.Entities;
namespace AssemblyLine.Models
{
public class ProjectModel
{
public int Id { get; set; }
public string Name { get; set; }
public ProjectStatus Status { get; set; }
public DateTime Created { get; ... | alexey-ernest/assembly-line | AssemblyLine/Models/ProjectModel.cs | C# | mit | 407 |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/qt3support/sql/q3sqlpropertymap.cpp -->
<hea... | misizeji/StudyNote_201308 | webserver/html/q3sqlpropertymap.html | HTML | mit | 10,971 |
class LinkedList {
public static void main(String[] a) {
System.out.println(new LL().Start());
}
}
class Element {
int Age;
int Salary;
boolean Married;
public boolean Init(int v_Age, int v_Salary, boolean v_Married) {
Age = v_Age;
Salary = v_Salary;
Married = v_... | team-compilers/compilers | MiniJava/results/SamplesCorrect/LinkedList/code.java | Java | mit | 6,548 |
#include <windows.h>
#include <stdio.h>
#include <psapi.h>
#include <string.h>
#include <time.h>
#include <math.h>
#define WINDOWNAME "Counter-Strike: Global Offensive"
#define PLRSZ 0x18
#define SERVERDLL "server.dll"
#define CLIENTDLL "client.dll"
const DWORD plr_num_offset = 0x93DCF8;
const DWORD plr_list_offset =... | remizovm/keng_esp_hack | esp.c | C | mit | 4,536 |
---
layout: post
title: "Welcome to Jekyll!"
date: 2016-04-21 14:12:24 +0100
categories: jekyll update
---
You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve... | theodi/comma-chameleon | docs/_posts/2016-04-21-welcome-to-jekyll.markdown | Markdown | mit | 1,206 |
---
layout: "docs"
projects: "Laravel Forum"
versions: "5"
topics: "02:API"
title: "Categories"
weight: 2
---
## Categories
Endpoint URLs are prefixed with the `forum.router.prefix` config value (`/forum/api` by default).
### Index
```
GET /category
```
Returns a flat collection of categories (including their nest... | Team-Tea-Time/teamteatime.net | content/docs/laravel-forum/5/api/categories.md | Markdown | mit | 3,086 |
package me.mrdaniel.npcs.actions;
import javax.annotation.Nonnull;
import org.spongepowered.api.entity.living.player.Player;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.action.TextActions;
import org.spongepowered.api.text.format.TextColors;
import me.mrdaniel.npcs.catalogtypes.actionty... | Daniel12321/NPCs | src/main/java/me/mrdaniel/npcs/actions/ActionGoto.java | Java | mit | 1,403 |
class CreateRoles < ActiveRecord::Migration
def change
create_table :roles do |t|
t.string :name
t.text :comment
t.boolean :is_active
t.timestamps
end
end
end
| hex337/quantum-attendance | db/migrate/20150321222054_create_roles.rb | Ruby | mit | 196 |
<?php
namespace Rotor\DB;
class DbSchema {
public static function Update($table,$definition) {
//_gc($table, 'Schema Update');
$definition = static::flattenDefinition($definition);
if (!self::Table_exists($table)) {
self::Create_Table($table,$definition);
} else {
... | andrixh/rotor | Rotor/DB/DbSchema.php | PHP | mit | 4,044 |
<?php
namespace APM\AchatBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class Service_apres_venteControllerTest extends WebTestCase
{
public function testCompleteScenario()
{
$client = static::createClient();
//run this client to a separate client
$clien... | yannicksade/SAV8817 | src/APM/AchatBundle/Tests/Controller/Service_apres_venteControllerTest.php | PHP | mit | 2,108 |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using WaveVR_Log;
using wvr;
public class WaveVR_PointerCameraTracker : MonoBehaviour
{
private const string LOG_TAG = "WaveVR_PointerCameraTracker";
public GameObject reticleObject = null;
public WVR_DeviceType type;
priva... | demonixis/TESUnity | Assets/Vendors/WaveVR/Scripts/WaveVR_PointerCameraTracker.cs | C# | mit | 1,377 |
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Sign In</title>
<!-- ionic css -->
<link href="lib/css/ionic.min.css" rel="stylesheet">
<!-- your app's css -->
<link href="... | akshaybajaj2280/uBucket | www/templates/feedback.html | HTML | mit | 2,147 |
<?php
namespace Kunstmaan\MediaBundle\Helper\RemoteSlide;
use Kunstmaan\MediaBundle\Form\RemoteSlide\RemoteSlideType;
use Kunstmaan\MediaBundle\Helper\Media\AbstractMediaHandler;
use Kunstmaan\MediaBundle\Entity\Media;
/**
* RemoteSlideStrategy
*/
class RemoteSlideHandler extends AbstractMediaHandler
{
/**
... | WouterJ/KunstmaanBundlesCMS | src/Kunstmaan/MediaBundle/Helper/RemoteSlide/RemoteSlideHandler.php | PHP | mit | 4,857 |
'use strict';
$(function() {
$.material.init();
$('#libraries').btsListFilter('#searcher', {
itemChild: 'h3',
resetOnBlur: false
});
$('#searcher').focus();
});
| jerone/PackageSize | public/js/script.js | JavaScript | mit | 171 |
package com.binaryedu.web.controllers;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframew... | parambirs/binaryedu | src/main/java/com/binaryedu/web/controllers/SignUpSuccessController.java | Java | mit | 782 |
/**
* Copyright 2016 aixigo AG
* Released under the MIT license.
* http://laxarjs.org/license
*/
/**
* Allows to instantiate a mock implementations of {@link AxStorage}, compatible to the "axStorage" injection.
*
* @module widget_services_storage_mock
*/
import { create as createGlobalStorageMock } from './st... | LaxarJS/laxar | lib/testing/widget_services_storage_mock.js | JavaScript | mit | 1,690 |
---
layout: post
title: "Week 9 - Milestone 3 Complete"
date: 2015-10-26
categories: update
---
This week was spent fulfilling the [Milestone 3](https://github.com/gitrit/pending/wiki/Project-Roadmap) requirements. Content has been completely built out and we are ready to focus on polish and bug fixing.
## All
* C... | learnVCS/blog | _posts/2015-10-26-week-9.md | Markdown | mit | 1,000 |
import {appendHtml, combine} from './../util';
const ELEMENT_NAMES = {
frameName: 'text-frame',
messageName: 'text-message',
indicatorName: 'text-indicator'
};
let createElements = (container, names) => {
const elements = '\
<div class="text-frame" id="' + names.frameName + '">\
<span class="text-me... | Parnswir/tie | src/extensions/TextOutput.js | JavaScript | mit | 2,308 |
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
namespace ARRO.Controllers
{
public class HomeController : Controller
{
public IActionResult Index()
{
return View(... | CliXiD/ARRO | Controllers/HomeController.cs | C# | mit | 525 |
{-# htermination (scanl :: (a -> b -> a) -> a -> (List b) -> (List a)) #-}
import qualified Prelude
data MyBool = MyTrue | MyFalse
data List a = Cons a (List a) | Nil
scanl0 f q Nil = Nil;
scanl0 f q (Cons x xs) = scanl f (f q x) xs;
scanl :: (b -> a -> b) -> b -> (List a) -> (List b);
scanl f ... | ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/scanl_1.hs | Haskell | mit | 352 |
# OakStreaming
## General information
This project is a JavaScript library which enables to easily integrate peer-assisted streaming into a Web page.
Peer-assisted delivery denotes a hybrid between peer-to-peer and server delivery.
## Build steps for example-application.html
1. Make sure to have *gulp* globally inst... | rwth-acis/WebTorrent-VideoStreaming | README.md | Markdown | mit | 4,846 |
<?php
namespace Nutricion\EmpresasBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* PermisosRole
*
* @ORM\Table(name="permisos_role", uniqueConstraints={@ORM\UniqueConstraint(name="role", columns={"role", "permiso"})})
* @ORM\Entity
*/
class PermisosRole
{
/**
* @var integer
*
* @ORM\Colu... | cristianangulo/nutricion_sy | src/Nutricion/EmpresasBundle/Entity/PermisosRole.php | PHP | mit | 1,998 |
require "rails_helper"
RSpec.describe AnswersMailer, type: :mailer do
describe "notify_subscriber" do
let!(:subscription) { create(:subscription) }
let(:mail) { AnswersMailer.notify_subscriber(subscription) }
it "renders the headers" do
expect(mail.subject).to eq("Notify subscriber")
... | bdisney/stackoverflow | spec/mailers/answers_mailer_spec.rb | Ruby | mit | 497 |
//= require sencha_touch/sencha-touch
//= require_directory ./sencha_touch/app
//= require_tree ./sencha_touch/app/models
//= require_tree ./sencha_touch/app/stores
//= require_tree ./sencha_touch/app/controllers
//= require_tree ./sencha_touch/app/views
| AlexanderFlatscher/bakk1todo | app/assets/javascripts/sencha_touch.js | JavaScript | mit | 261 |
package money_test
import (
"github.com/reiver/go-money"
"testing"
)
func TestCADNickel(t *testing.T) {
var expected money.CAD = money.CADCents(5)
var actual money.CAD = money.CADNickel()
if expected != actual {
t.Error("The actual value is not equal to the expected value.")
t.Logf("EXPECTED: %q (%#v)",... | reiver/go-money | nickel_test.go | GO | mit | 731 |
;(function() {
function ToerismeApp(id, parentContainer) {
this.API_URL = 'https://datatank.stad.gent/4/toerisme/visitgentevents.json';
this.id = id;
this.parentContainer = parentContainer;
this.loadData = function() {
var that = this;
var xhr = new XMLHttpRequest();
xhr.ope... | dwievane/dwievane.github.io | js/events.js | JavaScript | mit | 2,650 |
package raft
import (
"github.com/iketheadore/raft/comm"
"github.com/iketheadore/raft/logic"
)
type Raft struct {
localServ logic.Server
listener comm.Listener
sender comm.Sender
logic *logic.Logic
}
func New(addr string) *Raft {
r := &Raft{localServ: logic.Server{Addr: addr, Role: logic.Follower}, li... | iketheadore/raft | raft.go | GO | mit | 685 |
package main
import "time"
import "fmt"
import "os"
import "io/ioutil"
import "math/rand"
import "github.com/antonholmquist/jason"
var LOADED *jason.Object // global var to hold the entire json object from file
// loads from file into the jason.Object pointer.
func LoadRollTables() (err error) {
fi, err := os.Open(... | jrmiller82/dm-roller | main.go | GO | mit | 3,379 |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace spec\Sylius\Bundle\CoreBundle\Entity;
use PHPSpec2\ObjectBehavior;
/**
* Cart spec.
*
*... | formapro-forks/Sylius | src/Sylius/Bundle/CoreBundle/spec/Sylius/Bundle/CoreBundle/Entity/Cart.php | PHP | mit | 2,333 |
module.exports = "module-one-A-model";
| sekko27/node-wire-helper | tests/loader/module-one/lib/domain/models/A.js | JavaScript | mit | 39 |
$(function () {
'use strict';
const notificationType = {
success: 'Success',
error: 'Error',
info: 'Info'
},
notificationTypeClass = {
success: 'toast-success',
info: 'toast-info',
error: 'toast-error'
};
function initSignalR... | SuchTeam-NoJoro-MuchSad/Doge-News | DogeNews/Src/Web/DogeNews.Web/Scripts/Common/notificator.js | JavaScript | mit | 1,006 |
#!/bin/bash
source ./config.ini
source /srv/virtualenv/demoapp/bin/activate
| bitmotive/flask-boilerplate | activate.sh | Shell | mit | 77 |
package com.playtika.test.dynamodb;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.boot.autoconfigure.AutoConfigurations;
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
import org.testcontainers.containers.Container;
public class Di... | Playtika/testcontainers-spring-boot | embedded-dynamodb/src/test/java/com/playtika/test/dynamodb/DisableDynamoDBTest.java | Java | mit | 1,055 |
/**
* Ensures that the callback pattern is followed properly
* with an Error object (or undefined or null) in the first position.
*/
'use strict'
// ------------------------------------------------------------------------------
// Helpers
// -------------------------------------------------------------------------... | xjamundx/eslint-plugin-standard | rules/no-callback-literal.js | JavaScript | mit | 2,134 |
package com.github.mikhailerofeev.scholarm.local.services;
import android.app.Application;
import com.github.mikhailerofeev.scholarm.api.entities.Question;
import com.github.mikhailerofeev.scholarm.local.entities.QuestionImpl;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.google.inj... | Whoosh/schalarm | localdb/src/main/java/com/github/mikhailerofeev/scholarm/local/services/QuestionsManager.java | Java | mit | 3,530 |
/*
* Copyright (C) 2011-2012 Dr. John Lindsay <jlindsay@uoguelph.ca>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later vers... | jblindsay/jblindsay.github.io | ghrg/Whitebox/WhiteboxGAT-linux/resources/plugins/source_files/AverageSlopeToDivide.java | Java | mit | 16,874 |
# grunt-angular-json
> Merge and convert JSON files into angular modules
## Getting Started
This plugin requires Grunt `~0.4.5`
If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](htt... | kenborge/grunt-angular-json | README.md | Markdown | mit | 2,519 |
#-*- coding: utf-8 -*-
from .grant import Grant
from ..endpoint import AuthorizationEndpoint
class ImplicitGrant(Grant):
"""
The implicit grant type is used to obtain access tokens (it does not
support the issuance of refresh tokens) and is optimized for public
clients known to operate a particular r... | uptown/django-town | django_town/oauth2/grant/implicitgrant.py | Python | mit | 2,061 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class MessagesInABottle
{
static void GetMessage(string input, int start, Dictionary<string, char> cipher, List<string> answers)
{
if (start >= input.Length)
{
answers.Add(input);
retu... | kalinalazarova1/TelerikAcademy | Programming/2. CSharpPartTwo/ExamCS2_07.02.2012/2. MessagesInABottle/MessagesInABottle.cs | C# | mit | 2,116 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hi_IN" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About HazeCoin</source>
<translation>बिटकोइन के संबंध में</translation>... | HazeDev/Hazecoin | src/qt/locale/bitcoin_hi_IN.ts | TypeScript | mit | 106,336 |
#include "bond/api/libio.h"
#include "bond/io/outputstream.h"
#include "bond/io/outputstreamadaptor.h"
#include <cstdio>
namespace Bond
{
void OutputStreamAdaptor::Print(const char *str)
{
const char *format = ((mFlags & IO::Left) != 0) ? "%-*s" : "%*s";
mStream->Print(format, mWidth, str);
mWidth = 0;
}
void Ou... | bondscripting/bond | source/outputstreamadaptor.cpp | C++ | mit | 2,600 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Da... | DJBuro/Telerik | C#2/Strings and Text Processing/DateDifference/Properties/AssemblyInfo.cs | C# | mit | 1,404 |
# Include this module in the base class of a class cluster to handle swizzling
# of ::new
module ClusterFactory
def self.included(parent)
class << parent
alias :original_new :new
def inherited(subclass)
class << subclass
alias :new :original_new
end
end
end
end
e... | jrmyward/euclidean | lib/euclidean/cluster_factory.rb | Ruby | mit | 323 |
<?php
namespace Twit\AppBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class WallControllerTest extends WebTestCase
{
/*
public function testCompleteScenario()
{
// Create a new client to browse the application
$client = static::createClient();
// C... | villers/PHP_Avance_SymfoTweet | src/Twit/AppBundle/Tests/Controller/WallControllerTest.php | PHP | mit | 1,913 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
The Date.prototype.getMinutes property "length" has { ReadOnly,
DontDelete, DontEnum } attributes
es5id: 15.9.5.20_A3_T1
description: Checking ReadOnly attribute
---... | PiotrDabkowski/Js2Py | tests/test_cases/built-ins/Date/prototype/getMinutes/S15.9.5.20_A3_T1.js | JavaScript | mit | 529 |
module.exports = function(sails) {
var Agenda = require('agenda'),
util = require('util'),
_ = require('lodash'),
os = require("os"),
agenda = new Agenda()
agenda.sails = sails;
var stopServer = function() {
agenda.stop(function() {
console.log("agenda stopped");
});
... | ptphats/sails-hook-jobs | index.js | JavaScript | mit | 4,966 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//----------------------------------------... | alienlab/Alienlab.Web.Security | src/Velyo.Web.Security.Sample/Default.aspx.designer.cs | C# | mit | 2,840 |
# pydjango
| katyjustiss/pydjango | README.md | Markdown | mit | 11 |
#ifndef GRADIENT_H
#define GRADIENT_H
#include "qm_t.h"
#include "mol.h"
typedef struct{
double f;
double g;
} fgpair_t;
void gradient(double * Da, double * Db, double * H, double * pmmm,
double * g, int * alo, int * alv, basis * bo, basis * bv, mol * m, qmdata * qmd);
void gradient_r(double * D, double * H,... | briling/qm | source/qm/gradient.h | C | mit | 2,607 |
#Angular-ShoppingCart-project - A shopping cart built using Angular framework
This application is an Shopping portal built using angular framework.
Its good for anyone who want to learn how to build an angular application, how to create its folder structure, manage its
dependecies, wire controllers and views togeth... | sanjeev-chauhan/Angular-ShoppingCart-Project | README.md | Markdown | mit | 1,259 |
require 'test_helper'
class RegistrationCustomControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
end
| IsaiasAntonio/PI | test/controllers/registration_custom_controller_test.rb | Ruby | mit | 150 |
class Beer < ActiveRecord::Base
SORTABLE_COLUMNS = %w(id name created_at updated_at).freeze
include SearchableModel
belongs_to :brewery
belongs_to :user
validates :brewery_id, presence: true
validates :name, presence: true, length: { maximum: 255 }
validates :description, presence: true, length... | openbeerdatabase/openbeerdatabase | app/models/beer.rb | Ruby | mit | 923 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./681839cb4024f65497b2a4a315469a504d37d2ecd0606b47094b0b9dc5672fae.html">Teleport</a>
<hr>
... | simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/3bc037f3939fa5a98c1e0aea811f076893995066e4a79fbb1bc2ffa4d4be6334.html | HTML | mit | 550 |
<!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.10.2-2.0.6/released/8.15.0/hammer/1.1+8.8.html | HTML | mit | 6,878 |
package nl.rmokveld.wearcast.phone;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.support.v7.app.NotificationCompat;
import nl.rmokveld.wearcast.shared.C;
public class WearCastService ex... | remcomokveld/WearCast | library-app/src/main/java/nl/rmokveld/wearcast/phone/WearCastService.java | Java | mit | 2,916 |
#include <z80e/ti/asic.h>
#include <z80e/debugger/debugger.h>
#include <z80e/disassembler/disassemble.h>
#include <z80e/runloop/runloop.h>
#include "tui.h"
#include <z80e/debugger/commands.h>
#include <z80e/log/log.h>
#include <z80e/ti/hardware/t6a04.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#inclu... | KnightOS/z80e | frontends/tui/main.c | C | mit | 8,311 |
ArduinoPrograms
===============
As I experiment with Arduino, I may add a few programs here.
| 0x51DB/ArduinoPrograms | README.md | Markdown | mit | 94 |
module LogStasher
VERSION = "0.6.1"
end
| rockaBe/logstasher | lib/logstasher/version.rb | Ruby | mit | 42 |
export class NewForm {
update() {
}
}
| sergemazille/gextion | src/AppBundle/Resources/js/New/NewForm.js | JavaScript | mit | 48 |
var grunt = require('grunt');
var fs = require('fs');
var gruntTextReplace = require('../lib/grunt-match-replace');
var replace = function (settings) {
return gruntTextReplace.replace(settings);
};
exports.textReplace = {
'Test error handling': {
setUp: function (done) {
grunt.file.copy('test/text_f... | ebsco/grunt-translations | test/text-replace-error-tests.js | JavaScript | mit | 3,366 |
tetra-master
============
A pygame port of the card game 'Tetra Master' from Final Fantasy IX
Please note: This program is not completed until I update this readme.
You can, however, watch the progress (or contribute if you'd like)
TY
| node-/tetra-master | README.md | Markdown | mit | 238 |
require "test_helper"
require "webpacker/dev_server_runner"
class DevServerRunnerTest < Webpacker::Test
def setup
@original_node_env, ENV["NODE_ENV"] = ENV["NODE_ENV"], "development"
@original_rails_env, ENV["RAILS_ENV"] = ENV["RAILS_ENV"], "development"
@original_webpacker_config = ENV["WEBPACKER_CONFIG... | rails/webpacker | test/dev_server_runner_test.rb | Ruby | mit | 2,645 |
<!doctype html>
<head>
<link href="https://fonts.googleapis.com/css?family=Abril+Fatface|Asap+Condensed|Raleway" rel="stylesheet">
<title>Coping</title>
<style>
body {
text-align: center;
margin: 15px 25% 15px 25%;
font-family: 'Raleway', sans-serif;
font-size: 18px;
background: rgba(0,0... | miaou11235/conglomerate | mentalindex/coping.html | HTML | mit | 2,715 |
<?php
namespace Vexilo\Utilities\Models\Traits;
trait SortableTrait
{
/**
* Return an array with the sortable columns
*
* @param array $sort the current sort array
* @return array
*/
public static function getSortableColums($sort = null)
{
$instance = new static;
$... | vexilo/utilities | src/Models/Traits/SortableTrait.php | PHP | mit | 2,500 |
using Radical.Validation;
using System;
using System.Windows.Data;
using System.Windows.Markup;
namespace Radical.Windows.Converters
{
[MarkupExtensionReturnType(typeof(NotConverter))]
[ValueConversion(typeof(bool), typeof(bool))]
public sealed class NotConverter : AbstractSingletonConverter
{
... | RadicalFx/Radical.Windows | src/Radical.Windows/Converters/NotConverter.cs | C# | mit | 1,421 |
require 'ebay_trading/types/shipment'
require 'ebay_trading/types/variation'
module EbayTrading # :nodoc:
module Types # :nodoc:
# == Attributes
# text_node :invoice_number, 'InvoiceNumber', :optional => true
# numeric_node :transaction_id, 'TransactionID', :optional => true
# numeric_node :sale_r... | plzen/ebay | lib/ebay_trading/types/selling_manager_sold_transaction.rb | Ruby | mit | 3,298 |
<!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_13) on Fri Aug 14 15:51:20 CDT 2009 -->
<TITLE>
Deprecated List (GNU Trove for Java API v2.1.0)
</TITLE>
<META NAME="date" CONTENT="2009-08-14">
<L... | jgaltidor/VarJ | analyzed_libs/trove-2.1.0/javadocs/deprecated-list.html | HTML | mit | 5,341 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.