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 |
|---|---|---|---|---|---|
# Load the rails application
require File.expand_path('../application', __FILE__)
# Initialize the rails application
ElasticoExample::Application.initialize!
| gneyal/ElasticoExample | config/environment.rb | Ruby | mit | 159 |
/*****************************************************************
* Copyright (c) 2005 Tim de Jong, Brent Miszalski *
* *
* All rights reserved. *
* Distributed under the terms of the MIT License. *
****************************************************************... | HaikuArchives/BeTeX | Src/Headers/ColourView.h | C | mit | 911 |
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... | itohiro73/reladomo-sbt | src/main/scala/example/util/MariaDbConnectionManager.scala | Scala | mit | 2,008 |
# 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],
... | cysjonathan/coursemology2 | spec/factories/course_assessment_assessments.rb | Ruby | mit | 4,618 |
<?php
namespace Rails\ActiveRecord\Associations;
use Rails\ServiceManager\ServiceLocatorAwareTrait;
class Associations
{
use ServiceLocatorAwareTrait;
protected static $associationsByClass = [];
/**
* @var Loader
*/
protected static $loader;
/**
* Associations name =>... | railsphp/framework | src/Rails/ActiveRecord/Associations/Associations.php | PHP | mit | 5,766 |
---
uid: SolidEdgeAssembly.Configuration.Type
summary: Specifies the type of the object being referenced.
remarks:
---
| SolidEdgeCommunity/docs | docfx_project/apidoc/SolidEdgeAssembly.Configuration.Type.md | Markdown | mit | 123 |
//
// 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
... | arnaudWasappli/Calendar | CalendarLib/MGCMonthPlannerView.h | C | mit | 22,522 |
/* -*- 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... | ged/aurelia-semantic-ui | test/unit/elements/ui-icon_spec.js | JavaScript | mit | 4,822 |
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])
... | anduslim/codex | codex_project/actors/haversine.py | Python | mit | 554 |
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 ... | messenger4j/messenger4j | src/main/java/com/github/messenger4j/send/message/template/receipt/Item.java | Java | mit | 1,752 |
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<... | FelipeAvila/hallejava | HalleEJB/ejbModule/com/halle/facade/FriendFacade.java | Java | mit | 410 |
// 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... | Azure/azure-sdk-for-go | services/peering/mgmt/2020-10-01/peering/client.go | GO | mit | 4,814 |
//
// 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... | fosscellcet/drishticryptex2017 | assets/js/midi.js | JavaScript | mit | 40,433 |
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... | ppschweiz/MemberDatabase | Organigram/MemberService/ChangePassword.aspx.cs | C# | mit | 3,415 |
<html>
<head>
<meta charset="Shift_JIS">
</head>
<body>
±Ì¶Ì¶R[hÍShift_JIS<br>
^^OÍShift_JIS
</body>
</html> | rev84/uhauha_programming | 15/01_meta_charset_sjis_sjis.html | HTML | mit | 150 |
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... | Heigvd/Wegas | wegas-app/src/main/node/wegas-react-form/src/HOC/translatable.tsx | TypeScript | mit | 8,590 |
# -*- 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... | karesansui/karesansui | karesansui/gadget/guestby1currentsnapshot.py | Python | mit | 4,377 |
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()],
}
| brbrakus/adomis | rollup.config.js | JavaScript | mit | 204 |
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... | alexiusp/vc-manager | app/corps/models.ts | TypeScript | mit | 1,356 |
---
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... | volcanomapping/volcanomapping.github.io | _posts/volcanoes/2014-09-15-kelud.md | Markdown | mit | 1,857 |
<!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... | carlesbellver/carlesbellver.github.io | 2018/05/30/alberto-manguel-stevenson.html | HTML | mit | 6,034 |
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; | xareelee/gulp-on-rx | src/filterSinceSync.js | JavaScript | mit | 300 |
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... | steins024/projection-grid | spec/unit/column-shifter-spec.js | JavaScript | mit | 1,152 |
<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... | MrOnosa/DailyGoals | www/templates/tab-dailies.html | HTML | mit | 500 |
<?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... | macanhhuy/magento-module | app/code/local/Zipbit/Bitcoins/Model/Standard.php | PHP | mit | 399 |
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);
}... | imie-source/CDPN-N-05-SHARE | tests/testTennisRule/TennisRule/test/fr/imie/TennisRuleTest.java | Java | mit | 2,597 |
# 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):
... | mag6367/Cracking_the_Coding_Interview_Python_Solutions | chapter3/stack.py | Python | mit | 418 |
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... | Teleopti/Toggle.Net | code/Toggle.Net/IToggleChecker.cs | C# | mit | 375 |
---
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... | merenlab/web | software/anvio/help/7.1/programs/anvi-script-pfam-accessions-to-hmms-directory/index.md | Markdown | mit | 2,705 |
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... | mjurinic/AndroidWorkshop | app/src/main/java/org/foi/androidworkshop/adapters/PokemonAdapter.java | Java | mit | 1,685 |
<!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... | Tecnocreaciones/VzlaGovernmentTemplateDeveloperSeed | api/source-class-Gedmo.SoftDeleteable.HardRelationTest.html | HTML | mit | 170,606 |
<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... | BlakeTurner/nobots | app/views/_form.html | HTML | mit | 2,117 |
<?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... | France-ioi/login-module | app/LoginModule/LTI/Tool/LTI_Tool_Consumer.php | PHP | mit | 7,122 |
body {
background-color: #333;
}
main {
height: 100vh;
}
| bbmoz/gochu | client/src/index.css | CSS | mit | 62 |
<?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->... | syntacticNaCl/budgeit | app/Transaction.php | PHP | mit | 534 |
---
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... | mlr-org/mlr-org.github.io | _posts/2016-10-20-Paper-published-mlr-Machine-Learning-in-R.md | Markdown | mit | 1,938 |
<?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... | glensc/php-Propel2 | tests/Propel/Tests/Common/Config/Loader/JsonFileLoaderTest.php | PHP | mit | 2,953 |
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
| cyril/arukamo.rb | test/test_object.rb | Ruby | mit | 191 |
---
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... | nikhilrajaram/nikhilrajaram.github.io | instructors/Patricia_Ann_Mcdonald.md | Markdown | mit | 1,126 |
#!/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)... | imakin/PersonalAssistant | Fundkeep/modul/b__main_backu.py | Python | mit | 2,347 |
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 ... | DavidEGrayson/ruby-usb-pro | lib/ruby-usb-pro/device.rb | Ruby | mit | 2,250 |
/**
*/
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... | catedrasaes-umu/NoSQLDataEngineering | projects/es.um.nosql.streaminginference/src/es/um/nosql/streaminginference/NoSQLSchema/impl/PrimitiveTypeImpl.java | Java | mit | 3,672 |
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){
... | mikemey01/Markets | app/src/main/java/com/chariotinstruments/markets/CalcRSI.java | Java | mit | 2,899 |
<!-- 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... | SamsungSDS-Contest/2017Guide | docs/JAVA/html/functions_vars_n.html | HTML | mit | 7,660 |
module Chotu
VERSION = "0.0.1"
end
| nishantmodak/chotu | lib/chotu/version.rb | Ruby | mit | 37 |
'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 ... | npolar/npdc-indicator | src/indicator-timeseries/TimeseriesShowController.js | JavaScript | mit | 3,741 |
@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... | rentpath/react-ui | stories/theme/core/Responsive.css | CSS | mit | 998 |
<?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... | wariox3/zikmont | src/zikmont/ContabilidadBundle/DependencyInjection/zikmontContabilidadExtension.php | PHP | mit | 897 |
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... | borrob/Meterstanden | src/main/java/meterstanden/domain/JaaroverzichtDomain.java | Java | mit | 1,867 |
<!-- 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" ... | ComplexRefined/blog | _includes/nav.html | HTML | mit | 1,483 |
<!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">
<... | vdtodorov93/StorageMerindjei | StorageMerindjei/src/main/webapp/WEB-INF/html/materials.html | HTML | mit | 3,144 |
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... | urbit/urbit | pkg/interface/src/views/landscape/components/Home/Post/PostFlatFeed.tsx | TypeScript | mit | 5,543 |
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
| joshblour/nested_store_attributes | test/dummy/db/migrate/20141016114846_create_people.rb | Ruby | mit | 188 |
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... | solwalters/leadclock | mysql/one-step-build.sql | SQL | mit | 616 |
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',... | nykma/npg | test/config-test.js | JavaScript | mit | 440 |
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) == '... | nolink/algorithm | Leetcode/N008atoi.c | C | mit | 1,406 |
# 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... | KT26/PythonCourse | 1. Getting Started/11.py | Python | mit | 322 |
# 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... | joshfrench/radiant | lib/radiant/pagination/link_renderer.rb | Ruby | mit | 1,236 |
# -*- coding: utf-8 -*-
from cachy import CacheManager
from cachy.serializers import PickleSerializer
class Cache(CacheManager):
_serializers = {
'pickle': PickleSerializer()
}
| sdispater/orator-cache | orator_cache/cache.py | Python | mit | 197 |
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>
... | vknet/vk | VkNet/Model/SecureLevel.cs | C# | mit | 380 |
/**
* @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... | drahosj/308labs | lab-08/Scheduler/libwavedrom/wavedrom.hpp | C++ | mit | 1,202 |
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):
... | gaoce/TimeVis | tests/test_api.py | Python | mit | 1,185 |
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... | igorcrevar/crewhogan | README.md | Markdown | mit | 2,411 |
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... | NetOfficeFw/NetOffice | Examples/Access/C#/IExtensibility COMAddin Examples/TaskPane/SampleControl.cs | C# | mit | 5,276 |
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();
... | G43riko/Java | PathFinder/src/PathFinder_2/Main.java | Java | mit | 1,742 |
// 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.
// ------------------------------------... | microsoftgraph/msgraph-sdk-java | src/main/java/com/microsoft/graph/requests/ActivityBasedTimeoutPolicyRequest.java | Java | mit | 6,648 |
# 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.... | reviewboard/reviewboard | reviewboard/scmtools/tests/test_svn.py | Python | mit | 39,691 |
// 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... | peppy/osu-new | osu.Game/Overlays/Profile/Sections/Historical/DrawableMostPlayedBeatmap.cs | C# | mit | 8,261 |
# 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... | bearframework/bearframework | docs/markdown/bearframework.app.assets.geturleventdetails.class.md | Markdown | mit | 664 |
<!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" />
<!--... | ccwang002/2015Talk-DeepLearn-CNN | slides/index.html | HTML | mit | 34,137 |
<!--
Copyright 2005-2008 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
Some files are held under additional license.
Please see "http://stlab.adobe.com/licenses.html" for more information.
-->... | brycelelbach/asl | documentation/html/structadobe_1_1empty__base.html | HTML | mit | 7,162 |
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... | Noxalus/BulletML | Tests/Node/ActionNodeTest.cs | C# | mit | 1,532 |
// 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... | euskadi31/go-server | request/validator.go | GO | mit | 3,851 |
// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
/... | ginach/msgraph-sdk-dotnet | src/Microsoft.Graph/Requests/Generated/UserWithReferenceRequest.cs | C# | mit | 4,908 |
<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 ... | carrieguo/carrieguo.github.io | _includes/disques.html | HTML | mit | 703 |
# pakey
自己用的一些类库
| pakey/tool | README.md | Markdown | mit | 33 |
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... | rentianhua/tsf_android | houseAd/HouseGo/src/com/dumu/housego/presenter/LoginUserInfoPresenter.java | Java | mit | 902 |
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... | easy-designs/easy_template_finder.ee_addon | README.md | Markdown | mit | 640 |
/*
* 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
* ... | SLIBIO/SLib | include/slib/ui/menu.h | C | mit | 5,043 |
<!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... | 1349279985/1349279985.github.io | archives/2019/11/index.html | HTML | mit | 17,096 |
# 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... | pawelwan/STM32F407_SD_bootloader | README.md | Markdown | mit | 2,075 |
---
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... | raspberrypisig/raspberrypisig.github.io | _posts/2018-3-17-new-raspberry-pi.md | Markdown | mit | 920 |
<?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\... | matias-pierobon/tonga | src/MPM/Bundle/AdminBundle/Entity/Persona.php | PHP | mit | 12,030 |
/**
* 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... | azu/codemirror-typewriter-scrolling | typewriter-scrolling.js | JavaScript | mit | 1,466 |
/***************************************************************************************
* This header file is an implementation for search_anagram
* Author: huhao
* Date: 2017.07.22
* Modification record:
*
***************************************************************************************/
#include <string... | huhumt/programming_pearls_practice | column002_aha_algorithm/search_anagram/search_anagram.c | C | mit | 5,513 |
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... | martijnvermaat/wiggelen | setup.py | Python | mit | 2,054 |
#!/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)
... | PlacidoLv/BDLTangram | TangramCategoryDemo/Pods/Target Support Files/Pods-TangramCategoryDemo/Pods-TangramCategoryDemo-resources.sh | Shell | mit | 5,664 |
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... | dechoD/Telerik-Homeworks | Module II Homeworks/Data Bases/XML Parsing/P10TraverseDirectoryWithXDocElAttr/P10TraverseDirectoryWithXDocElAttr.cs | C# | mit | 1,352 |
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()
{... | jump4r/ProceduralGenerationFinal | Audio Based Procedural Mesh/Assets/Scripts/OpenFileDialog.cs | C# | mit | 766 |
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... | dchbx/gluedb | developer_documents/WORK_ON_1095_NOTIFIER.md | Markdown | mit | 1,352 |
# 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... | tshlabs/tunic | doc/Makefile | Makefile | mit | 6,767 |
/**
* @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... | Nicolab/evemit | evemit.js | JavaScript | mit | 4,182 |
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... | arnaudroger/SimpleFlatMapper | sfm-poi/src/main/java/org/simpleflatmapper/poi/impl/JoinSheetMapper.java | Java | mit | 3,746 |
<?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... | rockborg/wellness_server | vfront/usr/script.example.php | PHP | mit | 745 |
#!/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... | panur/kartalla | gtfs2json/generate.py | Python | mit | 6,008 |
---
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 ... | stevehook/stevehook.github.com | _posts/2018-07-24-javascript-spread.md | Markdown | mit | 3,475 |
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... | macmohan26/EagleFinancialServices | portfolio/static/css/portfolio.css | CSS | mit | 980 |
//
// 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... | SergioChan/SCCatWaitingHUD | Pod/Classes/SCCatWaitingHUD.h | C | mit | 2,461 |
#! /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... | hirofumi0810/tensorflow_end2end_speech_recognition | models/encoders/core/student_cnn_xe.py | Python | mit | 4,732 |
// 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
| goodwinxp/Yorozuya | library/ATF/LPWSANSCLASSINFO.hpp | C++ | mit | 270 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.