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 |
|---|---|---|---|---|---|
# Multidimensional image viewer for MicroManager (MdV)
[](https://david-dm.org/hirokai/MicroManagerViewer)
[](https://david-dm.org/hirokai/MicroManagerViewer#i... | hirokai/MicroManagerViewer | README.md | Markdown | mit | 1,234 |
#!/bin/sh
set -e
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
case "${TARGETED_DEVICE_FAMILY}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
1)
... | himyfairy/EasyTrack | EasyTrack/Pods/Target Support Files/Pods-EasyTrack/Pods-EasyTrack-resources.sh | Shell | mit | 5,229 |
# match-path

## install
```sh
$ npm install bloody-matchpath
```
## require
```javascript
var matchPath = require("bloody-matchpath")
```
## api
### `matchPath(string, matcher) > Boolean`
checks `string` using the `mat... | bloodyowl/match-path | README.md | Markdown | mit | 503 |
package main
import (
"errors"
"fmt"
"io/ioutil"
"os"
)
type Graph struct {
nodes map[int]Node
}
type Node struct {
payload byte
adj map[int]struct{}
}
func NewGraph() Graph {
return Graph{make(map[int]Node)}
}
func (g *Graph) addNode(key int, data byte) {
g.nodes[key] = Node{payload: data, adj: make(... | parnurzeal/go-graphsearch | adj_graph2/main.go | GO | mit | 3,319 |
{% extends 'bookbase.html' %}
{% block title %}
CHAPTER I
— {{ SITENAME }}{% endblock %}
{% block content %}
{% include '_include/crimeandpunishment26.html' %}
{% endblock %}
| charlesreid1/wordswordswords | pelican/crimeandpunishment/fdcp26.html | HTML | mit | 189 |
(function (angular) {
"use strict";
angular
.module("Cerberus.TemplateEditor")
.controller("Cerberus.TemplateEditor.Controller.ComponentEditor.Navigation.Link", function () { });
})(window.angular); | AgronKabashi/TemplateEngine | src/templateeditor/controller/componentEditor/navigation/link.js | JavaScript | mit | 211 |
'use strict'
import React, { PropTypes } from 'react';
import { Button } from 'antd';
import { Link } from 'react-router';
import * as actions from '../action/note'
class Notes_item extends React.Component{
onDeleteNote (event) {
event.preventDefault()
this.props.onDeleteNote(this.props.note._id)
}
ren... | cashyu/reactNode | client/src/components/note_item.js | JavaScript | mit | 1,231 |
using System.IO;
using TQVaultAE.Domain.Entities;
namespace TQVaultAE.Domain.Contracts.Providers
{
public interface ISackCollectionProvider
{
/// <summary>
/// Encodes the sack into binary form
/// </summary>
/// <param name="writer">BinaryWriter instance</param>
void Encode(SackCollection sc, BinaryWrite... | EtienneLamoureux/TQVaultAE | src/TQVaultAE.Domain/Contracts/Providers/ISackCollectionProvider.cs | C# | mit | 532 |
package io.keepcoding.everpobre.util;
public class Constants {
public static String appName = "io.keepcoding.everpobre";
public static String intent_key_notebook_id = "io.keepcoding.everpobre.notebook.id";
}
| dfreniche/Everpobre | app/src/main/java/io/keepcoding/everpobre/util/Constants.java | Java | mit | 219 |
Package.describe({
summary: "Sentinel role based authorization."
});
Package.on_use(function (api) {
var both = ['client', 'server'];
api.use(['coffeescript', 'underscore', 'accounts-base'], both);
api.add_files('sentinel.litcoffee', both);
api.export && api.export('Sentinel');
});
| ai10/sentinel-meteor | package.js | JavaScript | mit | 315 |
//
// Created by Neo on 16/9/13.
//
#ifndef RAYTRACING_CL_GRADIENT_H
#define RAYTRACING_CL_GRADIENT_H
#include <string>
#include "cl_utils/context.h"
#include "cl_utils/kernel.h"
#include "volume_data.h"
class CLGradient {
public:
CLGradient(std::string kernel_path,
std::string kernel_... | theNded/RayTracing | include/cl_gradient.h | C | mit | 705 |
/*
*
* ToolPage reducer
*
*/
import { fromJS } from 'immutable';
import {
DEFAULT_ACTION,
REAL_WORLD_EXAMPLE,
CONTRIBUTED_BY,
LEARN_MORE,
SET_CHOSEN_SECTION,
RESET_TOOL_STATE,
SET_EXPAND_ALL
} from './constants';
const initialState = fromJS({
expandAll: false,
chosenSection: REAL_WORLD_EXAMPLE,
... | BeautifulTrouble/beautifulrising-client | app/containers/ToolPage/reducer.js | JavaScript | mit | 752 |
'use strict';
const DateRange = require('../../../api/lib/DateRange');
const moment = require('moment');
describe('DateRange', () => {
describe('constructor', () => {
it('should assign properties correctly', () => {
var from = new Date();
var to = new Date();
var result = new DateRange(from, ... | UKHomeOffice/removals_integration | test/unit/lib/DateRange.test.js | JavaScript | mit | 2,871 |
/*!@addtogroup other
* @{
* @defgroup holitdata HDS Motor MUX
* Holit Data Systems Motor MUX
* @{
*/
#ifndef __HDMMUX_H__
#define __HDMMUX_H__
/** \file holitdata-motormux.h
* \brief Holit Data Systems Motor MUX driver
*
* holitdata-motormux.h provides an API for the Holit Data Systems Motor MUX.
*
* Changel... | dlacres/GeekMyBot | RobotC/include/holitdata-motormux.h | C | mit | 14,314 |
-- boundary3.test
--
-- db eval {
-- SELECT t2.a FROM t2 NATURAL JOIN t1
-- WHERE t1.rowid <= 36028797018963967 ORDER BY t1.a DESC
-- }
SELECT t2.a FROM t2 NATURAL JOIN t1
WHERE t1.rowid <= 36028797018963967 ORDER BY t1.a DESC | bkiers/sqlite-parser | src/test/resources/boundary3.test_1683.sql | SQL | mit | 236 |
"""
@file
@brief Buffer as a logging function.
"""
from io import StringIO
class BufferedPrint:
"""
Buffered display. Relies on :epkg:`*py:io:StringIO`.
Use it as follows:
.. runpython::
:showcode:
def do_something(fLOG=None):
if fLOG:
fLOG("Did something.... | sdpython/pyquickhelper | src/pyquickhelper/loghelper/buffered_flog.py | Python | mit | 844 |
# Webpage
Webpage object contains the rules of webpage to be excluded.
### Service
+ [CampaignWebpageService](../../services/CampaignWebpageService.md)
### Namespace
[CampaignWebpageService#Namespace](../../services/CampaignWebpageService.md#namespace)
| Field | Type | Description | response | add | remove
|---|---... | yahoojp-marketing/sponsored-search-api-documents | docs/en/api_reference/data/CampaignWebpage/Webpage.md | Markdown | mit | 1,074 |
package premailer
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestBasicHTMLFromFile(t *testing.T) {
p, err := NewPremailerFromFile("data/markup_test.html", nil)
assert.Nil(t, err)
resultHTML, err := p.Transform()
assert.Nil(t, err)
assert.Contains(t, resultHTML, "<h1 style=\"width:50px;col... | vanng822/go-premailer | premailer/premailer_from_file_test.go | GO | mit | 843 |
<div class="content">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="content">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#detail" aria-controls="1" role="tab" data-toggle="tab">Detail</a></li>
... | toriqpriad/depousaha | application/views/admin/product/detail.php | PHP | mit | 8,514 |
package xrest
type Plugger interface {
Plug(Handler) Handler
}
| AlexanderChen1989/xrest | plug.go | GO | mit | 65 |
class PowerAttribute < ActiveRecord::Base
belongs_to :power
end
| Gonozal/Character-Sheet | app/models/power_attribute.rb | Ruby | mit | 66 |
from django.contrib import admin
from bananas.apps.appointment.forms import AppointmentForm
from bananas.apps.appointment.models import Appointment
from bananas.apps.appointment.models import AppointmentType
@admin.register(Appointment)
class AppointmentAdmin(admin.ModelAdmin):
list_display = (
'time',
... | tmcdonnell87/bananas | bananas/apps/appointment/admin.py | Python | mit | 1,876 |
# ExtensionClassContainerImpl1map
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ioPeriodjenkinsPeriodblueoceanPeriodservicePeriodembeddedPeriodrestPeriodPipelineImpl** | [**ExtensionClassImpl**](ExtensionClassImpl.md) | | [optional] [default to null]
**... | cliffano/swaggy-jenkins | clients/bash/generated/docs/ExtensionClassContainerImpl1map.md | Markdown | mit | 735 |
<h1>ESTATÍSTICAS</h1>
<div class="ui piled segment">
<div class="ui huge four statistics">
<div class="statistic">
<div class="value">
22.581
</div>
<div class="label">
POSTS APROVADOS
</div>
</div>
<div class="statistic">
<div class="value">
980
... | zueirafc/client-app | app/resources/components/views/admin/dash.html | HTML | mit | 1,626 |
//This snippet is a sample of using a JavaScript client library to access a public API
//require the https module to enable a connection to the https protocol URL of the public API
let http = require('http');
let key = require('./modules/auth.js');
let _key = key;
let location = 'Lagos';
//Use the GET method to send... | codefusser/BootcampLOS21HomeSessions | Client library_API/weatherapi.js | JavaScript | mit | 1,211 |
taskName = "Problem3.DeepCopy";
function Main(bufferElement) {
function createDeepCopy(obj) {
if (obj === null || typeof obj !== 'object') {
return obj;
}
var copy = obj.constructor();
for (var prop in obj) {
copy[prop] = createDeepCopy(obj[prop]);
... | DJBuro/Telerik | JavaScriptFund/UsingObjects/Problem3.DeepCopy/js/script.js | JavaScript | mit | 737 |
--[[
Jamba - Jafula's Awesome Multi-Boxer Assistant
Copyright 2008 - 2015 Michael "Jafula" Miller
License: The MIT License
]]--
local L = LibStub( "AceLocale-3.0" ):NewLocale( "Jamba-Toon", "enUS", true )
L["Slash Commands"] = true
L["Toon: Warnings"] = true
L["Push Settings"] = true
L["Push the toon settings to all c... | Dual-Boxing/Jamba | Modules/Jamba-Toon/Locales/JambaToon-Locale-enUS.lua | Lua | mit | 4,089 |
using System;
namespace BankAccounts
{
public class Individual : Customer
{
private DateTime dateOfBirth;
private string personalIdNumber;
public DateTime DateOfBirth
{
get
{
return this.dateOfBirth;
}
private set... | Redsart/Telerik-Software-Academy | C#/OOP/05.OOP-Principles-Part-2/BankAccounts/Individual.cs | C# | mit | 2,189 |
/*
* Core Owl Carousel CSS File
*/
.slider-wrapper .owl-wrapper:after {
line-height: 0;
display: block;
visibility: hidden;
clear: both;
height: 0;
content: '.';
}
.slider-wrapper {
position: relative;
display: none;
-ms-touch-action: pan-y;
}
.slider-wrapper .owl-wrapper {
p... | TABuApp/tabu-admin | assets/widgets/owlcarousel/owlcarousel.css | CSS | mit | 9,307 |
<!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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... | MerlinWilian/mipagina | application/views/template/header.php | PHP | mit | 4,408 |
# ElasticSearch Cheat Sheet
## Open ports
9200 - HTTP for JSON
9300 -
GET /_cat/indices?v
## Mapping
curl -XPUT 'http://localhost:9200/user' -d '
{
"mappings": {
"userinfo": {...
}
'
curl -XPUT 'http://localhost:9200/user/_mapping/userinfo' -d '
{
"userinfo" {
...
}
}
'
### New in v... | ysahnpark/claroforma | docs/kb/elasticsearch.md | Markdown | mit | 547 |
#pragma once
class Resources
{
public:
Resources(int mineralPatches = 9, int gasGeysers = 1, char race = 't');
void addExpansion(int mineralPatches = 7, int gasGeysers = 1);
int getMinerals() const { return mMinerals; }
int getGas() const { return mGas; }
int getSupply() const { return mSupply; }
int ge... | olichen/bwbot | archive/include/resources.h | C | mit | 1,384 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.ai.metricsadvisor.models;
import com.azure.core.annotation.Fluent;
/**
* Describes the additional parameters for the API to list anomalies in an alert.
*/
@Fluent
public final class ListAnomaliesAlerte... | Azure/azure-sdk-for-java | sdk/metricsadvisor/azure-ai-metricsadvisor/src/main/java/com/azure/ai/metricsadvisor/models/ListAnomaliesAlertedOptions.java | Java | mit | 1,600 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.compute.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/** List of supp... | Azure/azure-sdk-for-java | sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/SupportedCapabilities.java | Java | mit | 2,289 |
<html><body>
<h4>Windows 10 x64 (18363.900)</h4><br>
<h2>_WHEAP_ERROR_RECORD_WRAPPER</h2>
<font face="arial"> +0x000 WorkEntry : <a href="./_LIST_ENTRY.html">_LIST_ENTRY</a><br>
+0x010 Length : Uint4B<br>
+0x014 ProcessorNumber : Uint4B<br>
+0x018 Flags : <a href="./_WHEAP_... | epikcraw/ggool | public/Windows 10 x64 (18363.900)/_WHEAP_ERROR_RECORD_WRAPPER.html | HTML | mit | 651 |
var HTTP = require("q-io/http");
HTTP.read('http://localhost:1337')
.then(JSON.parse)
.then(function(response) {
console.log(response);
})
.done();
| Gisonrg/collections | nodeschool/promiseit/solution-q/09-fetch-json.js | JavaScript | mit | 173 |
# -*- coding: utf-8 -*-
import datetime
import os
#compsiteとcommandをあわせたような形
#ContextがhandlerでCommandが処理
class JobCommand(object):
def execute(self, context):
if context.getCurrentCommand() != 'begin':
raise Exception('illegal command ' + str(context.getCurrentCommand()))
command_list... | t10471/python | practice/src/design_pattern/Interpreter.py | Python | mit | 2,299 |
from copy import copy
import silk.utils.six as six
from silk.singleton import Singleton
def default_permissions(user):
if user:
return user.is_staff
return False
class SilkyConfig(six.with_metaclass(Singleton, object)):
defaults = {
'SILKY_DYNAMIC_PROFILING': [],
'SILKY_IGNORE_... | Alkalit/silk | silk/config.py | Python | mit | 1,268 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>src\storage\filesystem.js - muskepeer-client</title>
<link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
<link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
<link rel... | casatt/muskepeer-client | doc/files/src_storage_filesystem.js.html | HTML | mit | 27,495 |
--
-- TOC entry 170 (class 1259 OID 16521)
-- Name: articulos; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE articulos (
id_articulo integer NOT NULL,
id_tipo_mueble integer,
progresivo bigint,
caracteristicas character varying(300),
id_estatus integer
);
ALTER TABLE... | jezrelmx/inventarioCGMA | db/inventarioCGMA2.sql | SQL | mit | 23,989 |
package s_mach.codetools
import org.scalatest.{FlatSpec, Matchers}
object IsValueClassTest {
implicit class Weight(val underlying: Double) extends AnyVal with IsValueClass[Double]
}
class IsValueClassTest extends FlatSpec with Matchers {
import IsValueClassTest._
"IsValueClass.toString" should "return underlyi... | S-Mach/s_mach.codetools | codetools/src/test/scala/s_mach/codetools/IsValueClassTest.scala | Scala | mit | 418 |
# -*- coding: utf-8 -*-
import django_dynamic_fixture as fixture
from unittest import mock
from django import urls
from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
from django.contrib.auth.models import User
from django.test import TestCase
from readthedocs.core.models import UserProfile
from readthedocs.... | rtfd/readthedocs.org | readthedocs/rtd_tests/tests/projects/test_admin_actions.py | Python | mit | 2,812 |
class Base(object):
def meth(self):
pass
class Derived1(Base):
def meth(self):
return super().meth()
class Derived2(Derived1):
def meth(self):
return super().meth()
class Derived3(Derived1):
pass
class Derived4(Derived3, Derived2):
def meth(self):
return super... | github/codeql | python/ql/test/3/library-tests/PointsTo/inheritance/test.py | Python | mit | 496 |
(function () {
// The default state core singleton for {@link SceneJS.View} nodes
var defaultCore = {
type:"view",
stateId:SceneJS._baseStateId++,
scissorTestEnabled:false
};
var coreStack = [];
var stackLen = 0;
SceneJS_events.addListener(
SceneJS_events.SCENE... | dayo7116/scenejs | src/core/scene/view.js | JavaScript | mit | 2,390 |
"use strict";
define(['dou', 'build/ComponentRegistry'],
function (dou, ComponentRegistry) {
describe('ComponentRegistry', function () {
var componentRegistry;
var specs = [ {
type: 'A',
name: 'Component A',
description: 'description for Component A',
defaults: {
attr1: '... | heartyoh/infopik | test/spec/component_registry_spec.js | JavaScript | mit | 2,543 |
<?php namespace Pianke\Providers;
use Illuminate\Support\ServiceProvider;
class ConfigServiceProvider extends ServiceProvider {
/**
* Overwrite any vendor / package configuration.
*
* This service provider is intended to provide a convenient location for you
* to overwrite any "vendor" or package configurat... | xrain0610/php-laravel-rbac | app/Providers/ConfigServiceProvider.php | PHP | mit | 505 |
# frozen_string_literal: true
require 'rails_helper'
RSpec.describe LessonPolicy do
describe 'permissions' do
subject { LessonPolicy.new current_user, lesson }
context 'as a Super Administrator' do
let(:current_user) { create :super_admin }
context 'on a Lesson Resource' do
let(:lesson)... | MindLeaps/tracker | spec/policies/lesson_policy_spec.rb | Ruby | mit | 10,538 |
package s3
import (
"github.com/djbarber/ipfs-hack/Godeps/_workspace/src/github.com/crowdmob/goamz/aws"
)
var originalStrategy = attempts
func SetAttemptStrategy(s *aws.AttemptStrategy) {
if s == nil {
attempts = originalStrategy
} else {
attempts = *s
}
}
func Sign(auth aws.Auth, method, path string, param... | djbarber/ipfs-hack | Godeps/_workspace/src/github.com/crowdmob/goamz/s3/export_test.go | GO | mit | 501 |
package be.seriousbusiness.brusselnieuws.rss.datastore.hsqldb;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
| seriousbusinessbe/java-brusselnieuws-rss | java/brusselnieuws-rss/brusselnieuws-rss-datastore-hsqldb/src/main/java/be/seriousbusiness/brusselnieuws/rss/datastore/hsqldb/App.java | Java | mit | 216 |
# repetier-host-1405
Custom configuration files for the Printrbot 1405 3D printer, both for a stock printer and an updated printer with a heated bed and auto leveling probe.
## More help
For more information about getting strted with the simple maker 1405:
http://printrbot.com/project/simple-makers/
## License
```... | CMDann/repetier-host-1405 | README.md | Markdown | mit | 1,404 |
using System.Threading;
namespace BreadWinner.UnitTests.TestDoubles
{
public class WorkerTestRunResult
{
public ThreadState ThreadState { get; }
public CancellationToken CancellationToken { get; }
public WorkerTestRunResult(ThreadState threadState, CancellationToken cancellat... | gugu91/bread-winner | tests/BreadWinner.UnitTests/TestDoubles/WorkerTestRunResult.cs | C# | mit | 455 |
---
layout: post
title: mybatis 源码分析之 XMLStatementBuilder
categories: mybatis
tags: 笔记, mybatis
---
## XMLStatementBuilder.parseStatementNode 第四步
第四步就一句话,但是里面的内容很多,我们慢慢分析:
```java
// Parse selectKey after includes and remove them.
processSelectKeyNodes(id, parameterTypeClass, langDriver);
```
看英文注释,主要的作用就是解析 se... | renchunxiao/rcxblog.github.io | _posts/2016-03-03-mybatis6.md | Markdown | mit | 11,205 |
{% extends "main.html" %}
{% load static %}
{% load i18n %}
{% block title %}{% trans "Tamil-Inayavaani SpellChecker + Tamil-Sandhi Checker" %}{% endblock %}
{% block content %}
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<script src={% static 'tinymce/js/jquery/jquery-1.12.1.min.js' %}></script>
... | Ezhil-Language-Foundation/open-tamil | webapp/opentamilapp/templates/tamilinayavaani_spell_check.html | HTML | mit | 7,595 |
'use strict';
var git = require('../')
console.log('git.short() => ' + git.short());
// 75bf4ee
console.log('git.long() => ' + git.long());
// 75bf4eea9aa1a7fd6505d0d0aa43105feafa92ef
console.log('git.branch() => ' + git.branch());
// master
// console.log('git.tag() => ', git.tag());
// console.log('git.log() =>... | hongkongkiwi/git-rev-sync | example/simple.js | JavaScript | mit | 404 |
require 'ostruct'
require 'active_support/core_ext/string/inflections'
module Lol
# DynamicModel extends OpenStruct adding the following features:
# - nested generation ({a: {}}) results in DynamicModel(a: DynamicModel)
# - parsing of date/time when property name ends with _at or _date and the value is a number
... | emaserafini/ruby-lol | lib/lol/dynamic_model.rb | Ruby | mit | 1,335 |
import { message } from 'antd'
import { changePasswordAction } from '../request/password'
export const changePassword = (data, cb) => (dispatch, getState) => {
dispatch(changePasswordAction(data)).then(action => {
action.data.body.opResult == '1' ?
message.success('密码修改成功!') :
message.error('密码修改失败,请重试... | OwlAford/IFP | src/reducers/common/password.js | JavaScript | mit | 385 |
<!DOCTYPE html>
<html lang="ca-es" data-theme="">
<head>
<meta charset="utf-8">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer-when-downgrade">
<title>La vista cansada</title>
<meta name="de... | carlesbellver/carlesbellver.github.io | 2017/10/23/una-aplicacin-inconstitucional.html | HTML | mit | 6,290 |
// https://github.com/jgthms/bulma/issues/238 thanks!
document.getElementById("nav-toggle").addEventListener("click", toggleNav);
function toggleNav() {
var nav = document.getElementById("nav-menu");
var className = nav.getAttribute("class");
if(className == "nav-right nav-menu") {
nav.class... | wangxin1248/wangxin1248.github.io | assets/js/custom.js | JavaScript | mit | 1,483 |
require 'rails_helper'
RSpec.describe ListItemsController, type: :controller do
end
| AESM/UpAhead | spec/controllers/list_items_controller_spec.rb | Ruby | mit | 88 |
<?php
/*
* This file is part of the Spira framework.
*
* @link https://github.com/spira/spira
*
* For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
*/
namespace App\Providers;
use App\Extensions\Rbac\UserAssignmentStorage;
use Laravel\Lumen... | spira/spira | api/app/Providers/AccessServiceProvider.php | PHP | mit | 1,075 |
---
layout: tei
tei: '../tei/117.xml'
prev: '116'
self: '117'
next: '118'
---
| alter-rebbe/collector | docs/archive/documents/117.html | HTML | mit | 78 |
// Copyright (c) 2014 Estimote. All rights reserved.
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class EILLocation;
@class EILPoint;
@class EILOrientedPoint;
/**
* Width of the border around location shape.
* Non-zero value is needed for objects like beacons
* to be rendered inside view.
*/
stati... | BrandeisXDemandware/iOS-App | Pods/EstimoteIndoorSDK/EstimoteIndoorLocationSDK/Headers/EILIndoorLocationView.h | C | mit | 12,245 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2013 The NovaCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "miner.h"... | OfficialCrackCoin/CrackCoin | src/miner.cpp | C++ | mit | 20,148 |
var gulp = require('gulp'),
watch = require('gulp-watch'),
run = require('gulp-run'),
sourcemaps = require('gulp-sourcemaps'),
rename = require('gulp-rename'),
mochify = require('mochify'),
to5 = require('gulp-6to5');
gulp.task('6to5', function() {
return gulp.src('**/*.es6')
.pipe(sourcemaps.init())... | fp-dom/fd-select | gulpfile.js | JavaScript | mit | 692 |
/**
* TPPLeague Admin Commands
* TPPLeague - https://tppleague.me/
*
* This command namespace is used internally by the client to communicate
* for the Adventure Builder / TPPLeague Administration room(s).
*
* For the API, see chat-plugins/COMMANDS.md
*
* @license MIT license
*/
/* global Rooms */
'use str... | azum4roll/Pokemon-Showdown | chat-plugins/league-admin.js | JavaScript | mit | 34,300 |
<?php
/*
* Copyright (c) 2011-2015, Celestino Diaz <celestino.diaz@gmx.de>
*
* 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... | brickoo/components | src/IO/Stream/SocketStreamConfig.php | PHP | mit | 3,438 |
package main.model.tower;
import main.model.Vector2D;
/**
* @author Luis Gallet Zambrano
*
*/
public class MortarTower extends Tower {
public MortarTower(Vector2D position) {
//Level 1 characteristics of the MortarTower
super(40,175,175,1,350, 1, 1800, position);
//range,refund value, power, rate of ... | ECSE321/TD-Final | src/main/model/tower/MortarTower.java | Java | mit | 380 |
/**
Data comes from a docker inspect command output
*/
function Container(data)
{
for (d in data) {
this[d] = data[d];
}
}
Container.prototype.name = function()
{
return this.Name.ltrim('/');
}
Container.prototype.shortName = function()
{
return this.name();
}
Container.prototype.shortId ... | devster/docktop | lib/docker/container.js | JavaScript | mit | 1,651 |
# -*- coding: utf-8 -*-
import sys
def print_progress (iteration, total, prefix = '', suffix = '', decimals = 1, barLength = 100):
"""
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)
... | DawudH/scrapy_real-estate | plot/print_progressbar.py | Python | mit | 1,262 |
package com.oohtml.compiler;
import java.util.HashMap;
/**
* A small class that calls the parsers in order.
* */
public class Processor {
private static Parser[] parsers = new Parser[] {new ExtendParser(), new BlockParser()}; // The parsers to apply to each block, in order.
private static HashMap<String, NamedN... | Michaelkielstra/Object-oriented-HTML | src/com/oohtml/compiler/Processor.java | Java | mit | 862 |
<ion-navbar *navbar>
<ion-title>Feed</ion-title>
</ion-navbar>
<ion-content padding class="feed">
<div class="spinner" *ngIf="loading" >
<ion-spinner class="spinner"></ion-spinner>
</div>
<p *ngIf="error">An error ocurred. Try again</p>
<p *ngIf="(!memes || memes.length == 0) && !loading" >Nothing to show...<... | samfcmc/ionic2_tutorial | memeapp/app/pages/feed/feed.html | HTML | mit | 943 |
package com.bafomdad.realfilingcabinet.items;
import java.util.List;
import com.bafomdad.realfilingcabinet.NewConfigRFC.ConfigRFC;
import com.bafomdad.realfilingcabinet.LogRFC;
import com.bafomdad.realfilingcabinet.RealFilingCabinet;
import com.bafomdad.realfilingcabinet.TabRFC;
import com.bafomdad.realfilingcabinet.... | bafomdad/realfilingcabinet | com/bafomdad/realfilingcabinet/items/ItemDyedFolder.java | Java | mit | 5,892 |
/* globals mocha, chai */
import {jml, glue, nbsp, $, $$, body} from '../src/jml.js';
mocha.setup('bdd');
mocha.globals(['jml', 'glue', 'nbsp']);
window.jml = jml;
window.glue = glue;
window.nbsp = nbsp;
window.$ = $;
window.$$ = $$;
window.body = body;
window.assert = chai.assert;
window.expect = chai.expect;
| brettz9/jamilih | test-helpers/loadTests.js | JavaScript | mit | 315 |
/*
.reveal .slides {
text-align: left;
}
.reveal li pre {
width: auto;
}
.no-transforms .reveal .slides {
text-align: left;
}
*/
.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
line-height: 2 !important;
}
.reveal .slides section {
line-height: 1.8 !important;
}
| MichaelHu/fast-slides | lib/slides/css/markdown.css | CSS | mit | 306 |
let webpack = require('webpack');
let path = require( 'path');
const AssetsPlugin = require('assets-webpack-plugin');
let projectRoot = process.cwd();
let assetsPath = path.join(projectRoot, "public", "build");
let publicPath = `/build/`;
let host = "0.0.0.0";
let config = {
devServer: {
inline: true,
ho... | Grace951/grace951.github.io | webpack/webpack.config.dev.client.js | JavaScript | mit | 3,984 |
package commands.direction;
/**
* The Class Left.
*/
public class Left extends Direction{
@Override
public double changeDirection(Double degrees) {
return degrees;
}
}
| leeweisberger/Slogo | src/commands/direction/Left.java | Java | mit | 182 |
import * as types from '../../mutation-types'
import lazyLoader from './lazyLoader'
const state = {
items: [
{
name: 'Home',
path: '/',
meta: {
label: ['主頁面'],
link: 'Home.vue',
icon: ['fas', 'home'],
permission: 99
},
components: lazyLoader('Home')
... | Limeishu/LCMS | src/store/modules/menu/index.js | JavaScript | mit | 2,654 |
<?php
spl_autoload_register(function($class_name)
{
include 'classes/' . $class_name . '.php';
});
?> | hizzely/latihan-koding | Latihan PHP OOP/classes/autoload.php | PHP | mit | 121 |
using System;
using System.Collections.Generic;
namespace TeamCityTheatre.Core.Models {
/*
sample:
{
"id": 212673,
"buildTypeId": "Pro_ProMaster_Compile",
"number": "6.11.0.4856",
"status": "FAILURE",
"state": "finished",
"branchName": "develop",
"href": "/httpAuth/app/rest/builds/id:212673",
"web... | amoerie/teamcity-theatre | src/TeamCityTheatre.Core/Models/IDetailedBuild.cs | C# | mit | 4,370 |
<?php
/**
* Site-wide styles
*
* If SCSS or LESS is used, the first such file determines the type used for the whole set. These cannot be mixed within one set.
*/
$allowedFormats = array();
$temp = $servant->settings()->formats('stylesheets');
unset($temp['css']);
foreach ($temp as $type => $extensions) {
foreach ($e... | Eiskis/baseline-php | docs/backend/actions/sitestyles/run.php | PHP | mit | 2,246 |
rmdir /s /q tmp
rmdir /s /q debug
del Makefile
del Makefile.Release
del Makefile.Debug
| horsicq/nfdx64dbg | clear.bat | Batchfile | mit | 94 |
import os
from conan.tools.files.files import save_toolchain_args
from conan.tools.gnu import Autotools
from conans.test.utils.mocks import ConanFileMock
from conans.test.utils.test_files import temp_folder
def test_source_folder_works():
folder = temp_folder()
os.chdir(folder)
save_toolchain_args({
... | conan-io/conan | conans/test/unittests/tools/gnu/autotools_test.py | Python | mit | 857 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TextAdventures.Quest.Scripts;
namespace TextAdventures.Quest
{
public interface IField<T>
{
string Property { get; }
}
internal class FieldDef<T> : IField<T>
{
private string m_property;
... | textadventures/quest-js | Compiler/Fields.cs | C# | mit | 11,076 |
<?php
namespace App\Http\Controllers;
use App\PageConent;
use Illuminate\Http\Request;
class PagesConentController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the... | simondavies/Personal-Website | app/Http/Controllers/Site/PagesConentController.php | PHP | mit | 1,690 |
module Api
module V2
class FuzzySearchPresenter
attr_reader :result
def initialize(result)
@result = result
end
def id
1
end
def type
'fuzzy_match'
end
def goods_nomenclature_match
result.results[:goods_nom... | bitzesty/trade-tariff-backend | app/presenters/api/v2/fuzzy_search_presenter.rb | Ruby | mit | 449 |
class DummyModelWithoutEncryption < ActiveRecord::Base
end
| payout/encrypted_store | spec/dummy/app/models/dummy_model_without_encryption.rb | Ruby | mit | 59 |
require_relative 'address.rb'
require_relative 'data.rb'
require_relative 'element.rb'
#require_relative 'excel_tools.rb'
require_relative 'section.rb'
require_relative 'sheet.rb'
module RubyExcel
#
# Example data to use in tests / demos
#
def self.sample_data
[
[ 'Part', 'Ref1', 'Ref2', 'Qty', ... | VirtuosoJoel/RubyExcel | lib/rubyexcel/rubyexcel_components.rb | Ruby | mit | 1,424 |
<?php
/**
* Data object containing the SQL and PHP code to migrate the database
* up to version 1479334068.
* Generated on 2016-11-16 22:07:48 by sacredskull
*/
class PropelMigration_1479334068
{
public $comment = '';
public function preUp($manager)
{
// add the pre-migration code here
}
... | AssembleGroup/original-group-app-server | src/Assemble/Config/Propel/generated-migrations/PropelMigration_1479334068.php | PHP | mit | 2,535 |
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="display.css">
</head>
<body>
<div class="wrapper">
<div class="inner-wrapper">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the indus... | stinaq/education | CSS/display.html | HTML | mit | 1,553 |
<?php
namespace Oro\Bundle\GridBundle\Tests\Unit\Action;
use Oro\Bundle\GridBundle\Action\ActionInterface;
use Oro\Bundle\GridBundle\Action\DeleteAction;
class DeleteActionTest extends \PHPUnit_Framework_TestCase
{
/**
* @var DeleteAction
*/
protected $model;
protected function setUp()
{
... | umpirsky/platform | src/Oro/Bundle/GridBundle/Tests/Unit/Action/DeleteActionTest.php | PHP | mit | 1,991 |
using System.Windows.Controls;
namespace BudgetAnalyser.LedgerBook
{
/// <summary>
/// Interaction logic for BankBalanceUserControl.xaml
/// </summary>
public partial class BankBalanceUserControl : UserControl
{
public BankBalanceUserControl()
{
Initializ... | Benrnz/BudgetAnalyser | BudgetAnalyser/LedgerBook/BankBalanceUserControl.xaml.cs | C# | mit | 356 |
<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="layoutclass_pic"><div class="layoutclass_first_pic"><table class="fmt0table"><tr><th class="zt1"><... | BuzzAcademy/idioms-moe-unformatted-data | all-data/3000-3999/3422-33.html | HTML | mit | 571 |
<?php
namespace Server;
use Util\Dictionary;
class Request
{
const WILDCARD_PREFIX = 'wildcard_';
protected $scheme;
protected $version;
protected $method;
protected $path;
protected $query;
protected $data;
protected $headers;
public function __construct($method = 'GET', $uri =... | mariuslundgard/php-server | src/Server/Request.php | PHP | mit | 2,148 |
Instance Variables:
history <BioProjectHistory>
usage <BioProjectUsage>
credentials <ProtoObject | PseudoContext>
project <GTProject>
history
- The project history object is responsible of registering information about a project, for example: Project Creation, Deletion, Modification.
usage
-... | biosmalltalk/biopharo | BioProject.package/BioProjectInformation.class/README.md | Markdown | mit | 525 |
using UnityEngine;
using System.Collections;
public class RightLauncherAnimationEvent : MonoBehaviour
{
// Use this for initialization
public void ReloadAnimationEnd()
{
GameObject.Find("MissilePlatform_2").GetComponent<LauncherControl>().Reload(); ;
}
}
| TRBrown/Work_Examples | Unity/MissileCommandGame/Assets/Scripts/RightLauncherAnimationEvent.cs | C# | mit | 284 |
using System;
using System.IO;
using Common;
using Microsoft.Synchronization;
namespace SyncFrameWork.Controllers
{
public class LocalStore : KnowledgeSyncProvider, INotifyingChangeApplierTarget
{
private string folderPath;
private SyncSessionContext currentSessionContext;
private uin... | labrinth1/RemoteSync | SyncFrameWork/Stores/LocalStore.cs | C# | mit | 8,431 |
package skin.support.animator.activityAnimator;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import andr... | wutongke/AndroidSkinAnimator | skin-support/src/main/java/skin/support/animator/activityAnimator/TranslationAnimator2.java | Java | mit | 2,431 |
require 'spec_helper'
require 'rails_helper'
describe SpotsController do
describe "#index" do
it "assigns all spots to @spots" do
get :index
expect(assigns(:spots)).to eq Spot.all.order(:favorites_count)
end
it "renders the #index template" do
get :index
expect(response).to render... | mud-turtles-2014/TheSpot | spec/controllers/spot_controller_spec.rb | Ruby | mit | 4,079 |
/*
* Copyright (C) 2014 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration. All Rights Reserved.
*/
/**
* @exports LevelRowColumnUrlBuilder
* @version $Id: LevelRowColumnUrlBuilder.js 2643 2015-01-09 20:37:58Z tgaskins $
*/
define([
... | NASAWorldWindResearch/AgroSphere | src/util/LevelRowColumnUrlBuilder.js | JavaScript | mit | 3,906 |
<?php
$now = date("Y-m-d");
$dayList = array(
'Sun' => 'Minggu',
'Mon' => 'Senin',
'Tue' => 'Selasa',
'Wed' => 'Rabu',
'Thu' => 'Kamis',
'Fri' => 'Jumat',
'Sat' => 'Sabtu'
);
if($atletWellnessDate == $now AND $atletWellnessValue != 0){
if($atletWellnessValue <= 59){
$wellness = "#FF0000";
... | fashahd/iamprima | application/modules/pmc/views/pmcData.php | PHP | mit | 4,748 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.