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 |
|---|---|---|---|---|---|
<h2>Listing <span class='muted'>Names</span></h2>
<br>
<?php if ($names): ?>
<table class="table table-striped">
<thead>
<tr>
<th>Name</th>
<th> </th>
</tr>
</thead>
<tbody>
<?php foreach ($names as $item): ?> <tr>
<td><?php echo $item->name; ?></td>
<td>
<div class="btn-toolbar">
<di... | miyahira/fuelphp_test | fuel/app/views/name/index.php | PHP | mit | 1,036 |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "UIButton.h"
@interface SBNotificationVibrantButton : UIButton
{
UIButton *_vibrantButton;
UIButton *_overlayButton;
}
- (id)_buttonImageForColor:(id)arg1 selected... | iMokhles/iPhone5S-iOS8.1-SBHeaders | SBNotificationVibrantButton.h | C | mit | 1,000 |
using System;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Xml;
using System.Xml.Serialization;
using SubSonic;
using SubSonic.Utilities;... | saludnqn/consultorio | DalSic/generated/LabTempResultadoEncabezadoController.cs | C# | mit | 7,089 |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="layoutclass_pic"><div class="layoutclass_first_pic"><table class="ztable"><tr><th class="ztd1"><b>... | BuzzAcademy/idioms-moe-unformatted-data | all-data/0-999/906-31.html | HTML | mit | 1,230 |
<span class="wiki-builder">This page was generated with Wiki Builder. Do not change the format!</span>
## Ultra Centurion
### Info
* **enemyId:** CabalUltraCenturionA
* **enemyName:** Ultra Centurion
* **cardId:** 205150
* **enemyTier:** Ultra
* **raceName:** Cabal
* **raceClass:** CabalCenturion
* **enemyWeapon:** Pr... | DestinyDevs/BungieNetPlatform | wiki-docs/v1/EnemyHistoricalStatsPages/CabalUltraCenturionA.md | Markdown | mit | 591 |
// Project: angulate2 (https://github.com/jokade/angulate2)
// Description:
// Copyright (c) 2017 Johannes.Kastner <jokade@karchedon.de>
// Distributed under the MIT License (see included LICENSE file)
package angulate2.platformBrowser.animations
import scala.scalajs.js
import scala.scalajs.js.annot... | jokade/angulate2 | bindings/src/main/scala/angulate2/platformBrowser/animations/NoopAnimationsModule.scala | Scala | mit | 468 |
-- Copyright 2007-2008 Mitchell Foral mitchell<att>caladbolg.net. See LICENSE.
---
-- Commands for the cpp module.
module('_m.cpp.commands', package.seeall)
-- C++-specific key commands.
local keys = _G.keys
if type(keys) == 'table' then
local m_editing = _m.textadept.editing
keys.cpp = {
al = { textadept.io.... | LinuxPhreak/textadept | modules/cpp/commands.lua | Lua | mit | 584 |
const test = require('tape')
const Queue = require('./Queue')
test('peek on empty queue', assert => {
const queue = new Queue()
assert.strictEqual(queue.peek(), null)
assert.end()
})
test('enqueue items to the queue', assert => {
const queue = new Queue()
queue.enqueue('foo')
queue.enqueue('bar')
assert... | ayastreb/cs101 | src/DataStructures/Queue.test.js | JavaScript | mit | 1,085 |
main.pdf: main.tex
xelatex $<
clean:
$(RM) main.aux main.log main.nav main.out main.pdf main.snm main.toc main.vrb
| ajholanda/edu-C | _slides/Makefile | Makefile | mit | 124 |
# NSed
App allows to find and replace strings in text files in bulk. Uses C# regular expressions to determine what is to be found and replaced.
| jns300/NSed | README.md | Markdown | mit | 144 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Cosmosdb::Mgmt::V2015_04_08
module Models
#
# An Azure Cosmos DB MongoDB database.
#
class MongoDBDatabase < Resource
... | Azure/azure-sdk-for-ruby | management/azure_mgmt_cosmosdb/lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_dbdatabase.rb | Ruby | mit | 2,741 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | v8-dox/v8-dox.github.io | d685c99/html/classv8_1_1PersistentHandleVisitor-members.html | HTML | mit | 5,329 |
<?php
namespace r7r\ste;
/**
* Class Calc contains static methods needed by <ste:calc />
*/
class Calc
{
private function __construct()
{
}
/**
* Parse a mathematical expression with the shunting yard algorithm (https://en.wikipedia.org/wiki/Shunting-yard_algorithm)
*
* We could also... | kch42/ste | src/ste/Calc.php | PHP | mit | 5,679 |
class: center, middle
# ざっくりわかるDoma
---
### 自己紹介
* うらがみ⛄️
* 大阪でSIerをしているJavaプログラマ
* Domaヘビーユーザー・アーリーアダプター
???
仕事で初めてDomaを使ったのが2010-07-11。
それ以来、自分に決定権がある場合はほとんどDomaを使っている。
ほとんどの場合、自分に決定権がある。
---
### Domaとは
* Pluggable Annotation Processing APIを利用
* コンパイル時にコード検証、コード生成
* 他のJARに依存しない
* Java 8以降に対応
* ORMというよりResul... | backpaper0/ghosts | doma-zakkuri/slide.md | Markdown | mit | 31,935 |
var EVENTS, ProxyClient, _r, bindSocketSubscriber, getSystemAddresses, io, mazehallGridRegister;
_r = require('kefir');
io = require('socket.io-client');
EVENTS = require('./events');
ProxyClient = function(server, hosts) {
server.on('listening', function() {
return bindSocketSubscriber(server, hosts);
});
... | mazehall/mazehall-proxy | lib/client.js | JavaScript | mit | 1,895 |
#!/bin/bash
#This colour
cyan='\e[0;36m'
green='\e[0;32m'
lightgreen='\e[1;32m'
white='\e[1;37m'
red='\e[1;31m'
yellow='\e[1;33m'
blue='\e[1;34m'
resetCollor='\e[m'
fancyEcho()
{
collors=(
'\e[0;36m'
'\e[0;32m'
'\e[1;32m'
'\e[1;31m'
'\e[1;37m'
'\e[1;33m'
'\e[1;34m'
'\e[1;35m'
)
string=$1
for word in $string;
... | Disguisenberg/Metastasis-Framework | lib/decoration.sh | Shell | mit | 2,146 |
var Router = require('restify-router').Router;
var db = require("../../../../db");
var ProductionOrderManager = require("dl-module").managers.sales.ProductionOrderManager;
var resultFormatter = require("../../../../result-formatter");
var passport = require('../../../../passports/jwt-passport');
const apiVersion = '1.0... | danliris/dl-production-webapi | src/routers/v1/sales/reports/sales-monthly-report-router.js | JavaScript | mit | 9,361 |
/* Some parameters for the placement of the runtime stack in the buffer lab */
#define STACK_SIZE 0x100000
#ifdef STACK
#define START_ADDR (void *) STACK
#else
#define START_ADDR (void *) 0x55586000
#endif
| chaohu/Daily-Learning | Foundation-of-CS/ics14_lab1-3/lab3/src/stack.h | C | mit | 206 |
<?php
namespace Audith\Providers\Nexway\Data\Response\OrderApi;
/**
* @author Shahriyar Imanov <shehi@imanov.me>
*/
class getCrossUpSell extends \Audith\Providers\Nexway\Data\Response\OrderApi
{
/**
* @var array
* @see http://wsdocs.nexway.com/APIGuide/index.html?url=responsecodetype1.html
*/
... | AudithSoftworks/Nexway-Merchant-API-PHP-Client | src/Audith/Providers/Nexway/Data/Response/OrderApi/getCrossUpSell.php | PHP | mit | 1,028 |
<!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_15) on Thu Mar 10 09:38:24 BRT 2011 -->
<TITLE>
Uses of Class service.PlanoModeloAppService
</TITLE>
<META NAME="date" CONTENT="2011-03-10"... | dayse/gesplan | doc/service/class-use/PlanoModeloAppService.html | HTML | mit | 5,825 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generate... | luetm/SuperCereal | SuperCereal/Properties/Settings.Designer.cs | C# | mit | 1,094 |
package pl.edu.mimuw.cloudatlas.agent.modules.network;
import java.net.InetAddress;
import pl.edu.mimuw.cloudatlas.agent.modules.framework.SimpleMessage;
public final class SendDatagramMessage extends SimpleMessage<byte[]> {
private InetAddress target;
private int port;
public SendDatagramMessage(byte[] content,... | konradxyz/cloudatlas | src/pl/edu/mimuw/cloudatlas/agent/modules/network/SendDatagramMessage.java | Java | mit | 518 |
module Translation
using Random
const filename = joinpath(tempdir(), "translation-$(randstring()).jld")
module Writing
using JLD
import ..Translation: filename
mutable struct MyType
a::Int
end
jldopen(filename, "w") do file
truncate_module_path(file, Writing)
write(file, "x", MyType(3))
end
end # Wri... | JuliaIO/JLD.jl | test/type_translation.jl | Julia | mit | 760 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{% block title %} {% endblock %} | ShopSoko </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href... | nickaigi/django-pesapal | django_pesapal/templates/base.html | HTML | mit | 2,624 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloPowerBiServiceApi.Models {
public class Report {
public string id { get; set; }
public string name { get; set; }
public string webUrl { get; set; }
public string embedUrl { get; ... | CriticalPathTraining/PBD365 | Modules/04_PBIServiceApi/Demo/HelloPowerBiServiceApi/HelloPowerBiServiceApi/Models/JsonConverterClasses.cs | C# | mit | 491 |
<?php
/*
* @author M2E Pro Developers Team
* @copyright M2E LTD
* @license Commercial use is forbidden
*/
class Ess_M2ePro_Block_Adminhtml_Wizard_InstallationAmazon_Notification
extends Ess_M2ePro_Block_Adminhtml_Wizard_Notification
{
//########################################
//#############... | portchris/NaturalRemedyCompany | src/app/code/community/Ess/M2ePro/Block/Adminhtml/Wizard/InstallationAmazon/Notification.php | PHP | mit | 350 |
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe MailSafe do
TEXT_POSTSCRIPT_PHRASE = /The original recipients were:/
HTML_POSTSCRIPT_PHRASE = /<p>\s+The original recipients were:\s+<\/p>/
def deliver_message(message_name, *args)
TestMailer.send(message_name, *args).deliver
end
... | myronmarston/mail_safe | spec/mailer_spec.rb | Ruby | mit | 5,478 |
var Icon = require('../icon');
var element = require('magic-virtual-element');
var clone = require('../clone');
exports.render = function render(component) {
var props = clone(component.props);
delete props.children;
return element(
Icon,
props,
element('path', { d: 'M3 21h2v-2H3v2zM5 7H3v2h2V7zM3 17... | goto-bus-stop/deku-material-svg-icons | lib/editor/border-horizontal.js | JavaScript | mit | 548 |
## Machine Learning at AstroHackWeek 2017
### Adrian Price-Whelan & David W. Hogg
This repository contains some Jupyter notebooks to accompany the Machine
Learning tutorial session at
[AstroHackWeek 2017](http://astrohackweek.org/2017/).
* [Download data (4.15
GB)](http://www.astro.princeton.edu/~adrn/ahw2017-ml-d... | AstroHackWeek/AstroHackWeek2017 | day1/README.md | Markdown | mit | 1,207 |
/*++
NASM Assembly Language Plugin
Copyright (c) 2017-2019 Aidan Khoury. All rights reserved.
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... | dude719/JetBrains-NASM-Language | src/com/nasmlanguage/NASMCommenter.java | Java | mit | 1,389 |
// ****************************************************************************
// <copyright file="IntExtensions.cs" company="Pedro Lamas">
// Copyright © Pedro Lamas 2011
// </copyright>
// ****************************************************************************
// <author>Pedro Lamas</author>
// <email>pedrolam... | Cimbalino/Cimbalino-Phone-Toolkit | src/Cimbalino.Phone.Toolkit.Background (WP71)/Extensions/IntExtensions.cs | C# | mit | 4,435 |
## ortho-poly Change Log
All notable changes to this project will be documented in this file.
### [Unreleased][unreleased]
- ...
### [v1.0.0] - 2016-01-01
- ...
[unreleased]: https://github.com/andylbrummer/ortho-poly/compare/v1.0.0...HEAD
[v0.0.1]: https://github.com/andylbrummer/ortho-poly/compare/v0.0.0...v1.0... | andylbrummer/ortho-poly | CHANGELOG.md | Markdown | mit | 323 |
Page which makes usage of an styler
| hernanmd/Aethiopis | Aethiopis.package/AethStyledPage.class/README.md | Markdown | mit | 36 |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class AddLastNameToPeopleTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('people', function(Blueprint $table)
{
$table->dropColumn('nam... | svpernova09/SvperCRM | app/database/migrations/2014_09_14_020434_add_last_name_to_people_table.php | PHP | mit | 748 |
#pragma once
#include <QAbstractItemModel>
#include <memory>
class ProfFile;
class ProfTreeItem;
class ProfTreeModel : public QAbstractItemModel {
public:
ProfTreeModel(const std::shared_ptr<ProfFile>& ctx);
virtual ~ProfTreeModel();
QVariant data(const QModelIndex& index, int role) const override;
Qt::ItemFlags... | PearCoding/PearRay | src/tools/diagnostic/prof/ProfTreeModel.h | C | mit | 996 |
body {
padding-top: 40px;
padding-bottom: 40px;
background-color: #eee;
}
.loading{
top: 0;
bottom: 0;
position: fixed;
z-index: 99000;
background: #000000;
width: 100%;
height:100%;
opacity: 0.4;
}
.loading img{
background: #000000;
margin: 300px auto 0 auto;
display: block;
width: 40px;
opacity: 0... | nladuo/visit_analytics | www/css/style.css | CSS | mit | 586 |
package icarus
import (
"encoding/json"
"fmt"
"time"
)
type NoSuchPagesError struct {
msg string
Slugs []string
}
func (e *NoSuchPagesError) Error() string {
return e.msg
}
// Retrieve a list of slugs from Redis.
func PagesFromRedis(slugs []string) ([]*Page, error) {
pages := make([]*Page, 0, len(slugs))
... | lethain/icarus | pages.go | GO | mit | 3,031 |
<?php
/**
* Created by PhpStorm.
* User: Admin
* Date: 4/6/14
* Time: 2:46 PM
*/
namespace Nfq\NomNomBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
class AddUsersToEventType extends AbstractType
{
/**
* Returns the name of this type.
*... | nfqakademija/nomnom | src/Nfq/NomNomBundle/Form/Type/AddUsersToEventType.php | PHP | mit | 744 |
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library
// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$token = "your_auth_token";
$client = new Services_Twilio($si... | teoreteetik/api-snippets | rest/message/instance-get-example-1/instance-get-example-1.4.x.php | PHP | mit | 546 |
#!/usr/bin/env bash
# -e: exit when a command fails
# -o pipefail: set exit status of shell script to last nonzero exit code, if any were nonzero.
set -o pipefail
echo ""
echo "Running Tests in Docker Container"
echo "================================="
docker build -t swiftybeaver .
docker run -e SBPLATFORM_APP_ID=$... | cohena100/Shimi | Carthage/Checkouts/SwiftyBeaver/test_in_docker.sh | Shell | mit | 655 |
/// -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: t -*-
///
/// \file subject.cpp
/// \author Martin Reddy
/// \brief The subject of an observer relationship.
///
/// Copyright (c) 2010, Martin Reddy. All rights reserved.
/// Distributed under the X11/MIT License. See LICENSE.txt.
/// See http://APIBook.com... | goodspeed24e/Programming | DesignInterface/observer/subject.cpp | C++ | mit | 372 |
#include <muduo/net/EventLoop.h>
#include <muduo/net/EventLoopThread.h>
#include <stdio.h>
using namespace muduo;
using namespace muduo::net;
void runInThread()
{
printf("runInThread(): pid = %d, tid = %d\n",
getpid(), CurrentThread::tid());
}
int main()
{
printf("main(): pid = %d, tid = %d\n",
... | JnuSimba/muduo_tests | Reactor_test06.cc | C++ | mit | 745 |
.width-1{width: 1%;}.width-2{width: 2%;}.width-3{width: 3%;}.width-4{width: 4%;}.width-5{width: 5%;}.width-6{width: 6%;}
.width-7{width: 7%;}.width-8{width: 8%;}.width-9{width: 9%;}.width-10{width: 10%;}.width-11{width: 11%;}.width-12{width: 12%;}
.width-13{width: 13%;}.width-14{width: 14%;}.width-15{width: 15%;}.width... | ramkumarizaap/handzforhire | assets/css/width.css | CSS | mit | 2,200 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KDCLLC.Web.Models.Data
{
public class SalesOrder : IObjectWithState
{
public SalesOrder()
{
SalesOrderItems = new List<SalesOrderItem>();
}
... | kdcllc/KDCLLCWeb | KDCLLC.Web.Models/Data/SalesOrder.cs | C# | mit | 640 |
/*===================================================
LIST MASTER HEADERS
===================================================*/
//Multiple definition prevention
#ifndef BBInterface_ListMaster_h
#define BBInterface_ListMaster_h
//Includes
//Pre-defined structures
struct list;
struct listnode;
//Define these struc... | mojmir-svoboda/BlackBoxTT | plugins/bbInterface/src/ListMaster.h | C | mit | 1,157 |
<?php
$page->title('ND People Directory')
->navbar_image('title-people')
->breadcrumbs('People Directory')
->breadcrumb_home();
$page->content_begin();
?>
<div class="nonfocal">
<form method="get" action="">
<fieldset class="inputcombo emphasized">
<input class="forminput" type="text" id="filt... | Xiaojing/atmobileweb | web/people/ip/index.html | HTML | mit | 1,056 |
define(['./alasqlportfoliodividenddata', './monthstaticvalues', './bankdatadividend', './dateperiod'], function(alasqlportfoliodividenddata, monthstaticvalues, bankdatadividend, dateperiod) {
var gridData = [];
var gridId;
var months = monthstaticvalues.getMonthWithLettersValues();
var currentMonth = n... | nnava/nnava.github.io | js/gridportfoliodividend.js | JavaScript | mit | 13,859 |
insert into student
values(10001, 'Ranga', 'xyz', 'user1');
insert into student
values(10002, 'George', '123456', 'user2');
| RaymondKwong/raymond_projects | services/jwtauth/src/main/resources/data.sql | SQL | mit | 125 |
使用CSS和SVG制作带纹理文本的三个技巧
===
## 使用 BACKGROUND-CLIP 来裁剪文本
`background-clip` 属性将定义背景是否将被延伸到边界,允许文本在图片上做截取。
我们用夜空的图片来给文本添加效果,使用 `font-smoothing` 使文本渲染流畅。请注意使用这种方法的时候文本的颜色必须是透明的,所以我们同时也得使用 `text-fill-color: transparent`。
```css
@import "compass/css3";
html, body {
height: 100%;
background-color: #f1503f;
}
h1 {
posit... | guihua/2017-memories | 07/06.text.css&svg.md | Markdown | mit | 2,757 |
/* eslint-disable global-require */
// polyfills and vendors
if (!window._babelPolyfill) {
require('babel-polyfill')
}
| ri/news-emote | src/vendor.js | JavaScript | mit | 123 |
## Live Version
[CSULB ACM ICPC Notebook](http://csulbacm.github.io/icpc-notebook)
| csulbacm/icpc-notebook | README.md | Markdown | mit | 84 |
/*
* This file is part of ThermalRecycling, licensed under the MIT License (MIT).
*
* Copyright (c) OreCruncher
*
* 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, i... | OreCruncher/ThermalRecycling | src/main/java/org/blockartistry/mod/ThermalRecycling/support/recipe/accessor/ForestryFabricatorRecipeAccessor.java | Java | mit | 1,809 |
import json
import logging
from foxglove import glove
from httpx import Response
from .settings import Settings
logger = logging.getLogger('ext')
def lenient_json(v):
if isinstance(v, (str, bytes)):
try:
return json.loads(v)
except (ValueError, TypeError):
pass
return... | tutorcruncher/morpheus | src/ext.py | Python | mit | 3,555 |
/*
Copyright (C) 2003-2013 by Kristina Simpson <sweet.kristas@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any pur... | sweetkristas/xhtml | src/xhtml/css_parser.cpp | C++ | mit | 13,689 |
/**
* Automatically generated file. Please do not edit.
* @author Highcharts Config Generator by Karasiq
* @see [[http://api.highcharts.com/highmaps]]
*/
package com.highmaps.config
import scalajs.js, js.`|`
import com.highcharts.CleanJsObject
import com.highcharts.HighchartsUtils._
/**
* @note JavaScript n... | Karasiq/scalajs-highcharts | src/main/scala/com/highmaps/config/PlotOptionsPivotpointsStatesSelectMarkerStatesHoverAnimation.scala | Scala | mit | 1,071 |
package org.udger.parser;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.io.IOException;
import java.net.URL;
import java.net.UnknownHostException;
import java.sql.SQLException;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.CyclicBarrier;... | udger/udger-java | src/test/java/org/udger/parser/UdgerParserTest.java | Java | mit | 3,881 |
<?php namespace Illuminate\Database\Eloquent\Relations;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\ModelNotFoundException;
class BelongsToMany extends Relation {
/**
* The intermediate table for th... | brunoalbano/uniac | src/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/BelongsToMany.php | PHP | mit | 25,569 |
// Created by Ron 'Maxwolf' McDowell (ron.mcdowell@gmail.com)
// Timestamp 01/03/2016@1:50 AM
using System.Diagnostics.CodeAnalysis;
using OregonTrailDotNet.Event.Prefab;
using OregonTrailDotNet.Module.Director;
namespace OregonTrailDotNet.Event.Person
{
/// <summary>
/// Rocky Mountain spotted fever (R... | Maxwolf/OregonTrail | src/Event/Person/MountainFever.cs | C# | mit | 1,107 |
import { Cursor } from '../diagram/Cursor';
import { DiagramElement } from '../diagram/DiagramElement';
import { Handle } from '../diagram/Handle';
import { AbstractCanvas } from './AbstractCanvas';
const zoomLevels = [1 / 8, 1 / 7, 1 / 6, 1 / 5, 1 / 4, 1 / 3, 1 / 2, 2 / 3, 1, 3 / 2, 2, 3, 4, 5, 6, 7, 8];
export abst... | ksm2/metagram | modules/@metagram/framework/canvas/InteractiveCanvas.ts | TypeScript | mit | 4,938 |
#include "peerreview/vrf.h"
#define SUBSYSTEM "VrfExtInfoPolicy"
VrfExtInfoPolicy::VrfExtInfoPolicy(VerifiablePRNG *vprng) : ExtInfoPolicy()
{
this->vprng = vprng;
}
VrfExtInfoPolicy::~VrfExtInfoPolicy()
{
}
int VrfExtInfoPolicy::storeExtInfo(SecureHistory *history, long long followingSeq, unsigned char *buffer, ... | jdecouchant/PAG | ORPR/libpeerreview-1.0.9-light/src/vrf/extinfo.cc | C++ | mit | 724 |
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Module: Approvability::ActsAsApprov... | mrpta/approvability | doc/Approvability/ActsAsApprovability.html | HTML | mit | 2,628 |
---
title: Alert Widget
last_updated: June 8, 2016
sidebar: api_sidebar
permalink: /widget-alert/
---
This HTML widget contains the the content for a particular {alert_identifier}.
```
GET /widgets/alerts/{alert_identifier}/
```
## Example Request
```
GET https://insights.knows.is/widgets/alerts/575ac51af3d4f7468... | knowsis/knowsis.github.io | api/widget-alert.md | Markdown | mit | 3,046 |
DROP DATABASE IF EXISTS BluebellAdventuresRecord;
CREATE DATABASE BluebellAdventuresRecord;
USE BluebellAdventuresRecord;
CREATE TABLE Records (
Id INT NOT NULL AUTO_INCREMENT,
Score INT NOT NULL,
Date_Time DATETIME NOT NULL,
PRIMARY KEY (Id)
);
| YukiSora/bluebell-adventures | resource/database.sql | SQL | mit | 264 |
const iNaturalistAPI = require( "../inaturalist_api" );
const ControlledTerm = require( "../models/controlled_term" );
const Observation = require( "../models/observation" );
const Project = require( "../models/project" );
const Taxon = require( "../models/taxon" );
const User = require( "../models/user" );
const obse... | inaturalist/inaturalistjs | lib/endpoints/observations.js | JavaScript | mit | 7,513 |
\begin{homeworkProblem}[Running the Algorithms]
\begin{homeworkSubProblem}[DFS \& BFS]
The DFS\&BFS from vertex $a$ are shown in \cref{1.a} and \cref{1.b}.
\begin{figure}[H]
\caption{DFS \& BFS for First Graph}\label{1.a}
\centering
\includegraphics[width=.8\textwidth]{running1a}
... | hanlin-he/UTD | CS6363/homeworks/hw3/running.tex | TeX | mit | 1,980 |
package dk.itu.ejuuragr.tests;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.anji.util.Properties;
import dk.itu.ejuuragr.turing.MinimalTuringMachine;
public class MinimalTuringMachineTest {
MinimalTuringMachine tm;
@Before
public void before(){
Properties props = new P... | Fumaloko92/MSc-Thesis | 17-05-2017/neuralturingmachines-master/src/dk/itu/ejuuragr/tests/MinimalTuringMachineTest.java | Java | mit | 3,649 |
package meta_test
import (
"reflect"
"testing"
"time"
"github.com/archsaber/influxdb/influxql"
"github.com/archsaber/influxdb/services/meta"
)
func Test_Data_DropDatabase(t *testing.T) {
data := &meta.Data{
Databases: []meta.DatabaseInfo{
{Name: "db0"},
{Name: "db1"},
{Name: "db2"},
{Name: "db4"... | archsaber/influxdb | services/meta/data_test.go | GO | mit | 5,658 |
xargs rm < install_manifest.txt
| primitivorm/latino-json | desinstalar.sh | Shell | mit | 32 |
<?php
use awheel\App;
use Monolog\Logger;
use awheel\Support\Arr;
use awheel\Http\Request;
use awheel\Http\Response;
use awheel\Routing\Router;
use awheel\Http\Kernel as HttpKernel;
use awheel\Console\Kernel as ConsoleKernel;
/**
* 返回应用实例, 或应用组件
*
* @param $make
*
* @return App|Router|Request|Response|HttpKernel... | awheel/framework | src/Support/Helpers.php | PHP | mit | 1,379 |
package examples
const JSONExample_User = `{
"name": "calavera"
}`
| calavera/json_generate | examples/simple.go | GO | mit | 69 |
#include "../widgetslib.h"
#include "button.h"
#include "Meta/math/vector4.h"
#include "vertex.h"
#include "Meta/keyvalue/metatable_impl.h"
#include "Meta/serialize/serializetable_impl.h"
#include "fontloader.h"
#include "imageloader.h"
METATABLE_BEGIN_BASE(Engine::Widgets::Button, Engine::Widgets::WidgetBase)
M... | MadManRises/Madgine | plugins/core/widgets/src/Madgine/widgets/button.cpp | C++ | mit | 3,973 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Dashboard for /usr/local/bin/phpunit/phpdocumentor-reflection-docblock/phpDocumentor</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../../css/bootstrap.min.css" rel="stylesheet">
<link href="../.... | fynrir/youjqtube | report/phpdocumentor-reflection-docblock/phpDocumentor/dashboard.html | HTML | mit | 7,273 |
// Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package base
import (
"container/list"
"encoding/json"
"fmt"
"html/template"
"runtime"
"strings"
"time"
"golang.org/x/net/html/charset"
"golang.org... | pecastro/gogs | modules/base/template.go | GO | mit | 6,062 |
/**
* @author Adam Meadows <adam.meadows@gmail.com>
* @copyright 2015 Adam Meadows. All rights reserved.
*/
'use strict';
/* eslint-disable max-nested-callbacks */
let $ = require('jquery');
let main = require('aiw-ui');
describe('main', () => {
let $container;
beforeEach(() => {
$container = $(... | jobsquad/aiw-ui | spec/karma/index-spec.6.js | JavaScript | mit | 513 |
import {Sample} from './sample'
import {context} from './init_audio'
let instanceIndex = 0
export class SampleOscillator extends Sample{
constructor(sampleData, event){
super(sampleData, event)
this.id = `${this.constructor.name}_${instanceIndex++}_${new Date().getTime()}`
if(this.sampleData === -1){
... | abudaan/qambi | src/sample_oscillator.js | JavaScript | mit | 1,076 |
#
# Docker image for
#
# x11-novnc
#
#
# Create:
#
# sudo docker build --rm -t akaer/x11-novnc . 2>&1 |tee docker_build.log
#
# Run:
#
# sudo docker run -it --name x11-novnc -v /etc/localtime:/etc/localtime:ro -p 8083:8083 akaer/x11-novnc
#
#
# Then open your browser and head over to http://<docker-host>:<exposed_port>... | akaer/Dockerfiles | x11-novnc/Dockerfile | Dockerfile | mit | 1,437 |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... | portchris/NaturalRemedyCompany | src/dev/tests/functional/tests/app/Mage/Paypal/Test/Block/Hosted/Pro/Form.php | PHP | mit | 1,144 |
/* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#pragma once
#include <vector>
#include <map>
#include <sstream>
#include <string>
#include "ifcpp/model/GlobalDefines.h"
#include "ifcpp/model/BasicTypes.h"
#include "ifcpp/model/BuildingObject.h"
#include "IfcCartesianTransformationOperator... | berndhahnebach/IfcPlusPlus | IfcPlusPlus/src/ifcpp/IFC4/include/IfcCartesianTransformationOperator3D.h | C | mit | 2,496 |
require "spec_helper"
describe TecDoc::DateParser do
describe "#to_date" do
it "should convert 199904 to April 1st, 1999" do
TecDoc::DateParser.new("199904").to_date.should == Date.new(1999, 4, 1)
end
it "should convert 201012 to December 1st, 2012" do
TecDoc::DateParser.new("201012").to_dat... | mak-it/tec_doc | spec/tec_doc/date_parser_spec.rb | Ruby | mit | 476 |
#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *bitcoin_strings[] = {
QT_TRANSLATE_NOOP("bitcoin-core", ""
"(1 = keep tx meta data e.g. account owner and payment request information, 2 "
... | vtafaucet/virtacoin | src/qt/bitcoinstrings.cpp | C++ | mit | 21,553 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.datalakestore.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.faste... | Azure/azure-sdk-for-java | sdk/datalakestore/azure-resourcemanager-datalakestore/src/main/java/com/azure/resourcemanager/datalakestore/models/EncryptionIdentity.java | Java | mit | 2,508 |
//
// LevelManager.h
// SoA
//
// Created by John Doe on 2/2/16.
// Copyright © 2016 John Doe. All rights reserved.
//
#ifndef LevelManager_h
#define LevelManager_h
#import <UIKit/UIKit.h>
@interface LevelManager : NSObject
- (void) Load;
- (void) Unload;
@end
#endif /* LevelManager_h */
| nelfurion/IOS-Project | soa/SoA/SoA/Levels/LevelManager.h | C | mit | 300 |
'use strict';
var grunt = require('grunt');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.notEqual(actua... | lihebi/grunt-markdown-wiki | test/markdown_wiki_test.js | JavaScript | mit | 1,353 |
<div id="center">
<div class="col-md-6 center">
<div id="notification" class="notification row">
<ul class="nav nav-tabs">
<li role="presentation" class="active"><a data-toggle="pill" href="#noti1">Notification</a></li>
<li role="presentation"><a data-toggle="pill" href="#events1">Assignment</a><... | babirali/myproject | application/views/layouts/center.php | PHP | mit | 8,464 |
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by EasySRT.rc
//
#define IDD_EASYSRT_DIALOG 102
#define IDR_MAINFRAME 128
#define IDD_LYRICS 130
#define IDC_EDIT1 1001
#define IDC_BUTTON2 10... | damayan/EasySRT | resource.h | C | mit | 888 |
#ifndef Input_H
#define Input_H
//! Storage struct for touch inputs.
struct Input {
Input(int Id, float x, float y) : Id(Id), x(x), y(y) {}
int Id;
float x, y;
};
#endif
| Rasmus-Bertell/2D_Android_Game_Engine | Engine/Engine.NativeActivity/Engine/Input/InputStorage.h | C | mit | 175 |
<!--
Copyright 2005-2008 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
Some files are held under additional license.
Please see "http://stlab.adobe.com/licenses.html" for more information.
-->... | brycelelbach/asl | documentation/html/group__partial__sum.html | HTML | mit | 12,004 |
import { Client } from 'discord.js';
import { isFunction, isRegExp, isString } from 'lodash/lang';
import CommandRegistry from '../command/CommandRegistry';
import Dispatcher from './dispatcher/Dispatcher';
import ServiceContainer from './services/ServiceContainer';
/**
* @external {ClientOptions} https://discord.js.... | hkwu/ghastly | src/client/Ghastly.js | JavaScript | mit | 1,545 |
// This code is largely borrowed from: github.com/louischatriot/nedb-to-mongodb
// This code moves your data from NeDB to MongoDB
// You will first need to create the MongoDB connection in your /routes/config.json file
// You then need to ensure your MongoDB Database has been created.
// ** IMPORTANT **
// There are ... | mrvautin/openKB | data/mongodbUpgrade.js | JavaScript | mit | 4,886 |
/*
* Copyright (c) 2010 Simon Hardijanto
*
* 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 without limitation the rights to use,
* copy, modify, ... | metaluna/magefortress | test/magefortress/jobs/subtasks/MFGotoLocationSubtaskTest.java | Java | mit | 8,185 |
using System;
using System.Runtime.CompilerServices;
using Pantheon.Core.MessageRouting;
namespace Pantheon.Core
{
public class MessageCallback
{
private ulong _callback;
private MessageCode _expected;
private Message _request;
private Message _response;
private Message... | seaboy1234/Pantheon | Pantheon.Core/MessageCallback.cs | C# | mit | 3,007 |
var React = require('react'),
cx = require('classnames'),
constants = require('./constants');
var Preloader = React.createClass({
propTypes: {
size: React.PropTypes.oneOf(constants.SCALES),
active: React.PropTypes.bool,
colors: React.PropTypes.array
},
getDefaultProps() {
return {
... | openmaphub/react-materialize | src/Preloader.js | JavaScript | mit | 1,309 |
<!DOCTYPE html>
<html lang="en">
<!-- Head tag -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="imgss在 Github 上的个人博客">
<meta name="keyword" content="null">
... | imgss/imgss.github.io | blog/hexo/archives/2017/04/index.html | HTML | mit | 14,199 |
class DotenvHaiku
# Dotenv Railtie for using Dotenv to load environment from a file into
# Ruby applications
class App
# Public: Load dotenv
#
# Manually call `Dotenv::Railtie.load` in your app's config
def load(options = {})
Dotenv.load(*to_load(options))
end
# Internal: Try the `R... | metavida/dotenv-haiku | lib/dotenv-haiku/to_load/generic.rb | Ruby | mit | 835 |
#!/bin/bash
# JDK
echo "Installing JDK..."
yum install -y java-1.8.0-openjdk-devel > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "Failed to install JDK."
exit 1
fi
# Elasticsearch
echo "Installing Elasticsearch..."
cat > /etc/yum.repos.d/elasticsearch.repo <<EOF
[elasticsearch-1.7]
name=Elasticsearch repository for... | ksoichiro/vagrant-templates | centos71-elasticsearch/provision.sh | Shell | mit | 1,399 |
#include "nilConfig.h"
#include "nil.h"
#include "nilUtil.h"
#include "nilWindows.h"
#ifdef NIL_PLATFORM_WINDOWS
#define NIL_FIELD_OFFSET(type, field) ((LONG_PTR)&(((type*)0)->field))
#define NIL_DIJ2OFS_BUTTON(n) (NIL_FIELD_OFFSET(DIJOYSTATE2, rgbButtons)+(n))
#define NIL_DIJ2OFS_POV(n) (NIL_FIELD_OFFSET(DIJO... | noorus/nil | src/windows/directinput/DirectInputController.cpp | C++ | mit | 9,142 |
#ifndef ICAL_PARAMETERS_altrep_H
#define ICAL_PARAMETERS_altrep_H
#include <ostream>
#include "core/genericpropertyparameter.h"
#include "parserexception.h"
namespace ical {
namespace parameters {
class AltRep
{
private:
std::string value;
public:
static const std::string NAME;
const std::string &getV... | LuboO/iCalendar-parser_PA193_Rteam | src/parameters/altrep.h | C | mit | 594 |
#include "processview.h"
ProcessView::ProcessView(QWidget *parent)
: QTableView(parent)
{
initialActions();
connect(m_refresh, SIGNAL(triggered()), this, SLOT(onRefreshActionTriggered()));
connect(m_modules, SIGNAL(triggered()), this, SLOT(onModulesActionTriggered()));
connect(m_threads, SIGNAL(triggered()), thi... | martinkro/tutorial-qt | Beautiful/Process/src/processview.cpp | C++ | mit | 2,165 |
module Dominion
class Smithy < Action
def cost() 4 end
def to_s() 'Smithy' end
def play(turn)
turn.draw 3
end
end
end | jmckible/dominion | lib/dominion/action/base/smithy.rb | Ruby | mit | 167 |
package success.independent.secondlevel
class B extends A | math85360/autoregister | src/test/resources/success/independent/secondlevel/B.scala | Scala | mit | 58 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.