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
require File.dirname(__FILE__) + '/../spec_helper' describe Muck::OaiEndpointsController do render_views describe "oai endpoints controller" do describe "logged in as admin" do before do @user = Factory(:user) activate_authlogic login_as @user end describe "GE...
tatemae/muck-services
test/spec/controllers/oai_endpoints_controller_spec.rb
Ruby
mit
1,178
// // AppDelegate.h // multiplicationTable // // Created by Olivier Delecueillerie on 19/12/2014. // Copyright (c) 2014 lagspoon. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @property (strong, nonatomic) UIWindow *window; @end
delecueillerie/multiplicationTable
multiplicationTable/AppDelegate.h
C
mit
302
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html> <head> <title>Index of /wp-content/themes/blocksy/static/sass/frontend/5-modules/footer</title> </head> <body> <h1>Index of /wp-content/themes/blocksy/static/sass/frontend/5-modules/footer</h1> <ul> <li><a href="/wp-content/themes/blocksy/static/sass/f...
zavrelj/zavrelj.github.io
wp-content/themes/blocksy/static/sass/frontend/5-modules/footer/index.html
HTML
mit
1,324
--- layout: post title: 谈元编程与表达能力 permalink: /metaprogramming tags: metaprogramming macro runtime c elixir rust ruby iOS server toc: true desc: 在这篇文章中,作者会介绍不同的编程语言如何增强自身的表达能力,也就是不同的元编程能力,包括宏和运行时两种实现元编程的方法,文章不仅会介绍 C、Elixir 和 Rust 语言中的宏系统的优劣以及特性,还会介绍 Objective-C 和 Ruby 的面向对象模型以及它们在运行期间修改对象行为的原理。 --- 在这篇文章中,作者会介绍不同的编程语言如...
Draveness/draveness-blog
_posts/2017-12-10-metaprogramming.md
Markdown
mit
31,524
'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('Favorites', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, userId: { type: Sequelize.STRING }, ...
emmabaye/more-recipes
server/migrations/20171030225732-create-favorite.js
JavaScript
mit
1,065
package matchers import ( "fmt" "github.com/bfontaine/go-tchoutchou/Godeps/_workspace/src/github.com/onsi/gomega/format" "reflect" ) type BeEquivalentToMatcher struct { Expected interface{} } func (matcher *BeEquivalentToMatcher) Match(actual interface{}) (success bool, err error) { if actual == nil && matcher....
bfontaine/go-tchoutchou
Godeps/_workspace/src/github.com/onsi/gomega/matchers/be_equivalent_to_matcher.go
GO
mit
1,078
/* FreeRTOS V8.1.2 - Copyright (C) 2014 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. *************************************************************************** * ...
Velleman/VM204-Firmware
common/freertos/portable/rvds/arm_ca9/port.c
C
mit
21,215
package vidada.model.images.cache; import archimedes.core.geometry.Size; import archimedes.core.images.IMemoryImage; import java.util.Set; /** * Combines two caches * @author IsNull * */ public class LeveledImageCache implements IImageCache { // Add cached images from second cache to the first one private fi...
Vidada-Project/Vidada
vidada.core/src/main/java/vidada/model/images/cache/LeveledImageCache.java
Java
mit
2,131
var group___d_m_a_ex = [ [ "DMAEx Exported Types", "group___d_m_a_ex___exported___types.html", "group___d_m_a_ex___exported___types" ], [ "DMAEx Exported Functions", "group___d_m_a_ex___exported___functions.html", "group___d_m_a_ex___exported___functions" ], [ "DMAEx Private Functions", "group___d_m_a_ex___...
team-diana/nucleo-dynamixel
docs/html/group___d_m_a_ex.js
JavaScript
mit
356
var relativeImports = /import\s*{[a-zA-Z\,\s]+}\s*from\s*'\.\/[a-zA-Z\-]+';\s*/g; var nonRelativeImports = /import\s*{?[a-zA-Z\*\,\s]+}?\s*from\s*'[a-zA-Z\-]+';\s*/g; var importGrouper = /import\s*{([a-zA-Z\,\s]+)}\s*from\s*'([a-zA-Z\-]+)'\s*;\s*/; exports.extractImports = function(content, importsToAdd){ var matche...
bryanrsmith/tools
src/build.js
JavaScript
mit
1,428
// old skool dw textbox: // gen-dq-textbox dw.png // old skool ff textbox: // gen-dq-textbox -bg "rgb(100,100,200)" -xbg "rgb(0,0,0)" -mbg 0.125 ff.png package main import ( "flag" "fmt" "image" "image/color" "log" "math" "os" "github.com/qeedquan/go-media/image/chroma" "github.com/qeedquan...
qeedquan/misc_utilities
game_tools/gen-dq-textbox.go
GO
mit
4,070
#import <SpriteKit/SpriteKit.h> @interface FFGameOverScene : SKScene @end
marioizquierdo/flappy_fart_ios_game
flappy_fart/FFGameOverScene.h
C
mit
76
# Loading Data # To load data use the charts_\_load\_model\_ tcl command. This command supports loading files in the following formats: + csv + Comma Separated Value data + tsv + Tab Separated Value Data + json + JSON Data + data + GNUPlot like data (space separated) and also allows the data t...
colinw7/CQCharts
doc/load_model.md
Markdown
mit
1,216
<?php return array( /* |-------------------------------------------------------------------------- | Mail Driver |-------------------------------------------------------------------------- | | Laravel supports both SMTP and PHP's "mail" function as drivers for the | sending of e-mail. You may specify which one...
wcernetwork/NetworkEd
app/config/mail.php
PHP
mit
3,967
'use strict'; module.exports = function(app) { // Root routing var core = require('../../app/controllers/core.server.controller'); app.route('/').get(core.index); app.route('/check').put(core.check); };
michaelhowden/CoverCheck
app/routes/core.server.routes.js
JavaScript
mit
208
from tools import * from default_record import * from xen.xend import uuid from xen.xend import XendDomain, XendNode from xen.xend import BNVMAPI, BNStorageAPI from xen.xend.server.netif import randomMAC from xen.xend.ConfigUtil import getConfigVar from xen.xend.XendAPIConstants import * from xen.xend.XendAuthS...
Hearen/OnceServer
pool_management/bn-xend-core/xend/tests/util/BNVMAPI_Util.py
Python
mit
13,032
<!DOCTYPE html> <!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" dir="ltr"> <!--<![endif]--> <!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open...
GoC-Spending/data-corporations
html/234567133876.html
HTML
mit
34,026
from setuptools import setup, find_packages setup( name="mould", version="0.1", packages=find_packages(), package_data={ "mould": ["*.tpl"], }, install_requires=[ "Flask", "Flask-Script", "Flask-Test...
kates/mould
setup.py
Python
mit
440
--- id: 401 title: Bash Script for Sitelutions.com DynDNS author: bradford layout: post guid: /?p=401 permalink: /2009/bash-script-for-sitelutions-com-dyndns categories: - Home Server - Linux --- I use sitelutions.com for my websites and subdomains; I love using sitelutions because it&#8217;s the best free solution...
elBradford/elBradford.github.io
_posts/2009-10-07-bash-script-for-sitelutions-com-dyndns.md
Markdown
mit
2,935
// Copyright (c) 2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <string> #include "version.h" // Name of client reported in the 'version' message. Report the same name // for both bitco...
blastcoin/blastcoin
src/version.cpp
C++
mit
2,607
require "net/http" require "curb" require "addressable/uri" require "json" require "objspace" require "bitset" class FoursquareSearcher def initialize( attributes = {} ) bs = Bitset.new(2000000000) puts " " + ObjectSpace.memsize_of(bs).to_s; while 1 do end end end t...
Nemanicka/pathToFriend
lib/searchers/foursquare.rb
Ruby
mit
353
error() { echo " ! $*" >&2 exit 1 } status() { echo "-----> $*" } protip() { echo echo "PRO TIP: $*" | indent echo "See https://devcenter.heroku.com/articles/nodejs-support" | indent echo } # sed -l basically makes sed replace and buffer through stdin to stdout # so you get updates while the comman...
johnnypez/heroku-buildpack-mrt
bin/common.sh
Shell
mit
774
const AuthUtil = require('../thulib/auth') const User = require('../models/user') const updateCourseInfo = require('./update_course_info') const updateCurriculumInfo = require('./update_curriculum_info') const updateScheduleInfo = require('./update_schedule_info') const taskScheduler = require('./task_scheduler') cons...
TennyZhuang/CamusAPI
app/tasks/register.js
JavaScript
mit
1,142
/** * Created by hbzhang on 8/5/15. */ 'use strict'; angular.module('mean.helpers').factory('AllWidgetData',['$resource','$rootScope', function($resource,$rootScope) { var allwidgets=[ { name: 'Announcement', data: [] }, { name:...
hbzhang/me
me/packages/custom/helpers/public/services/widgets/allwidgets.js
JavaScript
mit
442
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-US" xmlns="http://www.w3.org/1999/xhtml" xml:lang= "en-US"> <head> <title>Object Serialization Enhancements</title><script>var _hmt = _hmt |...
piterlin/piterlin.github.io
doc/technotes/guides/serialization/relnotes.html
HTML
mit
21,218
<?php /** * Template Name: Gallery Archive 3 Columns Wide * The main template file for display gallery page. * * @package WordPress */ /** * Get Current page object **/ $ob_page = get_page($post->ID); $current_page_id = ''; if(isset($ob_page->ID)) { $current_page_id = $ob_page->ID; } get_header(); //Check i...
rsantellan/wordpress-ecommerce
wp-content/themes/photome/gallery-archive-3-wide.php
PHP
mit
3,767
/* * The MIT License * * Copyright 2015 Ahseya. * * 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, ...
horrorho/LiquidDonkey
src/main/java/com/github/horrorho/liquiddonkey/Dump.java
Java
mit
2,954
require 'csv' def convert(name, review_column) text = File.read("../data/#{name}.tsv").gsub(/\\"/, '""') all_lines = CSV.parse(text, col_sep: "\t") #aa = a[10][2].encode!("UTF-8") all_subs = [ ['‘', "'"], ['´', "'"], ['`', "'"], ['’', "'"], ['“', '"'], ['«', '"'], ['»', '"'], ] ...
lukaselmer/hierarchical-paragraph-vectors
code/preprocess/replace.rb
Ruby
mit
3,480
import JoiBase from 'joi'; import {postHandlerFactory, getHandlerFactory} from './common'; import FullDateValidator from '../../../../shared/lib/joi-full-date-validator'; const Joi = JoiBase.extend(FullDateValidator); const schema = Joi.object().keys({ 'day': Joi.number().integer().min(1).max(31).required().label('...
nhsuk/register-with-a-gp-beta-web
src/server/plugins/register-form/steps/date-of-birth.js
JavaScript
mit
1,864
vty-integrate ================ integration testing of vty
coreyoconnor/vty-integrate
README.md
Markdown
mit
59
#ifndef CALLBACK_HPP_ # define CALLBACK_HPP_ # include "my_opengl.hpp" # include "vect.hpp" # include "logic.hpp" namespace Callback { void setCallbacks(GLFWwindow *window); void mouseCallback(GLFWwindow *window, double x, double y); void mouseButtonCallback(GLFWwindow *window, int button, int action, int mods...
baillyjamy/Nano-Swarm
include/callback.hpp
C++
mit
737
<!DOCTYPE html> <html lang="en"> <head> <title>Trirand jqTreeGrid - jQuery based tree grid HTML5 component for Javascript</title> <!-- Temporary fix --> <script src="../js/jquery.min.js" type="text/javascript"></script> <script src="../js/jquery-ui.min.js" type="text/javascript"></script> <link rel=...
lapakku2016/ciproject
assets/lib/gurido/treegridjs/index.html
HTML
mit
5,953
module GemFuzzy class FuzzyMatcher def initialize(name, version) @name = name @version = version end def all_available_matches matches([]) end def matches(specs) specs = matches_for(specs, :name, @name) specs = matches_for(specs, :version, @version) if @version ...
oggy/gem_info
lib/gem_fuzzy/fuzzy_matcher.rb
Ruby
mit
1,370
I am the graph built from a FAMIX/Orion model.
juliendelplanque/SFDiff
repository/SimilarityFlooding.package/SFEdgeNamedGraph.class/README.md
Markdown
mit
46
Divers scripts de manipulation des tableaux de lignes de transport du wiki La structure de chaque tableau pouvant varier, ces scripts restent à adapter au contexte. * wiki2csv : récupère la liste des lignes depuis le wiki (`wiki2csv_routes_list.csv`) * osm2wiki : crée le tableau à mettre sur la wiki à partir des élém...
nlehuby/OSM_snippets
wiki/README.md
Markdown
mit
561
#!/bin/bash ################################################# # Libs ################################################# Originator__autoload "$Originator__module_directory"/lib ################################################# # Dispatch # # @param $1: The action to take # @param $2+: Any additional params to pass to #...
DigitalCitadel/originator
modules/self/bootstrap.bash
Shell
mit
653
<?php // C:\xampp\htdocs\login\vendor\bundles\Symfony\Bundle\WebConfiguratorBundle/Resources/views\layout.html.twig return array ( );
VelvetMirror/login
app/cache/dev/assetic/config/a/a55d388ad257d169e5d2b873492b1b4d.php
PHP
mit
135
from __future__ import absolute_import from .validates import *
openelections/openelections-core
openelex/us/vt/validate/__init__.py
Python
mit
64
<?php use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AlterViewVisitKpi3 extends Migration { /** * Run the migrations. * * @return void */ public function up() { ...
seed-builder/mmk
database/migrations/2017_10_25_150048_alter_view_visit_kpi3.php
PHP
mit
3,660
# VariableGridLayoutGroup The built-in GridLayoutGroup component in Unity's UI is limited to identical cell sizes specified in the inspector. This custom script allows you to create a grid whose columns and rows are variable sizes, dynamically resizing to fit the largest content in that row or column. An explainer vi...
quoxel/VariableGridLayoutGroup
README.md
Markdown
mit
1,044
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, ...
ramasamys/T_Report
application/config/config.php
PHP
mit
12,850
/* * This file is part of ArborianQuests for Bukkit, licensed under the MIT License (MIT). * * Copyright (c) JCThePants (www.jcwhatever.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 So...
JCThePants/ArborianQuests
src/com/jcwhatever/arborianquests/commands/admin/flags/FlagsCommand.java
Java
mit
1,748
#ifndef CG_OPENGL_OPENGL_DEF_H_ #define CG_OPENGL_OPENGL_DEF_H_ #include "cg/rnd/opengl/glcorearb.h" extern "C" { extern PFNGLCULLFACEPROC glCullFace; extern PFNGLFRONTFACEPROC glFrontFace; extern PFNGLHINTPROC glHint; extern PFNGLLINEWIDTHPROC glLineWidth; extern PFNGLPOINTSIZEPROC glPointSize; exte...
ref2401/cg
src/cg/rnd/opengl/opengl_def.h
C
mit
37,453
require 'spec_helper' require 'comment_extractor/extractor/clojure' class CommentExtractor::Extractor describe Clojure do it_behaves_like 'extracting comments from', 'clojure.clj' it_behaves_like 'detecting filename', 'file.clj' end end
alpaca-tc/comment_extractor
spec/comment_extractor/extractor/clojure_spec.rb
Ruby
mit
250
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>tortoise-hare-algorithm: Error with dependencies</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../....
coq-bench/coq-bench.github.io
clean/Linux-x86_64-4.13.1-2.1.0/extra-dev/dev/tortoise-hare-algorithm/8.6.0.html
HTML
mit
27,740
sealed trait Term case class TmTrue(info: String) extends Term case class TmFalse(info: String) extends Term case class TmIf(info: String, term1: Term, term2: Term, term3: Term) extends Term case class TmZero(info: String) extends Term case class TmSucc(info: String, term: Term) extends Term case class TmPred(in...
backpaper0/sandbox
tapl/arith.scala
Scala
mit
1,791
var getDefaultViewController = function () { var defaultView = getSetting('defaultView', 'top'); defaultView = defaultView.charAt(0).toUpperCase() + defaultView.slice(1); return eval("Posts"+defaultView+"Controller"); }; // Controller for all posts lists PostsListController = FastRender.RouteController.extend({...
wrichman/tuleboxapp
lib/router/posts.js
JavaScript
mit
6,598
package com.arkcraft.mod.core.entity; import com.arkcraft.mod.core.GlobalAdditions; import com.arkcraft.mod.core.entity.passive.EntityDodo; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.projectile.EntityThrowable; import net.minecraft.item.Item; import net.minecraft.util.DamageSource; impo...
tterrag1098/ARKCraft-Code
src/main/java/com/arkcraft/mod/core/entity/EntityDodoEgg.java
Java
mit
2,261
<!doctype html> <html lang="en"> <head> <title>Code coverage report for examples\css-bundle\</title> <meta charset="utf-8"> <link rel="stylesheet" href="../../prettify.css"> <style> body, html { margin:0; padding: 0; } body { font-family: Helvetica Neue,...
paulshen/me
node_modules/webpack/coverage/lcov-report/examples/css-bundle/index.html
HTML
mit
12,707
--- layout: post title: "linux下的yum使用技巧" date: 2016-04-12 09:25:20 +0700 categories: [linux, yum] --- 经常会遇上一些linux系统允许你上外网,而一些是不允许的,这时我们可以从可以上外网的服务器上把yum下载的包拷贝过来,但是一般yum安装的包没有报错包文件,无法拷贝,为了解决这个问题,这里介绍一些小技巧。 # 安装一般依赖包方法: - 如果linux系统有外网,直接yum install就可以安装,可以用yum list查看 - 如果没有外网,可以利用光盘搭建一个本地源,然后直接yum安装。 # 利用光盘配置本...
GalenGao/GalenGao.github.io
_posts/2016-04-12-linux yum skills.md
Markdown
mit
2,731
using System; using System.Collections.Generic; using System.Linq; using System.Text; using WalkMatrix.Contracts; using WalkMatrix.MatrixGenerator; namespace WalkMatrix { public class Position : IPosition { private int row; private int col; public int Col { get ...
todorm85/TelerikAcademy
Courses/Programming/High Quality Code/Homework/13. Refactoring/MatrixWalk/Matrix/Position.cs
C#
mit
2,124
--TEST-- AMQPExchange publish with properties - ignore unsupported header values (NULL, object, resources) --SKIPIF-- <?php if (!extension_loaded("amqp")) print "skip"; ?> --FILE-- <?php $cnn = new AMQPConnection(); $cnn->connect(); $ch = new AMQPChannel($cnn); $ex = new AMQPExchange($ch); $ex->setName("exchange-" . ...
cmorenokkatoo/kkatooapp
amqp-1.8.0beta2/tests/amqpexchange_publish_with_properties_ignore_unsupported_header_values.phpt
PHP
mit
1,026
local io_write = io.write local yield = coroutine.yield local timer if jit.os == 'Windows' then local ffi = require'ffi' ffi.cdef[[ bool QueryPerformanceCounter(int64_t *lpPerformanceCount); bool QueryPerformanceFrequency(int64_t *lpFrequency); ]] local i64ptr = ffi.new'int64_t[1]' assert(ffi.C.QueryPerf...
radioflash/ljusb
crtest.lua
Lua
mit
852
package org.superboot.config; import com.google.common.collect.Lists; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.superboot.base.BaseConstants; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders...
7040210/SuperBoot
super-boot-global/src/main/java/org/superboot/config/Swagger2Config.java
Java
mit
3,832
'use strict'; const Gitlab = require('gitlab'); const async = require('async'); const utils = require('./utils'); const moment = require('moment'); class GitLabWrapper { constructor(config, notifier) { this.config = config; this.client = null; this.projects = {}; this.u...
romanresh/gitlab-center
src/core/client.js
JavaScript
mit
7,856
# Adapted from a version by MJ Berends @approximatelylinear VERSION=1 BUILD_DATE=$(shell date +%Y%m%dT%H%M) export VERSION export BUILD_DATE all: build up ensure_perms: @echo "Ensuring that shell scripts are executable on the host, since host perms will override container perms" chmod +x ./wait-for-it.sh build: ...
CZagrobelny/new_sanctuary_asylum
Makefile
Makefile
mit
831
require 'uri' require 'zlib' require 'logger' require 'eventmachine' require 'beefcake' require 'nokogiri' require 'json' %w(protobuf protocol errors store router connection cluster compressor binary_json).each do |file| require File.join(File.dirname(__FILE__), 'em-voldemort', file) end
rapportive-oss/em-voldemort
lib/em-voldemort.rb
Ruby
mit
292
<!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"><!-- InstanceBegin template="/Templates/as-mag-inside-10.dwt" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html...
ksascomm/fanzinedev
web/sp11/a1.html
HTML
mit
9,624
require "spec_helper" module Raygun module Breadcrumbs describe Store do let(:subject) { Store } after { subject.clear } describe "#initialize" do before do expect(subject.stored).to eq(nil) subject.initialize end it "creates the store on the curre...
MindscapeHQ/raygun4ruby
spec/raygun/breadcrumbs/store_spec.rb
Ruby
mit
4,256
<html><body> <h4>Windows 10 x64 (18363.900)</h4><br> <h2>_ETW_BUFFER_STATE</h2> <font face="arial"> EtwBufferStateFree = 0n0<br> EtwBufferStateGeneralLogging = 0n1<br> EtwBufferStateCSwitch = 0n2<br> EtwBufferStateFlush = 0n3<br> EtwBufferStatePendingCompression = 0n4<br> EtwBufferStateCompress...
epikcraw/ggool
public/Windows 10 x64 (18363.900)/_ETW_BUFFER_STATE.html
HTML
mit
431
using UnityEngine; using System.Collections; public class Destroyer : MonoBehaviour { void OnTriggerEnter2D(Collider2D col) { //destroyers are located in the borders of the screen //if something collides with them, the'll destroy it string tag = col.gameObject.tag; if(tag == ...
dgkanatsios/AngryBirdsClone
Assets/Scripts/Destroyer.cs
C#
mit
429
require 'test_helper' require 'picture_frame/stencil' class StencilTest < Minitest::Test def setup @corner_stencil = PictureFrame::Stencil.new( "abcde\n" + "12@45\n" + "qrstu\n" + "vwxyz\n" ) end def test_position assert_equal [1, 2], @corner_stencil.position('@') end de...
mschuerig/picture_frame
test/stencil_test.rb
Ruby
mit
1,064
using System; using System.Collections.Generic; namespace LinqToCompute.Utilities { internal static class TypeSystem { internal static Type GetElementType(Type seqType) { Type ienum = FindIEnumerable(seqType); return ienum?.GetGenericArguments()[0] ?? seqType; }...
discosultan/LinqToCompute
Src/Utilities/TypeSystem.cs
C#
mit
1,532
const gulp = require('gulp'); const size = require('gulp-size'); const sass = require('gulp-sass'); const plumber = require('gulp-plumber'); const cleanCss = require('gulp-clean-css'); const sourcemaps = require('gulp-sourcemaps'); const autoprefixer = require('gulp-autoprefixer'); /** * Copy app.css to dist/ without...
Ludachrispeed/common-tasks
styles.js
JavaScript
mit
1,806
# frozen_string_literal: true # Copyright the Linux Foundation and the # OpenSSF Best Practices badge contributors # SPDX-License-Identifier: MIT module BadgeStaticHelper end
coreinfrastructure/best-practices-badge
app/helpers/badge_static_helper.rb
Ruby
mit
177
verify_devpi_server() { server_root=$1 version=$2 data_dir=${3:-$server_root/data} sudo -u devpi test -x "$server_root/bin/devpi-server" output=$("$server_root/bin/devpi-server" --version) test $? -eq 0 test -z "$version" -o "$output" = "$version" test -e "$data_dir/.event_serial" test -e "$data_dir/.secret"...
dave-shawley/devpi-cookbook
test/integration/lwrp/bats/test_helpers.bash
Shell
mit
1,147
package main import ( "fmt" "net/http" "strings" ) type formField struct { Present bool Value string } func (f formField) UpdatePresent(p bool) formField { f.Present = p return f } func checkField(key string, r *http.Request) formField { var f formField f.Value = r.FormValue(key) if len(f.Value) != 0 { ...
boseji/GoPlayground
005_DbFunda/01_Mysql/03_simple-CURD-server/pages.go
GO
mit
4,561
#if !defined(UNICSTRING_API_C_UTILS_HPP) #define UNICSTRING_API_C_UTILS_HPP // This is an internal helper utilities for C API. #include <UniCString/C/UniCTypes.h> #include <Core/Exception.hpp> #include <Core/String.hpp> namespace UniCString { namespace API { namespace Utils { inline void Cre...
vycasas/unicstring
API/UniCString/C/APIUtils.hpp
C++
mit
1,862
import React, { Component } from 'react'; import axios from 'axios'; import { Router, Link } from 'react-router'; import { Button } from 'react-bootstrap'; export default class trueMenu extends Component { constructor(props) { super(); this.state = { displayCreateBoard: false, displayJoin: false...
gdomorski/CodeOut
client2/src/components/rooms/menu_createRoom.js
JavaScript
mit
2,093
<?php $inventoryCatagory_data=$this->DataModel->getInventoryItemCatagoryId(); ?> <div class="grid-container"> <div class="container"> <div class="form-group"> <input type="search" class="form-control" name="search" placeholder="Search" data-action="grid_search" data-search-id="inventoryCatagory_data"> </div> ...
ninexinnovation/transcended
application/views/tasks/inventoryCatagoryView.php
PHP
mit
859
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML> <HEAD> <TITLE></TITLE> </HEAD> <BODY> <A name=1></a><hr> <A name=2></a><hr> <A name=3></a>30344<br> X<br> December 29, 2014<br> Alice D. Webber<br> Engineering Technician<br> <hr> <A name=4></a>30344<br> NOTIFY NDIC INSPECTOR SAMUEL SKURUPEY AT 701-7...
datamade/elpc_bakken
html/pdf/W30344.pdfs.html
HTML
mit
20,471
package br.com.pattern.structural.facade; public class Quadrado implements Forma { @Override public void desenha() { System.out.println("+---------+"); System.out.println("| |"); System.out.println("| |"); System.out.println("| |"); System.out.println("+---------+"); } }
Arivaldo/patterns
pattern/src/main/java/br/com/pattern/structural/facade/Quadrado.java
Java
mit
313
package io.github.oliviercailloux.javaee_inject_produces_servlets.model; import java.io.Serializable; /** * Class needs to be serializable in order to be useable in the session scope. * * @author olivier * */ public class User implements Serializable { private String name; public User() { name = ""; } /...
oliviercailloux/samples
JavaEE-Inject-Produces-Servlets/src/main/java/io/github/oliviercailloux/javaee_inject_produces_servlets/model/User.java
Java
mit
649
<?php $titre="Blog | SiteduSavoir.com"; include("../includes/session.php"); include("../includes/identifiants.php"); include("../includes/debut.php"); include("../includes/menu.php"); ?> <ul class="fildariane"> <li><a href="../index.php">Accueil</a></li> <li><a href="./index.php">Blog</a></li> </ul> <div class=...
malnuxstarck/SiteDuSavoir
blog/index.php
PHP
mit
2,551
import hashlib import hmac import json import requests class GitHubResponse: """Wrapper for GET request response from GitHub""" def __init__(self, response): self.response = response @property def is_ok(self): """Check if request has been successful :return: if it was OK ...
MarekSuchanek/repocribro
repocribro/github.py
Python
mit
9,565
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package kroki.app.action; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.io.File; import javax.swing.AbstractAction; import javax.swing.ImageIcon; import javax.swing.JFileChooser; import...
VladimirRadojcic/Master
KrokiMockupTool/src/kroki/app/action/OpenProjectAction.java
Java
mit
2,824
/* eslint-disable no-param-reassign */ import Vue from 'vue'; export default { namespaced: true, state: { cache: null, }, mutations: { setCache(state, value) { state.cache = value; }, }, actions: { get({ state, commit }, cache = true) { ...
contao/package-manager
src/store/server/selfUpdate.js
JavaScript
mit
1,389
#ifdef __OBJC__ #import <UIKit/UIKit.h> #else #ifndef FOUNDATION_EXPORT #if defined(__cplusplus) #define FOUNDATION_EXPORT extern "C" #else #define FOUNDATION_EXPORT extern #endif #endif #endif FOUNDATION_EXPORT double Pods_SBrick_iOS_ExampleVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_SBrick_iOS_Example...
BarakRL/SBrick-iOS
Example/Pods/Target Support Files/Pods-SBrick-iOS_Example/Pods-SBrick-iOS_Example-umbrella.h
C
mit
338
# frozen_string_literal: true class X509CertificateRevokeWorker include ApplicationWorker feature_category :source_code_management idempotent! def perform(certificate_id) return unless certificate_id X509Certificate.find_by_id(certificate_id).try do |certificate| X509CertificateRevokeService....
mmkassem/gitlabhq
app/workers/x509_certificate_revoke_worker.rb
Ruby
mit
363
$(function () { $('.imageUploadMultiple').each(function (index, item) { var $item = $(item); var $group = $item.closest('.form-group'); var $innerGroup = $item.find('.form-group'); var $errors = $item.find('.errors'); var $input = $item.find('.imageValue'); var flow =...
Malezha/SleepingOwlAdmin
resources/assets/js/form/image/initMultiple.js
JavaScript
mit
2,108
export class App { constructor (router) { this.router = router; } configureRouter (config, router) { this.router = router; config.map([ { name: 'orders', route: ['', 'orders'], moduleId: 'modules/orders/index', nav: true, title: "Orders" } , { name: 'order'...
sbxtien/aurelia-test
src/app.js
JavaScript
mit
400
#include <iostream> #include <fstream> #include <seqan/basic.h> #include <seqan/index.h> #include <seqan/seq_io.h> #include <seqan/sequence.h> #include <seqan/file.h> #include <seqan/score.h> #include <seqan/seeds.h> #include <seqan/align.h> using namespace seqan; bool readFASTA(char const * path, CharString &id, Dn...
bkahlert/seqan-research
raw/pmsb13/pmsb13-data-20130530/sources/130wu1dgzoqmxyu2/2013-04-28T18-18-26.953+0200/sandbox/my_sandbox/apps/lagan_neu/lagan_neu.cpp
C++
mit
5,364
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import '../resources/f...
zackhall/ack-chat
app/index.js
JavaScript
mit
599
# [uiTable](http://berndwessels.github.io/angular-ui-table) A faster and better AngularJS data grid. *** ## Examples See uiTable in action here [http://berndwessels.github.io/angular-ui-table](http://berndwessels.github.io/angular-ui-table). ## Usage ### 1. Install It uiTable is available through Bower, so this ...
BerndWessels/angular-ui-table
README.md
Markdown
mit
2,386
<html> <head> <title>资源与账</title> <meta charset="utf-8"> <link rel="stylesheet" href="github-markdown.css"> <style> .markdown-body { box-sizing: border-box; min-width: 200px; max-width: 980px; margin: 0 auto; padding: 45px; } ...
MyErpSoft/System.ERP.Documents
zh-chs/02 Resources and Sheet.html
HTML
mit
14,210
<?php /** * @xmlNamespace http://schema.intuit.com/finance/v3 * @xmlType SalesTransaction * @xmlName IPPSalesReceipt * @var IPPSalesReceipt * @xmlDefinition SalesReceipt Transaction entity */ class IPPSalesReceipt extends IPPSalesTransaction { /** ...
emoxie/quickbooks-sdk
src/Data/IPPSalesReceipt.php
PHP
mit
1,695
# doublycircular Doubly Circular linked list with iterator and array-like interface [![Build Status badge](http://img.shields.io/travis/rampantmonkey/node-doublycircular.svg?style=flat)](https://travis-ci.org/rampantmonkey/node-doublycircular) [![npm package version badge](http://img.shields.io/npm/v/doublycircular.s...
rampantmonkey/node-doublycircular
README.md
Markdown
mit
2,855
@echo off call %LOCAL_SETUP% call %LOCAL%\etc\fstab.bat call logging.bat PC‚ð‹N“®‚µ‚Ü‚µ‚½ taskkill /f /im explorer.exe & start explorer REM RC_INIT set FOLD=%LOCAL%\sched\rc.init if exist %FOLD% ( CD /d %FOLD%\ for /f "usebackq" %%i in (`dir /b /a-d`) do ( call start cmd /c "%%i" call wait 3 ...
kunst1080/BatLibrary
bin/Startup.bat
Batchfile
mit
598
--- layout: post title: Trying out Ruby [‘and’, ’on’] Rails tags: ruby rails --- # Ruby I joined [Altizon Systems](http://altizon.com) in August and we have our backend primarily in Ruby on Rails. In the first week, I setup the environment and before directly going to rails framework I started looking for “Getting sta...
sitaramshelke/sitaramshelke.github.io
_posts/2016-09-05-trying-ruby-and-or-rails.md
Markdown
mit
2,935
--- layout: post title: Location Location Location Matters... sort of --- 'Location, Location, Location.' It's a real estate platitude. Some consider location the greatest influence on home prices. But is it true? ![nukesmap](../images/Project3Housing/bad-location.png) In Ames, Iowa, location is one of many predicto...
MisterCoffey/MisterCoffey.github.io
_posts/2017-02-16-AmesHousingI.md
Markdown
mit
2,016
--- title: Hobbiton Tours listing-type: attractions island: north region: waikato destination: Waikato order: a image-path: hobbiton-tours.jpg image-alt: Hobbiton Tours refer-url: http://www.hobbitontours.com/ --- Offers informative and entertaining tours of the Lord of the Rings and The Hobbit's Hobbiton filming loc...
NZescape/nzescape.github.io
_listings/north/waikato/hobbiton-tours.md
Markdown
mit
360
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width" /> <title>Maze Generator - HTML5 / Javasript Maze Generating Algorithm Fun</title> <link rel="stylesheet" href="../css/normalize.css" /> <link rel="stylesheet" href="../css/foundation.css" /> ...
brandonheyer/mazejs
demo/index.html
HTML
mit
8,781
function solve(input){ let result=input.toString(); let sum=0; let count=0; while(input>=1){ sum+=input%10; count++; input=Math.floor(input/10); } while(sum/count<=5){ sum+=9; count++; result+='9'; } console.log(result) } solve(101);
mitaka00/SoftUni
JS Core/JS Fundamentals/Functions-Exercises/05.Modify Average.js
JavaScript
mit
317
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("Ho...
hrist0stoichev/HotelsSystem
Source/Data/HotelsSystem.Data/Properties/AssemblyInfo.cs
C#
mit
1,410
import Zip from 'adm-zip'; /** * @param {Type} * @return {Type} */ export default function (filePath) { let courseZip = new Zip(filePath); let courseFileScanner = { getZipObject: () => { return courseZip; }, getCourseFiles: () => { return courseZip.getEntries().filter(courseFileScanner...
collectively-made/course-file-scanner
src/index.js
JavaScript
mit
1,035
import os def Dir_toStdName(path): if not (path[-1]=="/" or path[-1] == "//"): path=path+"/" return path def Dir_getFiles(path): path=Dir_toStdName(path) allfiles=[] files=os.listdir(path) for f in files: abs_path = path + f if os.path.isdir(abs_path): sub_files=Dir_getFiles(abs_path) sub_fil...
FSource/Faeris
tool/binpy/libpy/files/Dir.py
Python
mit
703
using System.Collections.Generic; namespace aed.org.mt.Models { public class HomeIndexModel { public IEnumerable<AEDEntity> AEDs { get; set; } } }
cdemi/aed.org.mt
src/aed.org.mt/Models/HomeIndexModel.cs
C#
mit
171
# TV Organizer Manage episodes of various tv shows Goal is to completely manage all episodes from tv series, rename them, find informations, etc. Final objective is to integrate it into more complex system.
ghivert/Student-Projects
Miscellaneous/Various Scala/tv-organizer/README.md
Markdown
mit
213
# Phusion Server Tools A collection of server administration tools that we use. Everything is written in Ruby and designed to work with Debian. These scripts may work with other operating systems or distributions as well, but it's not tested. [Read documentation with table of contents.](http://phusion.github.com/phusi...
phusion/phusion-server-tools
README.md
Markdown
mit
13,701
# 首次试 ~ 此目录收集, 入门时,编程的各种冲突 ## 进展 - 150924 大妈创建 - 20151017 - 为了完成任务"关联自己的Github仓库OMOOC2py和Gitbook",按照gitbook的官方说明GitHub Integration这一章节来进行设置。设置完了以后,点进gitbook看,效果不并像其他学员那样有大妈设置好整齐划一的结构。是我哪里弄错了嘛?反反复复检查了很多遍,都不知道自己哪里设置错了。但是进入book的编辑模式,又能看到大妈设置的默认模板。但就在刚刚随便改了下默认模板,点保存,再看这本书的所有的结构都有了。(图片待补,现在要去看头脑特工队压压惊) 安装disqus插...
zengyumi/OMOOC2py
1sTry/README.md
Markdown
mit
843