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 |
|---|---|---|---|---|---|
<form method="POST" action="/getsetting/{{blockId}}">
username: <input style='width:60px' type="text" name="username" value="{{username}}" autocomplete="off">
password: <input style='width:60px' type="password" name="password" value="{{password}}" autocomplete="off"><br />
custom: <input type="text" name="custom" va... | sibojia/ihomepage | 1/app/templates/ServiceSetting.html | HTML | mit | 420 |
define([ 'game/events', 'game/scene/scene', 'game/scene/camera' ], function (events, scene, camera) {
var container = document.getElementById('game-container');
var renderer = new THREE.WebGLRenderer( { clearColor: 0xefd1b5, clearAlpha: 1 } );
renderer.shadowMapEnabled = true;
renderer.setSize(window.innerWidt... | drborges/yo-bro | public/js/game/renderer.js | JavaScript | mit | 603 |
//var word : string = "请输入想要输出的金字塔层数"
function pyramid(totalLine) {
for (var currentLine = 1; currentLine <= totalLine; currentLine++) {
var singleLineStr = "";
for (var spaceCount = totalLine - currentLine; spaceCount > 0; spaceCount--) {
singleLineStr += " ";
}
for (var... | QuietRain/HelloWorld | main.js | JavaScript | mit | 611 |
package jaci.openrio.toast.lib.math;
/**
* A utility class to help with Math
*
* @author Jaci
*/
public class MathHelper {
/**
* Round a number (d) to the specified amount of decimal places (res)
*/
public static double round(double d, int res) {
int x = (int) Math.pow(10, res);
... | m3rcuriel/ToastAPI | src/main/java/jaci/openrio/toast/lib/math/MathHelper.java | Java | mit | 357 |
var _ = require('./');
// Browsers to run on Sauce Labs platforms
// (See https://saucelabs.com/platform/supported-browsers-devices for an
// up-to-date overview of supported versions of browsers and platforms.)
var sauceBrowsers = _.reduce([
['firefox', 'latest'],
['firefox', '60'],
['firefox', '40'],
['firef... | jashkenas/underscore | karma.conf-sauce.js | JavaScript | mit | 2,624 |
module Fog
module AWS
class ELB < Fog::Service
extend Fog::AWS::CredentialFetcher::ServiceMethods
class DuplicatePolicyName < Fog::Errors::Error; end
class IdentifierTaken < Fog::Errors::Error; end
class InvalidInstance < Fog::Errors::Error; end
class... | fog/fog-aws | lib/fog/aws/elb.rb | Ruby | mit | 9,277 |
# gdown
[](https://www.npmjs.com/package/gdown)
github项目下载工具,支持多项目单文件下载以及多级目录下载。
# Installation
$ npm install gdown -g
# Usage
$ gdown huanz/gulp-devserver/lib
// or dirs
$ gdown huanz/gulp-devserver/lib huanz/seajs-cache
// or dirs and files
$ gdown huanz/gulp-devser... | huanz/gdown | README.md | Markdown | mit | 447 |
import { LocationDetecter } from "./infra"
import { ConvertLocationResult } from "./data"
export function backgroundLocationDetecter<T>(
result: ConvertLocationResult<T>,
): LocationDetecter<T> {
return () => result
}
export type LocationSearchParam = [string, string]
export function encodeLocationSearchQuer... | getto-systems/getto-css | lib/z_vendor/getto-application/location/helper.ts | TypeScript | mit | 555 |
---
layout: page
title: Beltran Exquisite Air Trade Fair
date: 2016-05-24
author: Kelly Bond
tags: weekly links, java
status: published
summary: Integer interdum justo quis nulla vehicula vestibulum. Ut.
banner: images/banner/people.jpg
booking:
startDate: 05/26/2016
endDate: 05/28/2016
ctyhocn: CHADNHX
groupCo... | KlishGroup/prose-pogs | pogs/C/CHADNHX/BEATF/index.md | Markdown | mit | 2,393 |
#ifndef ESPASYNCUDP_H
#define ESPASYNCUDP_H
#include "IPAddress.h"
#include "Print.h"
#include <functional>
class AsyncUDP;
class AsyncUDPPacket;
class AsyncUDPMessage;
struct udp_pcb;
struct pbuf;
struct ip_addr;
typedef struct ip_addr ip_addr_t;
class AsyncUDPMessage : public Print
{
protected:
uint8_t *_buffe... | kuzyasun/AquaSmart | esp8266_app/lib/ESPAsyncUDP/ESPAsyncUDP.h | C | mit | 3,285 |
// 23: class - accessors
// To do: make all tests pass, leave the assert lines unchanged!
// Follow the hints of the failure messages!
describe('Class accessors (getter and setter)', () => {
it('a getter is defined like a method prefixed with `get`', () => {
class MyAccount {
//// get money() { return Infi... | tddbin/katas | katas/es6/language/class/accessors.js | JavaScript | mit | 1,499 |
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.10) on Thu Apr 15 10:34:57 CEST 2021 -->
<title>Uses of Class com.wrapper.spotify.requests.data.player.SkipUsersPlaybackToPreviousTrackRequest (Spotify Web API Java Client 6.5.3 API)</title>
<meta http-equiv="Content-Type" content=... | thelinmichael/spotify-web-api-java | docs/com/wrapper/spotify/requests/data/player/class-use/SkipUsersPlaybackToPreviousTrackRequest.html | HTML | mit | 7,778 |
module Ludicrousby
VERSION = '1.1.0'
end
| Chiether/ludicrousby | lib/ludicrousby/version.rb | Ruby | mit | 43 |
#
#
#
from __future__ import absolute_import, division, print_function, \
unicode_literals
from mock import Mock, call
from os.path import dirname, join
from requests import HTTPError
from requests_mock import ANY, mock as requests_mock
from unittest import TestCase
from octodns.record import Record
from octodns... | h-hwang/octodns | tests/test_octodns_provider_dnsimple.py | Python | mit | 6,915 |
import 'antd-mobile/lib/swipe-action/style/index'; | joe-sky/flarej | src/components/antd-mobile/swipeAction/component/style/index.js | JavaScript | mit | 50 |
// Generated by : ImageConverter BW Online
// Generated from : oshw_logo.png
// Time generated : Thu, 11 Aug 11 20:28:44 +0200 (Server timezone: CET)
// Image Size : 56x48 pixels
// Memory usage : 336 bytes
#include <avr/pgmspace.h>
uint8_t oshw_logo[] PROGMEM={
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00... | herbstmensch/BrewDuino | libraries/LCD5110_Basic/examples/LCD5110_Bitmap/oshw_logo.c | C | mit | 2,813 |
/** @flow */
import type { t } from '../types'
/**
*
* @param sources
* @param target
*/
export function applyAverage (sources: t[], target: t): void {
const source = sources[0]
if (!source || sources.length === 0) return
if (sources.length === 1) {
target.data.set(source.data, 0)
return
}
const... | MaverickBySigma/gimagedata | src/mutations/applyAverage.js | JavaScript | mit | 774 |
---
layout: post
title: "How to Calculate Mortgage Payment Schedule in R"
date: 2018-11-20
comments: true
categories: r
keywords: "R, financial calculator, mortgage calculator, amortization schedule, amortization schedule calculator, mortgage payment schedule, repayment, principal, interest, outstanding principal, bala... | gmlang/masterr | _posts/r/2018-11-20-calculate-mortgage-payment-schedule.md | Markdown | mit | 4,929 |
var app = app || {};
(function(){
app.TestButton = React.createClass({displayName: "TestButton",
handleClick: function() {
this.props.submitTestTask(this.props.btnType);
},
render: function() {
return ( React.createElement("button", {onClick: this.handleClick,
... | ideaworld/FHIR_Tester | FHIR_Tester_statics/js/build/.module-cache/71eaa56ca6a2f3b81e2145d9d8e1f4217ee88529.js | JavaScript | mit | 7,312 |
export class Layout1ViewModel {
el: Element;
attached() {
this.el.classList.remove('view-only');
this.el.classList.add('layout-1');
}
activate(params: any) {
this.activate = params;
}
}
| aurelia/templating-router | test/routes/layout-1.ts | TypeScript | mit | 208 |
#include "precomp.h"
#include "Gtp/GtpCore.h"
using namespace std;
namespace Gtp {
GtpCore::GtpCore(ostream &out, istream &in, ostream &console)
: m_out(out)
, m_console(console)
, m_in(in)
{
}
void GtpCore::write(const std::string &line) {
m_out << line;
}
void GtpCore::flush() {
m_o... | omochi64/ComputerGO_MCTS | Gtp/GtpCore.cpp | C++ | mit | 1,066 |
/****************************************************************************
** Meta object code from reading C++ file 'bitcoinamountfield.h'
**
** Created: Fri Jun 6 19:51:20 2014
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.2)
**
** WARNING! All changes made in this file will be lost!
*****************... | YourCoin-project/YourCoin | build/moc_bitcoinamountfield.cpp | C++ | mit | 4,258 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die mit einer Assembly verknüpft sind.
[assembly: A... | LightClaw/Engine | Source/TeamServer/LightClaw.TeamServer.Server.Frontend.Console/Properties/AssemblyInfo.cs | C# | mit | 1,599 |
<?php
/**
* Tests for the Layout class
*
* @package Owl
* @author Dave Widmer <dwidmer@bgsu.edu>
*/
class LayoutTest extends PHPUnit_Framework_TestCase
{
/**
* @var \Owl\Layout The layout to use in the tests.
*/
public $layout;
/**
* @var \Owl\View The base view
*/
public $view;
/**
* Se... | daveWid/Owl | tests/LayoutTest.php | PHP | mit | 1,886 |
<?php
namespace BrowserStart\Browser;
use BrowserStart\Process;
class PhantomjsTest extends \PHPUnit_Framework_TestCase {
protected static $phantomjs;
protected $url;
public static function setUpBeforeClass() {
$process = new Process();
self::$phantomjs = new Phantomjs($process);
}... | pawel-5/BrowserDriver | tests/functional/Browser/PhantomjsTest.php | PHP | mit | 1,302 |
---
layout: contributor-profile
credit-name: Kate Dollarhyde
first-name: Kate
last-name: Dollarhyde
file-as: d
role: Author
role-2: Editor
role-3:
title: Kate Dollarhyde — Work in Fireside
description: Guest Editor, Aug–Oct 2020
twitter-handle: katedollarhyde
profile-pic: kate-dollarhyde.png
website-url:
short-name: ka... | firesidefiction/firesidefiction.github.io | _contributors/kate-dollarhyde.md | Markdown | mit | 894 |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"... | error-dev/ErrorCoin | src/qt/signverifymessagedialog.cpp | C++ | mit | 8,988 |
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { MatToolbarModule, MatButtonModule, MatListModule } from '@angular/material';
import { AppRoutingModule } from './app-routing.mod... | AzureAD/microsoft-authentication-library-for-js | samples/msal-angular-samples/angular7-sample-app/src/app/app.module.ts | TypeScript | mit | 2,070 |
---
layout: default
title: 404 Error | Sorry, this page does not exist.
---
<div class="error">
<h1>Four, oh, Four</h1>
<p class="lead"><a href="/" title="The greatest site in the world">Try this?</a></p>
</div>
| bsmitty5000/bsmitty5000.github.io | 404.html | HTML | mit | 232 |
class DropOwnerships < ActiveRecord::Migration[5.0]
def change
remove_index :ownerships, name: 'index_ownerships_on_uniqueness'
remove_index :ownerships, name: 'index_ownerships_on_package_uniqueness'
drop_table :ownerships do |t|
t.references :user, foreign_key: true
t.references :package, f... | djsegal/julia_observer | db/migrate/20161218062422_drop_ownerships.rb | Ruby | mit | 387 |
package types
// DO NOT EDIT. THIS FILE WAS AUTOMATICALLY GENERATED
// SoftLayer_Product_Package_Order_Configuration - This datatype describes the item categories that are
// required for each package to be ordered. For instance, for package 2, there will be many required
// categories. When submitting an order for a... | sudorandom/softlayer-go-gen | types/gen_softlayer_product_package_order_configuration.go | GO | mit | 2,203 |
//using System;
//
//using NUnit.Framework;
//
//using SoundCloud.Api.Utils;
//
//namespace SoundCloud.Api.Test.Utils
//{
// [TestFixture]
// public class UriExtensionTest
// {
// [Test]
// public void Test_AppendCredentials_AccessToken()
// {
// var credentials = new SoundClou... | prayzzz/SoundCloud.Api | test/SoundCloud.Api.Test/Utils/UriExtensionTest.cs | C# | mit | 2,273 |
---
redirect_from: /docs/1.0.16/interfaces/state.statedeclaration.html
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>StateDeclaration | @uirouter/angularjs</title>
<meta name="description" content="">
<meta name="viewport... | ui-router/ui-router.github.io | _ng1_docs/1.0.16/interfaces/state.statedeclaration.html | HTML | mit | 74,961 |
from components.base.automotive_component import AutomotiveComponent
from config import project_registration as proj
from tools.ecu_logging import ECULogger as L
import random
class AbstractECU(AutomotiveComponent):
'''
This abstract class defines the interface of
an ECU as it is found in an automotive n... | PhilippMundhenk/IVNS | ECUSimulation/components/base/ecu/types/abst_ecu.py | Python | mit | 5,802 |
---
layout: post
title: "My Trip to India - Day Four"
date: 2015-03-06 11:36:00
categories: travel
tags: india perk
---
Today was probably the best Friday I've had at work in a long while, I didn't get to do a single bit of programming at all, but I am actually okay with that. Today we joined the Bangalore team in a... | hskrasek/hskrasek.github.io | _posts/2015-03-06-my-trip-to-india-day-four.markdown | Markdown | mit | 3,081 |
import Ember from 'ember';
import RouteChildrenMixin from '../../../mixins/route-children';
import { module, test } from 'qunit';
module('Unit | Mixin | route children');
// Replace this with your real tests.
test('it works', function(assert) {
var RouteChildrenObject = Ember.Object.extend(RouteChildrenMixin);
va... | dhilipsiva/test | emdj/tests/unit/mixins/route-children-test.js | JavaScript | mit | 388 |
<?php
// HealthSystem\HealthSystemBundle\Form\Type\Base\TreatmentTypeBase.php
/************************************************************************************************
** THIS IS AN AUTOMATICALLY GENERATED BASE FILE AND SHOULD NOT BE MANUALLY EDITED **
** All user content should be placed within... | j-d/draggy-demo | src/HealthSystem/HealthSystemBundle/Form/Type/Base/TreatmentTypeBase.php | PHP | mit | 5,597 |
// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/api/atom_api_app.h"
#include <string>
#include <vector>
#include "atom/browser/api/atom_api_menu.h"
#include "atom/browser/api/atom_api_session.h"
#include "at... | posix4e/electron | atom/browser/api/atom_api_app.cc | C++ | mit | 35,181 |
Routines
========
In Tansa, routines are prewritten mission or motion plans that specify how all the drones should move. If you just want your drones to do some scripted maneuvers without responsiveness, this is for you.
| dennisss/tansa | doc/Routines.md | Markdown | mit | 222 |
#include "Shape.h"
Shape::Shape()
{
drawShape = GL_LINES;
numberOfDots = 0;
maxDots = 0;
pDots = NULL;
color = Color(1.0f, 0.0f, 0.0f);
}
Shape::~Shape()
{
delete[] pDots;
maxDots = numberOfDots = 0;
pDots = NULL;
}
void Shape::draw()
{
glBegin(drawShape);
color.use();
for(int i=0; i<numberOfDots; i++... | ByNeo/Snake2D | src/Shape.cpp | C++ | mit | 545 |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<h3>Backups</h3>
<ul>
<li><a href="<?=base_url('backups?table=usuarios')?>"><i class="fa fa-download"></i> Backup de usuarios</a></li>
<li><a href="<?=base_url('backups?table=funcionarios')?>"><i class="fa fa-download"></i> Backup de func... | luizalbertobm/solucao | application/views/backups.php | PHP | mit | 694 |
# <%=_packageName%>
---
## Installation
npm install <%=_packageName%>
or
yarn add <%=_packageName%>
## Publish
npm version <version>
git push --follw-tags
npm login -> npm run release
| react-smart-component/generator-package | app/templates/README.md | Markdown | mit | 194 |
'-------------------------------------------------------------------------------------------'
' Inicio del codigo
'-------------------------------------------------------------------------------------------'
' Importando librerias
'--------------------------------------------------------------------------------------... | kodeitsolutions/ef-reports | rTCobros_Fechas.aspx.vb | Visual Basic | mit | 13,148 |
VERSION = DEBUG
CC = ccache gcc
TEX = pdflatex
GENERIC_CFLAGS = -Wall -Wextra -pedantic -pthread -std=c99
PROFILE_CFLAGS = -pg
DEBUG_CFLAGS = -g
RELEASE_CFLAGS = -O2
SOURCES = $(filter-out exo4.c,$(wildcard *.c))
EXECS = $(SOURCES:%.c= %.bin)
X11LIB = `pkg-config ... | minijackson/IGI2001 | TP7/Makefile | Makefile | mit | 1,678 |
class AddStylesToFreeSpaces < ActiveRecord::Migration
def self.up
add_column :free_spaces, :styles, :text
end
def self.down
remove_column :free_spaces, :styles
end
end
| dmonopoly/jdrampage | db/migrate/20110316151557_add_styles_to_free_spaces.rb | Ruby | mit | 185 |
require 'json'
playbyplay_paths = Dir.glob(Rails.root.join('lib','data','gameflash','**','*_playbyplay.json').to_s)
for playbyplay in playbyplay_paths
puts playbyplay
playbyplay = JSON.parse(File.read(playbyplay))['playbyplay']
game_id = playbyplay['contest']['id']
plays = playbyplay['plays']['play']
for play in... | albertlyu/shot-charts-site | db/seeds/03_playbyplay.rb | Ruby | mit | 1,270 |
/*
* WinDrawLib
* Copyright (c) 2016 Martin Mitas
*
* 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,... | mity/windrawlib | src/init.c | C | mit | 5,061 |
This command removes from the current set any files matching the criteria.
| bradyhouse/house | fiddles/bash/fiddle-0029-JarExtraction/com/sencha/command/compile/ExcludeCommand.md | Markdown | mit | 75 |
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
ext... | SpatialMap/SpatialMapDev | node_modules/office-ui-fabric-react/lib-amd/components/Panel/examples/Panel.ExtraLarge.Example.js | JavaScript | mit | 1,926 |
<!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_20) on Mon May 02 10:23:15 CEST 2011 -->
<TITLE>
Uses of Class play.db.helper.SqlSelect (Play! API)
</TITLE>
<META NAME="date" CONTENT="2011-05-02">... | lafayette/JBTT | framework/documentation/api/play/db/helper/class-use/SqlSelect.html | HTML | mit | 18,190 |
'use strict';
var fs = require('fs-extra')
, async = require('async')
, nconf = require('nconf');
var config = nconf.file('./conf/pp.' + (process.env.NODE_ENV || 'development') + '.json').load();
require('date-utils');
var pp = {};
pp.poetry = "";
pp.poetryPlain = "";
pp.rawPoetry = [];
pp.cleanPoetry = [];
pp.c... | booyaa/poisonpentametron | lib/poisonpentametron.js | JavaScript | mit | 3,118 |
package com.xeiam.xchange.dto;
import java.math.BigDecimal;
import java.util.Date;
import com.xeiam.xchange.currency.CurrencyPair;
/**
* Data object representing an order
*/
public class Order {
public enum OrderType {
/**
* Buying order (you're making an offer)
*/
BID,
/**
* Selling... | okazia/XChange | xchange-core/src/main/java/com/xeiam/xchange/dto/Order.java | Java | mit | 3,380 |
<?php
namespace Geo\Test\Model\Behavior;
use Cake\Core\Configure;
use Cake\Database\Driver\Mysql;
use Cake\Database\Driver\Postgres;
use Cake\Database\Expression\QueryExpression;
use Cake\Database\ValueBinder;
use Cake\Datasource\ConnectionManager;
use Cake\ORM\Entity;
use Cake\ORM\TableRegistry;
use Cake\TestSuite\T... | dereuromark/cakephp-geo | tests/TestCase/Model/Behavior/GeocoderBehaviorTest.php | PHP | mit | 13,523 |
import boto3
import logging
import argparse
import os
from botocore.exceptions import ClientError
from boto3.dynamodb.conditions import Key, Attr
import json
import decimal
import time
import datetime
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import contracts
fro... | th3sys/capsule | nightwatch.py | Python | mit | 16,596 |
using System.Runtime.InteropServices;
namespace CSCapstone.Arm {
/// <summary>
/// Native ARM Instruction Memory Operand Value.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public struct NativeArmInstructionMemoryOperandValue {
/// <summary>
/// Operand Value's Base... | BlueSkeye/CSCapstone | CSCapstone/Arm/NativeArmInstructionMemoryOperandValue.cs | C# | mit | 796 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var laptop = exports.laptop = { "viewBox": "0 0 16 16", "children": [{ "name": "path", "attribs": { "fill": "#000000", "d": "M14 11v-8c0-0.55-0.45-1-1-1h-10c-0.55 0-1 0.45-1 1v8h-2v3h16v-3h-2zM10 13h-4v-1h4v1zM13 11h-10v-7.998c0.001-0.001 0... | xuan6/admin_dashboard_local_dev | node_modules/react-icons-kit/icomoon/laptop.js | JavaScript | mit | 400 |
<?php
/**
* @package Joomla.Platform
* @subpackage Form
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
defined('JPATH_PLATFORM') or die;
/**
* Form Rule class for the Joomla ... | bensmiley/Chatcat | Joomla!/chatcat_joomla/chatcatapi.php | PHP | mit | 1,672 |
# 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::ServiceFabric::V6_5_0_36
module Models
#
# Describes a Service Fabric application.
#
class ApplicationDescription
inc... | Azure/azure-sdk-for-ruby | data/azure_service_fabric/lib/6.5.0.36/generated/azure_service_fabric/models/application_description.rb | Ruby | mit | 4,166 |
from django import template
from django.conf import settings
register = template.Library()
# settings value
@register.assignment_tag
def get_google_maps_key():
return getattr(settings, 'GOOGLE_MAPS_KEY', "")
| linuxsoftware/mamc-wagtail-site | home/templatetags/home_tags.py | Python | mit | 217 |
// Modified for MonoGameEngine2D by Pascal Laurin @2014
// Originals can be found at https://github.com/marshallward/TiledSharp
// Original notice below:
// Distributed as part of TiledSharp, Copyright 2012 Marshall Ward
// Licensed under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
us... | plaurin/MonoGameEngine2D | GameFramework.IO/TiledSharp/Tileset.cs | C# | mit | 3,837 |
import { expectTypeOf } from "expect-type";
import { Model, Op } from 'sequelize';
class MyModel extends Model {}
expectTypeOf(MyModel.count()).toEqualTypeOf<Promise<number>>();
expectTypeOf(MyModel.count({ group: 'tag' })).toEqualTypeOf<Promise<{ [key: string]: number }>>();
expectTypeOf(MyModel.count({ col: 'tag', ... | Americas/sequelize | types/test/count.ts | TypeScript | mit | 525 |
#ifndef WAVE_BIAS_PRIOR_HPP
#define WAVE_BIAS_PRIOR_HPP
#include <gtsam/nonlinear/NonlinearFactor.h>
namespace wave {
template <class T>
class BiasPrior : public gtsam::NoiseModelFactor1<T> {
private:
Eigen::Matrix<double, 3, 1> prior;
public:
BiasPrior(gtsam::Key key,
Eigen::Matrix<double, ... | wavelab/libwave | wave_gtsam/include/wave/gtsam/bias_prior.hpp | C++ | mit | 667 |
<?php
namespace Sds\DoctrineExtensions\Test\Serializer;
use Sds\DoctrineExtensions\Manifest;
use Sds\DoctrineExtensions\Test\BaseTest;
use Sds\DoctrineExtensions\Test\Serializer\TestAsset\Document\Flavour;
class SerializerCustomTypeSerializerTest extends BaseTest {
public function setUp(){
$manifest = ... | superdweebie/doctrine-extensions | tests/Sds/DoctrineExtensions/Test/Serializer/SerializerCustomTypeSerializerTest.php | PHP | mit | 2,209 |
(function (module) {
var questionData = function ($q, urlConfig, proxy, adalAuthenticationService) {
var getUserQuestions = function () {
var url = urlConfig.questionsByUserId(adalAuthenticationService.userInfo.userName);
var deferred = $q.defer();
proxy.get(url)
... | patrickCode/Quest | src/Quest/App/Web/wwwroot/js/questions/questions.data.js | JavaScript | mit | 4,025 |
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Fast R-CNN config system.
This file specifies default config option... | yuxng/Deep_ISM | ISM/lib/ism/config.py | Python | mit | 10,824 |
/**
* 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/SeriesColumnrangeAnimation.scala | Scala | mit | 903 |
---
title: Dynameg
inshort: CRM & ERP [Salesforce]
translator: Microsoft Cognitive Services
---
Er bod llawer o Office 365 apiau a gwasanaethau cynrychioli cynhyrchion soffistigedig, mae Dynamics 365 yn cwmpasu ystod o Microsoft rheoli cysylltiadau cwsmeriaid cwmwl (CRM), adnoddau dynol, a (ERP) cynhyrchion sy'n gall... | Hexatown/docs | microsoft/office365/dynamics/cy.md | Markdown | mit | 6,099 |
FROM centos:centos7
MAINTAINER Bin Liu <liubin0329@gmail.com>
# for ruby
RUN yum install -y wget tar gcc g++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel
RUN cd /tmp \
&& wget http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.gz \
&& tar zx... | liubin/workshop-China-pub | example-2/Dockerfile | Dockerfile | mit | 584 |
using AngleSharp;
using AngleSharp.Dom;
using AngleSharp.Html.Dom;
using AngleSharp.Html.Parser;
using Discord;
using Discord.Commands;
using Discord.WebSocket;
using NadekoBot.Common;
using NadekoBot.Common.Attributes;
using NadekoBot.Common.Replacements;
using NadekoBot.Core.Modules.Searches.Common;
using NadekoBot.... | ScarletKuro/NadekoBot | NadekoBot.Core/Modules/Searches/Searches.cs | C# | mit | 33,074 |
import { A } from '@ember/array';
import { module } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, click } from '@ember/test-helpers';
import test from 'ember-sinon-qunit/test-support/test';
import hbs from 'htmlbars-inline-precompile';
import setupNoDeprecations from '../../helpers/se... | jelhan/ember-bootstrap | tests/integration/components/bs-button-group-test.js | JavaScript | mit | 7,735 |
# Knockout Router (hash support)
| cbcrc/koco-router-state-hash | README.md | Markdown | mit | 34 |
import * as React from 'react'
const styles = require('./menuPart.less')
import Icon from 'client/components/icon/icon'
interface compProps {
icon:string;
text:string;
onClick:()=>any;
}
const MenuButton:React.StatelessComponent<compProps> = ({icon, text, onClick}) => {
return <div className={styles.m... | Jiaoweiquan/mindp | src/client/parts/menuPart/menuButton.tsx | TypeScript | mit | 493 |
body {
height: 101%;
width:100%;
}
div.wrapper {
width:1280px;
height:985px;
margin-left: auto;
margin-right: auto;
}
div#cicero {
}
div#scroll {
width: 1280px;
text-align: center;
position: fixed;
bottom: -60px;
color: rgba(255,255,255,.8);
font-size: 3em;
font-we... | odontomachus/potluck | web/static/css/potluck.css | CSS | mit | 1,958 |
import React, { Component } from 'react';
import {
View,
Text,
Image,
StyleSheet,
Linking,
TouchableOpacity
} from 'react-native';
import HtmlRender from 'react-native-html-render';
import { parseImgUrl } from '../../utils';
import moment from 'moment';
class TopicCommentItem extends Component {
render()... | ahonn/v2exRN | src/components/topic/TopicCommentItem.js | JavaScript | mit | 2,491 |
/**
* Created by dli on 25.01.2015.
*/
define('sync/time/Clock', ['sync/time/CONST'], function (CONST) {
var Clock = function (time){
this.time = time || 0;
}
Clock.prototype.tick = function(){
return this.time < CONST.LOGICAL_HOUR - 1 ? ++this.time : (this.time = 0);
}
... | brainfrozen/march-javascript | src/sync/time/Clock.js | JavaScript | mit | 515 |
require File.expand_path('../boot', __FILE__)
# Pick the frameworks you want:
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
require "sprockets/railtie"
# require "rails/test_unit/railtie"
Bundler.require(*Rails.groups)
require "smsapi... | logicorg/smsapi_client | spec/dummy/config/application.rb | Ruby | mit | 1,229 |
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
using System.Windows;
using YAMP;
namespace Saber.Plugin.Caculator
{
//https://github.com/FlorianRappl/YAMP
public class Main : IPlugin, IPluginI18n
{
private static Regex regValidExpres... | yozora-hitagi/Saber | Plugins/Saber.Plugin.Calculator/Main.cs | C# | mit | 3,649 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>whups sounds like someone forgot to get a Pen.Test done</title>
<meta name="author" content="raesene">
<!-- Enable responsive viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Le HTML5 shim, for IE6-8 support of... | raesene/raesene.github.io | blog/2006/08/30/whups_sounds_li/index.html | HTML | mit | 8,535 |
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: AssemblyTi... | dmitrykolchev/d2dsharp | D2DSharp/DykBits.D2DSharp.SimpleText/Properties/AssemblyInfo.cs | C# | mit | 1,494 |
'use strict';
angular.module('startingPointJsApp')
.service('Auth', ['$rootScope', '$http', 'localStorageService', function Auth($rootScope, $http, localStorageService) {
this.eventName = 'Auth.changes';
Auth.prototype.getUser = function () {
return localStorageService.get('user');
};
... | fealaer/StartingPointJS | client/scripts/services/auth.js | JavaScript | mit | 1,327 |
/************************************************************************************
Filename : Util_DataLogger.h
Content : General purpose data logging to Matlab
Created : Oct 3, 2014
Authors : Neil Konzen
Copyright : Copyright 2014 Oculus VR, Inc. All Rights reserved.
Licensed under the... | OSUrobotics/ros_ovr_sdk | sdk/ovr_sdk_linux_0.5.0.1/LibOVR/Src/Util/Util_DataLogger.h | C | mit | 5,059 |
/**
* Created by ila on 5/18/2015.
*/
"use strict"
class SettingStore {
static set(object) {
const KEY = 'Setting';
return localforage.setItem(KEY, object.toArray());
}
static get() {
const KEY = 'Setting';
return localforage.getItem(KEY).then(function (v) {
re... | himulawang/observer | js/store/setting_store.js | JavaScript | mit | 526 |
require 'digest/sha1'
class User < ActiveRecord::Base
### AUTHORIZATION
include Authorization::User::InstanceMethods
extend Authorization::User::SingletonMethods
###
### RESTFUL AUTHENTICATION
###
include Authentication
include Authentication::ByPassword
include Authentication::ByCookieToken
# ... | markmcspadden/coding-mentors | app/models/user.rb | Ruby | mit | 7,555 |
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import { Optional, Inject, Injectable, NgZone, NgModule, SkipSelf, ApplicationRef, ComponentFactoryResolver, Injector,... | friendsofagape/mt2414ui | node_modules/@angular/cdk/esm2015/overlay.js | JavaScript | mit | 124,054 |
var ThorElement = require('./thorElement');
var ThorController = function(){
ThorElement.call(this);
this.type = ThorElement.TYPES.CONTROLLER;
}
module.exports = ThorController;
| Zombitch/thor | api/modules/thorController.js | JavaScript | mit | 184 |
// Copyright (c) Aurora Studio. All rights reserved.
//
// Licensed under the MIT License. See LICENSE in the project root for license information.
using System;
using System.Text;
using System.Threading.Tasks;
using Windows.Security.Cryptography;
using Windows.Security.Cryptography.Core;
using Windows.Security.Crypto... | pkzxs/Aurora.Music | Source/Aurora.Shared/Helpers/Crypto/CryptoHelper.cs | C# | mit | 8,349 |
package generated.zcsclient.admin;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for cancelRuleInfo complex type.
*
* <p>The following schema fragment specifies the expected content contained within... | nico01f/z-pec | ZimbraSoap/src/wsdl-test/generated/zcsclient/admin/testCancelRuleInfo.java | Java | mit | 748 |
<!DOCTYPE html>
<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="">
<meta name="keywords" content=" ">
<title>Update Predefined Content | LivePerson Technical Documentation</titl... | LivePersonInc/dev-hub | content4/account-configuration-predefined-content-update-content.html | HTML | mit | 119,407 |
---
layout: post
title: "UX Lausanne: Delight and Innovation"
date: 2014-06-13 05:40:08
categories: blog
description: My sketchnote of Giles Colborne's talk Delight and Innovation
image: https://farm4.staticflickr.com/3794/14103533820_6b7067693e_z.jpg
tags: uxls, ux, event, lausanne, del... | alienlebarge/alienlebarge.github.com | _posts/2014-06-13-ux-lausanne-delight-and-innovation.md | Markdown | mit | 3,507 |
using System.Runtime.CompilerServices;
[assembly: InternalsVisibleTo("IronRureTests")]
| iwillspeak/IronRure | src/IronRure/Meta.cs | C# | mit | 88 |
<h1 class="title" data-bind="title"></h1>
<input class="meter" data-angleOffset=-125 data-angleArc=360 data-width=75 data-readOnly=true data-bind-value="value | shortenedNumber" data-bind-data-min="min" data-bind-data-max="max">
<p class="more-info" data-bind="moreinfo"></p>
<p class="updated-at" data-bind="updatedA... | ropensci/rodash | widgets/meter/meter.html | HTML | mit | 335 |
<?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\Component\Resource\Translation\Provider;
final class Immut... | Sylius/Resource | Translation/Provider/ImmutableTranslationLocaleProvider.php | PHP | mit | 925 |
var test2 = true;
| cloudspace/ettu | spec/dummy/app/assets/javascripts/test.js | JavaScript | mit | 18 |
using System.Linq;
using System.Threading.Tasks;
using SfAttendance.Server.Entities;
using SfAttendance.Server.Extensions;
using SfAttendance.Server.Services.Abstract;
using SfAttendance.Server.ViewModels.AccountViewModels;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.A... | mak-in/sf-attendance | Server/Controllers/api/AccountController.cs | C# | mit | 15,381 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-14 02:26
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | foohooboo/graphql-cookiecutter | graphql_cookiecutter/buildings/migrations/0001_initial.py | Python | mit | 1,612 |
package com.usabilityetc.spacefillerexplorer.treemap;
import java.awt.*;
/**
* Holds the information about a file required to present a tool tip
* for the rectangular region on a TreeMap panel that represent the file.
*
* @author Jeffrey Morgan
*/
public class ToolTip {
private static final String toolTipForm... | UsabilityEtc/java-space-filler-explorer | src/main/java/com/usabilityetc/spacefillerexplorer/treemap/ToolTip.java | Java | mit | 2,050 |
function initTask(subTask) {
var cellSide = 60;
subTask.gridInfos = {
hideSaveOrLoad: true,
cellSide: cellSide,
actionDelay: 200,
itemTypes: {
green_robot: { img: "green_robot.png", side: 80, nbStates: 9, isObstacle: true, offsetX: -14, category: "robot", team: 0, zOrder: 2 },
... | France-ioi/bebras-tasks | algorea/algorea_training/training-repeat-nested-if-paint/task.js | JavaScript | mit | 2,001 |
//
// ViewController.h
// HCSCarousel
//
// Created by Sahil Kapoor on 26/02/15.
// Copyright (c) 2015 Hot Cocoa Software. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
| HotCocoaSoftware/HCSCarousel | HCSCarousel/ViewController.h | C | mit | 230 |
# encoding: utf-8
require 'helper'
class TestParsingItIt < TestCase
# Wed Aug 16 14:00:00 UTC 2006
TIME_2006_08_16_14_00_00 = Time.local(2006, 8, 16, 14, 0, 0, 0)
def setup
@time_2006_08_16_14_00_00 = TIME_2006_08_16_14_00_00
@locale_before = Chronic.locale
Chronic.locale = :'it-IT'
end
def tea... | luan/chronic-l10n | test/test_parsing_it_it.rb | Ruby | mit | 3,560 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `XKB_KEY_Thai_nonu` constant in crate `wayland_kbd`.">
<met... | mcanders/bevy | doc/wayland_kbd/keysyms/constant.XKB_KEY_Thai_nonu.html | HTML | mit | 3,835 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.