repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
sebastian-software/edgeapp | src/components/Navigation.js | 832 | import React from "react"
import { injectIntl } from "react-intl"
import { NavLink } from "react-router-dom"
import PropTypes from "prop-types"
import Styles from "./Navigation.css"
function Navigation({ intl }) {
return (
<ul className={Styles.list}>
<li><NavLink exact to="/" activeClassName={Styles.acti... | mit |
farmatholin/gopl-exercises | ch4/ex4_9/ex4_9.go | 608 | package main
import (
"bufio"
"os"
"fmt"
)
func main() {
counts := make(map[string]int)
fileReader, err := os.Open("words.txt")
if err != nil {
fmt.Println(err)
os.Exit(1)
}
defer fileReader.Close()
scanner := bufio.NewScanner(fileReader)
// Set the split function for the scanning operation.
scanner.... | mit |
georgehristov/EPESI | modules/Utils/RecordBrowser/patches/add_help_to_fields.php | 611 | <?php
defined("_VALID_ACCESS") || die('Direct access forbidden');
$recordsets = Utils_RecordBrowserCommon::list_installed_recordsets();
$checkpoint = Patch::checkpoint('recordset');
$processed = $checkpoint->get('processed', array());
foreach ($recordsets as $tab => $caption) {
if (isset($processed[$tab])) {
... | mit |
monitron/jarvis-ha | lib/web/scripts/capabilities/energy/EnergyMetersView.js | 625 |
const Marionette = require('backbone.marionette');
const MeterValuesView = require('./MeterValuesView.js');
module.exports = class EnergyMetersView extends Marionette.View {
template = Templates['capabilities/energy/meters'];
className() { return 'energy-meters'; }
regions() {
return {
metersByPeriod... | mit |
rokups/Urho3D | Source/Tools/Editor/Tabs/ResourceTab.h | 3802 | //
// Copyright (c) 2017-2020 the rbfx project.
//
// 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, mer... | mit |
hegemonic/catharsis | test/specs/nullable.js | 9138 | const _ = require('lodash');
const en = {
modifiers: require('../../res/en').modifiers
};
const Types = require('../../lib/types');
const optional = {
optional: true
};
const repeatable = {
repeatable: true
};
const nullableNumber = {
type: Types.NameExpression,
name: 'number',
nullable: true... | mit |
be9/acl9 | test/dummy/app/controllers/acl_helper_method.rb | 232 | class ACLHelperMethod < ApplicationController
access_control :helper => :foo? do
allow :owner, :of => :foo
end
def allow
@foo = Foo.first
render inline: "<div><%= foo? ? 'OK' : 'AccessDenied' %></div>"
end
end
| mit |
issabdo/DIVCODING | app/Application/Controllers/Traits/HelpersTrait.php | 527 | <?php
namespace App\Application\Controllers\Traits;
trait HelpersTrait{
protected function checkIfArray($request){
return is_array($request) ? $request : [$request];
}
protected function createLog($action , $status , $messages = ''){
$data = [
'action' => $action,
... | mit |
StudyExchange/PatPractise | pat-basic-level/1023.c | 939 | /* 1023 组个最小数 (20 分)
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[])
{
// 处理输入
int n = 10;
int quantities[n];
for (int i = 0; i < n; i++)
{
if (scanf("%d", &quantities[i]) != 1)
return EXIT_FAILURE;
}
// 组装数字
int nums[5... | mit |
epikcraw/ggool | public/Windows 10 x64 (19041.508)/_XPF_MCE_FLAGS.html | 307 | <html><body>
<h4>Windows 10 x64 (19041.508)</h4><br>
<h2>_XPF_MCE_FLAGS</h2>
<font face="arial"> +0x000 MCG_CapabilityRW : Pos 0, 1 Bit<br>
+0x000 MCG_GlobalControlRW : Pos 1, 1 Bit<br>
+0x000 Reserved : Pos 2, 30 Bits<br>
+0x000 AsULONG : Uint4B<br>
</font></body></html> | mit |
Janpot/google-reader-notifier | app/js/services/options.js | 858 | angular.module('Reader.services.options', [])
.factory('options', function($rootScope, $q) {
var controllerObj = {};
options.onChange(function (changes) {
$rootScope.$apply(function () {
for (var property in changes) {
controllerObj[property] = changes[property].newValue;
... | mit |
reginad1/skipdamenu | app/controllers/users_controller.rb | 409 | class UsersController < ApplicationController
def index
end
def show
@user = User.find(params[:id])
end
def edit
@user = User.find(params[:id])
end
def update
@user = User.find(params[:id])
if @user.update_attributes(user_params)
@user.geocode
else
render 'edit'
end
end
... | mit |
Lurk/blog | README.md | 638 | # blog
[](https://travis-ci.org/Lurk/blog)
Weekend project for self education
## backend configuration
create config.local.js on ./server directory with
```
module.exports = {
secret: 'some random text',
port: 3000,
greeting: 'blog ser... | mit |
malept/guardhaus | main/openssl_sys/ssl/fn.SSL_CTX_set_read_ahead.html | 433 | <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../openssl_sys/fn.SSL_CTX_set_read_ahead.html">
</head>
<body>
<p>Redirecting to <a href="../../openssl_sys/fn.SSL_CTX_set_read_ahead.html">../../openssl_sys/fn.SSL_CTX_set_read_ahead.html</a>...</p>
<script>location.replac... | mit |
Densaugeo/TriDIYBio | README.md | 288 | # TriDIYBio
Web site for TriDIYBio
## Workflow
Setup:
- `git clone https://github.com/Densaugeo/TriDIYBio.git`
- `npm install`
Making changes:
- `git pull`
- Make your changes and save files
- `node gen.js`
- `node test_server.js`
- `git commit -am "Commit message"`
- `npm run push`
| mit |
atmire/dsember-core | addon/adapters/application.js | 949 | import Ember from 'ember';
import DS from 'ember-data';
import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';
export default DS.RESTAdapter.extend(DataAdapterMixin, {
authorizer: 'authorizer:dspace',
initENVProperties: Ember.on('init', function() {
let ENV = this.container.lookupFactory(... | mit |
Strassengezwitscher/Strassengezwitscher | crowdgezwitscher/base/static/css/login.css | 962 | html {
height: 100%;
}
body {
background: #538eb8; /* For browsers that do not support gradients */
background: -webkit-linear-gradient(left top, #538eb8, #ffd044); /* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(bottom right, #538eb8, #ffd044); /* For Opera 11.1 to 12.0 */
background: -m... | mit |
mxchelle/PhillyAIMSApp | packages/custom/lib/callbacks.js | 148 | function alertThanks (post) {
alert("Thanks for submitting a post!");
return post;
}
Telescope.callbacks.add("postSubmitClient", alertThanks);
| mit |
herofei/study | 工作杂乱知识点记录/tc总结.md | 61072 | 1. ping命令与ICMP 协议
ping」是用来探测本机与网络中另一主机之间是否可达的命令,如果两台主机之间ping不通,则表明这两台主机不能建立起连接。ping是定位网络通不通的一个重要手段。
ping 命令是基于 ICMP 协议来工作的,「 ICMP 」全称为 Internet 控制报文协议(Internet Control Message Protocol)。ping 命令会发送一份ICMP回显请求报文给目标主机,并等待目标主机返回ICMP回显应答。因为ICMP协议会要求目标主机在收到消息之后,必须返回ICMP应答消息给源主机,如果源主机在一定时间内收到了目标主机的应答,则表明两台主机之间网络是可达的。... | mit |
emote/tools | lib/sfsetup.js | 5142 | "use strict";
var async = require('async');
var fs = require('fs');
var util = require('util');
var prompt = require('prompt');
var httpRequest = require('emsoap').subsystems.httpRequest;
var common = require('./common');
var mms = require('./mms');
var mmscmd = require('./mmscmd');
var deploy = require('./deploy');
... | mit |
boisde/Greed_Island | business_logic/order_collector/transwarp/orm.py | 11968 | #!/usr/bin/env python
# coding:utf-8
"""
Database operation module. This module is independent with web module.
"""
import time, logging
import db
class Field(object):
_count = 0
def __init__(self, **kw):
self.name = kw.get('name', None)
self.ddl = kw.get('ddl', '')
self._default =... | mit |
Thewhitelight/Calendar | app/src/main/java/cn/libery/calendar/MaterialCalendar/EventDecorator.java | 752 | package cn.libery.calendar.MaterialCalendar;
import android.content.Context;
import java.util.Collection;
import java.util.HashSet;
import cn.libery.calendar.MaterialCalendar.spans.DotSpan;
/**
* Decorate several days with a dot
*/
public class EventDecorator implements DayViewDecorator {
private int color... | mit |
luanlv/comhoavang | src/routes/admin/index.js | 959 | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
// import Layout from '../..... | mit |
pardeike/Harmony | Harmony/Public/Attributes.cs | 27094 | using System;
using System.Collections.Generic;
namespace HarmonyLib
{
/// <summary>Specifies the type of method</summary>
///
public enum MethodType
{
/// <summary>This is a normal method</summary>
Normal,
/// <summary>This is a getter</summary>
Getter,
/// <summary>This is a setter</summary>
Setter,
... | mit |
Joseki/Sandbox | app/MyApplication/Navigation/Navigation/NavigationControlFactory.php | 166 | <?php
namespace MyApplication\Navigation\Navigation;
interface NavigationControlFactory
{
/**
* @return NavigationControl
*/
function create();
}
| mit |
marshmallow-code/marshmallow-jsonapi | tests/conftest.py | 1521 | import pytest
from tests.base import Author, Post, Comment, Keyword, fake
def make_author():
return Author(
id=fake.random_int(),
first_name=fake.first_name(),
last_name=fake.last_name(),
twitter=fake.domain_word(),
)
def make_post(with_comments=True, with_author=True, with_... | mit |
uiuxsrini/Material | apis/geolocation-api-demo.html | 6289 | <!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="author" content="Aurelio De Rosa">
<title>Geolocation API Demo by Aurelio De Rosa</title>
<style>
*
{
-webkit-box-sizing... | mit |
LisaOrtola/Mobileapp | index.html | 2877 | <!DOCTYPE html>
<!--[if IEMobile 7 ]> <html class="no-js iem7"> <![endif]-->
<!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="HandheldFriendly" content="T... | mit |
jabhij/MITx-6.00.1x-Python- | Week-3/L5/Prob3.py | 268 | # Declaring a Function
def recurPowerNew(base, exp):
# Base case is when exp = 0
if exp <= 0:
return 1
# Recursive Call
elif exp % 2 == 0:
return recurPowerNew(base*base, exp/2)
return base * recurPowerNew(base, exp - 1)
| mit |
cdiazbas/SIRcode | SIR2015/leemalla2.f | 5534 | c rutina leemallab
c lee el fichero de control de lineas y longitudes de onda:'mallaobs'
c ntau : numero de puntos en tau
c tau : log10(tau)
c ntl : numero total de lineas
c nlin : indice de cada linea y de cada blend
c npas : numero de puntos en cada linea
c dlamda:cada delta de l.d.o. en ma
c nble :numero de blends... | mit |
danielsneijers/markslide | flow-typed/npm/react-redux_vx.x.x.js | 11881 | // flow-typed signature: 267f077135db8f8ca8e152b4b262406e
// flow-typed version: <<STUB>>/react-redux_v^5.0.4/flow_v0.46.0
/**
* This is an autogenerated libdef stub for:
*
* 'react-redux'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with th... | mit |
black-trooper/semantic-ui-riot | test/spec/popup/su-popup.spec.js | 2656 | import * as riot from 'riot'
import { init, compile } from '../../helpers/'
import TargetComponent from '../../../dist/tags/popup/su-popup.js'
describe('su-popup', function () {
let element, component
let spyOnMouseover, spyOnMouseout
init(riot)
const mount = opts => {
const option = Object.assign({
... | mit |
Igorocky/lesn | client/src/main/scala/app/components/semanticui/Menu.scala | 1482 | package app.components.semanticui
import japgolly.scalajs.react
import japgolly.scalajs.react.{Callback, Children}
import japgolly.scalajs.react.vdom.VdomNode
import scala.scalajs.js
object Menu {
val component = react.JsComponent[js.Object, Children.Varargs, Null](SemanticUiComponents.Menu)
def apply()(childre... | mit |
kenegozi/graph_engine | lib/graph_engine.rb | 54 | require "graph_engine/engine"
module GraphEngine
end
| mit |
ngx-formly/ngx-formly | demo/src/app/examples/other/material-prefix-suffix/config.module.ts | 2128 | import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { SharedModule, ExamplesRouterViewerComponent } from '../../../shared';
import { AppModule } from './app.module';
import { AppComponent } from './app.component';
@NgModule({
imports: [
SharedModule,
AppModule,
... | mit |
poyrazus/docker | README.md | 65 | # docker images
This repository includes docker container images
| mit |
ziedAb/PVMourakiboun | src/data/middleware/auth-check.js | 874 | const jwt = require('jsonwebtoken');
const User = require('../models/User');
// import { port, auth } from '../../config';
/**
* The Auth Checker middleware function.
*/
module.exports = (req, res, next) => {
if (!req.headers.authorization) {
return res.status(401).end();
}
// get the last part from a a... | mit |
HMNikolova/Telerik_Academy | CSharpPartOne/6. Loops/10. OddAndEvenProduct/OddAndEvenProduct.cs | 1480 | //10. Odd and Even Product
//You are given n integers (given in a single line, separated by a space).
//Write a program that checks whether the product of the odd elements is equal to the product of the even elements.
//Elements are counted from 1 to n, so the first element is odd, the second is even, etc.
using Syst... | mit |
Andras-Simon/nodebp | second.js | 1982 | var Ringpop = require('ringpop');
var TChannel = require('TChannel');
var express = require('express');
var NodeCache = require('node-cache');
var cache = new NodeCache();
var host = '127.0.0.1'; // not recommended for production
var httpPort = process.env.PORT || 8080;
var port = httpPort - 5080;
var bootstrapNodes =... | mit |
jcarral/Subsub | build/script/lib/modals.js | 1439 | Element.prototype.remove = function() {
this.parentElement.removeChild(this);
}
const addIcon = (icon) => `<i class="fa fa-${icon}"></i>`
const headerTxt = (type) => {
switch (type) {
case 'error':
return `${addIcon('ban')} Error`
case 'warning':
return `${addIcon('excl... | mit |
rubenschulz/vps-health | client/index.html | 5206 | <!DOCTYPE html>
<!-- Developed by Ruben Schulz - www.rubenschulz.nl -->
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='x-ua-compatible' content='ie=edge'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta name='apple-mobile-web-app-tit... | mit |
rocketeers/rocketeer | src/Rocketeer/Services/History/History.php | 1576 | <?php
/*
* This file is part of Rocketeer
*
* (c) Maxime Fabre <ehtnam6@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
namespace Rocketeer\Services\History;
use Illuminate\Support\Collection;
/**
* Keeps a memor... | mit |
casual-web/autodom | src/AppBundle/Entity/BusinessServiceRepository.php | 1434 | <?php
/**
* Created by PhpStorm.
* User: olivier
* Date: 01/02/15
* Time: 00:58
*/
namespace AppBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* BusinessServiceRepository
*/
class BusinessServiceRepository extends EntityRepository
{
public function findByRefList(array $refList)
{
$qb =... | mit |
andersonsilvade/workspacejava | Workspaceandroid/MainActivity/src/br/com/k19/android/cap3/MainActivity.java | 280 | package br.com.k19.android.cap3;
import android.app.Activity;
import android.os.Bundle;
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.frame);
}
}
| mit |
morelearn1990/blog_source | source/_posts/HTTP 原理.md | 3331 | ---
title: HTTP 原理
date: 2017-12-31
categories: HTTP
---
# TCP/IP 协议参考模型

TCP/IP是全世界的计算机和网络设备常用的层次化分组交换网络协议集,属于参考模型的传输层,用于过滤掉每个计算机的差异性,隐藏相关弱点,向应用程序提供“相同的”服务接口。
# HTTP 概念
http 是数据传输协议(超文本传输协议),用来沟通客户端和服务器,是一种 client-server 协议,它是承载于 TCP/IP 之上。通常是由像浏览器这样的接受方发起的,像浏览器这样的客户端发出的消息叫... | mit |
reflectoring/infiniboard | dashy/src/app/dashboard/widget/widget.ts | 1245 | import {WidgetConfig} from '../shared/widget-config';
import {WidgetService} from '../shared/widget.service';
export class Widget {
title: string;
updateInterval: number = 1000;
widgetConfig: WidgetConfig;
titleUrl: string;
description: string;
constructor(private widgetService: WidgetService) {
}
g... | mit |
petterip/exam-archive | test/rest_api_test_course.py | 16344 | '''
Testing class for database API's course related functions.
Authors: Ari Kairala, Petteri Ponsimaa
Originally adopted from Ivan's exercise 1 test class.
'''
import unittest, hashlib
import re, base64, copy, json, server
from database_api_test_common import BaseTestCase, db
from flask import json, jsonify... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.11.2-2.0.7/released/8.13.2/zorns-lemma/8.7.0.html | 7106 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>zorns-lemma: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.06.1-2.0.5/released/8.7.1+2/higman-s/8.6.0.html | 6978 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>higman-s: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | mit |
v8-dox/v8-dox.github.io | a53c763/html/classv8_1_1_external_ascii_string_resource_impl.html | 10961 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | mit |
mezzovide/btcd | libjl777/plugins/common/console777.c | 11054 | //
// console777.c
// crypto777
//
// Created by James on 4/9/15.
// Copyright (c) 2015 jl777. All rights reserved.
//
#ifdef DEFINES_ONLY
#ifndef crypto777_console777_h
#define crypto777_console777_h
#include <stdio.h>
#include <stdio.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.... | mit |
lion-coin/lioncoin | src/rpcrawtransaction.cpp | 32779 | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Lioncoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "core.h"
#include "init.h"
#include "keystore.h"
#include... | mit |
raadler/Scrivn | spec/rails_helper.rb | 652 | # This file is copied to spec/ when you run 'rails generate rspec:install'
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
# Prevent database truncation if the environment is production
abort("The Rails environment is running in production mode!") if Rails.env.production?
requ... | mit |
concensus/react-native-ios-concensus | screens/NewPollScreen.js | 929 | import React from 'react';
import { View, ScrollView } from 'react-native';
import ConcensusButton from '../components/ConcensusButton';
import axios from 'axios';
const t = require('tcomb-form-native');
const Form = t.form.Form;
const NewPollScreen = ({ navigation }) => {
function onProposePress() {
navig... | mit |
mikescamell/shared-element-transitions | app/src/main/java/com/mikescamell/sharedelementtransitions/recycler_view/recycler_view_to_viewpager/RecyclerViewToViewPagerActivity.java | 652 | package com.mikescamell.sharedelementtransitions.recycler_view.recycler_view_to_viewpager;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.mikescamell.sharedelementtransitions.R;
public class RecyclerViewToViewPagerActivity extends AppCompatActivity {
@Override
protecte... | mit |
nachovizzo/AUTONAVx | simulator/autonavx_demo/js/init/editor.js | 330 | define(["ace/ace"], function(ace) {
return function(element) {
var editor = ace.edit(element);
editor.setTheme("ace/theme/eclipse");
editor.getSession().setMode("ace/mode/python");
editor.getSession().setUseSoftTabs(true);
editor.getSession().setTabSize(4);
editor.setShowPrintMargin(false);
return edito... | mit |
kanna-lab/kanna-lib-components | lib/index.js | 4495 | /**
* React components for kanna projects.
* @module kanna-lib-components
*/
"use strict";
module.exports = {
/**
* @name KnAccordionArrow
*/
get KnAccordionArrow() { return require('./kn_accordion_arrow'); },
/**
* @name KnAccordionBody
*/
get KnAccordionBody() { return require... | mit |
CatUnicornKiller/web-app | app/helpers/date/DateHelper.php | 1928 | <?php
namespace App\Helpers\Date;
use Nette;
/**
* Date and time helper for better work with dates. Functions return special
* DateTimeHolder which contains both textual and typed DateTime.
*/
class DateHelper
{
use Nette\SmartObject;
/**
* Create datetime from the given text if valid, or otherwise ... | mit |
goodGid/goodGid.github.io | _posts/2018-10-15-BOJ-15686.md | 2127 | ---
layout: post
title: "[BOJ] 15686. 치킨 배달"
categories: Algorithm
author: goodGid
---
* content
{:toc}
## Problem
Problem URL : **[치킨 배달](https://www.acmicpc.net/problem/15686)**


---
## [1] Answer Code (18. 10. 15)
``` cp... | mit |
v8-dox/v8-dox.github.io | 6a7e5ce/html/classv8_1_1MicrotasksScope-members.html | 7631 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | mit |
bkahlert/seqan-research | raw/pmsb13/pmsb13-data-20130530/sources/130wu1dgzoqmxyu2/2013-05-01T11-34-38.877+0200/sandbox/my_sandbox/apps/lagan_neu/lagan_neu.cpp | 8171 | #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;
seqan::String<Seed<Simple> > get_global_seed_chain(se... | mit |
dialv/tesisControl | web/bundles/tesiscontroltesis/DataTables-1.10.12/extensions/Buttons/examples/initialisation/className.html | 46339 | <<<<<<< HEAD
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
<title>Buttons example - Class names</title>
<link rel="stylesheet" type="text/css"... | mit |
36web/blog | _includes/adsense.html | 369 | <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Blog Ads -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-{{site.cfg.adsense_publisher_id}}"
data-ad-slot="{{site.cfg.adsense_unit_no}}"
data-ad-format="auto"></ins>
<script>
(adsbygoogle... | mit |
Andrewcjp/GraphicsEngine | GraphicsEngine/Source/D3D12RHI/RHI/RenderAPIs/D3D12/GPUResource.cpp | 4208 | #include "stdafx.h"
#include "GPUResource.h"
#include <algorithm>
#include "D3D12DeviceContext.h"
CreateChecker(GPUResource);
GPUResource::GPUResource()
{}
GPUResource::GPUResource(ID3D12Resource* Target, D3D12_RESOURCE_STATES InitalState) :GPUResource(Target, InitalState, (D3D12DeviceContext*)RHI::GetDefaultDevice())... | mit |
braintree/braintree_android | Card/src/main/java/com/braintreepayments/api/Card.java | 7536 | package com.braintreepayments.api;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import androidx.annotation.Nullable;
import com.braintreepayments.api.GraphQLConstants.Keys;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Use to construct a card tokenizati... | mit |
taowenyin/RLXAPF | app/src/main/java/cn/edu/siso/rlxapf/DeviceActivity.java | 995 | package cn.edu.siso.rlxapf;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class DeviceActivity extends AppCompatActivity {
private Button devicePrefOk = null;
@Override
protected vo... | mit |
abhisheksoni27/blanketcoffee | client/css/abhishek.css | 262 | .bluisha {
box-shadow: 0px 0px 17px #000;
padding: 0 !important;
background: url('https://lh3.googleusercontent.com/37WRn5tePAwnohEIp5zhcwWpl7eNfzZLsekTrZMr-PE=w1334-h667-no') no-repeat center center;
height: 100vh;
background-size: cover;
}
| mit |
spookandpuff/spooky-core | .bundle/gems/vcr-2.0.0/spec/vcr/test_frameworks/rspec_spec.rb | 2807 | require 'spec_helper'
RSpec.configure do |config|
config.before(:suite) do
VCR.configuration.configure_rspec_metadata!
end
end
describe VCR::RSpec::Metadata, :skip_vcr_reset do
before(:all) { VCR.reset! }
after(:each) { VCR.reset! }
context 'an example group', :vcr do
context 'with a nested example... | mit |
psd401/psd-computer-management | app/styles/bootstrap.css | 97558 | /*!
* Bootstrap v2.0.3
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
d... | mit |
OAuth2-Framework/oauth2-framework | tests/Component/ClientRule/ApplicationTypeParameterRuleTest.php | 2505 | <?php
declare(strict_types=1);
namespace OAuth2Framework\Tests\Component\ClientRule;
use InvalidArgumentException;
use OAuth2Framework\Component\ClientRule\ApplicationTypeParametersRule;
use OAuth2Framework\Component\ClientRule\RuleHandler;
use OAuth2Framework\Component\Core\Client\ClientId;
use OAuth2Framework\Comp... | mit |
jdhunterae/eloquent_js | ch03/su03-bean_counting.js | 343 | function countBs(string) {
return countChar(string, "B");
}
function countChar(string, ch) {
var counted = 0;
for (var i = 0; i < string.length; i++) {
if (string.charAt(i) == ch)
counted += 1;
}
return counted;
}
console.log(countBs("BBC"));
// -> 2
console.log(countChar("kakk... | mit |
dvt32/cpp-journey | Java/Unsorted/21.05.2015.14.36.java | 793 | // dvt
/* 1. Да се напише if-конструкция,
* която изчислява стойността на две целочислени променливи и
* разменя техните стойности,
* ако стойността на първата променлива е по-голяма от втората.
*/
package myJava;
import java.util.Scanner;
public class dvt {
public static void main(String[] args) {
Sca... | mit |
RealGeeks/django-cache-purge-hooks | runtests.sh | 99 | #!/usr/bin/env bash
PYTHONPATH=. DJANGO_SETTINGS_MODULE=sampleproject.settings py.test --create-db
| mit |
dymx101/DYMEpubToPlistConverter | DYMEpubToPlistConverter/DYMEpubToPlistConverter/DYMEPubChapterFile.h | 477 | //
// DYMEPubChapterFile.h
// DYMEpubToPlistConverter
//
// Created by Dong Yiming on 15/11/13.
// Copyright © 2015年 Dong Yiming. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DYMEPubChapterFile : NSObject
@property (nonatomic, copy) NSString *chapterID;
@property (nonatomic, copy) NSString... | mit |
anba/es6draft | src/test/scripts/suite262/language/expressions/call/tco-cross-realm-class-construct.js | 1776 | /*
* Copyright (c) André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
/*---
id: sec-function-calls-runtime-semantics-evaluation
info: Check TypeError is thrown from correct realm with tco-call to class constructor from class [[... | mit |
rootulp/school | mobile_apps/assignment6_rootulp/RootulpJsonA/app/src/main/java/com/rootulp/rootulpjsona/picPage.java | 2172 | package com.rootulp.rootulpjsona;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem... | mit |
bruno-cadorette/IFT232Projet | GameBuilder/BuilderControl/ResourcesControl.xaml.cs | 911 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;... | mit |
jdwil/xsd-tool | src/Event/FoundAnyAttributeEvent.php | 190 | <?php
declare(strict_types=1);
namespace JDWil\Xsd\Event;
/**
* Class FoundAnyAttributeEvent
* @package JDWil\Xsd\Event
*/
class FoundAnyAttributeEvent extends AbstractXsdNodeEvent
{
} | mit |
fkoessler/fat_free_crm | app/models/polymorphic/fat_free_crm/avatar.rb | 2377 | # Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
# == Schema Information
#
# Ta... | mit |
adnanaziz/epicode | java/src/main/java/com/epi/RabinKarp.java | 3435 | // Copyright (c) 2015 Elements of Programming Interviews. All rights reserved.
package com.epi;
import java.util.Random;
public class RabinKarp {
// @include
// Returns the index of the first character of the substring if found, -1
// otherwise.
public static int rabinKarp(String t, String s) {
if (s.len... | mit |
kimbirkelund/SekhmetSerialization | trunk/src/Sekhmet.Serialization/CachingObjectContextFactory.cs | 3112 | using System;
using System.Collections.Generic;
using Sekhmet.Serialization.Utility;
namespace Sekhmet.Serialization
{
public class CachingObjectContextFactory : IObjectContextFactory
{
private readonly IInstantiator _instantiator;
private readonly ReadWriteLock _lock = new ReadWriteLock();
... | mit |
KarlHeitmann/Programa-Clinico | spec/routing/diagnoses_routing_spec.rb | 1050 | require "rails_helper"
RSpec.describe DiagnosesController, type: :routing do
describe "routing" do
it "routes to #index" do
expect(:get => "/diagnoses").to route_to("diagnoses#index")
end
it "routes to #new" do
expect(:get => "/diagnoses/new").to route_to("diagnoses#new")
end
it "r... | mit |
prg-titech/ikra-ruby | lib/resources/cuda/kernel.cpp | 238 |
__global__ void /*{kernel_name}*/(/*{parameters}*/)
{
int _tid_ = threadIdx.x + blockIdx.x * blockDim.x;
if (_tid_ < /*{num_threads}*/)
{
/*{execution}*/
_result_[_tid_] = /*{block_invocation}*/;
}
}
| mit |
kormik/manager | tests/Api/Package/PackageTest.php | 4765 | <?php
/*
* This file is part of the puli/manager package.
*
* (c) Bernhard Schussek <bschussek@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Puli\Manager\Tests\Api\Package;
use Exception;
use PHPUnit_Frame... | mit |
ursky/metaWRAP | bin/metawrap-scripts/sam_to_fastq.py | 173 | #!/usr/bin/env python2.7
import sys
for line in open(sys.argv[1]):
cut=line.split('\t')
if len(cut)<11: continue
print ">"+cut[0]
print cut[9]
print "+"
print cut[10]
| mit |
ExpandiumSAS/cxxutils | sources/include/cxxu/cxxu/type_traits.hpp | 890 | #ifndef __CXXU_TYPE_TRAITS_H__
#define __CXXU_TYPE_TRAITS_H__
#include <type_traits>
#include <memory>
namespace cxxu {
template <typename T>
struct is_shared_ptr_helper : std::false_type
{
typedef T element_type;
static
element_type& deref(element_type& e)
{ return e; }
static
const elemen... | mit |
AndreiBiruk/DPM | src/main/java/by/itransition/dpm/service/BookService.java | 1653 | package by.itransition.dpm.service;
import by.itransition.dpm.dao.BookDao;
import by.itransition.dpm.dao.UserDao;
import by.itransition.dpm.entity.Book;
import by.itransition.dpm.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import ... | mit |
czuger/haute_tension | work/raw_data/pretre_jean_adorateurs_mal/daa931d1d025cc6e01cae4c69445f3823df6e84f4690e8461ce2df0bf4593a92.html | 66141 |
<scri
<!DOCTYPE html>
<html lang="fr" itemscope="" itemtype="http://schema.org/Blog">
<head> <script>
if (window.parent !== window) {
if (typeof btoa !== "function") {
window.btoa = function (input) {
var str = String(input);
for (var block, charCode, idx = 0, map = chars, o... | mit |
MadDeveloper/easy.js | src/bundles/role/doc/role.doc.js | 2414 | /**
* getRoles - get all roles
*
* @api {get} /roles Get all roles
* @apiName GetRoles
* @apiGroup Role
*
*
* @apiSuccess {Array[Role]} raw Return table of roles
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* [
* {
* "id": 1,
* "name": "Administrator",
* ... | mit |
fantasticfears/icu4r | ext/icu/icu_spoof_checker.c | 9203 | #include "icu.h"
#include "unicode/uspoof.h"
#define GET_SPOOF_CHECKER(_data) icu_spoof_checker_data* _data; \
TypedData_Get_Struct(self, icu_spoof_checker_data, &icu_spoof_checker_type, _data)
VALUE rb_cICU_SpoofChecker;
VALUE rb_mChecks;
VALUE rb_mRestrictionLevel;
typedef struct {... | mit |
binhbat/binhbat.github.io | _drafts/1/it/_posts/2016-08-08-227_q7t1.md | 99 | ---
layout: sieutv
title: it 227
tags: [ittv]
thumb_re: q7t1227
---
{% include q7t1 key="227" %}
| mit |
webkom/jubileum.abakus.no | pages/index.js | 1320 | import { Component } from 'react';
import format from '../components/format';
import parse from 'date-fns/parse';
import getDay from 'date-fns/get_day';
import Media from 'react-media';
import Page from '../layouts/Page';
import TimelineView from '../components/TimelineView';
import ListView from '../components/ListVie... | mit |
tokka2/tokka2.github.io | _posts/2016-06-11-elecom-hdd-usb3-2tb-white-hd-hd-sg2.0u3wh-d-nttx-6980.md | 1478 | ---
title: エレコム 3.5インチ外付けHDD/USB3.0/2.0TB/ホワイト HD-SG2.0U3WH-Dが特価6,980円!送料無料!
author: 激安・格安・特価情報ツウ
layout: post
date: 2016-06-10 23:00:10
permalink: /pc/elecom-hdd-usb3-2tb-white-hd-hd-sg2.0u3wh-d-nttx-6980.html
categories:
- 外付けHDD
---
<div class="img-bg2 img_L">
<a href="//px.a8.net/svt/ejp?a8mat=ZYP6S+8IMA3E+S1Q+BWG... | mit |
vlad3489/ExampleOfCode | README.md | 229 | ### Explanation:
[home.js](https://github.com/vlad3489/ExampleOfCode/blob/master/home.js) - fragment code from project "Moe Misto"
[opening.js](https://github.com/vlad3489/ExampleOfCode/blob/master/opening.cs) - code from game
| mit |
Mathias9807/Vulkan-Demo | src/main.c | 1993 | /*
* Simple Vulkan application
*
* Copyright (c) 2016 by Mathias Johansson
*
* This code is licensed under the MIT license
* https://opensource.org/licenses/MIT
*/
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include "util/vulkan.h"
#include "util/window.h"
int main() {... | mit |
gamejolt/gamejolt | src/_common/game/package/purchase-modal/purchase-modal.service.ts | 761 | import { defineAsyncComponent } from 'vue';
import { showModal } from '../../../modal/modal.service';
import { User } from '../../../user/user.model';
import { GameBuild } from '../../build/build.model';
import { Game } from '../../game.model';
import { GamePackage } from '../package.model';
interface GamePackagePurch... | mit |
lgcarrier/APEXFramework | 5.2.3/Database/Constraints/AFW_04_CONTX_ETEND_FK1.sql | 200 | SET DEFINE OFF;
ALTER TABLE AFW_04_CONTX_ETEND ADD (
CONSTRAINT AFW_04_CONTX_ETEND_FK1
FOREIGN KEY (REF_CONTX)
REFERENCES AFW_04_CONTX (REF_FIL_ARIAN)
ON DELETE CASCADE
ENABLE VALIDATE)
/
| mit |
gazzlab/LSL-gazzlab-branch | liblsl/external/lslboost/asio/detail/win_iocp_socket_recvfrom_op.hpp | 4108 | //
// detail/win_iocp_socket_recvfrom_op.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.lslboost.org/LICENSE_1... | mit |
cedesk/cedesk.github.io | pages/references.md | 2748 | ---
layout: page
subheadline: "The software is and was used in research on concurrent conceptual design of complex systems"
title: "References"
teaser:
categories:
tags:
header: no
permalink: "/references/"
---
### CERA 2017
The tool CEDESK and a processguide for concurrent conceptual design is descibed in a paper ... | mit |
tadzik/rakudobrew | lib/Rakudobrew/ShellHook/Sh.pm | 1246 | package Rakudobrew::ShellHook::Sh;
use strict;
use warnings;
use 5.010;
use File::Spec::Functions qw(catdir splitpath);
use FindBin qw($RealBin $RealScript);
use Rakudobrew::Variables;
use Rakudobrew::Tools;
use Rakudobrew::VersionHandling;
use Rakudobrew::ShellHook;
use Rakudobrew::Build;
sub get_init_code {
my ... | mit |