repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
JasonYang-MSFT/azure-sdk-for-net | src/SdkCommon/ClientRuntime/Test/ClientRuntime.E2E.Tests/Properties/AssemblyInfo.cs | 856 | 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: AssemblyConfigu... | mit |
fsys/which | test/test_which.py | 6969 | #!/usr/bin/env python
# Copyright (c) 2002-2003 ActiveState Corp.
# Author: Trent Mick (TrentM@ActiveState.com)
"""Test suite for which.py."""
import sys
import os
import re
import tempfile
import unittest
import testsupport
#XXX:TODO
# - def test_registry_success(self): ...App Paths setting
# - def test_regist... | mit |
valor-software/ng2-handsontable | scripts/docs/api-doc-test-cases/component-with-internal-methods.ts | 553 | // tslint:disable:no-empty
import { Component, Input, OnInit } from '@angular/core';
/**
* Foo doc
*/
@Component({
selector: '[foo]',
template: '<button (click)="forTemplateOnly()">{{buttonTxt}}</button>',
exportAs: 'foo'
})
export class FooComponent implements OnInit {
@Input() buttonTxt;
constructor() {... | mit |
coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.07.1-2.0.6/released/8.11.2/zorns-lemma/9.0.0.html | 14256 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>zorns-lemma: 47 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel=... | mit |
Digituz/mailer | src/main/java/br/com/digituz/mailer/controller/EmailController.java | 1350 | package br.com.digituz.mailer.controller;
import br.com.digituz.mailer.model.Email;
import br.com.digituz.mailer.model.Message;
import br.com.digituz.mailer.service.EmailService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfra... | mit |
Pixelapse/worochi | spec/worochi/helper_spec.rb | 1045 | require 'spec_helper'
describe Worochi::Helper do
describe '.is_s3_path?', :aws do
it 'recognizes an S3 path' do
expect(Worochi::Helper.is_s3_path?('s3:test/path')).to be_true
end
it 'rejects other paths' do
expect(Worochi::Helper.is_s3_path?('test/path')).to be_false
expect(Worochi::... | mit |
dazzl-tv/ruby-rabbitmq-janus | spec/ruby_rabbitmq_janus/janus/responses/admin_libnice_debug_spec.rb | 656 | # frozen_string_literal: true
require 'spec_helper'
describe RubyRabbitmqJanus::Janus::Responses::Admin, type: :responses,
name: :admin do
let(:response) { described_class.new(message) }
describe '#libnice_debug' do
context 'with no libnice_debug' do
... | mit |
darwinfroese/gowt | tests/mux/main_test.go | 897 | package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
"testing"
"github.com/darwinfroese/gowt/mux"
)
const expectedOutput string = "Hello World"
var srv *httptest.Server
func TestMain(m *testing.M) {
setup()
code := m.Run()
shutdown()
os.Exit(code)
}
func setup() {
m := mux.Ne... | mit |
AntonShevchuk/jquery-for-beginners | css.float.html | 5153 | <!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Свойство float в CSS</title>
<link rel="profile" href="http://gmpg.org/xfn/11"/>
<link rel="shortcut icon" href="http://anton.shevchuk.name/fav... | mit |
rsms/rhp | install.rb | 34762 | #!/usr/bin/env ruby
#
# setup.rb
#
# Copyright (c) 2000-2005 Minero Aoki
#
# This program is free software.
# You can distribute/modify this program under the terms of
# the GNU LGPL, Lesser General Public License version 2.1.
#
unless Enumerable.method_defined?(:map) # Ruby 1.4.6
module Enumerable
alias map c... | mit |
rjchee/spongemock | cmd/worker/twitter.go | 8721 | package main
import (
"encoding/json"
"errors"
"fmt"
"log"
"net/http"
"regexp"
"strconv"
"strings"
"github.com/dghubble/go-twitter/twitter"
"github.com/dghubble/oauth1"
)
var (
twitterUsername string
twitterConsumerKey string
twitterConsumerSecret string
twitterAuthToken string
twitterAu... | mit |
pushbullet/engineer | vendor/google.golang.org/genproto/googleapis/ads/googleads/v1/common/tag_snippet.pb.go | 6534 | // Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/ads/googleads/v1/common/tag_snippet.proto
package common
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
wrappers "github.com/golang/protobuf/ptypes/wrappers"
enums "google.golang.org/genproto/googleapis/ads/googleads/v1/... | mit |
Maltasga/pi4-while-true | kkcommerce/bin/src/main/resources/templates/loja/detalhesProduto.html | 4063 | <!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{shared/master-loja}">
<head>
<title>Detalhes do Produto</title>
<link th:href="@{/css/detalhesProduto-loja.css}"
rel="stylesheet" type="text... | mit |
camunda-internal/bpmn-quiz | node_modules/diagram-js/test/spec/features/bendpoints/BendpointsSpec.js | 4569 | 'use strict';
require('../../../TestHelper');
/* global bootstrapDiagram, inject */
var modelingModule = require('../../../../lib/features/modeling'),
bendpointsModule = require('../../../../lib/features/bendpoints'),
rulesModule = require('./rules'),
interactionModule = require('../../../../lib/feature... | mit |
Briseus/Kape | src/containers/Landing.js | 425 | import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import Landing from './../Landing'
import * as UserActions from './../actions/User'
function mapStateToProps(state) {
return {
user: state.userStore.user
}
}
const mapDispatchToProps = (dispatch) => {
return bindActio... | mit |
maniatic0/rasppi-printer | Utilities/vector.py | 5714 | # Made by Christian Oliveros on 04/10/2017 for MMKF15
# Imports Used
import decimal as d
try:
from .constants import VL, EPSILON, STEP_MAX
except SystemError as e:
from constants import VL, EPSILON, STEP_MAX
class Vector3(object):
"""Class that represents a Vector with 3 coordinates"""
def __init__(self, x=0.0... | mit |
ethercrow/ai-challenger | game-rps/RockPaperScissors.hs | 3261 | {-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE FlexibleInstances #-}
module RockPaperScissors
( game
, WinCounts(..)
, Order(..)
, Replay(..)
) where
import Data.Maybe
import Data.Monoid
import qualified Data.Text.Lazy as TL
import qu... | mit |
bolotyuh/ember-symfony-starterkit | web/ember/foo/app/app.js | 302 | import Resolver from 'ember/resolver';
import loadInitializers from 'ember/load-initializers';
Ember.MODEL_FACTORY_INJECTIONS = true;
var App = Ember.Application.extend({
modulePrefix: 'tvdb', // TODO: loaded via config
Resolver: Resolver
});
loadInitializers(App, 'tvdb');
export default App;
| mit |
braz/mojito-helloworld | node_modules/mojito/node_modules/yui/dataschema-array/dataschema-array.js | 6625 | YUI.add('dataschema-array', function (Y, NAME) {
/**
* Provides a DataSchema implementation which can be used to work with data
* stored in arrays.
*
* @module dataschema
* @submodule dataschema-array
*/
/**
Provides a DataSchema implementation which can be used to work with data
stored in arrays.
See the `app... | mit |
alexandernyquist/tsdb | tsdb/tsdb.c | 3075 | #define CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <WinSock2.h>
#include <time.h>
#include "anet.h"
#include "tsdb.h"
// INCR <METRIC> NOW 1\r\n
// INCR <METRIC> <TS> 1\r\n
// RANGE <METRIC> <TSFROM> <TSTO>\r\n
/* Global variables */
struct tsdbServer ser... | mit |
iOnRoad/EJHttpClient | EJHttpClientDemo/EJHttpClientDemo/EJDefaultErrorView.h | 203 | //
// EJErrorTip.h
// EJDemo
//
// Created by iOnRoad on 15/9/29.
// Copyright © 2015年 iOnRoad. All rights reserved.
//
#import "EJErrorView.h"
@interface EJDefaultErrorView : EJErrorView
@end
| mit |
ApocalypticOctopus/Apocalyptic.Utilities.Net | LiveLinq.Tests/SelectObservableCollectionViewModel.cs | 327 | using Reactive.Bindings;
namespace LiveLinq.Tests
{
public class SelectObservableCollectionViewModel
{
public SelectObservableCollectionViewModel(string name)
{
Name = new ReactiveProperty<string>(name);
}
public ReactiveProperty<string> Name { get; private set; }
... | mit |
robkeim/xcsharp | exercises/go-counting/GoCountingTests.cs | 6023 | // This file was auto-generated based on version 1.0.0 of the canonical data.
using System;
using System.Collections.Generic;
using Xunit;
public class GoCountingTests
{
[Fact]
public void Black_corner_territory_on_5x5_board()
{
var coordinate = (0, 1);
var board =
" B \n" +... | mit |
Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/i386/2014/USN-2191-1.sh | 3101 | #!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2191-1
#
# Security announcement date: 2014-05-01 00:00:00 UTC
# Script generation date: 2017-01-01 21:03:47 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: i386
#
# Vulnerable packages fix on version:
# - icedtea-6-jre-cacao:6b31-1.13.3-1ubunt... | mit |
shrsv/bm | install.sh | 499 | #!/bin/bash
sudo cp bm_util /usr/bin/bm_util
if [[ $? -ne 0 ]]; then
echo -e "Couldn't copy bm_util to /usr/bin/. Installation failed."
exit 1
fi
cp bm_bash ~/.bm_bash
if [[ $? -ne 0 ]]; then
echo -e "Couldn't copy bm_bash to ~/.bm_bash. Installation failed."
exit 1
fi
grep --quiet "^source ~/.bm_bash... | mit |
codeship/documentation | _pro/quickstart/getting-started.md | 12068 | ---
title: CodeShip Pro Introduction Guide Part 1
tags:
- docker
- jet
- codeship pro
- introduction
- getting started
- tutorial
- getting started jet
categories:
- Quickstart
- Docker
- Guide
redirect_from:
- /docker-guide/getting-started/
- /pro/getting-started/getting-started/
---
* includ... | mit |
frptools/collectable | packages/map/src/functions/has.ts | 454 | import { hash as calculateHash } from '@collectable/core';
import { getHash } from '../internals/primitives';
import { HashMapStructure } from '../internals/HashMap';
import { NOTHING } from '../internals/nodes';
export function has<K, V> (key: K, map: HashMapStructure<K, V>): boolean;
export function has<K, V> (key: ... | mit |
reeleezee/reeleezee-api-go | misc/string.go | 696 | /*
Licensed under MIT license
(c) 2017 Reeleezee BV
*/
package misc
import (
"crypto/rand"
"fmt"
)
func MaxString(data interface{}, length int) string {
if data != nil {
data := data.(string)
if len(data) > length {
return data[:length]
}
return data
}
return ""
}
// NO REAL UUID!
// Consider a bette... | mit |
iVariable/csscomb-cut-media-queries | options/cut-media-queries.js | 2636 | module.exports = (function () {
var moduleName = 'cut-media-queries';
var lolArrayDiff = function(array1, array2) {
var diff1 = array1.filter(function(elem){
return array2.indexOf(elem) === -1;
});
var diff2 = array2.filter(function(elem){
return array1.indexOf(elem) === -1;
});
return diff1.conca... | mit |
basmilius/Cappuccino | src/Cappuccino/Loader/ChainLoader.php | 3459 | <?php
/**
* Copyright (c) 2017 - 2019 - Bas Milius <bas@mili.us>
*
* This file is part of the Cappuccino package.
*
* For the full copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Cappuccino\Loader;
use Cappucci... | mit |
astrellon/cotsb | server/.ycm_extra_conf.py | 5739 | # This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either... | mit |
smldev/smlimitless | MonoGame/SMLimitless/SMLimitless/Extensions/PositionableExtensions.cs | 1698 | using System;
using System.Collections.Generic;
using System.Linq;
using SMLimitless.Interfaces;
using SMLimitless.Physics;
namespace SMLimitless.Extensions
{
/// <summary>
/// Contains extension methods for types implementing the <see
/// cref="IPositionable2" /> interface.
/// </summary>
public static clas... | mit |
iyujian/cms | cms-core/src/main/java/com/group/cms/core/dao/BaseDao.java | 762 | package com.group.cms.core.dao;
import java.io.Serializable;
import java.util.List;
public interface BaseDao<T, ID extends Serializable> {
/**
* insert
* @param entity
* @return 插入的行数
*/
int insert(T entity);
/**
* update
* @param entity
* @return 修改的行数
*/
int update(T entity);
/**
* delet... | mit |
gsora/TootApp | app/src/main/java/xyz/gsora/toot/PostStatus.java | 5531 | package xyz.gsora.toot;
import MastodonTypes.Status;
import android.app.IntentService;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.NotificationCompat;
import android.util.Log;
import io.reactivex.Observable;
import io.reactivex.an... | mit |
JRLK/focus-components | src/list/selection/line.js | 4528 | // Dependencies
const {types} = require('focus').component;
// Components
const ContextualActions = require('../action-contextual').component;
const CheckBox = require('../../common/input/checkbox').component;
// Mixins
const translationMixin = require('../../common/i18n').mixin;
const referenceMixin = require('..... | mit |
zachwaugh/pluck | PluckTests/PLKYoutubeServiceTest.h | 351 | //
// PLKYoutubeServiceTest.h
// PluckDemo
//
// Created by Zach Waugh on 2/16/13.
// Copyright (c) 2013 Zach Waugh. All rights reserved.
//
#import <SenTestingKit/SenTestingKit.h>
@interface PLKYoutubeServiceTest : SenTestCase
- (void)testIsSupportedURL;
- (void)testItemFromDictionary;
#if TEST_LIVE
- (void)te... | mit |
loomchild/maligna | maligna/src/test/java/net/loomchild/maligna/filter/aligner/align/AlignAlgorithmMockTest.java | 1986 | package net.loomchild.maligna.filter.aligner.align;
import static net.loomchild.maligna.util.TestUtil.assertAlignmentEquals;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import net.loomchild.maligna.coretypes.Alignment;
import org.juni... | mit |
jrahlf/3D-Non-Contact-Laser-Profilometer | xpcc/examples/linux/communication/basic/main.cpp | 1053 |
#include <xpcc/architecture.hpp>
#include <xpcc/communication.hpp>
#include <xpcc/communication/backend/tipc/tipc.hpp>
#include <xpcc/debug/logger.hpp>
// set new log level
#undef XPCC_LOG_LEVEL
#define XPCC_LOG_LEVEL xpcc::log::DEBUG
#include "component_receiver/receiver.hpp"
#include "component_sender/sender.hpp... | mit |
mkaminaga/programparts | learn_c/lib/standard_error.h | 659 | #ifndef STANDARD_ERROR_H
#define STANDARD_ERROR_H
/* calc_standard_error(double[], uint32_t)
* calculate standard error of data.
* arg1: data
* arg2: number of elemet in data */
double calc_standard_error(double data[], uint32_t element_num);
/* calc_dispersion(double[], uint32_t)
* calcuate dispersion ... | mit |
tobyclemson/msci-project | vendor/mockito-1.8.2/doc/org/mockito/internal/util/Decamelizer.html | 10177 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_06) on Sat Dec 12 16:17:56 CET 2009 -->
<TITLE>
Decamelizer (Mockito API)
</TITLE>
<META NAME="date" CONTENT="2009-12-12">
<LINK REL ="s... | mit |
suntorytime/project_mate2 | db/migrate/20160422230113_add_user_id_to_friends.rb | 118 | class AddUserIdToFriends < ActiveRecord::Migration
def change
add_column :friends, :user_id, :integer
end
end
| mit |
AReallyGoodName/ember-cli-s3-sync-index-last-no-cache | tests/unit/tasks/extra-step-test.js | 2577 | 'use strict';
var assert = require('assert');
var extraStep = require('../../../lib/tasks/extra-step');
var MockUI = require('../../helpers/mock-ui');
describe('Extra Step', function() {
var ui;
var dummySteps = [
{ command: 'echo "command number 1"' },
{ command: 'echo "command number 2"' },
{... | mit |
chriswork/abc | css/sb1-style.css | 21543 | /* --------------------------------
Primary style
-------------------------------- */
*, *::after, *::before {
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
font-size: 1.6rem;
font-family: "PT Sans", sans-serif;
color: #585c5e;
background-color: #f5f5f5;
}
a {
color: #f82f53;
text-dec... | mit |
dhesse/py-uwerr | doc/conf.py | 7830 | # -*- coding: utf-8 -*-
#
# py-uwerr documentation build configuration file, created by
# sphinx-quickstart on Sat Nov 24 19:07:07 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | mit |
tornoteli/tornoteli.github.io | Physical-Computing/pcomp-final/index.html | 21434 | <!DOCTYPE html>
<html class="theme-next mist use-motion" 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, maximum-scale=1"/>
<meta name="theme-color" content="#222">
<meta http-equiv="... | mit |
VanceKingSaxbeA/NYSE-Engine | App/WEC.php | 5298 | /*Owner & Copyrights: Vance King Saxbe. A.*//*Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe@... | mit |
bkahlert/seqan-research | raw/pmbs12/pmsb13-data-20120615/sources/wtg1fr816tg4hs6w/5/core/tests/basic/test_basic_metaprogramming.cpp | 10082 | // ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2012, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redistribution ... | mit |
jananzhu/cellsociety | src/model/neighbors/Neighbors.java | 3084 | package model.neighbors;
import java.util.List;
import model.patches.Patch;
import model.gridrules.GridRules;
public abstract class Neighbors {
//will contain methods to construct neighbor list and check neighbors, etc.
//extended by different type of neighbor functions?
//or perhaps different neighbor fu... | mit |
bradyhouse/16 | docs/injectables/StateService.html | 65527 | <!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>16 documentation</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
... | mit |
pushbullet/engineer | vendor/google.golang.org/api/datafusion/v1beta1/datafusion-gen.go | 150488 | // Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package datafusion provides access to the Cloud Data Fusion API.
//
// For product documentation, see: https://cloud.google.com/data-fusion/docs... | mit |
thlorenz/hha | hha.js | 1658 | /* eslint-disable comma-style, operator-linebreak, space-unary-ops, no-multi-spaces, key-spacing, indent */
'use strict'
const analyzeHoldem = require('./lib/holdem')
/**
* Analyzes a given PokerHand which has been parsed by the HandHistory Parser hhp.
* Relative player positions are calculated, i.e. cutoff, button... | mit |
tim-weis/win32-samples | README.md | 15 | # win32-samples | mit |
okmttdhr/preact-fork | test/browser/render.js | 10825 | import { h, render, rerender, Component } from '../../src/preact';
let { expect } = chai;
/*eslint-env browser, mocha */
/*global sinon, chai*/
/** @jsx h */
describe('render()', () => {
let scratch;
before( () => {
scratch = document.createElement('div');
(document.body || document.documentElement).appendChi... | mit |
lordmos/blink | Source/core/rendering/InlineBox.cpp | 10882 | /*
* Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your opt... | mit |
mehulsbhatt/cdr | app/cache/prod/twig/fc/e6/b668448a5b90084f0988441f2b64.php | 625 | <?php
/* OyatelCdrBundle:Default:index.html.twig */
class __TwigTemplate_fce6b668448a5b90084f0988441f2b64 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protect... | mit |
z1c0/Newport | Newport/Converters/BaseConverter.cs | 954 | using System;
using System.Globalization;
#if UNIVERSAL
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml;
#else
using System.Windows;
using System.Windows.Data;
#endif
namespace Newport
{
public abstract class BaseConverter : DependencyObject, IValueConverter
{
public object Convert(object value, Type targetT... | mit |
awesommist/DynamicLib | src/main/java/dynamics/item/IMetaItem.java | 947 | package dynamics.item;
import java.util.List;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import net.mine... | mit |
hawkphantomnet/leetcode | ReorderList/Solution.cpp | 1125 | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
private:
ListNode* reverseList(ListNode* head) {
ListNode * reverse = NULL;
ListNode * node = head;
while (node) {
... | mit |
steveschnepp/OpenApoc | game/ui/general/loadingscreen.cpp | 2976 | #ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#include "game/ui/general/loadingscreen.h"
#include "framework/configfile.h"
#include "framework/data.h"
#include "framework/framework.h"
#include "framework/renderer.h"
#include "game/state/gamestate.h"
#include "game/ui/battle/battleview.h"
#include "game/ui/... | mit |
headcruser/blog | src/lib/Controller.php | 101 | <?php
namespace System;
class Controller
{
const DEFINITIONS = null;
const VIEWS = null;
}
| mit |
Chnkr/Suelake | src/com/suelake/habbo/moderation/CallForHelp.java | 2056 | package com.suelake.habbo.moderation;
import java.util.Date;
import com.blunk.util.TimeHelper;
import com.suelake.habbo.communication.SerializableObject;
import com.suelake.habbo.communication.ServerMessage;
import com.suelake.habbo.spaces.Space;
import com.suelake.habbo.users.User;
/**
* CallForHelp represents a '... | mit |
BuzzAcademy/idioms-moe-unformatted-data | all-data/2000-2999/2182-34.html | 2311 | <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="ztable"><tr><th class="ztd1"><b>... | mit |
andry81/contools | Scripts/Tools/build/init_project_log.bat | 926 | @echo off
setlocal
set "SUFFIX_NAME=%~1"
for %%i in (CONTOOLS_ROOT) do (
if not defined %%i (
echo.%~nx0: error: `%%i` variable is not defined.
exit /b 255
) >&2
)
rem use stdout/stderr redirection with logging
call "%%CONTOOLS_ROOT%%\wmi\get_wmic_local_datetime.bat"
set "PROJECT_LOG_FILE... | mit |
boland25/woibm | IBMWeatherSensor/Models/Features/WoIBMForecastDay.h | 369 | //
// WoIBMForecastDay.h
// IBMWeatherSensor
//
// Created by boland on 8/20/14.
// Copyright (c) 2014 mallocmedia. All rights reserved.
//
#import "WoIBMModel.h"
@interface WoIBMForecastDay : WoIBMModel
@property (nonatomic, copy) NSString *forecastDescription;
@property (nonatomic, copy) NSString *icon_url;
@p... | mit |
Grimace1975/bclcontrib | Core/System.CoreEx_/System.Core.Routing/Collections.1/RoutedCommand/RoutedCommand.cs | 10006 | //namespace Instinct.Collections.RoutedCommand
//{
// /// <summary>
// /// RoutedCommand
// /// </summary>
// public class RoutedCommand : ICommand
// {
// private byte _commandId;
// private string _name;
// private System.Type _ownerType;
// private System.Collect... | mit |
chapsuk/frissgo | config/output.go | 267 | package config
const (
OutputFormatText = "text"
OutputFormatJSON = "json"
OutputTargetStdout = "stdout"
OutputTargetFile = "file"
)
type Output struct {
Format string `yaml:"format"`
Target string `yaml:"target"`
FileName string `yaml:"file_name"`
}
| mit |
yogeshsaroya/new-cdnjs | ajax/libs/angular.js/1.2.6/angular-sanitize.min.js | 129 | version https://git-lfs.github.com/spec/v1
oid sha256:f7df841464cae1b61b2fb488b6174926c0e0251ceddf1dd360b031ab9fb83c3c
size 4289
| mit |
yangra/SoftUni | Java-DB-Fundamentals/DatabasesFrameworks-Hibernate&SpringData/07.HibernateCodeFirst/SalesDatabase/src/main/java/entities/StoreLocation.java | 834 | package entities;
import javax.persistence.*;
import java.util.Set;
@Entity
@Table(name="store_locations")
public class StoreLocation {
private Long id;
private String locationName;
private Set<Sale> sales;
public StoreLocation() {
}
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY... | mit |
s3inlc/cineast-evaluator | inc/Util.class.php | 24052 | <?php
use DBA\AnswerSession;
use DBA\JoinFilter;
use DBA\MediaObject;
use DBA\MediaType;
use DBA\OrderFilter;
use DBA\Query;
use DBA\QueryFilter;
use DBA\QueryResultTuple;
use DBA\RandOrderFilter;
use DBA\ResultTuple;
/**
*
* @author Sein
*
* Bunch of useful static functions.
*/
class Util {
/**
* Ca... | mit |
yowainwright/yowainwright.github.io | gatsby-browser.js | 504 | const React = require('react')
const Layout = require('./src/components/layout').default
// Logs when the client route changes
exports.onRouteUpdate = ({ location, prevLocation }) => {
const body = document.querySelector('body')
body.setAttribute('data-current-page', location.pathname)
body.setAttribute('data-pr... | mit |
wenq1/cocotron | CoreGraphics/KGBitmapContext.h | 1755 | /* Copyright (c) 2007 Christopher J. W. Lloyd
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis... | mit |
Colorsublime/colorsublime.github.io | ace/lib/ace/theme/BerryNice.css | 2418 | .ace--berry-nice .ace_gutter {
background: rgba(40,44,54,1);
color: rgb(131,136,145)
}
.ace--berry-nice .ace_print-margin {
width: 1px;
background: #e8e8e8
}
.ace--berry-nice {
background-color: rgba(40,44,54,1);
color: rgba(222,227,236,1)
}
.ace--berry-nice .ace_cursor {
color: rgba(248,248,240,1)
}
... | mit |
zalando/nakadi-klients | client/src/main/scala/org/zalando/nakadi/client/java/model/JavaJacksonJsonMarshaller.scala | 5200 | package org.zalando.nakadi.client.java.model
import org.slf4j.LoggerFactory
import org.zalando.nakadi.client.Deserializer
import org.zalando.nakadi.client.Serializer
import org.zalando.nakadi.client.java.enumerator._
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.core.JsonFactory
imp... | mit |
modeswitch/barrelfish | doc/009-notifications/Notify.tex | 12323 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright (c) 2011, ETH Zurich.
% All rights reserved.
%
% This file is distributed under the terms in the attached LICENSE file.
% If you do not find this file, copies can be found by writing to:
% ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092... | mit |
navatech-trainning/fashion-shopping | admin/login.php | 17076 | <?php
session_start();
include "../connection.php";
$error = false;
if (isset($_SESSION['auth']) && $_SESSION['auth'] != false) {
header('Location: index.php');
} else {
$_SESSION['auth'] = false;
}
if (isset($_POST['username']) && isset($_POST['password'])) {
// print_r($_POST);
$username = $_POST['us... | mit |
sandeepmistry/arduino-BLEPeripheral | src/BLEConstantCharacteristic.cpp | 1075 | // Copyright (c) Sandeep Mistry. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "BLEConstantCharacteristic.h"
BLEConstantCharacteristic::BLEConstantCharacteristic(const char* uuid, const unsigned char value[], unsigned char length) :... | mit |
jonbinney/python-planning | python_task_planning/examples/move_stuff/move_stuff.py | 8400 | '''
Example which moves objects around in a 2D world.
This example requires matplotlib. The ros package doesnt have this as a
rosdep though, since nothing else needs it. Just do a system install
of matplotlib.
'''
import roslib; roslib.load_manifest('hierarchical_interactive_planning')
import numpy as np
from scipy im... | mit |
wallstreetcn/LNStock | Example/LNMarket/LNMarket/Classes/PriceNetwork/PriceNetwork.h | 489 | //
// PriceNetwork.h
// Market
//
// Created by ZhangBob on 4/28/16.
// Copyright © 2016 vvusu. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef void(^PriceNetworkBlock)(BOOL isSuccess, id response);
@interface PriceNetwork : NSObject
#pragma mark - 主站新闻请求
+ (void)getStockNewsWithParamter:(NSD... | mit |
dunitian/LoTCodeBase | LoTUI/Manager/Demo/select2.html | 1279 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta charset="utf-8" />
<link href="/open/select2/select2.min.css" rel="stylesheet" />
</head>
<body>
<select style="width:50%;" id="lot-tagSelect" multiple>
<optgroup label=... | mit |
aoziczero/tcode | old/transport/tcp/pipeline_builder.hpp | 526 | #ifndef __tcode_transport_tcp_pipeline_builder_h__
#define __tcode_transport_tcp_pipeline_builder_h__
#include <system_error>
#include <common/rc_ptr.hpp>
namespace tcode { namespace transport {
class event_loop;
namespace tcp {
class pipeline;
class pipeline_builder
: public tcode::ref_counted< pipeline_builder... | mit |
overridethis/usgsclient | UsgsClient/Quakes/QuakesUriBuilder.cs | 907 | using System;
using UsgsClient.Common;
namespace UsgsClient.Quakes
{
public class QuakesUriBuilder : IQuakesUriBuilder
{
private readonly IConfig _config;
public QuakesUriBuilder(IConfig config)
{
this._config = config;
}
public Uri ForDetail(
... | mit |
jenkinsci/keep-slave-offline | src/main/java/hudson/plugins/keepSlaveOffline/OfflineKeeper.java | 1221 | package hudson.plugins.keepSlaveOffline;
import org.kohsuke.stapler.DataBoundConstructor;
import hudson.Extension;
import hudson.model.Node;
import hudson.model.Queue.FlyweightTask;
import hudson.model.Queue.Task;
import hudson.model.queue.CauseOfBlockage;
import hudson.slaves.NodeProperty;
import hudson.slaves.NodeP... | mit |
soniccat/android-taskmanager | app_wordteacher_old/src/main/java/com/example/alexeyglushkov/wordteacher/quizletlistmodules/setlistmodule/view/QuizletSetListFragment.java | 1783 | package com.example.alexeyglushkov.wordteacher.quizletlistmodules.setlistmodule.view;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.alexeyglushkov.quizletservice.entities.QuizletSet;
import com.example.alexeyglushkov.wordteach... | mit |
FujiMakoto/Pixel | resources/views/users/auth/login.blade.php | 3349 | @extends('app')
@section('header-text') Log into your account @endsection
@section('header-subtext') Enter in your account information below @endsection
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="pa... | mit |
NTU-ArtFest22/Monitor-web | src/Reducers/index.js | 4611 | import { handleActions } from 'redux-actions';
import { Map, OrderedMap } from 'immutable';
import initialState from '../store/initialState';
const App = handleActions({
WINDOW_LOADED: (state) => ({
...state,
windowLoaded: true
}),
CLOSE_LEGAL_HINT: (state) => ({
...state,
showLegal... | mit |
9o/react-color | lib/components/slider/SliderPointer.js | 3128 | 'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProp... | mit |
brianyamasaki/collegeScorecard | app/app.js | 658 | 'use strict';
// Declare app level module which depends on views, and components
angular.module('collegeScorecard', [
'ngRoute',
'ui.bootstrap',
'nemLogging',
'uiGmapgoogle-maps',
'collegeScorecard.common',
'collegeScorecard.footer',
'collegeScorecard.home',
'collegeScorecard.schools',
'collegeScorec... | mit |
brijeshsmita/commons-spring | EMSPhase3JSP/src/com/cg/registration/servlet/RegistrationServlet.java | 2047 | package com.cg.registration.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import... | mit |
looker/angular-virtual-scroll | src/virtual-repeat.js | 14764 | // © Copyright 2013 Paul Thomas <paul@stackfull.com>. All Rights Reserved.
// sf-virtual-repeat directive
// ===========================
// Like `ng-repeat` with reduced rendering and binding
//
(function(){
'use strict';
// (part of the sf.virtualScroll module).
var mod = angular.module('sf.virtualScroll');
... | mit |
user-none/sixaxispairer | CMakeModules/FindHIDAPI.cmake | 982 | # Try to find HIDAPI library
# Once done will define:
#
# HIDAPI_FOUND
# HIDAPI_INCLUDE_DIRS
# HIDAPI_LIBRARIES
#
# Can specify root search dir:
#
# HIDAPI_ROOT_DIR
if (HIDAPI_INCLUDE_DIRS)
set (HIDAPI_FIND_QUIETLY TRUE)
endif ()
if (NOT HDIAPI_INCLUDE_DIRS)
find_path (HIDAPI_INCLUDE_DIRS NAMES hidapi.h PATH ... | mit |
djanowski/ironium | test/queues/error_test.js | 2127 | require('../helpers');
const assert = require('assert');
const ironium = require('../../src');
const Promise = require('bluebird');
describe('processing', ()=> {
const errorCallbackQueue = ironium.queue('error-callback');
const errorPromiseQueue = ironium.queue('error-promise');
const errorGeneratorQueue... | mit |
CrazyDiamond567/docker-cloud-test | unh698.py | 302 | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def mainRoute():
return render_template('hello.html')
@app.route('/jujitsu')
def jujitsu():
return render_template('jujitsu.html')
if __name__ == '__main__':
app.run(debug=True,host='0.0.0.0', port=8080)
| mit |
abrabete/threadpool_example | IntelliJ/src/ThreadPoolApp.java | 4608 | /**
* Created by Andrei on 10/14/2014.
*/
import java.util.concurrent.Executors;
import java.util.concurrent.ExecutorService;
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.net.InetAddress;
public class ThreadPoolApp {
public static... | mit |
Mount-39/Behind-You | www/css/style.css | 12533 |
.shape-1 {
text-shadow: rgb(30, 26, 35) 1px 1px,
rgb(31, 27, 36) 2px 2px,
rgb(32, 27, 37) 3px 3px,
rgb(32, 28, 38) 4px 4px,
rgb(33, 29, 38) 5px 5px,
rgb(34, 29, 39) 6px 6px,
rgb(34, 30, 40) 7px 7px,
rgb(35, 30, 41) 8px 8px,
rgb(36, 31, 42) 9px 9px,
rgb(36, 32, 42) 10px 10px,
... | mit |
simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/aa7e162e6c7ae7efeef0b3843408a36429038e0b2e5543ae36886141a9c4af70.html | 550 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./a0e6245c7a5b31b28668da003f6e62b1c04cf44143de9d52d2ef3c286fcc6883.html">Teleport</a>
<hr>
... | mit |
ammen99/wayfire | src/api/wayfire/input-device.hpp | 758 | #ifndef WF_INPUT_DEVICE_HPP
#define WF_INPUT_DEVICE_HPP
#include <wayfire/nonstd/wlroots.hpp>
namespace wf
{
class input_device_t
{
public:
/**
* General comment
* @return The represented wlr_input_device
*/
wlr_input_device *get_wlr_handle();
/**
* @param enabled Whether the compos... | mit |
crystalwm/Angular_demo | AngularjsTutorial_cn/angular1_examples/指令/显示或者隐藏/index.html | 315 | <!DOCTYPE html>
<html ng-app="app">
<head lang="en">
<meta charset="UTF-8">
<script src="angular.min.js"></script>
<script src="controllerlist.js"></script>
<title></title>
</head>
<body>
<div ng-controller="expanderCtrl">
<expander title='title' text='text'></expander>
</div>
</body>
</html> | mit |
v8-dox/v8-dox.github.io | 297cadb/html/classv8_1_1_private.html | 7570 | <!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 |
v8-dox/v8-dox.github.io | abf37c1/html/v8stdint_8h_source.html | 12704 | <!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 |
korun/dcs-system | pci/compile.sh | 83 | gcc -std=c99 -Ofast -Wall -Werror -pedantic -o pci_maker.exe pci_maker.c strxtoi.c
| mit |