repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
gneyal/ElasticoExample | config/environment.rb | 159 | # Load the rails application
require File.expand_path('../application', __FILE__)
# Initialize the rails application
ElasticoExample::Application.initialize!
| mit |
HaikuArchives/BeTeX | Src/Headers/ColourView.h | 911 | /*****************************************************************
* Copyright (c) 2005 Tim de Jong, Brent Miszalski *
* *
* All rights reserved. *
* Distributed under the terms of the MIT License. *
****************************************************************... | mit |
itohiro73/reladomo-sbt | src/main/scala/example/util/MariaDbConnectionManager.scala | 2008 | package example.util
import java.sql.Connection
import java.util.TimeZone
import com.gs.fw.common.mithra.bulkloader.BulkLoaderException
import com.gs.fw.common.mithra.connectionmanager.{SourcelessConnectionManager, XAConnectionManager}
import com.gs.fw.common.mithra.databasetype.{DatabaseType, MariaDatabaseType}
cla... | mit |
cysjonathan/coursemology2 | spec/factories/course_assessment_assessments.rb | 4618 | # frozen_string_literal: true
FactoryBot.define do
sequence(:course_assessment_assessment_name) { |n| "Assessment #{n}" }
sequence(:course_assessment_assessment_description) { |n| "Awesome description #{n}" }
factory :course_assessment_assessment, class: Course::Assessment, aliases: [:assessment],
... | mit |
railsphp/framework | src/Rails/ActiveRecord/Associations/Associations.php | 5766 | <?php
namespace Rails\ActiveRecord\Associations;
use Rails\ServiceManager\ServiceLocatorAwareTrait;
class Associations
{
use ServiceLocatorAwareTrait;
protected static $associationsByClass = [];
/**
* @var Loader
*/
protected static $loader;
/**
* Associations name =>... | mit |
SolidEdgeCommunity/docs | docfx_project/apidoc/SolidEdgeAssembly.Configuration.Type.md | 123 | ---
uid: SolidEdgeAssembly.Configuration.Type
summary: Specifies the type of the object being referenced.
remarks:
---
| mit |
arnaudWasappli/Calendar | CalendarLib/MGCMonthPlannerView.h | 22522 | //
// MGCMonthPlannerView.h
// Graphical Calendars Library for iOS
//
// Distributed under the MIT License
// Get the latest version from here:
//
// https://github.com/jumartin/Calendar
//
// Copyright (c) 2014-2015 Julien Martin
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
... | mit |
ged/aurelia-semantic-ui | test/unit/elements/ui-icon_spec.js | 4822 | /* -*- javascript -*- */
"use strict";
import {StageComponent} from 'aurelia-testing';
import {bootstrap} from 'aurelia-bootstrapper';
import {LogManager} from 'aurelia-framework';
import {ConsoleAppender} from 'aurelia-logging-console';
import {customMatchers} from '../helpers';
describe('ui-icon', () => {
let com... | mit |
anduslim/codex | codex_project/actors/haversine.py | 554 | from math import radians, cos, sin, asin, sqrt
def haversine(lon1, lat1, lon2, lat2):
"""
Calculate the great circle distance between two points
on the earth (specified in decimal degrees)
"""
# convert decimal degrees to radians
lon1, lat1, lon2, lat2 = map(radians, [lon1, lat1, lon2, lat2])
... | mit |
messenger4j/messenger4j | src/main/java/com/github/messenger4j/send/message/template/receipt/Item.java | 1752 | package com.github.messenger4j.send.message.template.receipt;
import static java.util.Optional.empty;
import java.net.URL;
import java.util.Optional;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import lombok.ToString;
/**
* @author Max Grabenhorst
* @since 1.0.0
*/
@ToString
@EqualsAndHashCode
public ... | mit |
FelipeAvila/hallejava | HalleEJB/ejbModule/com/halle/facade/FriendFacade.java | 410 | package com.halle.facade;
import java.util.List;
import javax.ejb.Local;
import com.halle.exception.ApplicationException;
import com.halle.model.Friend;
@Local
public interface FriendFacade {
void inviteByPhone(final String token, final String name, final String phoneFriend) throws ApplicationException;
List<... | mit |
Azure/azure-sdk-for-go | services/peering/mgmt/2020-10-01/peering/client.go | 4814 | // Package peering implements the Azure ARM Peering service API version 2020-10-01.
//
// Peering Client
package peering
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) Aut... | mit |
fosscellcet/drishticryptex2017 | assets/js/midi.js | 40433 | //
// This software is released under the 3-clause BSD license.
//
// Copyright (c) 2015, Xin Chen <txchen@gmail.com>
// 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 o... | mit |
ppschweiz/MemberDatabase | Organigram/MemberService/ChangePassword.aspx.cs | 3415 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Pirate.Ldap;
using Pirate.Ldap.Web;
using Pirate.Util.Logging;
namespace MemberService
{
public partial class ChangePassword : CustomPage
{
protected override string... | mit |
rev84/uhauha_programming | 15/01_meta_charset_sjis_sjis.html | 150 | <html>
<head>
<meta charset="Shift_JIS">
</head>
<body>
±Ì¶Ì¶R[hÍShift_JIS<br>
^^OÍShift_JIS
</body>
</html> | mit |
Heigvd/Wegas | wegas-app/src/main/node/wegas-react-form/src/HOC/translatable.tsx | 8590 | import * as React from 'react';
import { LangConsumer } from '../LangContext';
import { Schema } from 'jsoninput';
import { infoStyle } from './commonView';
import { css } from 'glamor';
import IconButton from '../Components/IconButton';
interface Translation {
translation: string;
status: string;
}
interface... | mit |
karesansui/karesansui | karesansui/gadget/guestby1currentsnapshot.py | 4377 | # -*- coding: utf-8 -*-
#
# This file is part of Karesansui.
#
# Copyright (C) 2009-2012 HDE, Inc.
#
# 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 lim... | mit |
brbrakus/adomis | rollup.config.js | 204 | import uglify from 'rollup-plugin-uglify'
import buble from 'rollup-plugin-buble'
export default {
entry: 'js/index.js',
dest: 'public/bundle.js',
format: 'iife',
plugins: [buble(), uglify()],
}
| mit |
alexiusp/vc-manager | app/corps/models.ts | 1356 | import { SelectableItem, LoadableItem } from '../core/classes';
import { Company, CompanyDetail } from './contracts';
import { StorageItem } from './storage/models';
export class CompanyItem extends SelectableItem {
private _item : Company;
get item() {
return this._item;
}
set item(i : Company) {
this... | mit |
volcanomapping/volcanomapping.github.io | _posts/volcanoes/2014-09-15-kelud.md | 1857 | ---
permalink: /volcanoes/kelud/
layout: page
subheadline: "Volcano Profile"
title: "Mt. Kelud, East Java"
teaser:
categories:
- volcanoes
tags:
- Indonesia
- volcanoes
image:
thumb:
gallery:
- image_url: /volcanoes/Kelud/kelud.jpg
caption: Source -
- image_url: /volcanoes/Kelud/kelud2.j... | mit |
carlesbellver/carlesbellver.github.io | 2018/05/30/alberto-manguel-stevenson.html | 6034 | <!DOCTYPE html>
<html lang="ca-es" data-theme="">
<head>
<meta charset="utf-8">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer-when-downgrade">
<title>La vista cansada</title>
<meta name="de... | mit |
xareelee/gulp-on-rx | src/filterSinceSync.js | 300 | function filterSinceSync(d) {
var isValid = typeof d === 'number' ||
d instanceof Number ||
d instanceof Date;
if (!isValid) {
throw new Error('expected since option to be a date or a number');
}
return file.stat && file.stat.mtime > d;
};
module.exports = filterSinceSync; | mit |
steins024/projection-grid | spec/unit/column-shifter-spec.js | 1152 | var expect = require('chai').expect;
var sinon = require('sinon');
var ColumnShifter = require('component/grid/projection/column-shifter');
var Base = require('component/grid/projection/base');
var Response = require('component/grid/model/response');
describe('projection ColumnShifter', function () {
it('update shou... | mit |
MrOnosa/DailyGoals | www/templates/tab-dailies.html | 500 | <ion-view view-title="Dailies">
<ion-content>
<ion-list>
<ion-item class="item-remove-animate item-button-right" ng-repeat="goal in goals" type="item-text-wrap" >
<h2>{{goal.title}}</h2>
<button class="button button-positive" ng-click="remove(goal)">
<i class="icon ion-android-don... | mit |
macanhhuy/magento-module | app/code/local/Zipbit/Bitcoins/Model/Standard.php | 399 | <?php
class Zipbit_Bitcoins_Model_Standard extends Mage_Payment_Model_Method_Abstract {
protected $_code = 'zipbit';
protected $_isInitializeNeeded = true;
protected $_canUseInternal = true;
protected $_canUseForMultishipping = false;
public function getOrderPlaceRedirectUrl() {
retur... | mit |
imie-source/CDPN-N-05-SHARE | tests/testTennisRule/TennisRule/test/fr/imie/TennisRuleTest.java | 2597 | package fr.imie;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import fr.imie.Jeu;
public class TennisRuleTest {
private Jeu jeu;
@Before
public void initJeux(){
ISerialiser serialiser = new StateLessMockedSerialiser();
jeu = new Jeu();
jeu.setSerialiser(serialiser);
}... | mit |
mag6367/Cracking_the_Coding_Interview_Python_Solutions | chapter3/stack.py | 418 | # Stack implementation
class Stack (object):
def __init__ (self):
self.stack = []
def push (self, data):
self.stack.append(data)
def peek (self):
if self.isEmpty():
return None
return self.stack[-1]
def pop (self):
if self.isEmpty():
return None
return self.stack.pop()
def isEmpty (self):
... | mit |
Teleopti/Toggle.Net | code/Toggle.Net/IToggleChecker.cs | 375 | namespace Toggle.Net
{
/// <summary>
/// Main interface at runtime.
/// </summary>
public interface IToggleChecker
{
/// <summary>
/// Returns <code>true</code> if feature with specified toggle name is enabled,
/// otherwise <code>false</code>.
/// </summary>
/// <param name="toggleName">Name of the tog... | mit |
merenlab/web | software/anvio/help/7.1/programs/anvi-script-pfam-accessions-to-hmms-directory/index.md | 2705 | ---
layout: page
title: anvi-script-pfam-accessions-to-hmms-directory [program]
categories: [anvio]
comments: false
redirect_from: /7.1/anvi-script-pfam-accessions-to-hmms-directory
image:
featurerelative: ../../../images/header.png
display: true
---
You give this program one or more PFAM accession ids, and it gen... | mit |
mjurinic/AndroidWorkshop | app/src/main/java/org/foi/androidworkshop/adapters/PokemonAdapter.java | 1685 | package org.foi.androidworkshop.adapters;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import org.foi.androidworkshop.R;
import org.foi.androidworkshop.models... | mit |
Tecnocreaciones/VzlaGovernmentTemplateDeveloperSeed | api/source-class-Gedmo.SoftDeleteable.HardRelationTest.html | 170606 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File vendor/gedmo/doctrine-extensions/tests/Gedmo/SoftDeleteable/HardRelationTest.php | seip</title>
<script type="t... | mit |
BlakeTurner/nobots | app/views/_form.html | 2117 | <form name="nobotform" ng-submit="formArgs.submitAction(nobotform)" role="form">
<div class="row spacer">
<div class="col-md-12">
<label class="control-label">Main Image URL</label>
<input class="form-control" type="textfield" ng-model="formArgs.buildNobot.image" placeholder="http://placekitten.com/60... | mit |
France-ioi/login-module | app/LoginModule/LTI/Tool/LTI_Tool_Consumer.php | 7122 | <?php
namespace App\LoginModule\LTI\Tool;
/**
* Class to represent a tool consumer
*
* @author Stephen P Vickers <stephen@spvsoftwareproducts.com>
* @version 2.5.00
* @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3
*/
class LTI_Tool_Consumer {
/**
* @var string Loc... | mit |
bbmoz/gochu | client/src/index.css | 62 | body {
background-color: #333;
}
main {
height: 100vh;
}
| mit |
syntacticNaCl/budgeit | app/Transaction.php | 534 | <?php
namespace Budgeit;
use Illuminate\Database\Eloquent\Model;
class Transaction extends Model
{
protected $fillable = [
'name', 'status', 'amount', 'type'
];
public function user() {
return $this->belongsTo(User::class);
}
public function categories() {
return $this->... | mit |
mlr-org/mlr-org.github.io | _posts/2016-10-20-Paper-published-mlr-Machine-Learning-in-R.md | 1938 | ---
layout: post
title: "Paper published: mlr - Machine Learning in R"
author: jakob
---
We are happy to announce that we can finally answer the question on how to cite *mlr* properly in publications.
Our paper on *mlr* has been published in the open-access Journal of Machine Learning Research (JMLR) and can be downl... | mit |
glensc/php-Propel2 | tests/Propel/Tests/Common/Config/Loader/JsonFileLoaderTest.php | 2953 | <?php
/**
* This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
namespace Propel\Tests\Common\Config\Loader;
use Propel\Common\Config\Loader\JsonFileLoader;
use Propel\C... | mit |
cyril/arukamo.rb | test/test_object.rb | 191 | require_relative File.join 'support', 'coverage'
require_relative File.join '..', 'lib', 'arukamo'
subject = Object.new
fail unless subject.aru? === true
fail unless subject.nai? === false
| mit |
nikhilrajaram/nikhilrajaram.github.io | instructors/Patricia_Ann_Mcdonald.md | 1126 | ---
layout: page
title: "Patricia Ann Mcdonald"
comments: true
description: "blanks"
keywords: "Patricia Ann Mcdonald,CU,Boulder"
---
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></sc... | mit |
imakin/PersonalAssistant | Fundkeep/modul/b__main_backu.py | 2347 | #!/usr/bin/env python
import os,sys
folder = "/media/kentir1/Development/Linux_Program/Fundkeep/"
def makinGetYear():
return os.popen("date +'%Y'").read()[:-1]
def makinGetMonth():
return os.popen("date +'%m'").read()[:-1]
def makinGetDay():
return os.popen("date +'%d'").read()[:-1]
def makinGetPrevYear(daypassed)... | mit |
DavidEGrayson/ruby-usb-pro | lib/ruby-usb-pro/device.rb | 2250 | module Usb
def self.devices(conditions={})
get_device_list.select { |d| d.match?(conditions) }
end
def get_device_list(context=nil); end # Source code is in rusb.c.
end
class Usb::Device
def initialize
raise NotImplementedError, "To get a Usb::Device object, use Usb::get_device_list"
end
def ... | mit |
catedrasaes-umu/NoSQLDataEngineering | projects/es.um.nosql.streaminginference/src/es/um/nosql/streaminginference/NoSQLSchema/impl/PrimitiveTypeImpl.java | 3672 | /**
*/
package es.um.nosql.streaminginference.NoSQLSchema.impl;
import es.um.nosql.streaminginference.NoSQLSchema.NoSQLSchemaPackage;
import es.um.nosql.streaminginference.NoSQLSchema.PrimitiveType;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore... | mit |
mikemey01/Markets | app/src/main/java/com/chariotinstruments/markets/CalcRSI.java | 2899 | package com.chariotinstruments.markets;
import java.util.ArrayList;
/**
* Created by user on 1/30/16.
*/
public class CalcRSI {
private MarketDay marketDay;
private ArrayList<MarketCandle> marketCandles;
private double gainAverage;
private double lossAverage;
public CalcRSI(MarketDay marDay){
... | mit |
SamsungSDS-Contest/2017Guide | docs/JAVA/html/functions_vars_n.html | 7660 | <!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" conte... | mit |
nishantmodak/chotu | lib/chotu/version.rb | 37 | module Chotu
VERSION = "0.0.1"
end
| mit |
npolar/npdc-indicator | src/indicator-timeseries/TimeseriesShowController.js | 3741 | 'use strict';
let TimeseriesShowController = function($scope, $controller, $timeout,
NpolarApiSecurity, NpolarTranslate,
npdcAppConfig,
Timeseries, TimeseriesModel, TimeseriesCitation, google, Sparkline) {
'ngInject';
let ctrl = this;
ctrl.authors = (t) => {
return t.authors.map(a => {
return ... | mit |
rentpath/react-ui | stories/theme/core/Responsive.css | 998 | @media screen and (max-width: 768px) {
:global .hideOnSmall {
display: none;
}
}
@media screen and (min-width: 768px) {
:global .hideOnLarge {
display: none;
}
}
.code {
padding: 2rem;
background: black;
color: white;
width: 80%;
display:block;
margin: 0 auto;
}
.row, .rowFixed {
backgr... | mit |
wariox3/zikmont | src/zikmont/ContabilidadBundle/DependencyInjection/zikmontContabilidadExtension.php | 897 | <?php
namespace zikmont\ContabilidadBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
/**
* This is the class that loads a... | mit |
borrob/Meterstanden | src/main/java/meterstanden/domain/JaaroverzichtDomain.java | 1867 | package main.java.meterstanden.domain;
import java.io.IOException;
import java.util.List;
import javax.persistence.Query;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Ht... | mit |
ComplexRefined/blog | _includes/nav.html | 1483 | <!-- Navigation -->
<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header page-scroll">
<button type="button" class="navbar-toggle" data-toggle="collapse" ... | mit |
vdtodorov93/StorageMerindjei | StorageMerindjei/src/main/webapp/WEB-INF/html/materials.html | 3144 | <!doctype html>
<html ng-app="app">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Materials</title>
<link rel="stylesheet" href="./css/bootstrap.css" media="screen">
</head>
<body>
<div class="container" ng-controller="MaterialsController">
<nav class="navbar navbar-default">
<... | mit |
urbit/urbit | pkg/interface/src/views/landscape/components/Home/Post/PostFlatFeed.tsx | 5543 | import { Box, Col } from '@tlon/indigo-react';
import { arrToString, Association, FlatGraph, FlatGraphNode, Group } from '@urbit/api';
import bigInt from 'big-integer';
import React from 'react';
import { RouteComponentProps, useHistory } from 'react-router';
import { resourceFromPath } from '~/logic/lib/group';
import... | mit |
joshblour/nested_store_attributes | test/dummy/db/migrate/20141016114846_create_people.rb | 188 | class CreatePeople < ActiveRecord::Migration
def change
create_table :people do |t|
t.string :name
t.text :books
t.text :cars
t.timestamps
end
end
end
| mit |
solwalters/leadclock | mysql/one-step-build.sql | 616 | drop database if exists crm_0_9;
drop database if exists dev_leadclock;
drop database if exists leadclock_global_accounts;
drop database if exists swalters_leadclock;
drop database if exists test_leadclock;
#change path if needed
source /var/www/leadclock/mysql/build-leadclock_global_accounts-2017-03-20.sql;
CREATE D... | mit |
nykma/npg | test/config-test.js | 440 | var should = require('should');
var npg = require('../core/npg').npg;
var config = require('./_test_config_npg');
var request = ({body: {phrase: "111"}});
describe('NPG w/ config', function () {
it('should using fixed key', function () {
config.useFixedKey.should.be.ok;
});
it('should return correct answer',... | mit |
nolink/algorithm | Leetcode/N008atoi.c | 1406 | int myAtoi(char* str) {
while(1){
if(NULL == str){
return 0;
}
char v = *str;
if(v == ' ' || v == '\t' || v == '\n' || v == '\r'){
str++;
}else{
break;
}
}
int positive = 1;
char* start=NULL;
if((*str) == '... | mit |
KT26/PythonCourse | 1. Getting Started/11.py | 322 | # Created by PyCharm Community Edition
# User: Kaushik Talukdar
# Date: 22-03-2017
# Time: 03:52 PM
#python doesn't allow you to mix strings and numbers directly. numbers must be converted to strings
age = 28
print("Greetings on your " + str(age) + "th birthday... | mit |
joshfrench/radiant | lib/radiant/pagination/link_renderer.rb | 1236 | # This handy simplification is adapted from SphinxSearch (thanks)
# and originally came from Ultrasphinx
# it saves us a lot of including and bodging to make will_paginate's template calls work in the Page model
module Radiant
module Pagination
class LinkRenderer < WillPaginate::LinkRenderer
def initialize... | mit |
sdispater/orator-cache | orator_cache/cache.py | 197 | # -*- coding: utf-8 -*-
from cachy import CacheManager
from cachy.serializers import PickleSerializer
class Cache(CacheManager):
_serializers = {
'pickle': PickleSerializer()
}
| mit |
vknet/vk | VkNet/Model/SecureLevel.cs | 380 | using System;
using Newtonsoft.Json;
namespace VkNet.Model
{
/// <summary>
/// API Level object.
/// </summary>
[Serializable]
public class SecureLevel
{
/// <summary>
/// Level
/// </summary>
[JsonProperty("level")]
public int? LevelCode { get; set; }
/// <summary>
/// User ID
/// </summary>
... | mit |
drahosj/308labs | lab-08/Scheduler/libwavedrom/wavedrom.hpp | 1202 | /**
* @file wavedrom.hpp
* @author Jeramie Vens
* @date March 7, 2016: Initial version
* @brief This is the main include for the Wavedrom C++ Library
*
*/
#ifndef WAVEDROM_HPP
#define WAVEDROM_HPP
#include "../libwavedrom/group.hpp"
#include "../libwavedrom/signal.hpp"
/**
* @brief The W... | mit |
gaoce/TimeVis | tests/test_api.py | 1185 | import unittest
import os
import os.path
import json
# The folder holding the test data
data_path = os.path.dirname(__file__)
# Set the temporal config for testing
os.environ['TIMEVIS_CONFIG'] = os.path.join(data_path, 'config.py')
import timevis
class TestExperiment(unittest.TestCase):
def setUp(self):
... | mit |
igorcrevar/crewhogan | README.md | 2411 | crewhogan
=========
Hogan.js for nodejs and expressjs 3.x. Caches compiled templates and auto resolve all partials.
Fully tested. Run ````` mocha --reporter spec ````` in root to execute tests.
New: It's possible to use aliases for (predefined) template paths. This feature only works if
crewhogan is not used "expres... | mit |
NetOfficeFw/NetOffice | Examples/Access/C#/IExtensibility COMAddin Examples/TaskPane/SampleControl.cs | 5276 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Xml;
using System.Reflection;
using System.Windows.Forms;
using Microsoft.Win32;
using System.Runtime.InteropServices;
using NetOffice;
using Office = NetOffice.OfficeApi;
using Excel = NetOffice.AccessApi;
using NetOffice.AccessAp... | mit |
G43riko/Java | PathFinder/src/PathFinder_2/Main.java | 1742 | package PathFinder_2;
import java.awt.Dimension;
import java.awt.Frame;
import java.awt.Toolkit;
import javax.swing.JFrame;
public class Main extends JFrame{
private static final long serialVersionUID = 1L;
private final String TITLE = "ArenaGame";
private MouseEvents mouseEvent = new MouseEvents();
... | mit |
microsoftgraph/msgraph-sdk-java | src/main/java/com/microsoft/graph/requests/ActivityBasedTimeoutPolicyRequest.java | 6648 | // Template Source: BaseEntityRequest.java.tt
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------... | mit |
reviewboard/reviewboard | reviewboard/scmtools/tests/test_svn.py | 39691 | # coding=utf-8
import os
import unittest
from hashlib import md5
from django.conf import settings
from djblets.testing.decorators import add_fixtures
from kgb import SpyAgency
from reviewboard.diffviewer.diffutils import patch
from reviewboard.diffviewer.testing.mixins import DiffParserTestingMixin
from reviewboard.... | mit |
peppy/osu-new | osu.Game/Overlays/Profile/Sections/Historical/DrawableMostPlayedBeatmap.cs | 8261 | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Diagnostics;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
us... | mit |
bearframework/bearframework | docs/markdown/bearframework.app.assets.geturleventdetails.class.md | 664 | # BearFramework\App\Assets\GetURLEventDetails
```php
BearFramework\App\Assets\GetURLEventDetails {
/* Properties */
public string $filename
public array $options
public string|null $url
/* Methods */
public __construct ( string $filename , array $options [, string|null $url ] )
}
```
## Properties
##### pub... | mit |
ccwang002/2015Talk-DeepLearn-CNN | slides/index.html | 34137 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CNN From the Ground Up, Liang2</title>
<meta name="viewport" content="width=792, user-scalable=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!-- Icon -->
<link href="pics/favicon.png" rel="icon" type="image/x-icon" />
<!--... | mit |
brycelelbach/asl | documentation/html/structadobe_1_1empty__base.html | 7162 | <!--
Copyright 2005-2008 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
Some files are held under additional license.
Please see "http://stlab.adobe.com/licenses.html" for more information.
-->... | mit |
Noxalus/BulletML | Tests/Node/ActionNodeTest.cs | 1532 | using BulletML;
using BulletML.Enums;
using BulletML.Nodes;
using NUnit.Framework;
using Tests.Utils;
namespace Tests.Node
{
[TestFixture]
[Category("NodeTest")]
public class ActionNodeTest
{
[Test]
public void TestOneTop()
{
var filename = TestUtils.GetFilePath(@"Co... | mit |
euskadi31/go-server | request/validator.go | 3851 | // Copyright 2017 Axel Etcheverry. All rights reserved.
// Use of this source code is governed by a MIT
// license that can be found in the LICENSE file.
package request
import (
"encoding/json"
"fmt"
"io"
"io/ioutil"
"os"
"path/filepath"
"reflect"
"strings"
"github.com/go-openapi/spec"
"github.com/go-open... | mit |
ginach/msgraph-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/UserWithReferenceRequest.cs | 4908 | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | mit |
carrieguo/carrieguo.github.io | _includes/disques.html | 703 | <div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'andersonvom'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq ... | mit |
pakey/tool | README.md | 33 | # pakey
自己用的一些类库
| mit |
rentianhua/tsf_android | houseAd/HouseGo/src/com/dumu/housego/presenter/LoginUserInfoPresenter.java | 902 | package com.dumu.housego.presenter;
import com.dumu.housego.entity.UserInfo;
import com.dumu.housego.model.ILoginUserInfoModel;
import com.dumu.housego.model.IModel.AsycnCallBack;
import com.dumu.housego.model.LoginUserInfoModel;
import com.dumu.housego.view.ILoginUserInfoView;
public class LoginUserInfoPresenter imp... | mit |
easy-designs/easy_template_finder.ee_addon | README.md | 640 | Easy Template Finder
====================
An ExpressionEngine plugin that finds the template used by a given entry.
API
---
This plugin is most useful for dynamically embedding entries.
Here’s an example using a Playa field to control sidebars (stored in the `sidebars` custom field):
{exp:channel:entries
disabl... | mit |
SLIBIO/SLib | include/slib/ui/menu.h | 5043 | /*
* Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO>
*
* 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
* ... | mit |
1349279985/1349279985.github.io | archives/2019/11/index.html | 17096 | <!DOCTYPE html>
<html class="theme-next muse use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.9.0">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color... | mit |
pawelwan/STM32F407_SD_bootloader | README.md | 2075 | # Bootloader for STM32F407 (with SD card support)
This project is part of [Wakaama_Ethernet][1] project.
## Requirements
Project could be compiled both on Windows and Linux.
Firstly, you need to install:
+ for both Windows and Linux:
+ [GNU ARM Embedded Toolchain][2] ([tutorial][3])
+ only for Windows:
+ [GNU MCU... | mit |
raspberrypisig/raspberrypisig.github.io | _posts/2018-3-17-new-raspberry-pi.md | 920 | ---
title: New Raspberry Pi 3 B+ Model
image: https://www.raspberrypi.org/app/uploads/2018/03/770A5614-1617x1080.jpg
excerpt: New Raspberry Pi 3
description: rpi 3 b+
categories: raspbian
---

There has also been... | mit |
matias-pierobon/tonga | src/MPM/Bundle/AdminBundle/Entity/Persona.php | 12030 | <?php
namespace MPM\Bundle\AdminBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Security\Core\User\AdvancedUserInterface;
/**
* Persona
*
* @ORM\Table(name="personas")
* @ORM\Entity(repositoryClass="MPM\Bundle\AdminBundle\Entity\PersonaRepository")
* @ORM\InheritanceType("JOINED")
* @ORM\... | mit |
azu/codemirror-typewriter-scrolling | typewriter-scrolling.js | 1466 | /**
* LICENSE : MIT
*/
"use strict";
(function (mod) {
if (typeof exports == "object" && typeof module == "object") {
mod(require("codemirror"));
}
else if (typeof define == "function" && define.amd) {
define(["codemirror"], mod);
}
else {
mod(CodeMirror);
}
})(function... | mit |
huhumt/programming_pearls_practice | column002_aha_algorithm/search_anagram/search_anagram.c | 5513 | /***************************************************************************************
* This header file is an implementation for search_anagram
* Author: huhao
* Date: 2017.07.22
* Modification record:
*
***************************************************************************************/
#include <string... | mit |
martijnvermaat/wiggelen | setup.py | 2054 | import os
from setuptools import setup
import sys
if sys.version_info < (2, 6):
raise Exception('Wiggelen requires Python 2.6 or higher.')
install_requires = []
# Python 2.6 does not include the argparse module.
try:
import argparse
except ImportError:
install_requires.append('argparse')
# Python 2.6 do... | mit |
PlacidoLv/BDLTangram | TangramCategoryDemo/Pods/Target Support Files/Pods-TangramCategoryDemo/Pods-TangramCategoryDemo-resources.sh | 5664 | #!/bin/sh
set -e
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
case "${TARGETED_DEVICE_FAMILY}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
1)
... | mit |
dechoD/Telerik-Homeworks | Module II Homeworks/Data Bases/XML Parsing/P10TraverseDirectoryWithXDocElAttr/P10TraverseDirectoryWithXDocElAttr.cs | 1352 | namespace P10TraverseDirectoryWithXDocElAttr
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using System.Text;
using System.Threading.Tasks;
class P10TraverseDirectoryWithXDocElAttr
{
static void Main()
{
string d... | mit |
jump4r/ProceduralGenerationFinal | Audio Based Procedural Mesh/Assets/Scripts/OpenFileDialog.cs | 766 | using UnityEngine;
using System.Collections;
using UnityEditor;
using BMAPI.v1;
public class OpenFileDialog : MonoBehaviour {
private BMAPI.v1.Beatmap m_beatmap;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void SelectFile()
{... | mit |
dchbx/gluedb | developer_documents/WORK_ON_1095_NOTIFIER.md | 1352 | 1. ~~Observer~~
2. ~~Individual Updates - individual_change_set.rb~~
1. ~~person_dob_change_set.rb~~
2. ~~person_ssn_change_set.rb~~
3. ~~Enrollment Actions~~
1. ~~active_renewal.rb~~
2. ~~assistance_change.rb~~
3. ~~carrier_switch.rb~~
4. ~~carrier_switch_renewal.rb~~
5. ~~cobra_new_policy_reinsta... | mit |
tshlabs/tunic | doc/Makefile | 6767 | # Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command wa... | mit |
Nicolab/evemit | evemit.js | 4182 | /**
* @name Evemit
* @description Minimal and fast JavaScript event emitter for Node.js and front-end.
* @author Nicolas Tallefourtane <dev@nicolab.net>
* @link https://github.com/Nicolab/evemit
* @license MIT https://github.com/Nicolab/evemit/blob/master/LICENSE
*/
;(function() {
'use strict';
/**
* Eve... | mit |
arnaudroger/SimpleFlatMapper | sfm-poi/src/main/java/org/simpleflatmapper/poi/impl/JoinSheetMapper.java | 3746 | package org.simpleflatmapper.poi.impl;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.simpleflatmapper.map.ConsumerErrorHandler;
import org.simpleflatmapper.map.ContextualSourceFieldMapper;
import org.simpleflatmapper.map.SourceFieldMapper;
import org.simpleflatmapper.map... | mit |
rockborg/wellness_server | vfront/usr/script.example.php | 745 | <?php
/*
* This is a firt example of user script,
* used eg. from a special button
*
*/
// Add the conf file and first bootstrap
require_once("../inc/conn.php");
// remove the comment if the script is not public
// proteggi(); // authenticated users
// proteggi(2); // level 2 users
// proteggi(3); // level 3 us... | mit |
panur/kartalla | gtfs2json/generate.py | 6008 | #!/usr/bin/env python3
"""Download GTFS file and generate JSON file.
Author: Panu Ranta, panu.ranta@iki.fi, https://14142.net/kartalla/about.html
"""
import argparse
import datetime
import hashlib
import json
import logging
import os
import resource
import shutil
import sys
import tempfile
import time
import zipfile... | mit |
stevehook/stevehook.github.com | _posts/2018-07-24-javascript-spread.md | 3475 | ---
title: "JavaScript spread operator and Redux reducers"
layout: post
---
The JavaScript spread operator (`...`) can help us write more
declarative code for manipulating and copying objects.
## Redux and state mutation
Redux reducers are used to transform the application state from the old
state to a new state in ... | mit |
macmohan26/EagleFinancialServices | portfolio/static/css/portfolio.css | 980 |
h1 a {
color: #FCA205;
font-family: 'cursive';
}
/* Remove the navbar's default margin-bottom and rounded borders */
.navbar {
margin-bottom: 0;
border-radius: 0;
}
/* Set height of the grid so .sidenav can be 100% (adjust as needed) */
.row.content {
height: 450px
}
/* Set gray background color... | mit |
SergioChan/SCCatWaitingHUD | Pod/Classes/SCCatWaitingHUD.h | 2461 | //
// SCCatWaitingHUD.h
// SCCatWaitingHUD
//
// Created by Yh c on 15/11/13.
// Copyright © 2015年 Animatious. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UIViewExt.h"
#define ScreenWidth [[UIScreen mainScreen] bounds].size.width
#define ScreenHeight [[U... | mit |
hirofumi0810/tensorflow_end2end_speech_recognition | models/encoders/core/student_cnn_xe.py | 4732 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Student CNN encoder for XE training."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
from models.encoders.core.cnn_util import conv_layer, max_pool, batch_norm... | mit |
goodwinxp/Yorozuya | library/ATF/LPWSANSCLASSINFO.hpp | 270 | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_WSANSClassInfoA.hpp>
START_ATF_NAMESPACE
typedef _WSANSClassInfoA *LPWSANSCLASSINFO;
END_ATF_NAMESPACE
| mit |