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 |
|---|---|---|---|---|---|
<?php
/**
* File containing the Fixed Dictionary Object class.
*
* @package Frozensheep\Synthesize
* @author Jacob Wyke <jacob@frozensheep.com>
* @license MIT
*
*/
namespace Frozensheep\Synthesize\Type;
use Frozensheep\Synthesize\Type\DictionaryObject;
/**
* Fixed Dictionary Object Class
*
* An abstract data type f... | frozensheep/synthesize | src/Type/FixedDictionaryObject.php | PHP | mit | 1,673 |
from webhelpers import *
from datetime import datetime
def time_ago( x ):
return date.distance_of_time_in_words( x, datetime.utcnow() )
def iff( a, b, c ):
if a:
return b
else:
return c | dbcls/dbcls-galaxy | lib/galaxy/web/framework/helpers/__init__.py | Python | mit | 220 |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... | qq83387856/xiaomo-web | Plugins/ue4-protobuf/Source/Protobuf/ThirdParty/protobuf/include/google/protobuf/io/zero_copy_stream.h | C | mit | 10,163 |
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("03... | todorm85/TelerikAcademy | Courses/Programming/Data-Structures-and-Algorithms/Homework/15-GraphAlgos/03-CableGuy/Properties/AssemblyInfo.cs | C# | mit | 1,398 |
import React from "react";
import { shallow } from "enzyme";
import TableRow from "./TableRow";
describe("TableRow", () => {
it("matches snapshot", () => {
const aTableRow = shallow(<TableRow />);
expect(aTableRow).toMatchSnapshot();
});
});
| DecipherNow/gm-fabric-dashboard | src/components/Main/components/TableRow.test.js | JavaScript | mit | 255 |
### Gavin's notes on getting gitian builds up and running using KVM:###
These instructions distilled from:
[ https://help.ubuntu.com/community/KVM/Installation]( https://help.ubuntu.com/community/KVM/Installation)
... see there for complete details.
You need the right hardware: you need a 64-bit-capable CPU with ha... | supcoin/supcoin | contrib/gitian-descriptors/README.md | Markdown | mit | 2,661 |
//Get /question
exports.question = function (req, res, next) {
var answer = req.query.answer || '';
res.render('quizzes/question', {question: "Capital de Italia", answer: answer});
};
//GET /check
exports.check = function(req,res, next) {
var answer = req.query.answer || '';
var result = ((answer === 'Roma') ? '... | verynrivas/quiz | controllers/quiz_controller.js | JavaScript | mit | 499 |
<div class="panel panel-default" >
<div class="panel-heading">Dilución</div>
<div class="panel-body">
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="col-sm-4 control-label"></label>
<div class="col-sm-4">
... | lautarobock/brew-o-matic | public/partial/calculator/calculator-dilution.html | HTML | mit | 2,648 |
<!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="description">
<meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML">
<meta n... | dfkeenan/XenkoToolkit | docs/api/StrideToolkit.Engine/ScriptSystemExtensions/3186D483.html | HTML | mit | 16,074 |
<!DOCTYPE html>
<link rel="import" href="../polymer/polymer.html">
<dom-module id="paper-divider">
<style>
:host {
display: block;
width: 100%; height: 1px;
background: rgba(0,0,0,.12);
}
:host.margin {
margin: 16px 0;
}
:host.... | marcus7777/paper-divider | paper-divider.html | HTML | mit | 1,076 |
package com.equalinformation.bpm.poc.producer;
import javax.servlet.annotation.WebServlet;
import com.vaadin.annotations.Theme;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.annotations.Widgetset;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.... | bpupadhyaya/ActivitiProducer | src/main/java/com/equalinformation/bpm/poc/producer/MyUI.java | Java | mit | 1,341 |
package me.isaacjordan.TrekPlusPlus.Compiler;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.PrintStream;
import org.antlr.v4.runtime.ANTLRInputStream;
import org.antlr.v4.runtime.CommonTokenStream;
impo... | Sheepzez/trek-plus-plus | parser/me/isaacjordan/TrekPlusPlus/Compiler/TrekPPCompile.java | Java | mit | 2,991 |
using UnityEngine;
using System.Collections;
public class StructuredSampling3DTest : MonoBehaviour {
/*
v 0.000000 1.000000 0.000000
v 0.723600 -0.447215 0.525720
v -0.276385 -0.447215 0.850640
v -0.894425 -0.447215 0.000000
v -0.276385 -0.447215 -0.850640
v 0.723600 -0.447215 ... | huwb/volsample | src/unity/Assets/Scripts/Experimental/StructuredSampling3DTest.cs | C# | mit | 5,087 |
yaml_file = File.expand_path('../../faye.yml', __FILE__)
yaml_env = ENV["RAILS_ENV"] || "development"
yaml_config = YAML.load_file(yaml_file)[yaml_env]
raise ArgumentError, "The #{yaml_env} environment does not exist in #{yaml_file}" if yaml_config.nil?
::FAYE_CONFIG = {}
yaml_config.each { |k, v| ::FAYE_CONFIG[k.to_... | tixerapp/tixerapp-rails-settings | public/config/initializers/faye.rb | Ruby | mit | 330 |
import * as util from "./util";
const path = require("path");
/**
* Creates a toc object
* @param {Array} items All items of the toc
* @param {Array} root Only the root items
* @return {Object} Toc object
*/
const createToc = function (items, root) {
if (items == null) items = [];
if (r... | malleryjs/mallery | lib/toc.js | JavaScript | mit | 5,264 |
<?php
namespace Sdmx\api\client\rest;
use InvalidArgumentException;
use Sdmx\api\client\http\HttpClient;
use Sdmx\api\client\rest\query\SdmxQueryBuilder;
use Sdmx\api\client\SdmxClient;
use Sdmx\api\entities\Dataflow;
use Sdmx\api\entities\DataflowStructure;
use Sdmx\api\entities\DsdIdentifier;
use Sdmx\api\entities... | juangabreil/php-sdmx | src/Sdmx/api/client/rest/RestSdmxV21Client.php | PHP | mit | 7,067 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (version 1.7.0_71) on Sat Dec 27 00:37:43 CST 2014 -->
<title>类 com.gopersist.service.BaseServiceForHibernate的使用</title>
<meta name="date" content="20... | gpleo/HSSEADemo | doc/com/gopersist/service/class-use/BaseServiceForHibernate.html | HTML | mit | 7,783 |
package pages;
import java.util.ArrayList;
import java.util.HashMap;
public class GenreList implements java.io.Serializable {
public ArrayList<String> genreLabels;
private static final long serialVersionUID = 114L;
public HashMap<String, Integer> genreIndex;
public GenreList() {
genreLabels = new ArrayList<St... | tedunderwood/genre | pages/GenreList.java | Java | mit | 1,996 |
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Sylius\Bundle\CoreBundle\Installer\Requirement;
use Symfony\Compo... | gruberro/Sylius | src/Sylius/Bundle/CoreBundle/Installer/Requirement/SettingsRequirements.php | PHP | mit | 1,779 |
#pragma once
#include "onmt/nn/Module.h"
namespace onmt
{
namespace nn
{
template <typename MatFwd, typename MatIn, typename MatEmb, typename ModelT>
class SoftMax: public Module<MatFwd, MatIn, MatEmb, ModelT>
{
public:
SoftMax()
: Module<MatFwd, MatIn, MatEmb, ModelT>("nn.SoftMax")... | OpenNMT/CTranslate | include/onmt/nn/SoftMax.h | C | mit | 970 |
/*
* This is the builder for word bean.
*
* @author shisj
* @email senjia1988@126.com
* @version 0.1
* @date 2013.12.24
*/
package cn.edu.ustc.shisj.builder;
import java.util.List;
import cn.edu.ustc.shisj.search.SuperWordSearch;
public interface WordBuilder {
public SuperWordSearch builder();
public ch... | koll00/searchWord | SuperWordSerach/src/cn/edu/ustc/shisj/builder/WordBuilder.java | Java | mit | 658 |
<html>
<head>
<meta name="viewport" content="width=device-width" />
<link href="/css/main.css" rel="stylesheet"/>
</head>
<body>
{{things}}
</body>
</html>
| mattbooks/mattbooks.github.io | index_template.html | HTML | mit | 173 |
// Fill out your copyright notice in the Description page of Project Settings.
#include "UE4CookbookEditor.h"
#include "MyCustomAsset.h"
#include "MyCustomAssetActions.h"
bool FMyCustomAssetActions::HasActions(const TArray<UObject*>& InObjects) const
{
return true;
}
void FMyCustomAssetActions::GetActions(const T... | sunithshetty/Unreal-Engine-4-Scripting-with-CPlusPlus-Cookbook | Chapter08/source/Chapter8Editor/MyCustomAssetActions.cpp | C++ | mit | 1,327 |
<?php
/**
* JavaScript generator function companion (for generators passed from JavaScript to PHP).
*/
final class V8Generator implements Iterator
{
/**
* V8Generator must not be constructed directly.
*
* @throws V8JsException
*/
public function __construct()
{}
/**
* {@inhe... | phpv8/v8js-stubs | src/V8Generator.php | PHP | mit | 889 |
using System.IO;
using ITGlobal.CommandLine.Parsing;
using ITGlobal.MarkDocs.Tools.Lint;
namespace ITGlobal.MarkDocs.Tools
{
public static class LintCommand
{
public static void Setup(ICliCommandRoot app, CliOption<string> tempDir, CliSwitch quiet)
{
var command = app.Command("lint"... | ITGlobal/MarkDocs | src/markdocs/LintCommand.cs | C# | mit | 949 |
/****************************************************************************
** Meta object code from reading C++ file 'transactionfilterproxy.h'
**
** Created: Fri Jan 10 21:30:56 2014
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.2)
**
** WARNING! All changes made in this file will be lost!
************... | notecc/note | build/moc_transactionfilterproxy.cpp | C++ | mit | 2,604 |
<?php
interface SPODNOTIFICATION_CLASS_ISender
{
public function __construct($notification, $targets);
function send();
} | routetopa/spod-plugin-notification-system | classes/i_sender.php | PHP | mit | 130 |
/* eslint no-console:0 */
var Hapi = require('hapi'),
Path = require('path'),
Swig = require('swig'),
Routes = require('./routes');
Swig.setDefaults({ cache: false });
var server = new Hapi.Server();
server.connection({ port: 3000 });
server.views({
engines: { swig: Swig },
path: Path.joi... | ctrees/msfeature | test/site/server.js | JavaScript | mit | 1,838 |
//
// InterfaceViewController.h
// autoCoding
//
// Created by 李玉峰 on 15/6/25.
// Copyright (c) 2015年 liyufeng. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface InterfaceViewController : UIViewController
@end
| caicai0/CAIAutoCoding | autoCoding/autoCoding/InterfaceViewController.h | C | mit | 234 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... | havocp/hwf | deps/spidermonkey/tests/js1_8/extensions/regress-452476.js | JavaScript | mit | 2,314 |
var crime = {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -5.921416,54.579826 ]
},
"properties": {
"Month":"2016-08",
"Location":"On or near ",
"Crime type":"Bicycle theft"
}
},
{
"type": "... | roseKQ/gaffgame | data/crime.js | JavaScript | mit | 115,862 |
/*
Copyright (c) 2012. Adobe Systems Incorporated.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice,
this list of con... | printzard/RAHOTAN | scripts/webpro.js | JavaScript | mit | 45,435 |
<?php
/*
Unsafe sample
input : get the field userData from the variable $_GET via an object
Uses an email_filter via filter_var function
construction : use of sprintf via a %s with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, c... | stivalet/PHP-Vulnerability-test-suite | Injection/CWE_90/unsafe/CWE_90__object-directGet__func_FILTER-CLEANING-email_filter__userByMail-sprintf_%s_simple_quote.php | PHP | mit | 1,621 |
/*
* Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | lordmos/blink | Source/core/css/CSSValuePool.h | C | mit | 4,182 |
import pt from './pt/pt'
const messages = {
pt
}
export default messages
| fmoliveira/rexql-boilerplate | client/src/messages/index.js | JavaScript | mit | 77 |
# whereuat
Adds a slide out panel to your rails app that directs clients to test stories that have been marked as 'delivered' in Pivotal Tracker.

## Installing
Add whereuat to your Gemfile:
gem 'whereuat'
Create an initializer to ... | plus2/whereuat | README.md | Markdown | mit | 1,977 |
// IKOverlayList.cpp: implementation of the IKOverlayList class.
//
//////////////////////////////////////////////////////////////////////
#include "IKCommon.h"
#include "IKUtil.h"
#include "IKOverlayList.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
///////////... | ATMakersOrg/OpenIKeys | original/IntelliKeys/MacOSX/common/IKOverlayList.cpp | C++ | mit | 2,832 |
#include "joedb/journal/Stream_File.h"
#include "joedb/Exception.h"
namespace joedb
{
/////////////////////////////////////////////////////////////////////////////
Stream_File::Stream_File
/////////////////////////////////////////////////////////////////////////////
(
std::streambuf &streambuf,
Open_Mode mode,... | Remi-Coulom/joedb | src/joedb/journal/Stream_File.cpp | C++ | mit | 2,057 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import datetime
from collections import namedtuple
import mock
import six
from django.conf import settings
from django.test import TestCase
from django.utils import timezone
from wagtail.wagtailcore.models import Page
from articles.mode... | albertoconnor/website | wordpress_importer/tests/test_import_command.py | Python | mit | 41,498 |
import { validate, URL_REX, TITLE_REX } from '../validator';
import db from '../connection';
import getUserById from '../loaders/get-user-by-id';
import sanitizeHtml from 'sanitize-html';
export default async (userId, rawTitle, rawLink, rawBody) => {
const body = sanitizeHtml(rawBody, {
allowedTags: ['b', 'i', '... | marcusdarmstrong/cloth-io | src/api/add-post.js | JavaScript | mit | 1,656 |
'use strict';
//NOTE:Methods used to do HTTP requests. To use an HTTP request listed here just call the method
angular.module('announcements').factory('Announcements', ['$http',
function($http) {
var methods = {
getAllAnnouncements: function(announcements) {
return $http.get('/api/announcements', ... | benchen88888888/uag-website-version2 | modules/announcements/client/factory/annoucement.client.factory.js | JavaScript | mit | 839 |
# encoding: utf-8
module Mongoid # :nodoc:
module Relations #:nodoc:
module Embedded #:nodoc:
# This class handles the behaviour for a document that embeds many other
# documents within in it as an array.
class Many < Relations::Many
include Atomic
# Appends a document or array... | cbrauchli/mongoid | lib/mongoid/relations/embedded/many.rb | Ruby | mit | 18,609 |
//document.write("It works.");
document.write(require("./content.js")); | cestr/webpack-tutorials | 01-welcome-2/entry.js | JavaScript | mit | 72 |
<h3>add arena</h3>
<?php
$nama = array(
'name' => 'nama',
'id' => 'nama',
'value' => set_value('nama'),
'maxlength' => 80,
'size' => 30,
'class' => 'form-control',
'autofocus' => 1,
'required' => 'required'
);
$harga_per_jam = array(
'name' => 'harga_per_jam',
'id' => '... | gifff/wheresmycourt | application/views/superuser/add_arena.php | PHP | mit | 1,408 |
package it.golem.model.events;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.joda.time.DateTime;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;
@Entity
@Data
@AllA... | riccardotommasini/GDA | src/it/golem/model/events/Event.java | Java | mit | 437 |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'find', 'ro', {
find: 'Găseşte',
findOptions: 'Find Options',
findWhat: 'Găseşte:',
matchCase: 'Deosebeşte majuscule de minuscule (Match c... | Kunstmaan/BootstrapCK4-Skin | plugins/find/lang/ro.js | JavaScript | mit | 659 |
/*
* compact c compiler
*
**/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <stdarg.h>
#include <string.h>
#define BUFLEN 256
FILE *fp;
enum {
AST_INT,
AST_STR,
};
typedef struct Ast {
int type;
union {
int ival;
char *sval;
struct {
struct Ast *left;
struct ... | AtsushiSakai/ccc | ccc.c | C | mit | 5,181 |
---
title: aeo30
type: products
image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png
heading: o30
description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj
main:
heading: Foo Bar BAz
description: |-
***This is i a thing***kjh hjk kj
# Blah Blah
## Blah
### Baah
image1:... | pblack/kaldi-hugo-cms-template | site/content/pages2/aeo30.md | Markdown | mit | 339 |
/**
* @copyright
* The MIT License (MIT)
*
* Copyright (c) 2014 Cosmic Dynamo LLC
*
* 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 limitatio... | CosmicDynamo/jazzHands | query/function/bound.js | JavaScript | mit | 1,848 |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using ApiPortVS.Contracts;
using ApiPortVS.Resources;
using Microsoft.Fx.Portability.Reporting;
using Microsoft.VisualStudio.Shell.Interop;
using System;
using System.... | JJVertical/dotnet-apiport | src/ApiPort.VisualStudio/Reporting/VsBrowserReportViewer.cs | C# | mit | 2,366 |
<!DOCTYPE html>
<!--[if lt IE 7]> <html lang="en" ng-app="myApp" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html lang="en" ng-app="myApp" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html lang="en" ng-app="myApp" class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]... | vbhartia/angular-test | app/index.html | HTML | mit | 2,100 |
import React from 'react';
import { Link } from 'react-router-dom';
export default class Combatant extends React.Component {
render() {
return (
<div key={ this.props.id }
className={this.props.index === 0 ? 'col-xs-6 col-sm-6 col-md-5 col-md-offset-1' : 'col-xs-6 col-sm-6 col-... | teamNOne/showdown | src/components/combatant/Combatant.js | JavaScript | mit | 1,438 |
#CCB-X-Reader for Cocos2d-X
This C++ class helps processing **ccb** files for your Cocos2d-X project. It's ported from the original CCBReader class of the popular **CocosBuilder** project. Note: the newly introduced **.ccbi** format is currently not supported.
Basically, CCB-X-Reader reads and parses the **ccb** files... | diwu/CCB-X-Reader | README.md | Markdown | mit | 2,808 |
package com.ch.configuration;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import io.dropwizard.client.JerseyClientConfiguration;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
/**
* Created by Aaron.Witter on 07/03/2016.
*/
public class Fo... | companieshouse/forms-enablement-api | src/main/java/com/ch/configuration/FormsServiceConfiguration.java | Java | mit | 2,130 |
/*
* This file is part of the React Redux starter repo.
*
* (c) Magnus Bergman <hello@magnus.sexy>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import React, { PropTypes } from 'react'
import { Provider } from 'react-redux'
imp... | magnus-bergman/react-redux-starter | client/scripts/containers/Root/Root.dev.js | JavaScript | mit | 805 |
require 'graphy'
require 'json'
RSpec.configure do |config|
config.mock_with :mocha
end
| mackuba/graphy | spec/spec_helper.rb | Ruby | mit | 91 |
module EightPuzzle
class PuzzleSolver
def initialize(strategy)
@strategy = strategy
@solution = nil
end
def solve
until @strategy.solved_puzzle
@strategy.check_next_node
end
end
def solved?
@strategy.solved_puzzle ? true : false
end
def solution
... | akmassey/ruby-eightpuzzle | lib/eightpuzzle/puzzle_solver.rb | Ruby | mit | 800 |
# -*- coding:utf-8 -*-
# Copyright (c) 2013, Theo Crevon
# Copyright (c) 2013, Greg Leclercq
#
# See the file LICENSE for copying permission.
from itertools import groupby
from swf.models.event import EventFactory, CompiledEventFactory
from swf.models.event.workflow import WorkflowExecutionEvent
from swf.utils impor... | botify-labs/python-simple-workflow | swf/models/history/base.py | Python | mit | 7,957 |
# atom-package-config-observer changelog
## 0.0.7
* Rename editorsForObservedScopes -> editorsByScope
## 0.0.6
* Fix issue where disposable wouldn't dispose
## 0.0.5
* Fix issue when disposable wouldn't dispose
## 0.0.4
* Add onDidDisposeScope public API
## 0.0.3
* Fix issue where `editorsForObservedScopes` would ... | olmokramer/atom-package-config-observer | CHANGELOG.md | Markdown | mit | 402 |
---
title: aed12
type: products
image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png
heading: d12
description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj
main:
heading: Foo Bar BAz
description: |-
***This is i a thing***kjh hjk kj
# Blah Blah
## Blah
### Baah
image1:... | pblack/kaldi-hugo-cms-template | site/content/pages2/aed12.md | Markdown | mit | 339 |
using System.Web;
using System.Web.Mvc;
#pragma warning disable 1591
namespace LocalizacaoApi
{
/// <summary>
/// Filters Configurations
/// </summary>
public class FilterConfig
{
/// <summary>
/// Global filters.
/// </summary>
/// <param name="filters">Filters</pa... | GuilhermeMorais/LocalizacaoApi | LocalizacaoApi/LocalizacaoApi/App_Start/FilterConfig.cs | C# | mit | 504 |
import { OnInit, EventEmitter, OnChanges } from '@angular/core';
export declare class DatePickerInnerComponent implements OnInit, OnChanges {
datepickerMode: string;
startingDay: number;
yearRange: number;
minDate: Date;
maxDate: Date;
minMode: string;
maxMode: string;
showWeeks: boolean... | tom-schier/Angular2 | node_modules/ng2-bootstrap/components/datepicker/datepicker-inner.component.d.ts | TypeScript | mit | 1,836 |
# sln-opener
[](https://badge.fury.io/js/sln-opener)
A simple command line tool for opening solution files via the console.
It will look for solution files (.sln) and open them. If multiple solution files are found, they will be listed as a menu to pick from. T... | shaneom/sln-opener | readme.md | Markdown | mit | 661 |
var assert = require('chai').assert;
var ss = require('../../../script_sanitize');
var describe = require('mocha/lib/mocha.js').describe;
var it = require('mocha/lib/mocha.js').it;
var script_sanitize = ss.sanitize;
module.exports = function () {
describe("attributes", function () {
it('should replace the attrib... | EverlessDrop41/script_sanitizer.js | test/script_sanitize_tests/options_tests/attributes_test.js | JavaScript | mit | 1,001 |
import resource from 'resource-router-middleware';
import model from '../models/users';
export default ({ config, db }) => resource({
/** Property name to store preloaded entity on `request`. */
id : 'user',
mergeParams: true,
/** For requests with an `id`, you can auto-load the entity.
* Errors terminat... | Matt1024961/mock-server | src/api/users.js | JavaScript | mit | 3,293 |
namespace ScriptLoader.Core
{
public static class ScriptLoader
{
public static IScriptStore DefaultScriptStore = new HttpContextStore();
public static IScriptRegistrationConfig Header()
{
return new ScriptRegistrationConfig(ScriptPosition.Header, DefaultScriptStore)... | JosephWoodward/ScriptLoader | ScriptLoader.Core/ScriptLoader.cs | C# | mit | 519 |
<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
/* load the MX_Router class */
require APPPATH."third_party/MX/Router.php";
class MY_Router extends MX_Router
{
} | nugroup/nuCMS | application/core/MY_Router.php | PHP | mit | 194 |
<?php
return [
'@class' => 'Grav\\Common\\File\\CompiledYamlFile',
'filename' => '/Applications/MAMP/htdocs/aquamu/user/config/plugins/admin.yaml',
'modified' => 1479238366,
'data' => [
'enabled' => true,
'route' => '/admin',
'cache_enabled' => false,
'theme' => 'grav',
... | alexstomp/aquamu | cache/compiled/files/56599d33452e452baea13f4c0d501704.yaml.php | PHP | mit | 1,529 |
using System.Linq;
namespace SoftwarePatterns.Core.EventAggregator
{
public interface IEventAggregator
{
void Publish<TEvent>(TEvent eventToPublish);
void Subscribe(object subscriber);
}
} | feanz/SoftwarePatterns | src/SoftwarePatterns.Core/EventAggregator/IEventAggregator.cs | C# | mit | 199 |
;(function(dragula){
'use strict';
angular.module('angular-dragula', [])
.factory('ngDragulaFactory', ['$timeout', function($timeout){
function get(name){
return $timeout(function(){
if(name === 'get'){
throw new Error('RESERVE_WORD');
}
if(this[name]){... | realmike33/angular-dragula | src/angular-dragula.js | JavaScript | mit | 866 |
import csv
import re
import datetime
import string
import collections
def get_nr_data():
''' returns a list of lists each entry represents one row of NiceRide data
in form -- [[11/1/2015, 21:55], '4th Street & 13th Ave SE', '30009',
[11/1/2015, 22:05], 'Logan Park', '30104', '565', 'Casual'] where the
... | stinbetz/nice_ride_charting | datify.py | Python | mit | 7,682 |
class OuterClass
{
int i = 10; //Non-static Field of OuterClass
static void methodOne()
{
System.out.println("Static method of OuterClass");
}
static class NestedClassOne
{
int i = 20; //Non-static Field of NestedClassOne
static void methodOne()
{
... | wolfdale/30Days | Day24/AccessNestedClass.java | Java | mit | 1,531 |
/*!
*
* Super simple WYSIWYG editor v0.8.19
* https://summernote.org
*
*
* Copyright 2013- Alan Hong and contributors
* Summernote may be freely distributed under the MIT license.
*
* Date: 2021-10-13T19:41Z
*
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && ... | cdnjs/cdnjs | ajax/libs/summernote/0.8.19/lang/summernote-cs-CZ.js | JavaScript | mit | 5,895 |
<?php
namespace App\Controller;
use App\Service\JiraService;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpF... | aakb/jira-report | src/Controller/DefaultController.php | PHP | mit | 3,549 |
angular.module('contatooh').factory('Contato',function($resource){
return $resource('/contatos/:id');
}); | thiagoalvesp/MEAN | contatooh/public/js/services/ContatoService.js | JavaScript | mit | 111 |
## Project Maintainer
Maintainers are members who support our project leads to review all code being submitted to our repositories. Maintainers may work across projects or specialize on a single project. They are available in Slack to answer questions and help people with pull requests.
Guiding philosophy taken from ... | jss367/assemble | roles/project_maintainer.md | Markdown | mit | 1,746 |
import { MJMLElement } from 'mjml-core'
import React, { Component } from 'react'
const tagName = 'mj-table'
const parentTag = ['mj-column', 'mj-hero-content']
const endingTag = true
const defaultMJMLDefinition = {
content: '',
attributes: {
'align': 'left',
'cellpadding': '0',
'cellspacing': '0',
'... | rogierslag/mjml | packages/mjml-table/src/index.js | JavaScript | mit | 1,753 |
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'PushResult'
db.create_table(u'notos_pushresult', (
(u'id', self.gf('django.db.mo... | Sigmapoint/notos | src/notos/migrations/0001_initial.py | Python | mit | 3,961 |
import * as gulp from 'gulp';
import * as gulpLoadPlugins from 'gulp-load-plugins';
import { join } from 'path';
import { APP_SRC, APP_DEST, TOOLS_DIR } from '../../config';
import { templateLocals, makeTsProject } from '../../utils';
const plugins = <any>gulpLoadPlugins();
export = () => {
let tsProject = makeTsPr... | aditya5a2/Tiny360 | tools/tasks/seed/build.js.e2e.ts | TypeScript | mit | 766 |
/*
* Guerilla
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the MIT License.
*
* Retrieves the Logcat from an Android device.
*/
var path = require('path');
var fs = require('fs-extra');
function Logcat (context, exec) {
this.context = context;
this.exec = exec;
this.file = path.join(context.outpu... | yahoo/guerilla | services/logcat.js | JavaScript | mit | 875 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package lab3_diego_danilo;
public class LaComarca extends Lugar{
int numeroCasa;
public LaComarca() {
super();
}... | mata889/Lab3_DaniloSosa_DiegoMatamoros | Lab3_Diego_Danilo/src/lab3_diego_danilo/LaComarca.java | Java | mit | 844 |
zInput
=========
This jQuery plugin turns your plain checkboxes and radio buttons (with title attributes) into elements that are easily clickable.
Each input can be easily styled within the stylesheet and automatically vertically centers the title
Radio Inputs
----
Radio inputs toggle easily between classes. .zInpu... | zapplebee/zInput | README.md | Markdown | mit | 1,157 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Lesson 41 - NeHe, three.js and WebGL - Tutorial - GeoFX</title>
<meta name="description" content="NeHe Lesson 34 in three.js and WebGL, developed by Geo-F/X - GeoFX"/>
<meta name="author" content="Richard K. Wright richardkylewright" />
<... | rkwright/geofx_site | graphics/nehe-three-js/lessons41-48/lesson41/lesson41.html | HTML | mit | 3,018 |
package com.njd5475.github.slim.material.renderer;
import java.awt.Color;
import com.njd5475.github.slim.material.BorderMaterial;
import com.njd5475.github.slim.material.Material;
import com.njd5475.github.slim.material.MaterialGroup;
import com.njd5475.github.slim.material.SolidMaterial;
public interface MaterialRe... | njd5475/slim-ide | src/main/java/com/njd5475/github/slim/material/renderer/MaterialRenderer.java | Java | mit | 573 |
package com.ctrctr.imgscramble;
import java.math.BigInteger;
/**
* Factorial Class
*/
public class Factorial {
BigInteger[] dict;
boolean memo = true;
public Factorial(int n) {
//Set n to zero if you dont want to initialize dict
if (n == 0) {
this.memo = false;
}
... | calvinku96/imgScramble | app/src/main/java/com/ctrctr/imgscramble/Factorial.java | Java | mit | 1,263 |
(function () {
define(["jquery", "datatables", "datatables-tabletools", "datatables-colvis"], function ($) {
var achilles_heel = {};
achilles_heel.render = function (datasource) {
$('#reportAchillesHeel svg').remove();
$.ajax({
type: "GET",
url: getUrlFromData(datasource, "achil... | shalmalijoshi/AchillesWeb | js/app/reports/achilles_heel.js | JavaScript | mit | 1,734 |
package controllers
import java.util.{Date, UUID}
import javax.inject.Inject
import com.hbc.svc.sundial.v2
import com.hbc.svc.sundial.v2.models.json._
import controllers.ModelConverter.toInternalNotification
import dao.SundialDaoFactory
import model._
import play.api.libs.json.Json
import play.api.mvc.InjectedControl... | gilt/sundial | app/controllers/ProcessDefinitions.scala | Scala | mit | 6,830 |
<?php
namespace SlimAuryn\Response;
class EmptyResponse implements StubResponse
{
private $headers;
/** @var int */
private $status;
const DEFAULT_STATUS = 204;
public function __construct(array $headers = [], int $status = self::DEFAULT_STATUS)
{
$standardHeaders = [];
$t... | Danack/SlimAurynInvoker | lib/SlimAuryn/Response/EmptyResponse.php | PHP | mit | 654 |
Write a bash script to calculate the frequency of each word in a text file words.txt.
For simplicity sake, you may assume:
+ words.txt contains only lowercase characters and space ' ' characters.
+ Each word must consist of lowercase characters only.
+ Words are separated by one or more whitespace characters.
For exa... | hecate-xw/LeetCode | Shell/Problems/001WordFrequency.md | Markdown | mit | 630 |
using GameTimer;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
namespace FontBuddyLib
{
/// <summary>
/// This dude writes the text in big pulsating letters, with the outline below it.
/// </summary>
public class PulsateBuddy : ShadowTextBuddy
{
#region Fields
private f... | dmanning23/FontBuddy | FontBuddy/FontBuddy.SharedProject/PulsateBuddy.cs | C# | mit | 2,456 |
<div class="col-sm-9" id="contenido">
<?php
if($this->session->flashdata('success')) {?>
<div class="alert alert-success">
<i class="fa fa-check-square-o" aria-hidden="true"></i>
<?php echo $this->session->flashdata('success');?>
</div>
<?php } ?>
<?php
if($this->session->flas... | aeespinosao/Tramitennis | application/views/administrador/editar_horario.php | PHP | mit | 2,883 |
\documentclass[11pt, includeaddress]{classes/cthit}
\usepackage{titlesec}
\usepackage{verbatimbox}
\usepackage{tabularx}
\usepackage{hyperref}
\usepackage{pgfkeys}
% Set up the keys. Only the ones directly under /mytextfield
% can be accepted as options to the \mytextfield macro.
\pgfkeys{
/mytextfield/.is family, ... | cthit/dokument | mallar/askningsmall/askningsmall.tex | TeX | mit | 3,421 |
from distutils.core import setup
setup(
name='bumpversion_demo',
version='0.1.0',
packages=[''],
url='https://github.com/tantale/bumpversion_demo',
license='MIT License',
author='Tantale',
author_email='tantale.solution@gmail.com',
description='Demonstration of ``bumpversion`` usage in ... | tantale/bumpversion_demo | setup.py | Python | mit | 356 |
/*! Lightning Design System 2.12.0 */
@charset "UTF-8";
@media (pointer: coarse) and (hover: none){
body{
font-size: 1rem
}
.slds-button.slds-accordion__summary-action{
line-height: 1.875rem
}
.slds-button{
line-height: 2.625rem;
font-weight: 700
}
.slds-butto... | cdnjs/cdnjs | ajax/libs/design-system/2.12.0/styles/salesforce-lightning-design-system_touch.css | CSS | mit | 20,308 |
package qub;
public class MapIndexableTests
{
public static void test(TestRunner runner)
{
runner.testGroup(MapIndexable.class, () ->
{
IndexableTests.test(runner, (Integer count) ->
{
final List<String> innerIterable = new ArrayList<>();
... | danschultequb/qub-java | tests/qub/MapIndexableTests.java | Java | mit | 561 |
require "rubygems"
MOON_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(MOON_ROOT)
CONFIG = YAML.load_file(File.join(MOON_ROOT, 'config', 'config.yml'))
module MoonwalkAir
class << self
def boot!
gem 'moonwalkair'
require 'initializer'
end
end
end
MoonwalkAir.boot! | danielvlopes/moonwalkair | lib/moonwalkair/templates/config/boot.rb | Ruby | mit | 301 |
import {Component} from 'angular2/core';
import {DataService} from './services/data.service';
import {UserService} from './services/user.service';
import {ToolService} from './services/tools.service';
import {Router, ROUTER_DIRECTIVES} from 'angular2/router';
@Component({
selector: 'my-login',
templateUrl: './... | evildj67/new-new-agentology-com | dev/login.component.ts | TypeScript | mit | 1,369 |
using OfficeOpenXml;
using System;
using System.Collections;
using System.Collections.Generic;
namespace EEPlusWrappers
{
public interface IExcelRange : IEnumerator, IEnumerator<IExcelRange>, IEnumerable, IEnumerable<IExcelRange>
{
ExcelRange Range { get; }
IExcelRange this[int Row, int Col] {... | lukezaparaniuk-onalytica/epplus-wrappers | EEPlusWrappers/ExcelRangeWrapper.cs | C# | mit | 2,410 |
<?php
namespace kosssi\ExampleDoctrineEventsBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();
$crawler = $client->request('GET', '/');
$this-... | kosssi/doctrineEvents | src/kosssi/ExampleDoctrineEventsBundle/Tests/Controller/DefaultControllerTest.php | PHP | mit | 417 |
import struct
from . import crc16
class PacketWriter:
MAX_PAYLOAD = 1584
MIN_LEN = 6
MAX_LEN = 1590
SOF = 0x01
OFFSET_SOF = 0
OFFSET_LENGTH = 1
OFFSET_CMD = 3
OFFSET_PAYLOAD = 4
def __init__(self):
self._packet = None
def Clear(self):
self._packet = None
... | openaps/dexcom_reader | dexcom_reader/packetwriter.py | Python | mit | 1,120 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.