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 |
|---|---|---|---|---|---|
#pragma once
#include <cstdint>
#include <cstddef>
#include <ctime>
#include <stdexcept>
#include <unistd.h>
#include <sys/time.h>
#ifdef __MACH__
# include <mach/mach.h>
# include <mach/clock.h>
#endif
#ifndef CLOCK_MONOTONIC_COARSE
# define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
#endif
#ifndef CLOCK_REALTIME_CO... | abique/mimosa | mimosa/time.hh | C++ | mit | 2,900 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
getname
~~~~~~~
Get popular cat/dog/superhero/supervillain names.
:copyright: (c) 2015 by lord63.
:license: MIT, see LICENSE for more details.
"""
from getname.main import random_name
__title__ = "getname"
__version__ = '0.1.1'
__author__ = "lor... | lord63/getname | getname/__init__.py | Python | mit | 385 |
describe("Test", function () {
function testRegex(regexText, text, expectedResult, allTextMatched = true) {
let textArray;
if (Array.isArray(text)) {
textArray = text;
} else {
textArray = [text];
}
const regex = parser.compile(regexText);
te... | codebox/regex_parser | test/tests/Test.js | JavaScript | mit | 14,093 |
__d("UPoCs",function(o,e,s){s.exports="Here is brisk demo!"}); | Saber-Team/brisky | www/dist/static/js/BvMT+JZAM.text.js | JavaScript | mit | 62 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>multiplier: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.03.0-2.0.5/released/8.8.1/multiplier/8.6.0.html | HTML | mit | 6,917 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>itree: 4 m 44 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="s... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.1-2.0.6/released/8.11.0/itree/3.1.0.html | HTML | mit | 24,864 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>smt-check: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.9.0/smt-check/2.0.0.html | HTML | mit | 6,621 |
// C/C++ File
// Author: Alexandre Tea <alexandre.qtea@gmail.com>
// File: /Users/alexandretea/Work/gachc-steinerproblem/srcs/ga/FixedBinaryString.hpp
// Purpose: TODO (a one-line explanation)
// Created: 2017-01-15 20:57:05
// Modified: 2017-03-15 17:31:42
#ifndef FIXEDBINARYSTRING_H
#define FIXEDBINARYSTRIN... | alexandretea/gachc-steinerproblem | srcs/ga/FixedBinaryString.hpp | C++ | mit | 2,172 |
var icons = [
'moneybag',
'save',
'establishment',
'completion',
'share',
'no_money',
'euro',
'palette',
'puzzle',
'backward',
'partial',
'minimize',
'tick',
'tick_thin',
'tick_bold',
'compass',
'minus',
'supplies',
'alarm',
'analytics',
'charts',
'apps',
'nine_tiles',
'archive',
'arrow_double'... | LuccaSA/lucca-front | packages/icons/icons-list.js | JavaScript | mit | 3,468 |
import Ember from 'ember';
import moment from 'moment';
import dateFormat from '../utils/date-format';
export default Ember.Controller.extend({
loadingMeta: false,
notify: Ember.inject.service(),
aggController: Ember.inject.controller('discover.aggregate'),
queryParams: ['center', 'obs_date__le', 'obs_date_... | UrbanCCD-UChicago/plenario-explorer | app/controllers/discover.js | JavaScript | mit | 5,637 |
# elm-http-builder
Pipeable functions for building HTTP requests
```elm
import Http
import HttpBuilder
import Json.Decode as Decode
import Json.Encode as Encode
import Url.Builder as UrlBuilder
type Status a = Loading | Loaded a | Failure
type alias Model = { items : Status (List String) }
itemsDecoder : Decode... | lukewestby/elm-http-builder | README.md | Markdown | mit | 1,482 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>propcalc: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.07.1-2.0.6/released/8.8.1/propcalc/8.10.0.html | HTML | mit | 7,248 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>groups: 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.08.1-2.0.5/released/8.11.1/groups/8.5.0.html | HTML | mit | 6,469 |
# GuiasSixto
Guías de soporte para código rápido
| sortega7/GuiasSixto | README.md | Markdown | mit | 52 |
'center' Attribute Documentation
==================================
This sub-directive needs the **leaflet** main directive, so it is normaly used as an attribute of the *leaflet* tag, like this:
```
<leaflet center="center"></leaflet>
```
It will map an object _center_ of our controller scope with the corresponding... | eugene-d/angular-leaflet-directive | doc/center-attribute.md | Markdown | mit | 2,813 |
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
{{ Form::label('name', 'Name') }}
{{ Form::text('name', old('name'), ['class' => 'form-control']) }}
@if ($errors->has('name'))
<span class="help-block">{{ $errors->first('name') }}</span>
@endif
... | brianally/infoframe | resources/views/patients/_form.blade.php | PHP | mit | 2,629 |
---
layout: base
---
{% include header.html type="post" %}
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<article role="main" class="blog-post">
{{ content }}
</article>
{% if page.tags.size > 0 %}
<div class="blog-... | RodolfoMiguelLopez/rodolfomiguellopez.github.io | _layouts/post.html | HTML | mit | 1,470 |
FROM openfaas/classic-watchdog:0.18.8 as watchdog
FROM golang:1.13-alpine
ENV CGO_ENABLED=0
MAINTAINER alexellis2@gmail.com
ENTRYPOINT []
WORKDIR /go/src/github.com/openfaas/faas/sample-functions/golang
COPY . /go/src/github.com/openfaas/faas/sample-functions/golang
RUN go install
COPY --from=watchdog /fwatchdog /... | alexellis/faas | sample-functions/BaseFunctions/golang/Dockerfile | Dockerfile | mit | 551 |
version https://git-lfs.github.com/spec/v1
oid sha256:5df6faea233808c6556f6ab7b79d7e126b054faf6651af82437fe36f225404cf
size 1193
| yogeshsaroya/new-cdnjs | ajax/libs/uikit/2.6.0/js/addons/form-password.min.js | JavaScript | mit | 129 |
//
// AppDelegate.h
// TableViewDemo
//
// Created by Doncho Minkov on 1/22/16.
// Copyright © 2016 Doncho Minkov. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
| TelerikAcademy/Mobile-Applications-with-iOS | Resources/Archive-2016/demos-news/TableViewDemo/TableViewDemo/AppDelegate.h | C | mit | 288 |
#ifndef DECAFPARSER_BPARSER_H
#define DECAFPARSER_BPARSER_H
#include "parser.h"
#include "parser_decaf.hpp"
#include "ast.h"
class BParser : public Parser {
public:
BParser( FILE* file, bool debug_lexer, bool debug_parser )
: Parser(file, debug_lexer, debug_parser)
{
extern FILE* yyin;
... | benedikthth/THYD_project2 | bparser.h | C | mit | 715 |
---
layout: post
cover: false
title: into the deepest darkness
date: 2016-02-02 21:18:00
tags: poem
subclass: 'post tag-speeches'
categories: 'jo'
navigation: True
logo: 'assets/images/ghost.png'
cover: 'assets/images/cover4.jpg'
---
**dark forest**
I was wandering with a spear, looking for a prey
... | pjobinson/pjobinson.github.io | _posts/2016-02-02-into-the-deepest-darkness.md | Markdown | mit | 868 |
.filter-form{
padding: 20px;
background-color: purple;
} | mohamed-ahmed/data-grid-filter | app/directives/filterDirective/filterTemplate.css | CSS | mit | 58 |
<?php
declare(strict_types = 1);
namespace Apha\Testing;
interface TraceableEventHandler
{
/**
* @return array
*/
public function getEvents(): array;
/**
* @return void
*/
public function clearTraceLog();
}
| martyn82/apha | src/main/Apha/Testing/TraceableEventHandler.php | PHP | mit | 246 |
#ifdef BOARD_BUTTON_PIN
volatile bool g_buttonPressed = false;
volatile uint32_t g_buttonPressTime = -1;
void button_action(void)
{
BlynkState::set(MODE_RESET_CONFIG);
}
ICACHE_RAM_ATTR
void button_change(void)
{
#if BOARD_BUTTON_ACTIVE_LOW
bool buttonState = !digitalRead(BOARD_BUTTON_PIN);
#else
bool but... | blynkkk/blynk-library | examples/Blynk.Edgent/Edgent_ESP8266/ResetButton.h | C | mit | 1,192 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mod-red: 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.6/released/8.7.2/mod-red/8.6.0.html | HTML | mit | 7,140 |
/*
* Copyright (c) 2014 airbug Inc. All rights reserved.
*
* All software, both binary and source contained in this work is the exclusive property
* of airbug Inc. Modification, decompilation, disassembly, or any other means of discovering
* the source code of this software is prohibited. This work is protected un... | airbug/bugyarn | libraries/bugyarn/js/src/Yarn.js | JavaScript | mit | 6,157 |
// _____ _ _ _ _ _
// | ___| | (_) | | | | | |
// _ __ |___ \ ___| |_ ___| | ____ _| |__ | | ___
// | '_ \ \ \/ __| | |/ __| |/ / _` | '_ \| |/ _ \
// | |_) /\__/ / (__| | | (__| < (_| | |_) | | __/
// | .__/\____(_)___|_|_|\___|_|\_\__,_|_.__/|_|\___|
// | | w... | alexlamb/alexlamb.github.io | js/virus/p5.clickable.js | JavaScript | mit | 3,452 |
#! /bin/zsh
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
#
# In addition, I recommend the
# [... | cunningham/dotfiles | archive/zsh/prompt.zsh | Shell | mit | 6,209 |
body {
padding: 4em;
margin: 0;
font-family: "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, "Liberation Sans", "Hiragino Sans GB", "Source Han Sans CN", "Source Han Sans SC", "Microsoft YaHei", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;
}
h1... | zenozeng/d3-hypertree | demo/styles.css | CSS | mit | 508 |
require 'pathname'
require 'sqlite3'
require 'active_record'
require 'logger'
require 'sinatra'
APP_ROOT = Pathname.new(File.expand_path(File.join(File.dirname(__FILE__), '..')))
APP_NAME = APP_ROOT.basename.to_s
DB_PATH = APP_ROOT.join('db', APP_NAME + ".db").to_s
if ENV['DEBUG']
ActiveRecord::Base.logger = Log... | whitfieldc/Sinatra_tasks | ar_todos/app/todo.rb | Ruby | mit | 2,548 |
This is a regular paragraph.
<table>
<th>
<td>Foo</td>
<td>Foo</td>
</th>
<tr>
<td>Foo</td>
<td>Foo</td>
</tr>
<tr>
<td>Foo</td>
<td>Foo</td>
</tr>
</table>
This is another regular paragraph.
#test2
1. Red
2. Green
3. Blue
#test4
* Lorem ipsum dol... | creativ/grunt-hash-data | 2013-08-16-your-filename.md | Markdown | mit | 635 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_31) on Wed Dec 17 20:48:21 PST 2014 -->
<title>org.omg.CORBA (Java Platform SE 8 )</title>
<meta name="date" content="2014-12-17">
<meta name="... | fbiville/annotation-processing-ftw | doc/java/jdk8/org/omg/CORBA/package-frame.html | HTML | mit | 22,969 |
"use strict";
let express = require('express');
let app = express();
let bodyParser = require('body-parser');
var randomPoem = require('./tools/poemBuilder1.js')
app.set('view engine', 'ejs');
app.set('views', __dirname + '/views');
app.use(express.static("client"))
app.use(bodyParser.json());
app.get("/poem", funct... | robotson/literate-telegram | index.js | JavaScript | mit | 1,777 |
<?php
require("./includes/daySeasson.php");
@$page=$_GET['page'];
switch($page){
case "aktivnosti":
include "view.php";
$view=str_replace("<!-- SAT -->", insertClock() ,$view);
$view=setActivity($view,$daySesson);
$view=setTitle("Aktivnosti u toku izbora",$view);
break;
case "izlaznost":... | IvanDermanov/izbori | index.php | PHP | mit | 3,087 |
require 'spec_helper'
describe Blimp::Handler do
it 'should find handlers by name' do
Blimp::Handler.find_by_name("static").should be(Blimp::Handlers::StaticHandler)
Blimp::Handler.find_by_name("page").should be(Blimp::Handlers::PageHandler)
end
it 'should raise on unknown handlers' do
expect {
... | ttencate/blimp | spec/blimp/handler_spec.rb | Ruby | mit | 425 |
from cse.util import Util
from collections import OrderedDict
from cse.pipeline import Handler
class WpApiParser(Handler):
def __init__(self):
super()
def parse(self, comments, url, assetId, parentId):
data = self.__buildDataSkeleton(url, assetId)
data["comments"] = self.__iterate... | CodeLionX/CommentSearchEngine | cse/WpApiParser.py | Python | mit | 1,919 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ccs: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.03.0-2.0.5/released/8.6.1/ccs/8.9.0.html | HTML | mit | 7,243 |
module CerberusCore::Datastreams
# Datastream for holding the results of FITS characterization, which can be run
# against FileContentDatastream datastreams via the Characterizable concern.
class FitsDatastream < ActiveFedora::OmDatastream
include OM::XML::Document
set_terminology do |t|
t.root(:pa... | NEU-Libraries/cerberus_core | lib/cerberus_core/datastreams/fits_datastream.rb | Ruby | mit | 8,529 |
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: ... | lizziegooding/Blog-Code-301 | starter-code06/vendor/styles/normalize.css | CSS | mit | 7,917 |
using System;
using System.Diagnostics;
using BCurve=NS_GMath.I_BCurveD;
namespace NS_GMath
{
public class Param
{
/*
* CONSTS & ENUMS
*/
public const double Infinity=2.0e20;
public const double Degen=1.0e20;
public const double Invalid=1.5e20;
... | Microsoft/Font-Validator | GMath/Param.cs | C# | mit | 5,165 |
<html>
<head>
<title>User agent detail - RssBandit/1.9.0.1002</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<div... | ThaDafinser/UserAgentParserComparison | v4/user-agent-detail/0c/11/0c11028c-cb9d-4d6b-b1c4-744bcf15e0e7.html | HTML | mit | 13,331 |
<?php
class Football_Pool_Admin_Options extends Football_Pool_Admin {
public function __construct() {}
private static function back_to_top() {
echo '<p class="options-page back-to-top"><a href="#">back to top</a></p>';
}
public static function help() {
$help_tabs = array(
array(
'id' =... | wp-plugins/football-pool | admin/class-football-pool-admin-options.php | PHP | mit | 34,914 |
---
layout: facsimile
images: [223-1]
prev: '222'
self: '223'
next: '224'
---
| alter-rebbe/collector | docs/archive/facs/223.html | HTML | mit | 78 |
# [ToLeetSpeak](https://www.codewars.com/kata/toleetspeak/)
| RevansChen/online-judge | Codewars/7kyu/toleetspeak/README.md | Markdown | mit | 60 |
require 'rails_helper'
describe Api::SessionsController do
describe "#create" do
let(:user) { create(:user, password: 'password') }
it 'returns a JSON Web Token' do
post :create, params: { username: user.username, password: 'password' }
json = JSON.parse(response.body)
expect(json['authen... | mokhan/surface | spec/controllers/api/sessions_controller_spec.rb | Ruby | mit | 370 |
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8"/>
<title>
Helix Swarm 2015.1 Released</title></head><body>From:<a href=http://www.perforce.com/blog/150608/helix-swarm-20151-released>http://www.perforce.com/blog/150608/helix-swarm-20151-released</a><br><br><div><p><a http://www.perfo... | ciandcd/ciandcd-web | content/category/scm/Helix_Swarm_2015.1_Released.html | HTML | mit | 2,582 |
package measurement
// transaction
type TransactionMessage struct {
}
// item
type ItemMessage struct{}
// impression
// action
// refund
// purchase
| vly/go-ga-measurement | measurement/ecommerce.go | GO | mit | 156 |
/* Game namespace */
var game = {
// an object where to store game information
data : {
// score
score : 0
},
// Run on page load.
"onload" : function () {
// Initialize the video.
if (!me.video.init("screen", me.video.CANVAS, 1067, 600, true, '1.0')) {
alert("Your browser does not support HTML5 can... | KaelenJuntilla/KaelenCameron | js/game.js | JavaScript | mit | 1,155 |
package ar.wildstyle;
import java.lang.reflect.Field;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import ar.wildstyle.test.BaseTest;
import ar.wildstyle.test.ExamplePojo;
import ar.wildstyle.valuegenerator.IntegerValueGenerator;
import ar.wildstyle.valuegenerator.StringValueGenerator;
im... | arosini/wildstyle-generator | src/test/java/ar/wildstyle/FieldMappingEntryTests.java | Java | mit | 4,283 |
require 'uottawa_odesi_utils'
RSpec.configure do |config|
# Use color in STDOUT
config.color = true
# Use color not only in STDOUT but also in pagers and files
config.tty = true
# Use the specified formatter
config.formatter = :documentation # :progress, :html, :textmate
end | guinslym/uottawa_odesi_utils | spec/spec_helper.rb | Ruby | mit | 290 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Bootstrap -->
<link rel="sty... | UnicornCollege/ucl.itkpd.configurator | client/node_modules/uu5g03/dist-node/forms/demo/select.html | HTML | mit | 8,668 |
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!-- Co... | thisduck/nothing | _site/aphorisms/53/index.html | HTML | mit | 5,504 |
package shop.main.controller.admin;
import static shop.main.controller.admin.AdminController.ADMIN_PREFIX;
import static shop.main.controller.admin.AdminController.MANAGER_PREFIX;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.stream.Collectors;
import javax.servlet.http.HttpServletRequest;
im... | spacerovka/jShop | src/main/java/shop/main/controller/admin/AdminDiscountController.java | Java | mit | 4,334 |
/**
* @class EZ3.Box
* @constructor
* @param {EZ3.Vector3} [min]
* @param {EZ3.Vector3} [max]
*/
EZ3.Box = function(min, max) {
/**
* @property {EZ3.Vector3} min
* @default new EZ3.Vector3(Infinity)
*/
this.min = (min !== undefined) ? min : new EZ3.Vector3(Infinity);
/**
* @property ... | andresz1/ez3.js | src/math/Box.js | JavaScript | mit | 2,872 |
---
layout: article
title: Bible School program (2)
date: '2014-07-11T10:01:00.000-04:00'
author: bohanan.jp
tags:
- music
- neighborhood
- children
- mission
- video
modified_time: '2014-07-11T10:01:00.136-04:00'
blogger_id: tag:blogger.com,1999:blog-2749744699161548108.post-7150338017171035890
blogger_orig_url: http:... | justathoughtor2/christchurch | _posts/imported/2014-07-11-bible-school-program-2.html | HTML | mit | 621 |
package jkanvas.table;
import java.util.Objects;
import jkanvas.animation.GenericPaintList;
/**
* Maps rows of tables to shapes.
*
* @author Joschi <josua.krause@gmail.com>
* @param <T> The list of shapes.
*/
public abstract class ListMapper<T extends GenericPaintList<?>> {
/** The table. */
private final... | JosuaKrause/JKanvas | src/main/java/jkanvas/table/ListMapper.java | Java | mit | 1,891 |
require_relative "../test_helper"
require_relative "../support/apiai_responses"
require_relative "../../lib/ai/weather_responder"
include ApiaiResponses
describe AI::WebQueryResponder do
before do
@responder = AI::WebQueryResponder.new(web_query_apiai_response)
end
describe "#call" do
it "returns the c... | fanolug/fortuna_luca | test/ai/test_web_query_responder.rb | Ruby | mit | 543 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>Algorithm Enum Reference</title>
<link rel="stylesheet" type="text/css" href="../../css/jazzy.css" />
<link rel="stylesheet" type="text/css" href="../../css/highlight.css" />
<meta charset='utf-8'>
<script src="../../js/jquery.min.js" defer></script>
... | iosdevzone/IDZSwiftCommonCrypto | docs/docsets/.docset/Contents/Resources/Documents/Classes/StreamCryptor/Algorithm.html | HTML | mit | 14,768 |
<?php
//api.php
//This is the API transaction script.
?> | grubbyhax/litewrench | litewrench/plugins/api.php | PHP | mit | 57 |
'use strict';
angular.module('drunkeeperApp')
.config(function ($routeProvider) {
$routeProvider
.when('/login', {
templateUrl: 'app/account/login/login.html',
controller: 'LoginCtrl'
})
.when('/signup', {
templateUrl: 'app/account/signup/signup.html',
controller... | mirai418/drunkeeper | client/app/account/account.js | JavaScript | mit | 508 |
html {
position: relative;
min-height: 100%;
}
body {
/* Margin bottom by footer height */
margin-bottom: 60px;
min-width: 320px;
}
.content {
margin: 0 10px 0 10px;
}
.page-header{
margin-top: 4px;
margin-bottom: 10px;
}
.page-header h1{
margin: 0;
}
.footer {
position: absolute;
bottom... | mshudx/oscarnite | src/Mshudx.OscarNite.Web/wwwroot/css/site.css | CSS | mit | 604 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.compute;
import com.azure.core.http.HttpPipeline;
import com.azure.resourcemanager.compute.fluent.models.VirtualMachineScaleSetInner;
import com.azure.resourcemanager.compute.models.KnownL... | Azure/azure-sdk-for-java | sdk/resourcemanagerhybrid/azure-resourcemanager-compute/src/test/java/com/azure/resourcemanager/compute/VirtualMachineScaleSetBootDiagnosticsTests.java | Java | mit | 23,110 |
<ul>
<li><a ui-sref-active="active" ui-sref="wheel">{{ 'WHEEL' | translate }}</a></li>
<li><a ui-sref-active="active" ui-sref="participants">{{ 'PARTICIPANTS' | translate }}</a></li>
<li><a ui-sref-active="active" ui-sref="winners">{{ 'WINNERS' | translate }}</a></li>
</ul>
| finanzcheck/wheel-of-fortune | lib/navigation/views/navigation.html | HTML | mit | 287 |
---
layout: sieutv
title: af 3930
tags: [aftv]
thumb_re: q7t13930
---
{% include q7t1 key="3930" %}
| binhbat/binhbat.github.io | _drafts/1/af/_posts/2016-08-08-3930_q7t1.md | Markdown | mit | 102 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>unicoq: 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.02.3-2.0.6/released/8.7.2/unicoq/1.3+8.8.html | HTML | mit | 6,859 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qcert: 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.02.3-2.0.6/released/8.4.6~camlp4/qcert/1.0.5.html | HTML | mit | 6,916 |
class AddPostReceiveUrlModes < ActiveRecord::Migration
def self.up
add_column :repository_post_receive_urls, :mode, :string, :default => "github"
end
def self.down
remove_column :repository_post_receive_urls, :mode
end
end
| cema-sp/docker-redmine | to_data/plugins/redmine_git_hosting/db/migrate/20120522000000_add_post_receive_url_modes.rb | Ruby | mit | 240 |
//
// UIColor+RandomColor.h
// general-code
//
// Created by John Bender on 1/23/13.
//
//
#import <UIKit/UIKit.h>
@interface UIColor (RandomColor)
+(UIColor*) randomColor;
+(UIColor*) randomColorWithAlpha:(CGFloat)alpha;
@end
| mxstrand/iOS_Bluetooth_App | bluetooth-demo/UIColor+RandomColor.h | C | mit | 234 |
#include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include <QPixmap>
#include <QUrl>
#include <qrencode.h>
QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent) :
... | elco-coin/elcoin-source | src/qt/qrcodedialog.cpp | C++ | mit | 4,309 |
module Beatport
module Catalog
class Keys < Item
has_one :standard, Key
end
end
end | mateomurphy/beatport | lib/beatport/catalog/keys.rb | Ruby | mit | 102 |
#!/usr/bin/env python3
# Copyright 2014 BitPay Inc.
# Copyright 2016-2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test framework for syscoin utils.
Runs automatically during `make check`.
Ca... | syscoin/syscoin2 | test/util/syscoin-util-test.py | Python | mit | 6,594 |
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("Ext... | jzoss/LowCalorieOwin | ExternalNoCookieLogin/Properties/AssemblyInfo.cs | C# | mit | 1,409 |
import { times, flatten } from "lodash"
import { APIOptions } from "./loaders/api"
// TODO: Type this and refactor, because I think things just kinda work by luck,
// because a static and a dynamic path loader take different number of
// arguments.
export const MAX_GRAPHQL_INT = 2147483647
export const a... | mzikherman/metaphysics-1 | src/lib/all.ts | TypeScript | mit | 1,251 |
// Type definitions for ag-grid-community v20.2.0
// Project: http://www.ag-grid.com/
// Definitions by: Niall Crosby <https://github.com/ag-grid/>
import { Component } from "../widgets/component";
import { IFilterOptionDef, IDoesFilterPassParams, IFilterComp, IFilterParams } from "../interfaces/iFilter";
import { Grid... | ceolter/angular-grid | dist/lib/filter/baseFilter.d.ts | TypeScript | mit | 5,617 |
using IoT_Core.Models;
using MongoDB.Bson;
using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.Options;
namespace IoT_Core.Services.Repositories
{
public class WateringRepository : BaseRepository, IWateringRepository
... | MCeddy/IoT-core | IoT-Core/Services/Repositories/WateringRepository.cs | C# | mit | 1,483 |
require('./check-versions')();
const config = require('../config');
if (!process.env.NODE_ENV) {
process.env.NODE_ENV = JSON.stringify(config.dev.env.NODE_ENV);
}
const opn = require('opn');
const path = require('path');
const express = require('express');
const webpack = require('webpack');
const proxyMiddlewar... | ArthurFree/vue-template-boilerplate | build/dev-server.js | JavaScript | mit | 2,690 |
<?php
/*
* This file is part of Gloubster.
*
* (c) Alchemy <info@alchemy.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Gloubster\Receipt;
use Gloubster\Exception\RuntimeException;
class Factory
{
public stat... | Gloubster/Communications | src/Gloubster/Receipt/Factory.php | PHP | mit | 1,130 |
package input
import (
glfw "github.com/go-gl/glfw3"
"github.com/tedsta/fission/core"
"github.com/tedsta/fission/core/event"
)
type InputSystem struct {
eventManager *event.Manager
window *glfw.Window
}
func NewInputSystem(w *glfw.Window, e *event.Manager) *InputSystem {
i := &InputSystem{}
// Set the ... | tedsta/gofission | input/inputsystem.go | GO | mit | 1,973 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.11.... | laidig/siri-20-java | src/uk/org/siri/siri/PtConsequencesStructure.java | Java | mit | 2,372 |
$(document).ready(function(){
//fancybox.js init
/*$('.fancybox').fancybox({
openEffect : 'none',
closeEffect : 'none',
prevEffect : 'none',
nextEffect : 'none',
arrows : false,
helpers : {
media : {},
buttons : {}
}
});*/
//wow.js init
wow = new WOW(
{
animat... | Sirchem/WebGraph | js/main.js | JavaScript | mit | 411 |
#include "platform_file_utils.h"
FileData get_asset_data(const char* relative_path);
void release_asset_data(const FileData* file_data);
| benbancroft/2DEngine | src/platform/common/platform_asset_utils.h | C | mit | 138 |
---
layout: post
title: "Rocksbox Sale Shop Opens Today!"
description: ""
headline: "Rocksbox Sale Shop Opens Today!"
categories:
- Subscriptions
tags: [Rocksbox, Subscriptions, September 2016]
comments: true
mathjax: null
published: true
featured: false
type: photo
imagefeature: "RocksboxSaleShopOpensSeptember2... | whatsupmailbox/whatsupmailbox.github.io | _posts/2016-09-15-Rocksbox-Jewelry-Sale-Shop-Opens-September-2016-News.md | Markdown | mit | 2,309 |
namespace TeleConsult.Web.App_Start
{
using System.Web.Mvc;
public class ViewEnginesConfiguration
{
internal static void RegisterViewEngines(ViewEngineCollection viewEngineCollection)
{
ViewEngines.Engines.Clear();
ViewEngines.Engines.Add(new RazorViewEngine());
... | penjurov/TeleConsult | Web/TeleConsult.Web/App_Start/ViewEnginesConfiguration.cs | C# | mit | 336 |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddSiezidColumnDishprice extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('dish_price... | stanleygomes/stanleygomes.github.io | projects/netrango-laravel-netrango/database/migrations/2017_05_08_203031_add_siezid_column_dishprice.php | PHP | mit | 785 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>io-system-ocaml: 15 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.7.2/io-system-ocaml/2.3.0.html | HTML | mit | 7,335 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>exact-real-arithmetic: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../boo... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/released/8.7.1+1/exact-real-arithmetic/8.6.0.html | HTML | mit | 7,046 |
<?php // lint >= 7.4
function foo():?Foo
{
}
$callback = function():?Foo
{
};
$callback = fn ($a):?Foo => $a;
interface Foo
{
public function doFoo($param):?Foo;
}
class FooBar implements Foo
{
public function doFoo($param):?Foo
{
}
}
| slevomat/coding-standard | tests/Sniffs/TypeHints/data/fixableReturnTypeHintNoSpaceBetweenColonAndNullabilitySymbol.php | PHP | mit | 251 |
<!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="./556799c488885b59c0c8c6ec02fcf8623cfeb03b5c47694e54252f76c8e3dc80.html">Teleport</a>
<hr>
... | simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/5a88771b2a27a5ff558668d92b9a242db05c5b19fac3944704afe903ad407878.html | HTML | mit | 550 |
#!/usr/bin/env node
/*
try {
require(./newrelic)
require('newrelic')
} catch (e) {
// Don't load New Relic if the configuration file does't exist.
}
*/
/*
require('babel/register')({
only: new RegExp(__dirname + '/lib' + '|' +
__dirname + '/node_modules/p2p-file-transfer')
})
*/
module.expor... | prince1809/p2p-file-transfer | index.js | JavaScript | mit | 349 |
# Testing azure-identity in Azure Cloud Shell
# Open Azure Cloud Shell
https://shell.azure.com/
# Create an Azure Key Vault
## set environment variables to simplify copy-pasting
- RESOURCE_GROUP
- name of an Azure resource group
- must be unique in the Azure subscription
- e.g. 'cloudshell-identity-test'
- KEY... | Azure/azure-sdk-for-python | sdk/identity/azure-identity/tests/managed-identity-live/cloudshell.md | Markdown | mit | 1,773 |
"use strict";
var compression = require("../lib/core/middleware/compression");
describe("core.middleware.compression", function() {
var fakeThis;
beforeEach("create fake this", function() {
fakeThis = {
enabled: sinon.stub().withArgs("compress").returns(true),
app: {
use: sinon.spy()
}
... | Nulifier/Obsidian | test/hide/core.middleware.compression.js | JavaScript | mit | 1,098 |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Tipue Search Static Mode Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="http://fonts.googleapis.com/css?family=Roboto:100,300,400" rel="sty... | Tipue/Tipue-Search | demo/static/index.html | HTML | mit | 1,740 |
<html>
<head>
<title>Opularity | TF2</title> <!--Change the title Depending on your tutorial-->
<link href="Resources/css/bootstrap.css" rel='stylesheet' type='text/css' />
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<script src="js/jquery.min.... | Opularity/Opularity.github.io | how2heavy.html | HTML | mit | 6,658 |
#include <z80e/debugger/commands.h>
#include <z80e/debugger/debugger.h>
#include <z80e/disassembler/disassemble.h>
#include <z80e/log/log.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
enum {
REGISTER,
MEMORY,
EXECUTION,
};
enum {
READ = (1 << 0),
WRITE = ... | matrefeytontias/z80e-sdl-win | z80e-sdl/debugger/commands/on.c | C | mit | 6,817 |
var os = require('os');
var fs = require('fs');
var path = require('path');
var SerialPort = require("serialport");
//Default configuration
var config = {
spm: { }, //Serial port manager
cli: true, //Command line interface
port: 5147,
mode: "http", //HTTP server with WebSocket by default
prefix: "/api/v1", /... | papnkukn/remote-serial-port-server | server.js | JavaScript | mit | 10,625 |
EmberChat::Application.routes.draw do
root :to => 'application#index'
end
| johnkpaul/emberchat | config/routes.rb | Ruby | mit | 76 |
package misc
import (
"net/http"
"strconv"
"time"
)
//Writer http response writer interface.
type Writer interface {
http.ResponseWriter
http.Hijacker
}
//ElapsedTime add requset elapsed time to "Elapsed-Time" header of response.
//Elapsed time is time spent between middleware exetue and data wrote to response.... | herb-go/herb | middleware/misc/elapsedtime.go | GO | mit | 1,028 |
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("1.... | TeeeeeC/TelerikAcademy2015-2016 | 02. C# part 2/06. Strings and Text processing/1. DescriptionOfStrings/Properties/AssemblyInfo.cs | C# | mit | 1,422 |
def clear_console
puts "\e[H\e[2J"
end
watch('lib/.*\.php') do |match|
clear_console
system 'phpunit'
end
| immense/php-macaroons | autotest-watchr.rb | Ruby | mit | 114 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.