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 |
|---|---|---|---|---|---|
# DjangoSample
This is a sample Django project which samples how I organize and code a website.
Each function and class code contained in the repository was coded by me.
It is created for Python 3.6.
Side notes:
- The code is overcomplicated in a few places. The reasoning for that is to show some of the advanced to... | Tusky/DjangoSample | README.md | Markdown | mit | 1,193 |
module ValidatorIE
class StateAP
include ActiveModel::Validations
attr_accessor :number
validates :number, length: { minimum: 9, maximum: 9 }, numericality: true, presence: true
validate :number_should_code_state
validate :number_should_range_code
validate :number_should_mod11
... | rmomogi/validator_ie | lib/validator_ie/core/state_ap.rb | Ruby | mit | 1,328 |
# -*- coding: utf-8 -*-
tokens = [
'LPAREN',
'RPAREN',
'LBRACE',
'RBRACE',
'EQUAL',
'DOUBLE_EQUAL',
'NUMBER',
'COMMA',
'VAR_DEFINITION',
'IF',
'ELSE',
'END',
'ID',
'PRINT'
]
t_LPAREN = r"\("
t_RPAREN = r"\)"
t_LBRACE = r"\{"
t_RBRACE = r"\}"
t_EQUAL = r"\="
t_DOU... | pablogonzalezalba/a-language-of-ice-and-fire | lexer_rules.py | Python | mit | 1,138 |
using IoTHelpers.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Windows.Devices.I2c;
namespace IoTHelpers.I2c.Devices
{
public struct Acceleration
{
public double X { get; internal set; }
... | Dot-and-Net/IoTHelpers | Src/IoTHelpers/I2c/Devices/Adxl345Accelerometer.cs | C# | mit | 5,521 |
module.exports = function (grunt) {
// Define the configuration for all the tasks
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Configure a mochaTest task
mochaTest: {
test: {
options: {
reporter: 'spec',
... | prateekbhatt/testing-sinon | GruntFile.js | JavaScript | mit | 782 |
<!DOCTYPE html>
<html>
<head>
<base href="../../" />
<meta charset="utf-8" />
<script src="_ext/d3.v3.min.js"></script>
<script src="_ext/jquery-1.10.2.min.js"></script>
<script src="_ext/sha1.js"></script>
<script src="_ext/seedrandom-min.js"></script>
<script src="js/jlg_commons.js"></script>
<scrip... | jlguenego/ocpforum | test/animation/place_on_ring.html | HTML | mit | 3,971 |
<?php
//Names the page template for each section
/*
Template Name: Early College
*/
get_header(); ?>
<?php get_template_part( 'parts/banners' ); ?>
<div class="row">
<div class="container">
<?php // Gets the alert custom post type id for each sub page needing special announcement
$post_id = 5447;
$queried_post = get... | mattrhummel/GermannaCC-WPTheme | page-early-college.php | PHP | mit | 799 |
# Oracool
Oracool questions game
[follow me in twitter](https://twitter.com/Cuadraman)
| vasco3/Oracul | README.md | Markdown | mit | 89 |
import {
createEllipsisItem,
createFirstPage,
createLastItem,
createNextItem,
createPageFactory,
createPrevItem,
} from 'src/lib/createPaginationItems/itemFactories'
describe('itemFactories', () => {
describe('createEllipsisItem', () => {
it('"active" is always false', () => {
createEllipsisIte... | Semantic-Org/Semantic-UI-React | test/specs/lib/createPaginationItems/itemFactories-test.js | JavaScript | mit | 3,176 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18052
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | impurator/Fabulous-Moustache | ReactiveDocs/Reader_WinForms/Properties/Settings.Designer.cs | C# | mit | 1,078 |
#include <algorithm>
#include "GI/uvmapper.h"
UVMapper::UVMapper( glm::ivec2 size) :
m_size(size),
m_scale(0.f),
m_border(glm::vec2(1.)/glm::vec2(size))
{}
UVMapper::~UVMapper()
{}
void UVMapper::computeLightmapPack(std::vector<Object*> &obj)
{
m_obj = obj;
std::vector<Quadrilateral> m_quad;
... | XT95/PBGI | src/GI/uvmapper.cpp | C++ | mit | 4,909 |
import java.lang.IndexOutOfBoundsException;
public interface Sequence
{
public int size(); // Return number of elements in sequence.
public void addFirst(int e); // Insert e at the front of the sequence.
public void addLast(int e); // Insert e at the back of the sequence.
// Inserts an eleme... | adamjcook/cs27500 | exam1/problem15/Sequence.java | Java | mit | 646 |
{-# LANGUAGE BangPatterns, DataKinds, DeriveDataTypeable, FlexibleInstances, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Hadoop.Protos.YarnProtos.AMCommandProto (AMCommandProto(..)) where
import Prelude ((+), (/), (.))
import qualified Prelude as Prelude'
import qualified Data.Typeable... | alexbiehl/hoop | hadoop-protos/src/Hadoop/Protos/YarnProtos/AMCommandProto.hs | Haskell | mit | 2,466 |
<?php
// Autogenerated by Translator Builder
return [
'studies_level_5' => 'kurzfristige tertiäre Ausbildung',
'studies_level_6' => 'Bachelor oder Äquivalent',
'studies_level_7' => 'Magister oder Äquivalent',
'studies_level_8' => 'Doktor oder Äquivalent',
... | TalentedEurope/te-site | resources/lang/de/reg-profile.php | PHP | mit | 23,259 |
-- module Day04 (solveDay04) where
module Day04 where
import Control.Monad (mapM_)
import Data.Char (chr, isDigit, ord)
import Data.Function (on)
import Data.List (group, nub, sort, sortBy)
import Data.List.Split (splitOn, wordsBy)
isSquareBracket :: C... | justanotherdot/advent-linguist | 2016/Haskell/AdventOfCode/src/Day04.hs | Haskell | mit | 1,928 |
# SDE-R-Package
Assignment 1 for Software Deployment and Evolution R package
Contains just a simple fibonacci function fib(len)
fib() accepts 1 integer parameter to specify the length of the fibonacci sequence.
| FeliciousX/SDE-R-Package | README.md | Markdown | mit | 213 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Coq bench</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet... | coq-bench/coq-bench.github.io-old | clean/Linux-x86_64-4.01.0-1.2.0/unstable/8.4.5/contrib:maths/dev/2015-01-30_09-41-42.html | HTML | mit | 6,886 |
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
/**
* 1. Change the default font family in all browsers (opinionated).
* 2. Correct the line height in all browsers.
* 3. Prevent adjustments of font size after orientation changes in
* IE on Windows Phone and in iOS.
*/
/* Document
... | kipr2395/dev | parallax/css/main.css | CSS | mit | 9,762 |
module Multichain
describe Client do
let(:client) { described_class.new }
it 'knows about its asset' do
expect(client.asset).to eq 'odi-coin'
end
context 'send a coin' do
it 'sends to a simple address', :vcr do
expect(client.send_asset 'stu', 1).to eq (
{
rec... | theodi/multichain-client | spec/multichain/send_data_spec.rb | Ruby | mit | 2,158 |
// The MIT License (MIT)
//
// Copyright (c) 2014-2017, Institute for Software & Systems Engineering
//
// 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 wit... | maul-esel/ssharp | Source/SafetySharp/Runtime/SafetySharpRuntimeModel.cs | C# | mit | 9,662 |
import pyqtgraph as pg
from pyqtgraph.Qt import QtGui, QtCore
import numpy#
from pyqtgraph.parametertree import Parameter, ParameterTree, ParameterItem, registerParameterType
class FeatureSelectionDialog(QtGui.QDialog):
def __init__(self,viewer, parent):
super(FeatureSelectionDialog, self).__init... | timoMa/vigra | vigranumpy/examples/boundary_gui/bv_feature_selection.py | Python | mit | 3,993 |
/**
* App
*/
'use strict';
// Base setup
var express = require('express');
var app = express();
var path = require('path');
var bodyParser = require('body-parser');
var logger = require('morgan');
var mongoose = require('mongoose');
var config = require('./config');
var routes = require('./routes/index');
var val... | lucianot/dealbook-node-api | app.js | JavaScript | mit | 2,082 |
$(document).ready(function(){
'use strict';
//Turn off and on the music
$("#sound-control").click(function() {
var toggle = document.getElementById("sound-control");
var music = document.getElementById("music");
if(music.paused){
music.play();
$("#sound-control").attr('src', 'img/ljud_pa.png');
... | emmb14/MegaSlider | js/megaslider.js | JavaScript | mit | 3,148 |
/*
* Manifest Service
*
* Copyright (c) 2015 Thinknode Labs, LLC. All rights reserved.
*/
(function() {
'use strict';
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Service
function loggerService() {
/* jshint validthis: true */
this.logs = [];
/**
... | thinknode/desktop | src/services/logger.js | JavaScript | mit | 930 |
/*
* Copyright (C) 2015-2018 Freie Universität Berlin
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup boards_stk3600
* @{
*
* @file
* @brief Configuration of ... | basilfx/EFM2Riot | dist/boards/stk3600/include/periph_conf.h | C | mit | 5,600 |
# ninjasphere-limitlessled
Limitlessled driver for NinjaSphere
**How to start the driver:**
1. Download the sources and do **'make target'**. This will generate **'driver-limitlessled'** folder with driver binary compatible with sphere architecture along with some other necessary files
2. Make sure these directorie... | kteza1/ninjasphere-limitlessled | README.md | Markdown | mit | 807 |
from engine.api import API
from engine.utils.printing_utils import progressBar
from setup.utils.datastore_utils import repair_corrupt_reference, link_references_to_paper
def remove_duplicates_from_cited_by():
print("\nRemove Duplicates")
api = API()
papers = api.get_all_paper()
for i, paper in enumer... | thomasmauerhofer/search-engine | src/setup/check_for_currupt_references.py | Python | mit | 2,124 |
import { NgModule, Provider } from '@angular/core';
import { NgxsModule } from '@ngxs/store';
import { AppSoundcloudService } from './soundcloud.service';
import { AppSoundcloudState } from './soundcloud.store';
import { AppSoundcloudApiService } from './soundcloud-api.service';
export const soundcloudStoreModuleProv... | rfprod/dnbhub | src/app/store/soundcloud/soundcloud.module.ts | TypeScript | mit | 511 |
package com.tkmdpa.taf.definitions.pantheon;
import com.tkmdpa.taf.steps.pantheon.UserAccountSteps;
import net.thucydides.core.annotations.Steps;
import org.jbehave.core.annotations.Given;
import org.jbehave.core.annotations.Then;
import org.jbehave.core.annotations.When;
public class UserAccountDefinition {
@St... | ticketmaster-api/ticketmaster-api.github.io | tests/serenity/src/test/java/com/tkmdpa/taf/definitions/pantheon/UserAccountDefinition.java | Java | mit | 1,145 |
// $Id: CurrentFunction.java 96 2005-02-28 21:07:29Z blindsey $
package com.blnz.xsl.expr;
import com.blnz.xsl.om.*;
/**
* Represents the XSLT Function: node-set current()
*
* The current function returns a node-set that has the
* current node as its only member. For an outermost
* expression (an expression n... | blnz/palomar | src/main/java/com/blnz/xsl/expr/CurrentFunction.java | Java | mit | 874 |
export { default } from './src/layout-container.vue';
| wisedu/bh-mint-ui2 | packages/layout-container/index.js | JavaScript | mit | 54 |
EXHIBIT 2.2(b)
Doc.Ti=Nonnegotiable Promissory Note
Head.Notice.sec=This {_Promissory_Note} has been issued without registration or qualification under the Securities Act of 1933, as amended, and applicable state securities laws and may not be sold, transferred, or otherwise disposed of without (A) such registration ... | CommonAccord/Cmacc-Org | Doc/F/US/00/Agt/Acquire/Shares/MSPA/Annex/Note/0.md | Markdown | mit | 8,299 |
@extends('masterPage')
@section('content')
<div class="box">
<div class="box-header"><h3 class="box-title"> Page3</h3></div>
<!-- /.box-header -->
<div class="box-body">
<form role="form">
<div class="box-body">
<div class="form-group">
... | benAsiri/divisionalSecSystem | resources/views/HR/yearly_Increment_Calc/YICPage3.blade.php | PHP | mit | 1,113 |
# celegans
An implementation of the celegans connectome in Go.
Based on @interintel's [work](http://interintelligence.org/archCE.htm) ([Python code](https://github.com/Connectome/GoPiGo))
One go routine is kicked off per Neuron, which listens indefinitely for incoming "signals" from other Neurons.
Neurons are model... | mattbaker/celegans | README.md | Markdown | mit | 697 |
<tmpl-metadata parentId="demo" parentTitle="Demo" sort="1" id="basic" title="basic" desc=""/>
<layout-use template="${data.layoutPath}"
project-name="${data.projectName}"
parent-id="${data.metadata.parentId}"
page-title="${data.metadata.title}"
page-id="${data.metadata.i... | ax5ui/ax5docs | _src_/ax5ui-binder/demo/index.html | HTML | mit | 6,209 |
require 'rails_helper'
def create_service(student, educator)
FactoryGirl.create(:service, {
student: student,
recorded_by_educator: educator,
provided_by_educator_name: 'Muraki, Mari'
})
end
describe StudentsController, :type => :controller do
describe '#show' do
let!(:school) { FactoryGirl.cre... | erose/studentinsights | spec/controllers/students_controller_spec.rb | Ruby | mit | 19,225 |
/*
*@author jaime P. Bravo
*/
$(document).ready(function () {
//forms general
function sendDataWithAjax(type, url, data) {
return $.ajax({
type: type,
url: url,
data: data,
dataType: 'json',
beforeSend: function () {
console... | fireflex/matters | assets/js/general.js | JavaScript | mit | 2,874 |
//
// ViewController.h
// DRImagePlacerholerHelperExample
//
// Created by Albert on 11.08.13.
// Copyright (c) 2013 Albert Schulz. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
{
IBOutlet UIImageView *imageView1;
IBOutlet UIImageView *imageView2;
IBOutle... | albertschulz/DRImagePlaceholderHelper | DRImagePlaceholderHelperExample/ViewController.h | C | mit | 393 |
<?php
class Ess_M2ePro_Sql_Upgrade_v6_4_14__v6_5_0_16_AllFeatures extends Ess_M2ePro_Model_Upgrade_Feature_AbstractFeature
{
//########################################
public function execute()
{
$tablesList = array(
'processing_request',
'product_change',
'lock... | portchris/NaturalRemedyCompany | src/app/code/community/Ess/M2ePro/sql/Upgrade/v6_4_14__v6_5_0_16/AllFeatures.php | PHP | mit | 1,746 |
var LedgerRequestHandler = require('../../helpers/ledgerRequestHandler');
/**
* @api {post} /gl/:LEDGER_ID/add-filter add filter
* @apiGroup Ledger.Utils
* @apiVersion v1.0.0
*
* @apiDescription
* Add a filter for caching balances. This will speed up balance
* requests containing a matching filters.
*
* @... | electronifie/accountifie-svc | lib/routes/gl/addFilter.js | JavaScript | mit | 1,756 |
/* types.h
*
* Copyright (C) 2006-2015 wolfSSL Inc.
*
* This file is part of wolfSSL. (formerly known as CyaSSL)
*
* wolfSSL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Lice... | LordOfDorks/RazorClamDICE | Middlewares/WolfSSL-3.8.0/wolfssl/wolfcrypt/types.h | C | mit | 11,616 |
from polyphony import testbench
def g(x):
if x == 0:
return 0
return 1
def h(x):
if x == 0:
pass
def f(v, i, j, k):
if i == 0:
return v
elif i == 1:
return v
elif i == 2:
h(g(j) + g(k))
return v
elif i == 3:
for m in range(j):
... | ktok07b6/polyphony | tests/if/if28.py | Python | mit | 922 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link href="css/admin.css" type="text/css" rel="stylesheet">
<script src="js/main/jquery.js"></script>
| alexander-shibisty/subscribeonme | administrator/blocks/main/header.php | PHP | mit | 180 |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>... | BuzzAcademy/idioms-moe-unformatted-data | all-data/10000-10999/10622-22.html | HTML | mit | 1,588 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="Craig McClellan" name="author">
<title>Craig McClellan - T4023026184 </title>
<link href="... | craigwmcclellan/craigwmcclellan.github.io | _site/2009/09/15/t4023026184.html | HTML | mit | 4,825 |
package postactions
import (
"net/http"
"github.com/fragmenta/auth/can"
"github.com/fragmenta/mux"
"github.com/fragmenta/server"
"github.com/fragmenta/view"
"github.com/fragmenta/fragmenta-cms/src/lib/session"
"github.com/fragmenta/fragmenta-cms/src/posts"
"github.com/fragmenta/fragmenta-cms/src/users"
)
//... | fragmenta/fragmenta-cms | src/posts/actions/update.go | GO | mit | 2,058 |
/*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, O... | pelger/Kafkaesque | lib/message/request/describeGroups.js | JavaScript | mit | 1,146 |
#ifndef _SPACEWAR_H
#define _SPACEWAR_H
#define WIN32_LEAN_AND_MEAN
#include "game.h"
class Spacewar : public Game {
private:
public:
// Constructor
Spacewar();
//Destructor
virtual ~Spacewar();
// Initialize the game
void initialize(HWND hwnd);
void update(); // Pure virtual functions f... | AlphaTRL/GPP-2016-17 | Week 2/Workshop4_GameEngine/spacewar.h | C | mit | 474 |
package main.habitivity.services;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
* Created by Shally on 2017-12-01.
*/
public class Connectivity... | CMPUT301F17T20/Habitivity | app/src/main/java/main/habitivity/services/ConnectivityService.java | Java | mit | 1,916 |
#!/bin/bash
mkdir -p ~/timelinelogs
cd /timeline/git
echo "create virtual environment"
virtualenv -p /usr/bin/python3.5 ~/venv
echo "activate virtual environment"
source ~/venv/bin/activate
echo "install requirements using pip"
pip install -r requirements.txt
echo "start timeline example"
python3.5 example.py > ~/... | dumfug/timeline | vagrant/config/shell/start_backend.sh | Shell | mit | 376 |
<link type="text/css" rel="stylesheet" href="/static/css/main.css">
<link type="text/css" rel="stylesheet" href="/static/css/bgs.css">
<link type="text/css" rel="stylesheet" href="/static/css/graphs.css">
<link type="text/css" rel="stylesheet" media="all" href="{{g.s3_host}}/static/css/libs/font-awesome/css/font-awesom... | DataViva/dataviva-site | dataviva/templates/graphs/css_assets.html | HTML | mit | 498 |
<?php
/* @WebProfiler/Collector/twig.html.twig */
class __TwigTemplate_793d44b82b00b11058566fd43a938457dfbf8bd2ba53b4f3f33086ff7eecb7a9 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate(... | peterpangl/sso-project | var/cache/dev/twig/3c/3c143050536fee4bbe81d2075bb2515ac85282e72e70471d06862fa83c81a660.php | PHP | mit | 15,225 |
<?php
namespace Qafoo\ChangeTrack\FISCalculator;
class TransactionDatabase
{
/**
* Row based data set
*
* @var array
*/
private $data;
/**
* Items that occur in this data base
*
* @var string[]
*/
private $items = array();
/**
* @param array $data
... | Qafoo/changetrack | src/main/Qafoo/ChangeTrack/FISCalculator/TransactionDatabase.php | PHP | mit | 1,795 |
// @flow
/* **********************************************************
* File: Footer.js
*
* Brief: The react footer component
*
* Authors: Craig Cheney, George Whitfield
*
* 2017.04.27 CC - Document created
*
********************************************************* */
import React, { Component } from 'react';
import ... | TheCbac/MICA-Desktop | app/components/Footer.js | JavaScript | mit | 1,554 |
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import {Typography, Popover, Input, Select, Checkbox} from 'antd';
import {DataInspectorSetValue} from './DataInsp... | facebook/flipper | desktop/flipper-plugin/src/ui/data-inspector/DataDescription.tsx | TypeScript | mit | 18,166 |
// (C) Copyright John Maddock 2001.
// (C) Copyright Douglas Gregor 2001.
// (C) Copyright Peter Dimov 2001.
// (C) Copyright Aleksey Gurtovoy 2003.
// (C) Copyright Beman Dawes 2003.
// (C) Copyright Jens Maurer 2003.
// Use, modification and distribution are subject to the
// Boost Software License, Ve... | digiworks/libcutl | cutl/details/boost/config/compiler/comeau.hpp | C++ | mit | 1,644 |
import os
import sys
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(BASE_DIR)
sys.path.append(os.path.dirname(BASE_DIR))
from global_variables import *
from evaluation_helper import *
cls_names = g_shape_names
img_name_file_list = [os.path.join(g_real_images_voc12val_det_bbox_folder, name+'.tx... | ShapeNet/RenderForCNN | view_estimation/run_evaluation.py | Python | mit | 932 |
using System;
using Windows.ApplicationModel.Activation;
using Windows.UI.Core;
using Windows.UI.Input;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Navigation;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=402352&c... | AndrewGaspar/Podcasts | Podcasts/Chrome.xaml.cs | C# | mit | 6,129 |
/**
* Auction collection
*/
'use strict';
var Model = require('../models/auction_model.js');
var Collection = require('tungstenjs/adaptors/backbone').Collection;
var AuctionCollection = Collection.extend({
model: Model
});
module.exports = AuctionCollection; | marielb/roadshow | app/public/js/collections/auction_collection.js | JavaScript | mit | 264 |
# Public: Executes a block of code and retries it up to `tries` times if an
# exception was raised.
#
# tries - An Integer (default: Float::Infinity).
# exceptions - A list of Exceptions (default: StandardError).
#
# Examples
#
# class Wrapper
# include Bonehead
#
# def login(username, password)
# ... | britishtea/bonehead | lib/bonehead.rb | Ruby | mit | 813 |
// Regular expression that matches all symbols in the Devanagari Extended block as per Unicode v6.0.0:
/[\uA8E0-\uA8FF]/; | mathiasbynens/unicode-data | 6.0.0/blocks/Devanagari-Extended-regex.js | JavaScript | mit | 121 |
#include "mdl_file.hpp"
MDLFile::MDLFile(std::string file_path): File(std::move(file_path))
{this->update();}
bool MDLFile::exists_tag(const std::string& tag_name) const
{
return this->parsed_tags.find(tag_name) != this->parsed_tags.end();
}
bool MDLFile::exists_sequence(const std::string& sequence_name) const
{
r... | Harrand/MDL | src/mdl_file.cpp | C++ | mit | 6,776 |
package outbound_test
import (
"context"
"testing"
"v2ray.com/core"
"v2ray.com/core/app/policy"
. "v2ray.com/core/app/proxyman/outbound"
"v2ray.com/core/app/stats"
"v2ray.com/core/common/net"
"v2ray.com/core/common/serial"
"v2ray.com/core/features/outbound"
"v2ray.com/core/proxy/freedom"
"v2ray.com/core/tr... | panzer13/v2ray-core | app/proxyman/outbound/handler_test.go | GO | mit | 2,146 |
/*
** my_isneg.c for my_isneg in /home/soto_a/rendu/Piscine_C_J03
**
** Made by adam kaso
** Login <soto_a@epitech.net>
**
** Started on Wed Oct 1 13:22:15 2014 adam kaso
** Last update Fri Dec 5 14:48:05 2014 Kaso Soto
*/
#include "my.h"
int my_isneg(int n)
{
if (n >= 0)
{
my_putchar('P');
}
... | KASOGIT/bsq | lib/src/my_isneg.c | C | mit | 377 |
# -*- coding: utf-8 -*-
# Copyright (c) 2013, Theo Crevon
# Copyright (c) 2013, Greg Leclercq
#
# See the file LICENSE for copying permission.
from boto.swf.exceptions import SWFResponseError
from swf.constants import REGISTERED
from swf.querysets.base import BaseQuerySet
from swf.models import Domain
from swf.model... | botify-labs/python-simple-workflow | swf/querysets/workflow.py | Python | mit | 25,485 |
---
layout: post
title: Java EE 8 and GlassFish 5.0 Released!
excerpt: We are pleased to announce the general availability of GF 5.0, the Java EE 8 RI...
---
We are pleased to announce the general availability of GlassFish 5.0, the Java EE 8 Open Source Reference Implementation and that the Java EE 8 umbrella specific... | delabassee/delabassee.github.io | _posts/2017-09-21-EE8-GF5-Released.md | Markdown | mit | 3,854 |
module DataTablesController
def self.included(cls)
cls.extend(ClassMethods)
end
module ClassMethods
def datatables_source(action, model, *attrs)
modelCls = Kernel.const_get(model.to_s.capitalize)
modelAttrs = modelCls.new.attributes
columns = []
modelAttrs.each_key { |k| ... | chrismoos/datatables | lib/data_tables_controller.rb | Ruby | mit | 3,255 |
# 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::Resources::Mgmt::V2019_03_01
module Models
#
# Deployment operation information.
#
class DeploymentOperation
include ... | Azure/azure-sdk-for-ruby | management/azure_mgmt_resources/lib/2019-03-01/generated/azure_mgmt_resources/models/deployment_operation.rb | Ruby | mit | 1,938 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ch... | s5s5/BegVCSharp | Chapter05/Ch05Ex02/Ch05Ex02/Properties/AssemblyInfo.cs | C# | mit | 1,392 |
.hangStyle {
font-family: 'Shadows Into Light', cursive;
}
.repoText {
margin-top: 10px;
}
.toast {
background-color: red;
color: black;
}
| abdulhannanali/hangman | css/styles.css | CSS | mit | 147 |
# EANN - Evolutional artificial neuronal Network
and learning java...
[](https://travis-ci.org/ufobat/EANN)[](https://codecov.io/github/ufobat/EANN)
| ufobat/EANN | README.md | Markdown | mit | 294 |
#Requires -Version 3.0
. "$($PSScriptRoot)\..\..\TestInitialize.ps1"
Describe 'New-SPClientContentType' {
Context 'Success' {
Context 'Site Content Type' {
AfterEach {
try {
$Web = $SPClient.ClientContext.Site.OpenWebById($SPClient.TestConfig.WebId)
... | karamem0/SPClient | source/SPClient.Tests/functions/SPClientContentType/New-SPClientContentType.Tests.ps1 | PowerShell | mit | 5,851 |
# Standalone Cross-Compile Toolchain of AndroidNDK
## Files
* `config.mk`: A configuration file for the installation of standalone cross-compile toolchain.
* `toolchain`: A directory containing the generated standalone cross-compile toolchain.
## How to Setup
1. Edit `config.mk` to set three variables `ANDROID_NDK_... | tell/xc | android/ndk-standalone/README.md | Markdown | mit | 644 |
# frozen_string_literal: true
require 'spec_helper'
describe Promo do
let(:promo) { build(:promo, promoter_type: 'discount') }
subject { promo }
describe 'validations' do
it { is_expected.to validate_presence_of :name }
it { is_expected.to validate_presence_of :type }
it { is_expected.to validate_p... | smartvpnbiz/smartvpn-billing | spec/models/promo_spec.rb | Ruby | mit | 2,452 |
/*
* Copyright (c) 2017 Jason Waataja
*
* 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, merge, publi... | JasonWaataja/DotFileManager | src/dependencyeditor.h | C | mit | 1,690 |
// File auto generated by STUHashTool
using static STULib.Types.Generic.Common;
namespace STULib.Types.Dump {
[STU(0xBE0222CD)]
public class STU_BE0222CD : STU_3DD6C6E9 {
[STUField(0x982D7B62)]
public STUVec3 m_982D7B62;
}
}
| kerzyte/OWLib | STULib/Types/Dump/STU_BE0222CD.cs | C# | mit | 254 |
#include "../../src/scene_graph/pnodefactory.h"
| lihw/paper3d | include/Paper3D/pnodefactory.h | C | mit | 48 |
<div class='container'>
<div class='row text-center'>
<img src="/img/500Err.jpg" style="height:50%; width:50%;"></img>
<h1><b>Error 500: Yikes!</h1></b>
<i>{{#if error}} {{error}} {{/if}}</i>
</div>
</div> | Tang8330/makeadrink | views/500.html | HTML | mit | 221 |
# TaskTreeBonsai
npm install
npm start | itiya/TaskTreeBonsai | README.md | Markdown | mit | 38 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{{ title }}</title>
{% include "chartflo/dashboards/head.html" %}
</head>
<body>
<div id="app">
{% block header %}{% endblock %}
{% block con... | synw/django-chartflo | chartflo/templates/chartflo/dashboards/base.html | HTML | mit | 443 |
import tensorflow as tf
from ocnn import *
# octree-based resnet55
def network_resnet(octree, flags, training=True, reuse=None):
depth = flags.depth
channels = [2048, 1024, 512, 256, 128, 64, 32, 16, 8]
with tf.variable_scope("ocnn_resnet", reuse=reuse):
data = octree_property(octree, property_name="feature... | microsoft/O-CNN | tensorflow/script/network_cls.py | Python | mit | 2,557 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>响应式的列重置</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="../../js/lib/bootstrap/dist/css/bootstrap.min.css">
<style>
body {
font-family: G... | GreenMelon/Bootstrap-Notes | app/html/GridSystem 网格系统/GridSystem-02 响应式的列重置.html | HTML | mit | 3,031 |
#nullable disable
using System;
using System.Globalization;
using System.IO;
using Core2D.Model;
using Core2D.ViewModels;
using Core2D.ViewModels.Data;
using CSV = CsvHelper;
namespace Core2D.Modules.TextFieldWriter.CsvHelper
{
public sealed class CsvHelperWriter : ITextFieldWriter<DatabaseViewModel>
{
... | Core2D/Core2D | src/Core2D/Modules/TextFieldWriter.CsvHelper/CsvHelperWriter.cs | C# | mit | 1,976 |
package de.espend.idea.shopware.reference.provider;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.codeInsight.lookup.LookupElementBuilder;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiPolyVariantReferenceBase;
import com.intellij.psi.ResolveResult;
import com.jetbrains.php... | Haehnchen/idea-php-shopware-plugin | src/main/java/de/espend/idea/shopware/reference/provider/StringReferenceProvider.java | Java | mit | 1,454 |
<?php namespace Fes\Blog\Models;
use Model;
use Schema;
/**
* Category Model
*/
class Category extends Model
{
/**
* @var string The database table used by the model.
*/
public $table = 'rainlab_blog_categories';
/**
* @var array Guarded fields
*/
protected $guarded = ['*'];
... | FrontEndStudio/oc-blog-plugin | models/Category.php | PHP | mit | 869 |
#ifndef DT3_SCRIPTINGKEYFRAMESMATERIALRESOURCE
#define DT3_SCRIPTINGKEYFRAMESMATERIALRESOURCE
//==============================================================================
///
/// File: ScriptingKeyframesMaterialResource.hpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
/... | pakoito/DT3 | DT3Core/Scripting/ScriptingKeyframesMaterialResource.hpp | C++ | mit | 3,534 |
package com.algorithms.sorting;
public class MergeBU {
public static void sort(Comparable[] a) {
Comparable[] aux = new Comparable[a.length];
int N = a.length;
for (int size = 1; size < N; size = size*2) {
for (int i = 0; i < N; i = i + size) merge(a, aux, i, i+size-1, Math.m... | SkullTech/algorithms-princeton | Algorithms/src/sorting/MergeBU.java | Java | mit | 1,193 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>H+ 后台主题UI框架 - 百度ECHarts</title>
<meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
<meta name="description" content="H+是一个完全响应式,基于Bootstrap3最新... | hyper-xx/go-blog | static/Hplus-v.4.1.0/graph_echarts.html | HTML | mit | 16,450 |
<!DOCTYPE html>
<html lang="en">
<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="A Social Media Analytics Platform that lets you advertise on the Social Media Acco... | codegeek007/ic2 | index.html | HTML | mit | 15,462 |
// All code points in the `Hatran` script as per Unicode v10.0.0:
[
0x108E0,
0x108E1,
0x108E2,
0x108E3,
0x108E4,
0x108E5,
0x108E6,
0x108E7,
0x108E8,
0x108E9,
0x108EA,
0x108EB,
0x108EC,
0x108ED,
0x108EE,
0x108EF,
0x108F0,
0x108F1,
0x108F2,
0x108F4,
0x108F5,
0x108FB,
0x108FC,
0x108FD,
0x108FE,
0... | mathiasbynens/unicode-data | 10.0.0/scripts/Hatran-code-points.js | JavaScript | mit | 329 |
#!/usr/bin/env python
from distutils.core import setup
from dangagearman import __version__ as version
setup(
name = 'danga-gearman',
version = version,
description = 'Client for the Danga (Perl) Gearman implementation',
author = 'Samuel Stauffer',
author_email = 'samuel@descolada.com',
url =... | saymedia/python-danga-gearman | setup.py | Python | mit | 699 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34003
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | Satal/XmlFileExplorer | trunk/XmlFileExplorer.App/Properties/Settings.Designer.cs | C# | mit | 5,380 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using System.Threading;
using System.Drawing.Drawing2D;
namespace Scheduler
{
public class Scheduler<T, K> : IRuntimeScheduler, IScheduler<K> where T:ScheduleTask, new()
{
... | weihuajiang/SchedulerEngineDotNet | SchedulerLib/definition/Scheduler.cs | C# | mit | 53,715 |
<?php
declare(strict_types = 1);
/**
* TransactionType.php
* Copyright (C) 2016 thegrumpydictator@gmail.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace FireflyIII\Rules\Triggers;
use FireflyIII\Models\TransactionJournal;... | tonicospinelli/firefly-iii | app/Rules/Triggers/TransactionType.php | PHP | mit | 1,900 |
/*
* Paper.js
*
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
* based on Scriptographer.org and designed to be largely API compatible.
* http://paperjs.org/
* http://scriptographer.org/
*
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
* http://lehni.org/ & http://jonathanpuckey.co... | 0/paper.js | test/tests/Item.js | JavaScript | mit | 11,427 |
<?php
return [
'mandrill' => [
'secret' => $_ENV['MANDRILL_SECRET']
]
];
| BRANDTELIER/reyes | app/config/services.php | PHP | mit | 78 |
/*
*
* 20150315-4.c
*
*
* Created by Sam Niemoeller on 3/28/15.
*
* Chapter 4, Problem 30
*
* Write a program that generates a random number
* from the following set: 1, 4, 7, 10, 13, 16
* The seed for the series is the computer's time.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int ... | piccolo794/Tutorials | Week 3/20150329-4.c | C | mit | 645 |
---
layout: page
title: Floyd Limited Executive Retreat
date: 2016-05-24
author: Lori Daniel
tags: weekly links, java
status: published
summary: Aenean ut venenatis augue, id maximus.
banner: images/banner/leisure-05.jpg
booking:
startDate: 04/13/2019
endDate: 04/17/2019
ctyhocn: MEMSWHX
groupCode: FLER
publish... | KlishGroup/prose-pogs | pogs/M/MEMSWHX/FLER/index.md | Markdown | mit | 2,916 |
import React, {Component, PropTypes} from 'react';
import * as actions from './ForumAction';
import ForumPage from './ForumPage';
class ForumContainer extends Component {
constructor(props) {
super(props);
this.state = {
questions: []
};
this.postQuestion = this.postQues... | JSVillage/military-families-backend | client/components/forum/ForumContainer.js | JavaScript | mit | 830 |
/* Copyright (c) 2015 Sai Jayanthi
This source file is licensed under the "MIT license".
Please see the file COPYING in this distribution for license terms.
*/
/*
This program provides the functionality to implement sound and swipe features for Colors activity
*/
package projects.oss2015.cs.fundookid;
import ... | saipjayanthi23/Fundoo-Tots | app/src/main/java/projects/oss2015/cs/fundookid/Colors.java | Java | mit | 3,586 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.