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 |
|---|---|---|---|---|---|
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("11... | petyodelta/CSharp-PartOne-Homework | ConsoleInputOutputHomework/11. NumbersInIntervalDividableByGivenNumber/Properties/AssemblyInfo.cs | C# | mit | 1,480 |
/* */
module.exports = function(hljs) {
return {
contains: [
{
begin: /[^\u2401\u0001]+/,
end: /[\u2401\u0001]/,
excludeEnd: true,
returnBegin: true,
returnEnd: false,
contains: [
{
begin: /([^\u2401\u0001=]+)/,
end: /=([^\u2401\u0001=]+)/,
re... | Imms/imms.github.io | jspm_packages/npm/highlight.js@8.9.1/lib/languages/fix.js | JavaScript | mit | 597 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package co.edu.uniandes.ecos.tarea6.util;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.jun... | darevalor/Ecos-Tarea6 | src/test/java/co/edu/uniandes/ecos/tarea6/util/CalcularTest.java | Java | mit | 1,932 |
// Copyright © 2018-2021 Wei Shen <shenwei356@gmail.com>
//
// 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, mo... | shenwei356/bio | sketches/kmers.go | GO | mit | 2,010 |
<?php
declare(strict_types=1);
namespace BrowscapPHP;
use BrowscapPHP\Parser\ParserInterface;
use stdClass;
/**
* Browscap.ini parsing class with caching and update capabilities
*/
interface BrowscapInterface
{
/**
* Set theformatter instance to use for the getBrowser() result
*
* @throws void
... | browscap/browscap-php | src/BrowscapInterface.php | PHP | mit | 1,262 |
using UnityEngine;
using System.Collections;
public class CameraController : MonoBehaviour
{
public GameObject player;
private Vector3 offset;
// Use this for initialization
void Start ()
{
offset = transform.position;
}
// Update is called once per frame
void LateUpdate ()
{
transform.po... | HakonHesselberg/gamedev | Roll-a-Ball/Assets/Scripts/CameraController.cs | C# | mit | 372 |
class A extends B {
X() {
return super[1];
}
}
| harc/ohm | examples/ecmascript/test/data/esprima/ES6/super-property/super_computed.js | JavaScript | mit | 55 |
# IPFilter Updater
Downloads IP Filter lists for use in Bit Torrent clients.
## Features
* Provides choice of list providers
* Automatically decompresses lists that are in Gzip or Zip format
* Can automatically schedule itself to update the list silently
* Auto-updating
## Requirements
* Microsoft Windows XP+
* .N... | DavidMoore/ipfilter | README.md | Markdown | mit | 1,317 |
<div class="commune_descr limited">
<p>
Iville est
un village
localisé dans le département de l'Eure en Haute-Normandie. Elle comptait 452 habitants en 2008.</p>
<p>À proximité de Iville sont positionnées géographiquement les villes de
<a href="{{VLROOT}}/immobilier/fouqueville_27261/">Fouqueville</a> s... | donaldinou/frontend | src/Viteloge/CoreBundle/Resources/descriptions/27354.html | HTML | mit | 1,289 |
<?php
namespace Sherlock\responses;
/**
* Class DeleteResponse
* @package Sherlock\responses
*/
class DeleteResponse extends Response
{
/**
* @var bool
*/
public $found;
/**
* @param \Sherlock\common\tmp\RollingCurl\Request $response
*/
public function __construct($response)
... | polyfractal/sherlock | src/Sherlock/responses/DeleteResponse.php | PHP | mit | 491 |
require 'spec_helper'
describe Gliffy::Document do
before :each do
Gliffy::Document.clear_cache
end
let(:api) { double(Gliffy::API::Facade) }
let(:owner) do
owner = double(Gliffy::Account)
owner.stub(:api).and_return(api)
owner
end
let(:document_id) { 1000002 }
let(:document_name) { 'S... | bkon/gliffy | spec/lib/gliffy/document_spec.rb | Ruby | mit | 5,763 |
package org.inventivetalent.nbt;
import com.google.gson.JsonPrimitive;
import org.inventivetalent.nbt.stream.NBTInputStream;
import org.inventivetalent.nbt.stream.NBTOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
public class StringTag extends NBTTag<String... | InventivetalentDev/NBTLibrary | src/main/java/org/inventivetalent/nbt/StringTag.java | Java | mit | 2,287 |
import json
import datetime
import threading
from base_plugin import *
import base_plugin
#=============================================Messaging===================================
def send_message(recipient, message, mtype='chat'):
'''
Send a message to recipient.
:param recipient: The To field of your messa... | Gehn/JustAChatBot | plugin_utils.py | Python | mit | 5,651 |
def cheese_and_crackers(cheese_count,boxes_of_crackers):
print "You have %d cheeses!" % cheese_count
print "You have %d boxes of crackers!" % boxes_of_crackers
print "Man that's enough for a party!"
print "Get a blanket.\n"
print "We can just give the function numbers directly:"
cheese_and_crackers(20,... | BeeBubble/SnakeRace | LPTHW/ex019.py | Python | mit | 673 |
/*
* backward.hpp
* Copyright 2013 Google Inc. All Rights Reserved.
*
* 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 ... | CloudI/CloudI | src/external/backward-cpp/backward.hpp | C++ | mit | 141,330 |
<!doctype html>
<html>
<head>
<title>D-Kapstory</title>
<meta charset="utf-8">
<script src="./vendor/three.js/three.min.js"></script>
<script src="./js/dk.js"></script>
<link href="css/main.css" rel="stylesheet" />
</head>
<body>
<div id="container" width="512" height="512"><... | twxs/dkapstory.js | index.html | HTML | mit | 9,609 |
package ru.mail.park.database.kgulyy.controllers;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import ru.mail.park.database.kgulyy.domains.Post;
import ru.mail.park.database.kgulyy.domains.Thread;
import ru.mail.park.database.kgulyy.domains.Vote;
import ru.mail.park... | kgulyy/database-forum-api | src/main/java/ru/mail/park/database/kgulyy/controllers/ThreadController.java | Java | mit | 2,072 |
/**
* Rooms
* Pokemon Showdown - http://pokemonshowdown.com/
*
* Every chat room and battle is a room, and what they do is done in
* rooms.js. There's also a global room which every user is in, and
* handles miscellaneous things like welcoming the user.
*
* @license MIT license
*/
const TIMEOUT_EMPTY_DEALLOCA... | Raina4uberz/Light-server | rooms.js | JavaScript | mit | 49,287 |
using System;
using System.IO;
using Simpler;
namespace Library.Scripts.Tasks
{
public class RunScripts : InTask<RunScripts.Input>
{
public class Input
{
public string ConnectionName { get; set; }
public Script[] Scripts { get; set; }
}
public RunSql Ru... | gregoryjscott/please | app/Library/Scripts/Tasks/RunScripts.cs | C# | mit | 1,948 |
(function ($, window, document, undefined)
{
var defaults = {
};
//var fr = new FileReader();
//var img = new Image();
var canvas;
var URL = window.webkitURL || window.URL;
function Plugin(element, options)
{
this.w = $(document);
this.el = $(element);
... | sereg/mebel | files/site/admin/js/transfer.js | JavaScript | mit | 4,662 |
# Filesystem / Cloud Storage
- [Introduction](#introduction)
- [Configuration](#configuration)
- [Basic Usage](#basic-usage)
- [Custom Filesystems](#custom-filesystems)
<a name="introduction"></a>
## Introduction
Laravel provides a wonderful filesystem abstraction thanks to the [Flysystem](https://github.com/thephpl... | adamgoose/docs | filesystem.md | Markdown | mit | 4,992 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pl" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About Kickasscoin</source>
<translation>O Kickasscoin</translation>
</m... | KickAssCoin/KIK | src/qt/locale/bitcoin_pl.ts | TypeScript | mit | 109,835 |
## Apollo Client 3.5.10 (2022-02-24)
### Improvements
- Add `GraphQLWsLink` in `@apollo/client/link/subscriptions`. This link is similar to the existing `WebSocketLink` in `@apollo/client/link/ws`, but uses the newer [`graphql-ws`](https://www.npmjs.com/package/graphql-ws) package and protocol instead of the older `... | apollographql/apollo-client | CHANGELOG.md | Markdown | mit | 147,556 |
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("Ca... | mirontoli/learn-spmeta2 | 001_calculated-sitecol/CalculatedSiteColumn/Properties/AssemblyInfo.cs | C# | mit | 1,438 |
namespace Chloe.Server.Dtos
{
public class SocialComponentAddOrUpdateRequestDto: SocialComponentDto
{
}
}
| QuinntyneBrown/azure-search-getting-started | src/Chloe/Server/Dtos/SocialComponentAddOrUpdateRequestDto.cs | C# | mit | 118 |
/**
* @author mrdoob / http://mrdoob.com/
*/
export var Config = function ( name ) {
var storage = {
'autosave': true,
'theme': 'css/light.css',
'project/renderer': 'WebGLRenderer',
'project/renderer/antialias': true,
'project/renderer/gammaInput': false,
'project/renderer/gammaOutput': false,
'proj... | tinnguyenhuuletrong/electron-threejs-editor | app/js/Config.js | JavaScript | mit | 1,271 |
#include "Base.h"
#include <iostream>
using namespace std;
//start
int main (int argc, char** argv) {
Base b;
Derived d;
cout << "Objects Created" << endl;
b.b();
cout << "Calling derived methods" << endl;
d.a();
d.b();
d.c();
cout << ".. via base class pointers..." << endl;
Ba... | PatrickTrentin88/intro_cpp_qt | examples/derivation/exercise/main.cpp | C++ | mit | 398 |
let countdown;
const timerDisplay = document.querySelector('.display__time-left');
const endTime = document.querySelector('.display__end-time');
const buttons = document.querySelectorAll('[data-time]');
function timer(seconds) {
// clean any existing timers
clearInterval(countdown);
const now = Date.no... | deaf-ayo/courses | wes-courses/javascript30/29 - Countdown Timer/scripts.js | JavaScript | mit | 1,728 |
var path = require('path')
var configVars = require('./configVars.js')
var karmaConfig = {
basePath: './',
frameworks: ['jasmine-jquery', 'jasmine'],
port: 9876,
colors: true,
autoWatch: false,
browsers: ['PhantomJS'],
singleRun: true,
concurrency: 1,
files: [
'./' + configVars['unitTests']['entry... | MrSlide/Eve.js | karma.conf.js | JavaScript | mit | 1,724 |
'use strict';
var should = require('should')
, request = require('supertest')
, helper = require('./helper');
describe('Routing > ', function() {
var url = 'http://localhost:3000';
before(function(done) {
helper.init(function(err) {
done();
});
});
describe('POST /users > ', function() {
... | Nexters/Vobble.API | tests/routes.test.js | JavaScript | mit | 7,505 |
<?php if ( ! defined('BASEPATH')) exit('No se permite el acceso directo al script');
class Comprobaciones {
protected $CI;
public function __construct()
{
$this->CI =& get_instance();
}
//Saber si esta logueado el usurio y de que tipo es
private function logueado()
{
if(!$this-... | JavierRodri89/comentariosPSL | application/libraries/Comprobaciones.php | PHP | mit | 1,371 |
---
layout: page
title: Landing
header: Landing Page
tagline: "All the elemets to improve the sites with this theme"
group: navigation
img : 4.jpg
img-mobile : 4-mobile.jpg
---
{% include JB/setup %}
{% include themes/bootstrap/nav-bar.html %}
<div class="page-wrapper">
<!-- header-10 -->
<section class="header... | startupui/startupui.github.io | landing.html | HTML | mit | 6,085 |
# [qc.Math](README.md).snapToCeil
## Prototype
* number snapToCeil(input, gap, start)
## Paramters
| Paramter | Type | Description |
| ------------- | ------------- | -------------|
| input | number | The value to snap. |
| gap | number | The interval gap of the grid. |
| start | number | Optional s... | qiciengine/qiciengine-documentation | en/api/math/snapToCeil.md | Markdown | mit | 583 |
<?php
//piesaistam šo modeli pie FuelPHP pakotnes Orm modeļa
use Orm\Model;
class Model_Employee extends Model
{
//glabā informāciju par to, kādi lauki ir šim modelim
protected static $_properties = array(
'id',
'name',
'surname',
'email',
'phonenumber',
'description',
'avatar',
'created_at',
'updat... | brunotreiguts/demo | fuel/app/classes/model/employee.php | PHP | mit | 1,267 |
// Copyright (c) 2002-2003, Sony Computer Entertainment America
// Copyright (c) 2002-2003, Craig Reynolds <craig_reynolds@playstation.sony.com>
// Copyright (C) 2007 Bjoern Graf <bjoern.graf@gmx.net>
// Copyright (C) 2007 Michael Coles <michael@digini.com>
// All rights reserved.
//
// This software is licensed as des... | martindevans/SharpSteer2 | Demo/PlugIns/Soccer/Player.cs | C# | mit | 3,920 |
from babymaker import BabyMaker, EnumType, IntType, StringType, UUIDType, FieldType, DatetimeType, FloatType, EmbedType
import unittest
import string
import sys
from datetime import datetime, timedelta
class TestMakeSomeBabies(unittest.TestCase):
def test_make_one(self):
fields = {
"id": UUID... | bvalerius/py-babymaker | tests/test_babymaker.py | Python | mit | 9,457 |
DateInput = (function($) {
function DateInput(el, opts) {
if (typeof(opts) != "object") opts = {};
$.extend(this, DateInput.DEFAULT_OPTS, opts);
this.input = $(el);
this.bindMethodsToObj("show", "hide", "hideIfClickOutside", "keydownHandler", "selectDate");
this.build();
this.selectDate();
this.hide()
}... | xiaoyuexiao/best9homepage | js/jquery.date_input.pack.js | JavaScript | mit | 9,928 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 Webtrekk GmbH
*
* 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... | Webtrekk/webtrekk-android-sdk | sdk_test/src/main/java/com/webtrekk/SDKTest/MyApplication.java | Java | mit | 1,622 |
## 如何使用外观模式
现在我们用 `PersistencyManager` 来管理专辑数据,用 `HTTPClient` 来处理网络请求,项目中的其他类不应该知道这个逻辑。他们只需要知道 `LibraryAPI` 这个“外观”就可以了。
为了实现外观模式,应该只让 `LibraryAPI` 持有 `PersistencyManager` 和 `HTTPClient` 的实例,然后 `LibraryAPI` 暴露一个简单的接口给其他类来访问,这样外部的访问类不需要知道内部的业务具体是怎样的,也不用知道你是通过 `PersistencyManager` 还是 `HTTPClient` 获取到数据的。
大致的设计是这样的:
![... | yourtion/SwiftDesignPatterns | Chapter05/Use-Facade.md | Markdown | mit | 2,972 |
@extends('backend/layouts/admin')
{{-- Web site Title --}}
@section('title')
Group Management ::
@parent
@stop
{{-- Content --}}
@section('content')
{{Breadcrumbs::render('groups')}}
<div class="page-header">
<h3>
Group Management
<div class="pull-right">
<a href="{{ route('create/group') }}" class="btn btn... | atticus88/MediaCloud | app/views/backend/groups/index.blade.php | PHP | mit | 1,427 |
var credentialUtil = require('../../lib/creds');
var fs = require('fs');
var path = require('path');
var test = require('tape');
var SSH_CONFIG_FILE = path.join(__dirname, '..', 'ssh_config.txt');
var GAURAV_SSH_CONFIG_FILE = path.join(__dirname, '..', 'gaurav_ssh_config.txt');
var REMTAIL_JSON_FILE = path.join(__dirn... | NickCarneiro/remtail | test/lib/test-creds.js | JavaScript | mit | 4,007 |
using SimpleQA.Models;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace SimpleQA.WebApp.Controllers
{
public class UserController : Controller
{
readonly IModelBuilderMediator _mediator;
public UserController(IModelBuilderMediator mediator)
{
... | vtortola/RedisClient | TestApplications/SimpleQA/SimpleQA.WebApp/Controllers/UserController.cs | C# | mit | 915 |
/// <reference path="../../../../definitions/tsd.d.ts" />
import {AchievementProps} from "../Achievement/Achievement";
import LoginService from "../../service/LoginService";
export interface TeamProps {
_id: string;
name: string;
botId?: string;
image?: string;
unlockedAchievements?: AchievementPr... | coveord/Blitz2016-Server | dashboard/src/client/components/Team/Team.tsx | TypeScript | mit | 1,499 |
/*
* Certain versions of software and/or documents ("Material") accessible here may contain branding from
* Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017,
* the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to ... | HPSoftware/hpaa-octane-dev | src/main/java/com/microfocus/application/automation/tools/octane/executor/TestExecutionJobCreatorService.java | Java | mit | 28,945 |
<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/9000-9999/9814-22.html | HTML | mit | 1,125 |
<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/10738-22.html | HTML | mit | 1,651 |
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article# " lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Posts about Support Worker | Minstry Of Education Jobs</title>
<link href="../assets/css/bootstrap.min.css" rel="stylesheet" type="... | wcmckee/moejobs-site | output/categories/support-worker.html | HTML | mit | 3,428 |
# frozen_string_literal: true
require 'test_helper'
describe "Main" do
def app
MainController
end
include Rack::Test::Methods
it "/" do
get "/"
last_response.content_type.must_include "text/html"
last_response.body.must_include "Podcast"
end
end
| ninoseki/the_noises_podcast | test/main_test.rb | Ruby | mit | 276 |
<?php
declare(strict_types=1);
/*
* This file is part of the MediaModule for Zikula.
*
* (c) Christian Flach <hi@christianflach.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Cmfcmf\Module\MediaModule\Security\Col... | cmfcmf/MediaModule | Security/CollectionPermission/CollectionPermissionInterface.php | PHP | mit | 1,685 |
#############################################################################
# Makefile for building: tst_nodebeamtests
# Generated by qmake (3.0) (Qt 5.4.0)
# Project: ..\NodeBeamTests\NodeBeamTests.pro
# Template: app
# Command: C:\Qt\5.4\mingw491_32\bin\qmake.exe -spec win32-g++ CONFIG+=debug -o Makefile ..\NodeBe... | RORMasa/NodeBeamEditor | source/test/build-NodeBeamTests-Desktop_Qt_Qt_Version_MinGW_32bit-Debug/Makefile | Makefile | mit | 18,118 |
# Variables
$projectDir = Get-Location
$outdir = "${env:ProgramFiles(x86)}\Microsoft SDKs\NuGetPackages\"
# Build azure-amqp
sl Dependencies\azure-amqp\Microsoft.Azure.Amqp\
dotnet restore
dotnet build
dotnet pack
sl $projectDir
# Install azure-amqp
cp Dependencies\azure-amqp\Microsoft.Azure.Amqp\bin\Debug\Microsoft.... | jonmseaman/WebSocketToEventHub | configure.ps1 | PowerShell | mit | 1,126 |
module Hancock::Pages::Decorators
module Pages
extend ActiveSupport::Concern
# included do
# def model
# Hancock::Pages::Page
# end
#
# def after_initialize
# end
# end
end
end
| red-rocks/hancock_cms_pages | app/controllers/concerns/hancock/pages/decorators/pages.rb | Ruby | mit | 231 |
module PmLibrary
extend ActiveSupport::Concern
included do
before_action :ensure_logged_in
end
private
def ensure_pm_topic_exists
redirect_to root_url if pm_topic.nil?
end
def ensure_valid_user
redirect_to root_url unless pm_topic.users.include?(current_user)
end
def user
current_... | cribbles/tiktak | app/controllers/concerns/pm_library.rb | Ruby | mit | 635 |
class PunchClockSetsController < ApplicationController
layout "payforms"
helper :punch_clocks
before_filter :require_department_admin
def index
@punch_clock_sets = PunchClockSet.all
end
def new
@punch_clock_set = PunchClockSet.new
@users_select = current_department.active_users.sort_by(&:nam... | YaleSTC/shifts | app/controllers/punch_clock_sets_controller.rb | Ruby | mit | 2,588 |
#pragma once
#include <pga/compiler/Graph.h>
#include <algorithm>
#include <exception>
#include <iostream>
#include <map>
#include <set>
#include <vector>
namespace SearchHeuristics
{
struct OneToOneOperatorEdgesHeuristic : PGA::Compiler::GraphVisitor
{
std::set<size_t>& alwaysCutEdges;
std::set<size_t>& never... | pboechat/OperatorGraph | src/operator_graph_analyzer/SearchHeuristics.h | C | mit | 12,034 |
var _ember = require('ember');
_ember['default'].debug('this will NOT be removed');
warn('this will NOT be removed');
info('this will NOT be removed');
console.log(message);
| GavinJoyce/babel-plugin-remove-functions | test/fixtures/global-namespace/expected.js | JavaScript | mit | 176 |
import numpy as np
class lemketableau:
def __init__(self,M,q,maxIter = 100):
n = len(q)
self.T = np.hstack((np.eye(n),-M,-np.ones((n,1)),q.reshape((n,1))))
self.n = n
self.wPos = np.arange(n)
self.zPos = np.arange(n,2*n)
self.W = 0
self.Z = 1
self.Y =... | AndyLamperski/lemkelcp | lemkelcp/lemkelcp.py | Python | mit | 5,431 |
////////////////////////////////////////////////////////////////////////////////
// The Loki Library
// Copyright (c) 2006 Rich Sposato
// Permission to use, copy, modify, distribute and sell this software for any
// purpose is hereby granted without fee, provided that the above copyright
// notice appea... | egorpushkin/neurolab | source/controls/Simple2dCharting/External/StrongPtr.cpp | C++ | mit | 17,326 |
module RubyArena
class Bullet
include Movable
DEFAULT_SPEED = 10
DEFAULT_ENERGY = 10
SIZE = 4
attr_reader :x, :y, :heading, :speed, :arena, :origin
def initialize(args)
@x = args.fetch(:x)
@y = args.fetch(:y)
@heading = args.fetch(:heading)
@speed = args.fetch(:speed... | mrhead/ruby_arena | lib/ruby_arena/bullet.rb | Ruby | mit | 938 |
package org.openprovenance.model;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import java.io.File;
import java.io.StringWriter;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import javax.xml.bind.JAXBException;
import junit.framework.Test;
im... | lucmoreau/OpenProvenanceModel | opm/src/test/java/org/openprovenance/model/DL1Test.java | Java | mit | 13,709 |
---
layout: post
title: Totem - Ruby Without Rails
comments: false
share: false
date: 2014-03-13
type: post
tags:
- jruby
- ruby
- ruby on rails
- totem
---
<p><a title="Totem" href="https://github.com/chadrem/totem">Totem</a> is my new Ruby gem for creating Ruby projects without having to depend on Rails. Some of the... | chadrem/chadrem.github.io | _posts/2014-03-13-totem-ruby-without-rails.html | HTML | mit | 909 |
var test = require('tape')
var Rectangle = require('../src/Rectangle.js')
var Square = require('../src/Square.js')
test('Square constructor', function (t) {
t.plan(3)
t.equal(typeof Square, 'function', 'should be a function')
var squ = new Square(7)
t.equal(squ.width, 7, 'should set square width')
t.equal(... | dasilvacontin/js-practice | test/Square.spec.js | JavaScript | mit | 849 |
%!TEX root = Gute-Frage-Umfragedesign.tex
\subsection{Forschungsfragen}
\begin{frame}{Forschungsfragen}
\begin{itemize}[<+->]
\item Kann die Eingabe mathematischer Formeln in den Computer aus Nutzersicht
verbessert werden?
\item Wer ist bereit neue Eingabemöglichkeiten für Formeln auszuprobieren?
... | MartinThoma/LaTeX-examples | presentations/Gute-Frage-Schluesselqualifikation/LaTeX/Forschungsfragen.tex | TeX | mit | 646 |
<link href="../../assets/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>
<link href="../../assets/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="../../assets/css/style.css" rel="stylesheet" type="text/css"/>
<link href="../../assets/css/lightbox.css" rel="styl... | AIMGym/CIAssignment | application/views/edit_program.php | PHP | mit | 1,316 |
---
06/02/2017
<table>
<tr>
</tr>
</table>
<table>
<tr>
<td>Starting point:</td>
<td>Continuing with CLS </td>
</tr>
<tr>
<td>Target for this lesson?</td>
<td>To have a Github Pages Static Website</td>
</tr>
<tr>
<td>Did I reach my target?
(add details to "Lesson Review")</td... | marcuslos/marcuslos.github.io | _posts/2017-02-21-Week-3.md | Markdown | mit | 1,363 |
# == Schema Information
#
# Table name: producers
#
# id :integer not null, primary key
# name :string(255)
# url :string(255)
# address :text
# country :string(255)
# description :text
# created_at :datetime
# updated_at ... | evsandrey/d2d | test/models/producer_test.rb | Ruby | mit | 585 |
import { moduleFor, test } from 'ember-qunit';
moduleFor('service:alert-box', 'Unit | Service | alert box', {
// Specify the other units that are required for this test.
// needs: ['service:foo']
});
// Replace this with your real tests.
test('it exists', function(assert) {
let service = this.subject();
asser... | Josowsky/SiteScannerFrontEnd | tests/unit/services/alert-box-test.js | JavaScript | mit | 339 |
using System;
using System.Reflection;
namespace _01.DefineAClassPerson
{
public class Startup
{
public static void Main()
{
Type personType = typeof(Person);
FieldInfo[] fields = personType.GetFields(BindingFlags.Public | BindingFlags.Instance);
Console.Wri... | ivanlutov/C-Fundamentals | C#OOPBasics/01.DefiningClassesExercises/01.DefineAClassPerson/Startup.cs | C# | mit | 362 |
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [noicejs](./noicejs.md) > [Container](./noicejs.container.md) > [fail](./noicejs.container.fail.md)
## Container.fail() method
<b>Signature:</b>
```typescript
protected fail(msg: string): never;
... | ssube/noicejs | docs/api/noicejs.container.fail.md | Markdown | mit | 455 |
<?php
require("../vendor/autoload.php");
use CrowdFlower\Account;
$apiKey = 'jLByZLxtuyWV9x6g-Msq';
/**
*
* Instatiate the container that fetches jobs.
*/
$crowd = new CrowdFlower\Account($apiKey);
/**
*
* Fetch units for a job.
*/
// Find all of the units
$units = $job->getUnits();
// Or find a single u... | dadeg/php-crowdflower | examples/unit.php | PHP | mit | 1,336 |
/**
* The MIT License
* Copyright (c) 2011 Kuali Mobility Team
*
* 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, ... | tamerman/mobile-starting-framework | shared/impl/src/test/java/org/kuali/mobility/tags/LabeledRowTagTest.java | Java | mit | 5,746 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>首页内容</title>
<link href="<?php echo base_url() . 'style/' ?>css/style.css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo base_url() ?>ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
window.UEDITOR_HOM... | ZuoYouLai/studyCI | application/views/project/BaiduEditerView.php | PHP | mit | 1,080 |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class long_short_completo extends Model
{
public $fillable = ['id','tp_op','situacao','ativo','dt_entrada','vl_entrada','dt_saida','vl_saida','financeiro','percentual','tp_op_ls','financeiro_ls','percentual_ls'];
} | wcneto/laravel-stocks-robo-advisor | app/long_short_completo.php | PHP | mit | 290 |
## parse-formats
Provides a list of various modules to parse data formats synchronously to JS objects.
Feel free to suggest more formats or more modules to parse them with via issue or pull request.
[](https://nodei.co/npm/parse-formats/)
#### Formats
| Ext | format |... | dskrepps/parse-formats | readme.md | Markdown | mit | 2,163 |
import xml.etree.ElementTree as ET
import datetime
import sys
import openpyxl
import re
import dateutil
def main():
print 'Number of arguments:', len(sys.argv), 'arguments.' #DEBUG
print 'Argument List:', str(sys.argv) #DEBUG
Payrate = raw_input("Enter your pay rate: ") #DEBUG
sNumber = raw_input("Enter 900#: ... | JamesPavek/payroll | timesheet.py | Python | mit | 2,615 |
#!/bin/bash
set -e
GITLAB_CI_HOST=${GITLAB_CI_HOST:-localhost}
GITLAB_CI_PORT=${GITLAB_CI_PORT:-}
GITLAB_CI_HTTPS=${GITLAB_CI_HTTPS:-false}
GITLAB_CI_EMAIL=${GITLAB_CI_EMAIL:-gitlab@localhost}
GITLAB_CI_SUPPORT=${GITLAB_CI_SUPPORT:-support@localhost}
GITLAB_CI_TIMEZONE=${GITLAB_CI_TIMEZONE:-UTC}
GITLAB_CI_NOTIFY_ON_BR... | outcoldman/docker-gitlab-ci | entrypoint.sh | Shell | mit | 23,664 |
---
layout: post
date: '2016-06-17'
title: "Allure Couture C264 Beaded Tank Sheath Wedding Dress"
category: Allure Couture
tags: [Allure Couture]
---
### Allure Couture C264 Beaded Tank Sheath Wedding Dress
Just **$514.99**
###
One of our signature slip gowns. This sexy silhouette is created from two pieces - a top l... | lastgown/lastgown.github.io | _posts/2016-06-17-Allure-Couture-C264-Beaded-Tank-Sheath-Wedding-Dress.md | Markdown | mit | 2,289 |
#!/usr/bin/env bash
#Switch the base variables based on the platform
case "$(uname -s)" in
CYGWIN*) #On windows
#TODO: Standardize this path for windows
BASE_DIR=/cygdrive/c/EnglishCentral
printf "Environment set for Cygwin Windows platform.\n"
;;
Darwin) #On mac
BASE_DI... | marstonstudio/crossUserMedia | encoder/as3/setenv.sh | Shell | mit | 909 |
using System.Windows.Input;
using Cirrious.MvvmCross.ViewModels;
namespace RegionEx.Core.ViewModels
{
public class Main2ViewModel
: MvxViewModel
{
public ICommand FirstMain { get { return new MvxCommand(FirstMainCommand); } }
public ICommand FirstPopup { get { return new MvxCommand(Fir... | i486dx400/MultiRegionPresenter | RegionEx.Core/ViewModels/Main2ViewModel.cs | C# | mit | 877 |
using VkNet.Enums;
using VkNet.Enums.Filters;
using VkNet.Enums.SafetyEnums;
using VkNet.Utils;
namespace VkNet.Model.RequestParams
{
/// <summary>
/// Параметры запроса для приложений
/// </summary>
public struct AppGetCatalogParams
{
/// <summary>
/// Параметры запроса для приложений.
/// </summary>
pu... | HarkBack/vk | VkNet/Model/RequestParams/App/AppGetCatalogParams.cs | C# | mit | 4,016 |
import hoistNonReactStatics from 'hoist-non-react-statics';
import React, { Component } from 'react';
export default function fetchData(callback) {
return (WrappedComponent) => {
class FetchData extends Component {
render() {
return <WrappedComponent {...this.props} />;
}
}
FetchData.... | yuanqing/fetch-data | src/index.js | JavaScript | mit | 678 |
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>gymsystems_client documentation</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scal... | OysteinAmundsen/gymsystems | client/documentation/classes/ExpansionSource.html | HTML | mit | 46,275 |
---
layout: post.njk
title: "The Road Again"
date: 2021-11-12
summary: "I decide to take a break and go somewhere in my RV with the worst possible internet connection. Plus, how to be a tech teacher, YouTube makes moves, the gig economy and the end of coding as we know it."
hero: /images/newsletter/theroadagain.png
thu... | planetoftheweb/planetoftheweb.github.io | _site/newsletter/2021-11-12-the-road-again.md | Markdown | mit | 8,550 |
from PySide import QtCore, QtGui
class MakinFrame(QtGui.QFrame):
mousegeser = QtCore.Signal(int,int)
def __init__(self,parent=None):
super(MakinFrame,self).__init__(parent)
self.setMouseTracking(True)
def setMouseTracking(self, flag):
def recursive_set(parent):
for child in parent.findChildren(QtCore.QObj... | imakin/PersonalAssistant | GameBot/src_py/makinreusable/makinframe.py | Python | mit | 610 |
# frozen_string_literal: true
module ControllerMacros
def json
JSON.parse(response.body)
end
def sign(payload, key)
digest = OpenSSL::Digest.new('sha256')
OpenSSL::HMAC.hexdigest(digest, key, payload)
end
end
| rainforestapp/rainforest-integrations | spec/support/controller_macros.rb | Ruby | mit | 230 |
{% extends "backoffice/base.html" %}
{% block active_bdata3 %}active{% endblock %}
{% block title %}Bdata Mode 3{% endblock %}
{% block title_mini %}{{city.name}}{% endblock %}
{% block content %}
<div class="space-6"></div>
<div class="row-fluid">
<div class="span6">
<div class="widget-box transparent">
<di... | norn/bustime | backoffice/templates/backoffice/bdata3.html | HTML | mit | 1,060 |
from graphics_module.objects import *
import numpy as np
def make_pixels_array_basic(amount):
return np.full(10,Pixel(), dtype=np.object)
def make_pixels_array_config_based(config):
if config.colorscheme == "b&w":
c = Color()
elif config.colorscheme == "light":
c = Color(r=245,g=235,b=234,... | sindresf/The-Playground | Python/Machine Learning/LSTM Music Visualizer/LSTM Music Visualizer/graphics_module/initialization.py | Python | mit | 576 |
<!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.dev/contrib:color/dev/2015-01-07_03-53-32.html | HTML | mit | 6,890 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# (c) 2015, Nate Coraor <nate@coraor.org>
#
# This file is part of Ansible
#
# Ansible 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 3 of the License... | martenson/ansible-common-roles | paths/library/zfs_permissions.py | Python | mit | 9,934 |
/**
* Title: Art
* Author: Victor Cueva Llanos
* Email: Ingvcueva@gmail.com
**/
#include <bits/stdc++.h>
#define MOD 1000000007
#define MAXN 100005
using namespace std;
int N[MAXN];
int main(int nargs, char **args) {
// clock_t _inicio = clock();
int t;
cin >> t;
whi... | Victoralin10/ACMSolutions | codechef/SNCKPA16/MAKEART.cpp | C++ | mit | 693 |
//
// Copyright (c) 2009 Ivan Zlatev <ivan@ivanz.com>
//
// Authors:
// Ivan Zlatev <ivan@ivanz.com>
//
// License: MIT/X11 - See LICENSE.txt
//
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
u... | ivanz/PicasaUploader | PicasaUploader/UI/Dialogs/DuplicateActionDialog.cs | C# | mit | 2,133 |
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Bundle\FrameworkBundle\Tests\Templating\Helper\Fixtures;
use Sy... | flyingfeet/FlyingFeet | vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Tests/Templating/Helper/Fixtures/StubTemplateNameParser.php | PHP | mit | 1,063 |
'use strict';
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var _ = require('lodash'); /* jshint ignore:line */
var Holodeck = require('../../../../../holodeck'); /* jshint ignore:line */
var Requ... | wanjunsli/twilio-node | spec/integration/rest/preview/sync/service/syncMap/syncMapItem.spec.js | JavaScript | mit | 13,231 |
Imports System
Imports System.Reflection
Imports 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.
' Review the values of the assembly attributes
<Ass... | patkub/visual-basic-intro | Triple A Number/Triple A Number/My Project/AssemblyInfo.vb | Visual Basic | mit | 1,192 |
/*!
@file
@brief Header file
@author Philip Pavo
Contains classes for working with VK API
*/
#include <string>
#include <map>
#include <vector>
#include "jsoncpp/json/json.h"
#ifndef VKLIB_H
#define VKLIB_H
using namespace std;
/**
@brief Main namespace
@author Philip Pavo
*/
namespace VK{... | PhilipPavo/CPP-VK-lib | src/vklib.h | C | mit | 11,312 |
<!-- 来必力City版安装代码 -->
<div id="lv-container" data-id="city" data-uid="MTAyMC80MDcxOC8xNzI0NA==">
<script type="text/javascript">
(function(d, s) {
var j, e = d.getElementsByTagName(s)[0];
if (typeof LivereTower === 'function') { return; }
j = d.createElement(s);
j.src = 'https://cdn-ci... | linexjlin/linexjlin.github.io | _includes/livere.html | HTML | mit | 594 |
import java.io.File;
import java.nio.file.Files;
import java.util.*;
public class P08NestedFolders {
public static void main(String[] args) {
String path = "C:\\Exercises\\JavaAdvanced\\08.Resources\\Files-and-Streams";
File root = new File(path);
Deque<File> directories = new ArrayDeque<>... | Jovtcho/JavaFundamentals | Java Advanced/08.Fiels-and-Streams-Lab/P08NestedFolders.java | Java | mit | 1,165 |
package br.edu.utfpr.recipes.dao;
import br.edu.utfpr.recipes.entidade.Usuario;
import org.hibernate.Query;
public class DaoUsuario extends DaoGenerics<Usuario> {
public DaoUsuario() {
super.clazz = Usuario.class;
}
public Usuario buscaUsuarioPorEmail(String email) {
session = HibernateC... | mairieli/recipes-pi | src/main/java/br/edu/utfpr/recipes/dao/DaoUsuario.java | Java | mit | 614 |
package com.miraclewong.systemwidget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import and... | MiracleWong/AndroidHeros | systemwidget/src/main/java/com/miraclewong/systemwidget/TopBar.java | Java | mit | 6,137 |
<!--body content start-->
<!--about audrey -->
<section id= "about-audrey"class="body-content gray-bg" >
<div class="container">
<div class="row page-content">
<div class="post-list-aside">
<div class="post-single">
... | jordanrancie/jordanrancie.github.io | _includes/yoga/about-audrey.html | HTML | mit | 19,523 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.