repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
dinuksha/Test | app/models/simple_smart_answer_edition.rb | 1716 | require "edition"
require_relative 'simple_smart_answer_edition/node'
require_relative 'simple_smart_answer_edition/node/option'
class SimpleSmartAnswerEdition < Edition
include Mongoid::Document
field :body, type: String
embeds_many :nodes, :class_name => "SimpleSmartAnswerEdition::Node"
accepts_nested_att... | mit |
brianmmcgrath/react-github-battle | app/components/Home.js | 430 | var React = require('react');
var Link = require('react-router-dom').Link;
class Home extends React.Component {
render() {
return (
<div className='home-container'>
<h1>Github Battle: Battle your friends...and stuff.</h1>
<Link className='button' to='/battle'>
... | mit |
kreuzhofer/SignalR.ConnectionManager | SignalR.ConnectionManager/HubTest.WebApp/Hubs/MyHub.cs | 345 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.AspNet.SignalR;
namespace HubTest.WebApp.Hubs
{
public class MyHub : Hub
{
public void Hello()
{
Clients.All.hello("This is the message", "second parameter", 100, true, DateTime.Utc... | mit |
Azure/azure-sdk-for-java | sdk/core/azure-core-amqp/CHANGELOG.md | 13000 | # Release History
## 2.5.0-beta.1 (Unreleased)
### Features Added
### Breaking Changes
### Bugs Fixed
- Fixed issue where EndpointStates were not emitted serially. ([#24762](https://github.com/Azure/azure-sdk-for-java/issues/24762))
- Fixed issue of not emitting the shutdown signal serially when ClosedChannelExcep... | mit |
Zinadore/capstoneed-common | src/shared/Services/index.ts | 109 | export { AuthenticationService } from './authentication.service';
export { CustomHttp } from './customHttp';
| mit |
zdying/hiipack | test/proxy.hosts.test.js | 618 | /**
* @file
* @author zdying
*/
'use strict';
var assert = require('assert');
var path = require('path');
var parseHosts = require('../src/proxy/tools/parseHosts');
describe('proxy hosts',function(){
it('正确解析hosts文件', function(){
var hostsObj = parseHosts(path.resolve(__dirname, 'proxy/hosts.example'... | mit |
uber/Prozess | Producer.js | 2432 | var EventEmitter = require('events').EventEmitter;
var _ = require('underscore');
var Message = require('./Message');
var ProduceRequest = require('./ProduceRequest');
var Connection = require('./Connection');
var ConnectionCache = require('./ConnectionCache');
var Producer = function(topic, options){
if (!topic || ... | mit |
bes/MHFS | src/main/java/se/bes/mhfs/plugin/PluginManager.java | 2713 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 Erik Zivkovic
*
* 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... | mit |
ammiranda/CS325 | week1/plots/question_4/g.py | 243 | import numpy as np
import scipy.misc
import matplotlib.pyplot as plt
x = np.linspace(0, 5, 100)
y1 = np.power(2, x)
y2 = scipy.misc.factorial(x)
plt.plot(x, y1)
plt.plot(x, y2)
plt.grid(True)
plt.savefig('../../img/question_4_plots/g.png')
| mit |
TheSylence/GSD | GSD/Behaviors/EnterCommand.cs | 1719 | using System.Diagnostics.CodeAnalysis;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Interactivity;
namespace GSD.Behaviors
{
[SuppressMessage( "ReSharper", "MemberCanBePrivate.Global" )]
[ExcludeFromCodeCoverage]
internal class EnterCommand : Behavior<TextBo... | mit |
cliffano/swaggy-jenkins | clients/cpp-restbed-server/generated/model/ClockDifference.cpp | 2607 | /**
* Swaggy Jenkins
* Jenkins API clients generated from Swagger / Open API specification
*
* The version of the OpenAPI document: 1.1.2-pre.0
* Contact: blah@cliffano.com
*
* NOTE: This class is auto generated by OpenAPI-Generator 5.4.0.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
... | mit |
KlishGroup/prose-pogs | pogs/B/BRAVTHX/PTTF/index.md | 2535 | ---
layout: page
title: Poole Technologies Trade Fair
date: 2016-05-24
author: Hannah Frazier
tags: weekly links, java
status: published
summary: Duis nunc ante, iaculis ac rhoncus non.
banner: images/banner/leisure-01.jpg
booking:
startDate: 07/19/2016
endDate: 07/24/2016
ctyhocn: BRAVTHX
groupCode: PTTF
publi... | mit |
RixianOpenTech/RxWrappers | Source/Wrappers/mscorlib/System.Runtime.Remoting.Channels.IServerChannelSink.cs | 4315 | using System;
using System.Collections.Generic;
using System.Reactive.Linq;
using System.Reactive.Threading.Tasks;
using MS.Core;
namespace System.Runtime.Remoting.Channels
{
public static class __IServerChannelSink
{
public static
IObservable
<
Tuple
... | mit |
mokagio/ios-deploy-gem | lib/ios-deploy.rb | 78 | require "ios-deploy/version"
module IosDeploy
# Your code goes here...
end
| mit |
quokka79/DavLUT | Bubblegum/README.md | 76 | # Bubblegum

| mit |
NewRosies/conductor | app/controllers/conductor/databases_controller.rb | 422 | require_dependency "conductor/application_controller"
module Conductor
class DatabasesController < ApplicationController
def show
@database = Database.instance
end
def update
@database = Database.instance
@database.content = params[:database][:content]
@database.save
flash[:... | mit |
ilkkahanninen/powerchord | README.md | 72 | # Powerchord
## Compiling
```
npm install gulp -g
npm install
gulp
``` | mit |
colinw7/CQCharts | include/CQChartsOptString.h | 1906 | #ifndef CQChartsOptString_H
#define CQChartsOptString_H
#include <CQChartsUtil.h>
#include <CQUtilMeta.h>
#include <QString>
#include <boost/optional.hpp>
/*!
* \brief Optional string
* \ingroup Charts
*/
class CQChartsOptString :
public CQChartsEqBase<CQChartsOptString> {
public:
static void registerMetaTy... | mit |
hirviid/CleengBundle | DependencyInjection/Configuration.php | 1106 | <?php
namespace Hirviid\Bundle\CleengBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This class contains the configuration information for the bundle
*
* This information is solely responsible for how th... | mit |
CSSSR/csssr.github.io | _posts/2018-12-16-year-resume-2018.md | 17718 | ---
layout: post
title: 'Итоги 2018 от CSSSR'
summary: 'О чём молчал фронтенд в 2018'
author: vislogurov
authorLink: https://github.com/vislogurov
image: /images/year-resume2018/p18.png
category: post
---
Здравствуйте! В 2016 я уже подводил [итоги](https://blog.csssr.ru/2016/12/26/year-resume), но тогда у нас в CSSSR ... | mit |
mpf82/w2ui | docs/details/w2tabs.set.html | 1436 | Finds tab with <span class="argument">id</span> and extends it with <span class="argument">tab</span> object.
<div class="definition">
set(id, tab)
</div>
<div class="arguments">
<table>
<tr>
<td>id</td>
<td><b>string</b>, id of the tab object</td>
</tr>
<tr>
<td>tab</td>
... | mit |
russellschmidt/russellschmidt.github.io | path---blog-gatsby-github-a0e39f21c11f6a62c5ab.js | 154 | webpackJsonp([0x78854e72ca23],{567:function(t,e){t.exports={pathContext:{}}}});
//# sourceMappingURL=path---blog-gatsby-github-a0e39f21c11f6a62c5ab.js.map | mit |
organix/art | src/json.c | 14189 | /*
json.c -- Actor Run-Time
"MIT License"
Copyright (c) 2013 Dale Schumacher, Tristan Slominski
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 ... | mit |
DAddYE/mrb | lib/mrb/mrb_data_type.rb | 233 | module Mruby
# (Not documented)
#
# ## Fields:
# :struct_name ::
# (String)
# :dfree ::
# (FFI::Pointer(*))
class MrbDataType < FFI::Struct
layout :struct_name, :string,
:dfree, :pointer
end
end
| mit |
helloIAmPau/generator-pau-api | app/index.js | 1223 | const generators = require('yeoman-generator');
const fs = require('fs');
let generator = {};
generator.constructor = function() {
generators.Base.apply(this, arguments);
this.argument('apiname', { type: String, required: true });
};
generator.writing = function() {
['package.json', 'Gulpfile.js', 'index.js',... | mit |
DirkyJerky/ProgrammingClass | src/me/yoerger/geoff/edu/progClass/assignments/eight/eightFive.java | 3209 | package me.yoerger.geoff.edu.progClass.assignments.eight;
import java.util.Scanner;
import me.yoerger.geoff.edu.progClass.assignments.Analysis;
import me.yoerger.geoff.edu.progClass.assignments.Printer;
import me.yoerger.geoff.edu.progClass.bookClasses.FileChooser;
import me.yoerger.geoff.edu.progClass.bookClasses.Pi... | mit |
CORBmx/Kiwi | update_conekta.php | 629 | <?php
ob_start();
session_start();
require_once( '../../../wp-load.php' );
wp();
header('HTTP/1.1 200 OK');
if (!function_exists('wp_handle_upload')){
require_once( ABSPATH . 'wp-admin/includes/file.php' );
}
$body = @file_get_contents('php://input');
$event_json = json_decode($body);
if( $event_json->data->ob... | mit |
etnlGD/renderdoc | renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp | 60078 | /******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015-2018 Baldur Karlsson
*
* 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... | mit |
microsoftgraph/msgraph-sdk-java | src/main/java/com/microsoft/graph/models/SubjectRightsRequestStatus.java | 750 | // Template Source: Enum.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// -------------------------------------------------... | mit |
dale3h/alexa-skills-list | skills/B01M7WB6IK/README.md | 1024 | # [Mexican Lotto](http://alexa.amazon.com/#skills/amzn1.ask.skill.e9a4980c-61b7-450f-835e-11a648c5da9b)

{
service = new HMACSha1SignatureService();
}
@Test
pu... | mit |
lrodziewicz/backbone-asterisk | test/BaseView.spec.js | 6941 | define(['jquery', 'backbone', 'BaseView'], function ($, Backbone, BaseView) {
describe('BaseView', function () {
describe('(managing views)', function() {
var view, childView1, childView2, childView3, childView4;
beforeEach(function(){
view = new (BaseView.extend(... | mit |
simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/b118c69730ae044c0e3911e7bb7dcbf803b125f2d5e73000b0a8c1b8d38fa786.html | 550 | <!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="./3a83a3eac0782782972ec48dcd707aac7d1e3f2db489952635d0f95c7cc3731b.html">Teleport</a>
<hr>
... | mit |
tttor/csipb-jamu-prj | webserver-bak/ijahv1/css/register.css | 4193 | /*
??????????????
Simple Login Form
HTML5/CSS3 Coded by: $hekh@r d-Ziner, CSSJunction.com
PSD by:PremiumPixels.com
Uuage: Free. You can modify, remove our links and use wherever you want ?.
???????????????
*/
body{
background:#eff3f6;
}
.box
{
background:#fefefe;
bord... | mit |
vileopratama/portal-toyotadjakarta | addons/toyotadjakarta/toyotadjakarta/sales-module/src/Model/ModelSeeder.php | 231 | <?php namespace Toyotadjakarta\SalesModule\Model;
use Anomaly\Streams\Platform\Database\Seeder\Seeder;
class ModelSeeder extends Seeder
{
/**
* Run the seeder.
*/
public function run()
{
//
}
}
| mit |
sievetech/bootstrap | README.md | 1916 | # README
## Instalação
### Grunt e Node.js (via nvm)
```
$ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.25.1/install.sh | zsh
$ nvm install 0.10 # Alguns pacotes dão problema se não for com essa versão do node
$ nvm alias default stable
$ npm install grunt-cli -g
$ npm install
```
### Hologram (via... | mit |
samuelpulfer/BFH-Programmiermethoden | Programiermethoden/doc/bankapp/atm/package-frame.html | 883 | <!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_131) on Fri Oct 20 19:07:07 CEST 2017 -->
<title>bankapp.atm</title>
<meta name="date" content="2017-10-20">
<link rel="stylesheet" type... | mit |
philipptrenz/wkkv_theme | tribe-events/list/single-event.php | 2377 | <?php
/**
* List View Single Event
* This file contains one event in the list view
*
* Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/single-event.php
*
* @version 4.5.6
*
*/
if ( ! defined( 'ABSPATH' ) ) {
die( '-1' );
}
// Setup an array of venue details for us... | mit |
arcanericky/hotspot-pass | src/visitor/rgpike/com/HttpPostThreadBase.java | 3746 | package visitor.rgpike.com;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;
i... | mit |
osumb/challenges | app/controllers/application_controller.rb | 897 | class ApplicationController < ActionController::Base
helper_method :current_user
before_action :set_raven_context
def ensure_authenticated!
return if current_user
redirect_to "/login"
end
def ensure_admin!
return if current_user.admin?
head :not_found
end
def ensure_not_authenticated!
... | mit |
ghiscoding/aurelia-slickgrid | src/examples/slickgrid/example19-detail-view.ts | 2145 | import { bindable } from 'aurelia-framework';
import { Example19 } from './example19';
import { SlickDataView, SlickGrid, ViewModelBindableData } from '../../aurelia-slickgrid';
export class DetailViewCustomElement {
@bindable() model!: {
duration: Date;
percentComplete: number;
reporter: string;
st... | mit |
BuzzAcademy/idioms-moe-unformatted-data | all-data/25000-25999/25693-22.html | 1896 | <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="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>... | mit |
BuzzAcademy/idioms-moe-unformatted-data | all-data/0-999/35-32.html | 2174 | <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>... | mit |
zhangtdavid/SimCity | src/city/animations/interfaces/MarketAnimatedCashier.java | 276 | package city.animations.interfaces;
import city.bases.interfaces.AnimationInterface;
public interface MarketAnimatedCashier extends AnimationInterface{
// Data
// Constructor
// Abstract
// Movement
// Getters
// Setters
// Utilities
}
| mit |
ZetaTwo/zetatwocom | _posts/reversing/2017-03-20-gothenburg-malware.md | 20708 | ---
layout: post
title: "Reversing malware USB drives in Gothenburg"
date: 2017-03-20 14:00
type: post
published: true
comments: true
categories: reversing
---
This Wednesday reports about USB-drives with malicious code being found in the area Lindholmen in Gothenburg, spread in Swedish media.
It was reported by, amon... | mit |
samkelly/rails_bootstrap_sortable | README.md | 1172 | # rails_bootstrap_sortable
[](http://badge.fury.io/rb/rails_bootstrap_sortable)
This gem packages the lovely bootstrap-sortable gem from [drvic10k/bootstrap-sortable](https://github.com/drvic10k/bootstrap-sortable) into an easy to use form. rails_bo... | mit |
arielm/chronotext-cross | deps/gtest/build.linux.sh | 854 | #!/bin/sh
PLATFORM="linux"
TREE_DIR="../../tree/gtest"
SRC_DIR="$TREE_DIR/src"
BUILD_DIR="build/$PLATFORM"
INSTALL_DIR="tmp/$PLATFORM"
SRC_PATH="$(pwd)/$SRC_DIR"
INSTALL_PATH="$(pwd)/$INSTALL_DIR"
if [ ! -d "$SRC_PATH" ]; then
echo "SOURCE NOT FOUND!"
exit 1
fi
# ---
TOOLCHAIN_FILE="$CROSS_PATH/core/cmake/too... | mit |
CGI-UM/BRBTest | public/js/app/templates/heading.html | 169 | <!-- HTML Template -->
<h3>Start using Backbone (Jared), Lodash, Require.js, AMDClean.js, jQuery, jQueryUI, jQuery Mobile, Twitter Bootstrap 3, Jasmine, and Grunt!</h3>
| mit |
markmoskalenko/mirlada | src/Site/Bundle/BackendBundle/Form/FrontDillerCentreInfoForm.php | 3126 | <?php
namespace Site\Bundle\BackendBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Doctrine\ORM\EntityRepository;
class FrontDillerCentreInfoForm extends AbstractType
{
public function __constr... | mit |
ciclo-palestras-dest-ufba/ciclo-palestras-dest-ufba.github.io | links.md | 197 | ---
permalink: /links/
layout: splash
---
## Canal no Youtube
[Link](https://www.youtube.com/channel/UCC96Rmc3qKEYkKk187IcLdA)
## Departamento de Estatística - UFBA
[Link](http://est.ufba.br/) | mit |
InseeFr/DDI-Access-Services | src/main/java/fr/insee/rmes/utils/ddi/UtilXML.java | 1006 | package fr.insee.rmes.utils.ddi;
import java.io.StringWriter;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.Strea... | mit |
Deepcodecouk/Deepcode.CommandLine | src/Deepcode.CommandLine/Parser/CommandLineArguments.cs | 2503 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Deepcode.CommandLine.Parser
{
/// <summary>
/// Represents a parsed command line - the command line switches and values
/// are parsed into a structured collection that is exposed from this class.
/// </summary>
public class CommandLine... | mit |
sonitgregorio/construction | assets/css/styles.css | 1151 | body
{
margin: 0;
/*background-color: blue;*/
}
.nav-backgrounds
{
background-color: #1D1D1D;
}
.logins
{
background-color: rgba(228, 245, 250, 0.8);
box-shadow: 10px 10px 30px gray;
border-radius: 10px;
}
.centerdiv
{
margin-top: 120px;
margin-bottom: 100px;
padding: 10px;
}
.footer-style
{... | mit |
joshbainbridge/craft-game | src/character.cpp | 7418 | #include <craft/character.hpp>
#include <craft/shaderVoxel.hpp>
#include <craft/chunkController.hpp>
#define GLM_FORCE_RADIANS
#include <glm/gtc/constants.hpp>
#include <glm/gtc/matrix_inverse.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <cmath>
#include <iostream>
void character::velocity ()
{
if (xdown ... | mit |
arpit2126/AGILE-DASHBOARD | main.js | 1098 | //start drag of element
function drag(ev) {
ev.dataTransfer.setData("text", ev.target.id);
}
//allow drop of element
function allowDrop(ev) {
ev.preventDefault();
}
//drag of element
function drop(ev) {
ev.preventDefault();
var data = ev.dataTransfer.getData("text");
ev.target.appendChild(document.g... | mit |
cuellarfr/cuellarfr.github.io | _posts/2009-08-13-los-nueve-ojos-de-google-street-view.md | 1923 | ---
layout: post
title: Los nueve ojos de Google Street View
tags:
- art
- photography
- google
redirect_from: "blog/19/los-nueve-ojos-de-google-street-view/"
---
Hace dos años Google se embarcó en la titánica tarea de complementar su servicio <a href="http://maps.google.es/">Google Maps</a> con fotografías a ... | mit |
yanzhe-chen/leetcode | src/RemoveDuplicateLetters.cpp | 561 | #include "RemoveDuplicateLetters.hpp"
#include <vector>
using namespace std;
string RemoveDuplicateLetters::removeDuplicateLetters(string s) {
vector<int> freq(256, 0);
vector<bool> visited(256, false);
string ret;
for (auto c : s) freq[c]++;
for (auto c : s) {
freq[c]--;
if (v... | mit |
VladimirTechMan/LokiJS | spec/generic/persistence.spec.js | 31627 | if (typeof (window) === 'undefined') var loki = require('../../src/lokijs.js');
describe('testing unique index serialization', function () {
var db;
beforeEach(function () {
db = new loki();
users = db.addCollection('users');
users.insert([{
username: 'joe'
}, {
username: 'jack'
}, ... | mit |
karlthepagan/Glowstone | src/main/java/net/glowstone/msg/RelativeEntityPositionRotationMessage.java | 1088 | package net.glowstone.msg;
public final class RelativeEntityPositionRotationMessage extends Message {
private final int id, deltaX, deltaY, deltaZ, rotation, pitch;
public RelativeEntityPositionRotationMessage(int id, int deltaX, int deltaY, int deltaZ, int rotation, int pitch) {
this.id = id;
... | mit |
nvanbaren/Tab_list | Application/f2000/application/plug-in_setting/authorization_type_native_pref_not_equals_value.sql | 293 | --application/plug-in setting/authorization_type_native_pref_not_equals_value
wwv_flow_api.create_plugin_setting (
p_id => 3015477978076332 + wwv_flow_api.g_id_offset
,p_flow_id => wwv_flow.g_flow_id
,p_plugin_type => 'AUTHORIZATION TYPE'
,p_plugin => 'NATIVE_PREF_NOT_EQUALS_VALUE'
);
| mit |
bouzuya/blog.bouzuya.net | data/2012/05/2012-05-27-4clojure-10.md | 3505 | [4Clojure](https://www.4clojure.com/)のMediumを終えた。Elementary、Easyを経て、Mediumまで来た。今月の目標はEasyを終えることだったのだけれど、それに加えてMediumを終えることができた。全150問のうち130問を解いている。これはいま登録されている利用者6661人のうち94位である。上位100に入ることができた。
あまりに嬉しかったので画像を取得した。
<img width="360" height="360" src="http://bouzuya.github.com/images/4clojure-10-medium.png" />
<img width=... | mit |
lyckantropen/curiosities | dailyrest/dailyrest.h | 3178 | #ifndef DAILYREST_H
#define DAILYREST_H
#include <functional>
#include <unordered_map>
#include <unordered_set>
#include <set>
#include <deque>
#include <tuple>
#include <algorithm>
#include <exception>
#include <memory>
#include "automata/automaton.h"
#include "czynnosci/czynnosc.h"
namespace CPK
{
namespace
{
... | mit |
yijingbai/LeetCode | SPOJ/CODESPTB_InsersionSort/InsersionSort.java | 1972 | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 0; i < n; i++) {
int k = sc.nextInt();
int[] input = new int[k];
for ... | mit |
AfonsoTsukamoto/football_api | lib/football_api/match_info.rb | 445 | module FootballApi
class MatchInfo
attr_accessor :stadium_name, :attendance, :time, :referee, :id
def initialize(hash = {})
@id = hash[:id]
@stadium_name = hash[:stadium][:name] if hash[:stadium]
@attendance = hash[:attendance][:name] if hash[:attendance]
@time ... | mit |
Stonebound/Prism | src/main/java/com/helion3/prism/api/records/Actionable.java | 2008 | /*
* This file is part of Prism, licensed under the MIT License (MIT).
*
* Copyright (c) 2015 Helion3 http://helion3.com/
*
* 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 rest... | mit |
tkestowicz/FancyTraveller | FancyTravellerApp/FancyTraveller.Domain/Services/RouteService.cs | 2238 | using System.Collections.Generic;
using System.Linq;
using FancyTraveller.Domain.Logic;
using FancyTraveller.Domain.Model;
using FancyTraveller.Domain.POCO;
namespace FancyTraveller.Domain.Services
{
public class RouteService : IRouteService
{
private readonly IVertexRepository vertexRepository;
... | mit |
rumble-charts/rumble-charts | src/helpers/isNumber.ts | 161 | const TYPE_NUMBER = 'number';
export function isNumber(value: unknown): value is number {
return typeof value === TYPE_NUMBER || value instanceof Number;
}
| mit |
npauzenga/npauzenga.github.io | _includes/header.html | 288 | <header class="main-page-header" style="background-image: url('{{ site.baseurl }}/{{ site.theme_settings.header_text_feature_image }}')">
<div class="down-arrow">
<a href="{{ site.baseurl }}/#about">
<i class="fa fa-angle-down fa-5" aria-hidden="true"></i>
</a>
</div>
</header>
| mit |
yellownoggin/dkindred | src/client/app/common/common.module.ts | 128 | // module of common directives, filters, etc
namespace common {
'use strict';
angular
.module('common', []);
}
| mit |
sahdman/rpi_android_kernel | toolchain/gcc-arm-none-eabi-4_6-2012q2/share/doc/html/gdb/Copying.html | 39321 | <html lang="en">
<head>
<title>Copying - Debugging with GDB</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Debugging with GDB">
<meta name="generator" content="makeinfo 4.11">
<link title="Top" rel="start" href="index.html#Top">
<link rel="prev" href="Trace-File-Format.ht... | mit |
cr8onski/lrs-conformance-test-suite | test/v1_0_2/configs/statements.js | 16935 | /**
* Description : This is a test suite that tests an LRS endpoint based on the testing requirements document
* found at https://github.com/adlnet/xAPI_LRS_Test/blob/master/TestingRequirements.md
*
* https://github.com/adlnet/xAPI_LRS_Test/blob/master/TestingRequirements.md
*
*/
(function (module) {
"use str... | mit |
stripe/stripe-go | creditnote/client_test.go | 3100 | package creditnote
import (
"testing"
assert "github.com/stretchr/testify/require"
stripe "github.com/stripe/stripe-go/v72"
_ "github.com/stripe/stripe-go/v72/testing"
)
func TestCreditNoteGet(t *testing.T) {
cn, err := Get("cn_123", nil)
assert.Nil(t, err)
assert.NotNil(t, cn)
}
func TestCreditNoteList(t *t... | mit |
g0v/projectV | mirror/prvCode_07/cityCode_000-areaCode_01-deptCode_007/voteCode_20120101T1A2-qryType_ctks-prvCode_04-cityCode_000-areaCode_01-deptCode_007-liCode_0126.html | 6520 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 選舉資料查詢 -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>中選會選舉資料庫網站</title>
<link rel="stylesheet" type="text/css" href="http://db.cec.gov.tw/votehist.css">
<script typ... | mit |
ramisg85/oueslatirami | src/BackOffice/RO/ReservationBundle/DependencyInjection/Configuration.php | 891 | <?php
namespace BackOffice\RO\ReservationBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link ... | mit |
MHBA/catarse_paypal_express | config/routes.rb | 271 | CatarsePaypalExpress::Engine.routes.draw do
resources :paypal_express, only: [], path: 'payment/paypal_express' do
collection do
post :ipn
end
member do
get :review
match :pay
match :success
match :cancel
end
end
end
| mit |
barentswatch/gmtime | templates/list.html | 302 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Layers</h1>
<ul>
{% for layer in layers %}
<li><a href="/?layer={{layer.name}}">{{layer.name}}</a></li>
{% endfor %}
</ul>
</body>
</html>
| mit |
kbariotis/kostasbariotis.com | blog/interviewer-vs-interviewee/index.md | 1724 | ---
title: "Interviewer vs Interviewee"
path: "/interviewer-vs-interviewee/"
date: "2015-02-18T09:10:30.000Z"
date_updated: 2016-11-28T06:30:29.000Z
tags: Interviews, Job
---
The process of a job interview certainly is not easy. Especially when you are young and inexperienced.
But you should be hungry for interview... | mit |
mrzli/tria | core/src/com/symbolplay/tria/game/CollisionEffects.java | 2103 | package com.symbolplay.tria.game;
public final class CollisionEffects {
public static final int JUMP_BOOST = 0;
public static final int REPOSITION_PLATFORMS = 1;
public static final int VISIBLE_ON_JUMP = 2;
public static final int IMPALE_ATTACHED_SPIKES = 3;
public static final int REVEAL_ON_J... | mit |
tectronics/fambom | cake/tests/lib/cake_test_case.php | 21057 | <?php
/* SVN FILE: $Id: cake_test_case.php 7945 2008-12-19 02:16:01Z gwoo $ */
/**
* Short description for file.
*
* Long description for file
*
* PHP versions 4 and 5
*
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
* Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.c... | mit |
ISO-tech/sw-d8 | web/2007-2/636/636_07_Trade.php | 13620 | <html>
<head>
<title>
A backroom deal on trade?
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php include "../../legacy-includes/Script.htmlf" ?>
</head>
<body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0">
<table width=... | mit |
CreativeInquiry/digital_art_2014 | MeshTester/src/ofApp.cpp | 6809 | #include "ofApp.h"
#include "SharedUtils.h"
void updatePuppet(Skeleton* skeleton, ofxPuppet& puppet) {
for(int i = 0; i < skeleton->size(); i++) {
puppet.setControlPoint(skeleton->getControlIndex(i), skeleton->getPositionAbsolute(i));
}
}
//--------------------------------------------------------------
void ofAp... | mit |
hookidea/yiwukongjian | Application/Home/Controller/AddressController.class.php | 2650 | <?php
namespace Home\Controller;
use Think\Controller;
class AddressController extends Controller
{
protected function _initialize ()
{
if (!session('user')) {
if (IS_AJAX) {
$this->ajaxReturn(['status'=>2, 'info'=>'请登陆之后在执行此操作!']);
} else {
$th... | mit |
zacswolf/CompSciProjects | Java (AP CompSci)/Eclipse/RankedGPA/src/ENG.java | 23 |
public class ENG {
}
| mit |
codeforamerica/michigan-benefits | spec/controllers/forms_controller_spec.rb | 2108 | require "rails_helper"
RSpec.describe FormsController do
describe "#index" do
context "when an application has been started" do
it "renders the index page" do
current_app = create(:common_application)
session[:current_application_id] = current_app.id
get :index
expect(resp... | mit |
ProtonMail/WebClient | applications/calendar/src/app/containers/alarms/useCalendarsAlarms.ts | 3017 | import { MutableRefObject, useEffect, useMemo, useState } from 'react';
import { useApi } from '@proton/components';
import { addMilliseconds } from '@proton/shared/lib/date-fns-utc';
import { Calendar as tsCalendar } from '@proton/shared/lib/interfaces/calendar';
import { noop } from '@proton/shared/lib/helpers/funct... | mit |
babruix/alien_worm_game | src/objects/Arrow.js | 1556 | class ArrowSprite extends Phaser.Sprite {
constructor(game, x, y) {
super(game, x, y, 'arrow');
this.game.stage.addChild(this);
this.scale.set(0.2);
this.alpha = 0.2;
this.anchor.setTo(0.5, 1.3);
this.animations.add('rotate', [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], 30, true);
thi... | mit |
storybooks/react-storybook | examples/angular-cli/src/stories/moduleMetadata/dummy.service.ts | 300 | import { Injectable } from '@angular/core';
@Injectable()
export class DummyService {
// eslint-disable-next-line no-useless-constructor
constructor() {}
getItems() {
return new Promise(resolve => {
setTimeout(() => {
resolve(['Joe', 'Jane']);
}, 2000);
});
}
}
| mit |
heming621/postgraduate- | runAlone/project03D/src/aprioriAlgm.scala | 5234 | import scala.collection.immutable.Set
import scala.io.Source
import scala.collection.mutable.ArrayBuffer
import scala.collection.immutable.Set
import java.text.SimpleDateFormat
import java.util.Date
import java.io._
/*
REF: http://wanghuanming.com/2014/10/spark-apriori/
*/
object aprioriAlgm{
def g... | mit |
KrauseFx/danger | spec/lib/danger/commands/local_helpers/pry_setup_spec.rb | 1200 | require "danger/commands/local_helpers/pry_setup"
RSpec.describe Danger::PrySetup do
before { cleanup }
after { cleanup }
describe "#setup_pry" do
it "copies the Dangerfile and appends bindings.pry" do
Dir.mktmpdir do |dir|
dangerfile_path = "#{dir}/Dangerfile"
File.write(dangerfile_pa... | mit |
nbudin/larp_library | app/controllers/home_controller.rb | 292 | class HomeController < ApplicationController
skip_authorization_check
def index
@project_promotions = ProjectPromotion.includes(:project => :brand).order("projects.title")
@tags_by_category = Tag.includes(:tag_category, :projects).order(:name).group_by(&:tag_category)
end
end
| mit |
andresgonzalezfornell/TFM | doc/html/doxygen.css | 27960 | /* The standard CSS for doxygen 1.8.13 */
body, table, div, p, dl {
font: 400 14px/22px Roboto,sans-serif;
}
p.reference, p.definition {
font: 400 14px/22px Roboto,sans-serif;
}
/* @group Heading Levels */
h1.groupheader {
font-size: 150%;
}
.title {
font: 400 14px/28px Roboto,sans-serif;
font-size: 150%;
fo... | mit |
darvin/django-crud | django_crud/templates/crud_form.html | 552 | {% extends "crud_base.html" %}
{% block js %}
{{ block.super }}
<script type="text/javascript">
$(document).ready(function() {
$('button').button();
$('.crud-form').addClass('ui-widget');
$('.crud-form > h1').addClass('ui-widget-header');
$('.crud-form > form').addClass('ui-widget-content');
})... | mit |
CoderGLMumu/Revaluation_Bili_iOS | revaluation_Bili/revaluation_Bili/Classes/6VideoRoom(AV9999999)/View Model/GLVideoRoomItemViewModel.h | 365 | //
// GLVideoRoomItemViewModel.h
// revaluation_Bili
//
// Created by mac on 16/6/10.
// Copyright © 2016年 mac. All rights reserved.
//
#import <Foundation/Foundation.h>
@class GLVideoRoomModel;
@class GLVideoRoomcellItemModel;
@interface GLVideoRoomItemViewModel : NSObject
- (instancetype)initWithcellItemModel: ... | mit |
mikespook/possum | router/colon_test.go | 273 | package router
import "testing"
func TestColon(t *testing.T) {
for k, v := range tCases["Colon"] {
r := Colon(k)
testingRouter(t, r, v)
}
}
func BenchmarkColon(b *testing.B) {
for k, v := range tCases["Colon"] {
r := Colon(k)
benchmarkingRouter(b, r, v)
}
}
| mit |
jespr/overcast | lib/overcast/color.rb | 633 | module Overcast
class Color
def self.darken(hex, amount=0.5)
hex = remove_pound(hex)
rgb = convert_to_rgb(hex).map{|element| element * amount }
convert_to_hex(rgb)
end
def self.lighten(hex, amount=0.5)
hex = remove_pound(hex)
rgb = convert_to_rgb(hex).map{ |element| [(elemen... | mit |
iBlacksus/BSYellowPages | BSYellowPages/UIView+RoundView.h | 363 | //
// UIView+RoundView.h
//
// Created by iBlacksus on 10/17/15.
// Copyright (c) 2015 iBlacksus. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIView (RoundView)
- (void)roundView;
- (void)roundViewCorners;
- (void)roundViewCornersHalfHeight;
- (void)roundViewCornersWithRadius:(CGFloat)radius;
- (vo... | mit |
elliotwoods/ofxSpout | src/ofxSpout/Receiver.cpp | 2691 | #include "Receiver.h"
#include "ofGraphics.h"
#include "Utils.h"
namespace ofxSpout {
//----------
Receiver::Receiver() :
defaultFormat(GL_RGBA) {
this->spoutReceiver = nullptr;
}
//----------
Receiver::~Receiver() {
this->release();
}
//----------
bool Receiver::init(std::string chann... | mit |
stg34/azalo | db/migrate/20100709182724_rename_user_id_in_contacts.rb | 210 | class RenameUserIdInContacts < ActiveRecord::Migration
def self.up
rename_column "contacts", "user_id", "az_user_id"
end
def self.down
rename_column "contacts", "az_user_id", "user_id"
end
end
| mit |
obelis/AverageOCR | web/app/themes/averageocr/templates/header.php | 1410 | <header class="banner" role="banner">
<nav role="navigation" class="navbar navbar-inverse">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" ... | mit |
Chicago/open-data-etl-utility-kit | Log/A_DatasetLogs.bat | 122 | @echo off
IF [%1] == [] GOTO USAGE
dir /b | find "%1"
exit /B
:USAGE
echo Usage: A_DatasetLogs.bat StringToFindInLogName
| mit |