repo_name stringlengths 4 116 | path stringlengths 3 942 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
ceji-longquan/ceji_android | app/src/main/java/com/lqtemple/android/lqbookreader/model/MusicMedia.java | 2766 | package com.lqtemple.android.lqbookreader.model;
import java.io.Serializable;
/**音乐信息
* Created by chenling on 2016/3/15.
*/
public class MusicMedia implements Serializable{
private int id;
private String title;
private String artist;
private String url;
private String time;
private String ... | mit |
loveencounterflow/ncr | lib/main.js | 25632 | (function() {
//###########################################################################################################
var CND, Multimix, alert, badge, debug, dec, decG, echo, help, hex, hexG, info, isa, log, name, nameO, nameOG, rpr, type_of, types, urge, validate, warn, whisper;
CND = require('cnd');
r... | mit |
beatfactor/nightwatch | lib/api/expect/assertions/element/property.js | 2710 | /**
* Checks if a given DOM property of an element has the expected value. For all the available DOM element properties, consult the [Element doc at MDN](https://developer.mozilla.org/en-US/docs/Web/API/element).
*
* @example
* this.demoTest = function (browser) {
* browser.expect.element('body').to.have.propert... | mit |
JoshuaCrocker/Battleships-Server | app/index.html | 1084 | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Battleships Server</title>
<script src="/socket.io/socket.io.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r72/three.js"></script>
<script src="main.js"></script>
<style>
html {
box-sizing: ... | mit |
github/codeql | java/ql/src/Security/CWE/CWE-090/LdapInjectionJndi.java | 1337 | import javax.naming.directory.DirContext;
import org.owasp.esapi.Encoder;
import org.owasp.esapi.reference.DefaultEncoder;
public void ldapQueryBad(HttpServletRequest request, DirContext ctx) throws NamingException {
String organizationName = request.getParameter("organization_name");
String username = request.get... | mit |
jdkram/jdkram.github.io | _posts/2015-12-30-reblog-how-bad-are-things.md | 5024 | ---
layout: post
title: "Reblog: how bad are things?"
date: 2015-12-30 22:42
category: "code"
---
I was stunned by the blog post [How bad are things?](http://slatestarcodex.com/2015/12/24/how-bad-are-things/) in which a psychiatrist called Scott Alexander wonders about just how bad things are for any given individual,... | mit |
Jacob-Gray/Ario | src/sample/Controller.java | 1145 | package sample;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.TextArea;
import javafx.scene.paint.Color;
import javafx.scene.text.Text;
import javafx.scene.text.TextFlow;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
... | mit |
emeraldjava/emeraldjava.github.io | jekyll/_posts/2013/2013-06-25-video-post.md | 786 | ---
title: "A Post with a Video"
description: "Custom written post descriptions are the way to go... if you're not lazy."
tags: [sample post, video]
---
<iframe width="560" height="315" src="//www.youtube.com/embed/SU3kYxJmWuQ" frameborder="0"> </iframe>
Video embeds are responsive and scale with the width of the ma... | mit |
moneyphp/money | tests/Formatter/IntlMoneyFormatterTest.php | 3392 | <?php
declare(strict_types=1);
namespace Tests\Money\Formatter;
use Money\Currencies;
use Money\Currency;
use Money\Formatter\IntlMoneyFormatter;
use Money\Money;
use NumberFormatter;
use PHPUnit\Framework\TestCase;
/** @covers \Money\Formatter\IntlMoneyFormatter */
final class IntlMoneyFormatterTest extends TestCa... | mit |
DimitarIvanov8/software-university | DB_Advanced_Entity_Framework/Advanced Querying/Book Titles by Category StartUp/StartUp.cs | 1130 | namespace BookShop
{
using BookShop.Data;
using BookShop.Models;
using BookShop.Initializer;
using System.Linq;
using System;
using System.Collections.Generic;
using System.Text;
public class StartUp
{
static void Main()
{
var input = Console.ReadLine();... | mit |
mingaldrichgan/gatsby | packages/gatsby-remark-prismjs/src/parse-line-number-range.js | 1302 | const rangeParser = require(`parse-numeric-range`)
module.exports = language => {
if (!language) {
return ``
}
if (language.split(`{`).length > 1) {
let [splitLanguage, ...options] = language.split(`{`)
let highlightLines = [],
numberLines = false,
numberLinesStartAt
// Options can be... | mit |
mjmlio/mjml | packages/mjml-validator/src/rules/validTag.js | 539 | import ruleError from './ruleError'
// Tags that have no associated components but are allowed even so
const componentLessTags = [
'mj-all',
'mj-class',
'mj-selector',
'mj-html-attribute',
]
export default function validateTag(element, { components }) {
const { tagName } = element
if (componentLessTags.i... | mit |
tlake/data-structures-mk2 | tests/test_insertion_sort.py | 1008 | # -*- coding utf-8 -*-
from __future__ import unicode_literals
import pytest
from structures.insertion_sort import insertion_sort
@pytest.fixture
def sorted_list():
return [i for i in xrange(10)]
@pytest.fixture
def reverse_list():
return [i for i in xrange(9, -1, -1)]
@pytest.fixture
def average_list():
... | mit |
mrpapercut/wscript | testfiles/COMobjects/JSclasses/DXImageTransform.Microsoft.CrBlinds.1.js | 598 | class dximagetransform_microsoft_crblinds_1 {
constructor() {
// short bands () {get} {set}
this.bands = undefined;
// int Capabilities () {get}
this.Capabilities = undefined;
// string Direction () {get} {set}
this.Direction = undefined;
// float Duration ... | mit |
cirocosta/ledmatrix | webpack.config.js | 772 | 'use strict';
var webpack = require('webpack');
var cfg = {
entry: './src/main.jsx',
output: {
path: __dirname + '/dist',
filename: 'main.js',
},
externals: {
yaspm: 'commonjs yaspm'
},
target: process.env.NODE_ENV === 'web' ? 'web' : 'node-webkit',
module: {
loaders: [
{
t... | mit |
orgrinDataOrganization/orgrinData | src/mv/map/index.js | 123 | /**
* Created by ff on 2016/10/25.
*/
require('./style.css');
var vm = avalon.define({
$id:'map'
})
module.exports = vm; | mit |
SRombauts/cpp-skeleton | src/Utils/CompilerVersion.h | 3157 | /**
* @file CompilerVersion.h
* @ingroup Utils
* @brief Get the version of the C++ compiler used.
*
* Copyright (c) 2017 Sebastien Rombauts (sebastien.rombauts@gmail.com)
*/
#pragma once
#include <string>
namespace Utils {
/**
* @brief Get the version of the C++ compiler used.
* @ingroup Utils
*
* W... | mit |
brownzach125/WebGL | lesson03/mine.html | 5680 | <html>
<head>
<title>Learning WebGL — lesson 2</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript" src="glMatrix-0.9.5.min.js"></script>
<script type="text/javascript" src="webgl-utils.js"></script>
<script type="text/javascript" src="./shape.js"></sc... | mit |
fw42/cubecomp | db/seeds/themes/default/blue/colors.css | 1651 | body {
background: #FFFFFF url("{{ "img01.gif" | image_url }}") repeat-x;
color: #333333;
}
h1, h2, h3 {
color: #3E3E3E;
}
a {
color: #7BAA0F;
}
a:hover, a:active {
color: #003448;
}
/********************************* Table ********************************/
table.competitors tr:nth-child(even) {
backgr... | mit |
colinhect/hect | Engine/Source/Hect/Scene/Scenes/DefaultScene.cpp | 4169 | ///////////////////////////////////////////////////////////////////////////////
// This source file is part of Hect.
//
// Copyright (c) 2016 Colin Hill
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal ... | mit |
kvakil/moonchain | docs/classes/Block.html | 4952 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<title>Moonchain</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>
<div id="conta... | mit |
juhnowski/backbone_hello_world | 4.html | 514 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>hello-backbonejs</title>
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js"></script>
<script src="http://ajax.cdnjs.com/ajax/l... | mit |
Boddlnagg/winapi-rs | lib/wow32/build.rs | 149 | // Copyright © 2015, Peter Atashian
// Licensed under the MIT License <LICENSE.md>
extern crate build;
fn main() {
build::link("wow32", true)
}
| mit |
JoshGlazebrook/tictactoe-glazebrook | api/src/main/java/com/glazebrook/tictactoe/responses/JoinGameResponse.java | 1004 | package com.glazebrook.tictactoe.responses;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.constraints.NotNull;
import java.util.UUID;
public class JoinGameResponse {
@JsonProperty
@NotNull
private UUID gameId;
@JsonProperty
@NotNull
private UUID playerId;
... | mit |
viljaste/docker-logs | README.md | 1358 | # docker-logs
Centralized logging for [Docker](https://docker.com/) containers. Built on top of [docker-gen](https://github.com/jwilder/docker-gen), [Fluentd](http://www.fluentd.org/), [Elasticsearch](http://www.elasticsearch.org/) and [Kibana](http://www.elasticsearch.org/overview/kibana/).
## Run the container
Usi... | mit |
wavesplatform/Waves | node/src/main/scala/com/wavesplatform/transaction/assets/exchange/AssetPair.scala | 2574 | package com.wavesplatform.transaction.assets.exchange
import com.google.common.primitives.Bytes
import com.wavesplatform.common.state.ByteStr
import com.wavesplatform.serialization.Deser
import com.wavesplatform.transaction.Asset.{IssuedAsset, Waves}
import com.wavesplatform.transaction._
import com.wavesplatform.tran... | mit |
alexanderwe/the-traveler | docs/interfaces/groupv2.html | 35694 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>GroupV2 | The Traveler</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../assets/cs... | mit |
bguidolim/TiClusteredMapKit | iphone/Classes/ComGuidolimTiclusteredmapkitViewProxy.h | 337 | /**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2014 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#import "TiViewProxy.h"
@interface ComGuidolimTiclusteredmapkitViewProxy : TiView... | mit |
niquola/health_seven | lib/health_seven/2.6/messages/ror_ror.rb | 1296 | module HealthSeven::V2_6
class RorRor < ::HealthSeven::Message
attribute :msh, Msh, position: "MSH", require: true
attribute :msa, Msa, position: "MSA", require: true
attribute :errs, Array[Err], position: "ERR", multiple: true
attribute :sfts, Array[Sft], position: "SFT", multiple: true
attribute :uac, Uac, ... | mit |
elastic-coders/serverless-webpack | lib/prepareOfflineInvoke.js | 802 | 'use strict';
const _ = require('lodash');
const path = require('path');
/**
* Special settings for use with serverless-offline.
*/
module.exports = {
prepareOfflineInvoke() {
// Use service packaging for compile
_.set(this.serverless, 'service.package.individually', false);
return this.serverless.p... | mit |
jsol/php-convict | src/Validator/Any.php | 183 | <?php
namespace Convict\Validator;
class Any implements Validator {
public function validate($key, $value)
{
}
public function coerce($value)
{
return $value;
}
}
| mit |
quyenlm/pokersu | poker-common/src/main/java/com/mrmq/poker/common/glossary/ServiceType.java | 230 | package com.mrmq.poker.common.glossary;
public enum ServiceType {
ADMIN("admin"),
POKER("poker");
String value;
private ServiceType(String value) {
this.value = value;
}
public String getValue(){
return value;
}
}
| mit |
spazzarama/Direct3D-Rendering-Cookbook | Ch05_01TessellationPrimitives/Properties/AssemblyInfo.cs | 1424 | using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ch... | mit |
stackprobe/Factory | Tools/CsvToJson.c | 915 | /*
CsvToJson.exe [üÍCSVt@C oÍJSONt@C]
*/
#include "C:\Factory\Common\all.h"
#include "C:\Factory\Common\Options\csv.h"
static void CsvToJson(char *rFile, char *wFile)
{
autoList_t *csv = readCSVFileTR(rFile);
autoList_t *head;
uint rowidx;
FILE *wfp;
head = getList(csv, 0);
// HACK: oÍtH[... | mit |
VelizarMitrev/Programmming_Fundamentals | Regex Test/Regex Test MatchCollection/Program.cs | 647 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace Regex_Test_MatchCollection
{
class Program
{
static void Main(string[] args)
{
string pattern = "[A-Z][a-z]+ [A-Z][a-z... | mit |
ytimesru/kkm-pc-client | src/main/java/ru/fsrar/wegais/infoversionttn/ObjectFactory.java | 1434 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.06.... | mit |
jtarleton/jt-web | lib/i18n/Arabic/Examples/Mktime.php | 2458 | <!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>
<title>MakeTime for Arabic/Islamic Higri Calendar</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="styleshe... | mit |
jonathanbuchanan/Sunglasses | sunglasses/include/sunglasses/Graphics/Loaders/TextureResource.h | 868 | // Copyright 2016 Jonathan Buchanan.
// This file is part of Sunglasses, which is licensed under the MIT License.
// See LICENSE.md for details.
#ifndef TEXTURERESOURCE_H
#define TEXTURERESOURCE_H
#include <sunglasses/Extern/Resource.h>
#include <string>
#include <GL/glew.h>
namespace sunglasses {
class TextureRes... | mit |
hengxin/algorithm-lectures | algorithm-lecture-mst/tikz-in-beamer/cut-property-example-overlay.tex | 1856 | % Underlying graph for minimum spanning tree (mst) example
% Redrawn from Figure 5.3 of the textbook ``Algorithms'' by Dasgupta
\begin{tikzpicture}[node distance = {1.0cm and 1.5cm},
v/.style = {draw, circle},
cpv/.style = {v, fill = teal}, % vertices in cut property example
cpe/.style = {circle connection b... | mit |
Jwely/pivpr | texdocs/figs/run_10/run_10_turb_visc_ettap_top_vs_r_mesh_scatter.tex | 286 | \begin{figure}[H]
\centering
\includegraphics[width=6in]{figs/run_10/run_10_turb_visc_ettap_top_vs_r_mesh_scatter}
\caption{Scatter plot of reynolds stress term vs radius at $z/c$=5.37, $V_{free}$=32.98, station1}
\label{fig:run_10_turb_visc_ettap_top_vs_r_mesh_scatter}
\end{figure}
| mit |
raptor-mvk/BiblioGuide-Java | src/ru/mvk/biblioGuide/service/BookCaseViewService.java | 1907 | /**
* (c) raptor_MVK, 2015. All rights reserved.
*/
package ru.mvk.biblioGuide.service;
import org.jetbrains.annotations.NotNull;
import ru.mvk.biblioGuide.dao.BookCaseDao;
import ru.mvk.biblioGuide.model.BookCase;
import ru.mvk.iluvatar.descriptor.ListViewInfo;
import ru.mvk.iluvatar.descriptor.ListViewInfoImpl;
im... | mit |
ssindelar/ps2-parser | src/test/java/com/github/ssindelar/ps2parser/WorldDaoTest.java | 1256 | package com.github.ssindelar.ps2parser;
import static org.fest.assertions.api.Assertions.assertThat;
import org.testng.annotations.Test;
import com.github.ssindelar.ps2parser.data.world.WorldResponse;
import com.github.ssindelar.ps2parser.data.world.status.ApiWorldStatus;
import com.github.ssindelar.ps2parser.data.w... | mit |
NetEaseWD/NEJPublisher | demo/web-app/src/html/index/b.b0.html | 570 | <meta charset="utf-8"/>
<!-- @TEMPLATE -->
<textarea name="css">
.m-b0{background:#fd0;}
</textarea>
<textarea name="ntp" id="b0-ntp-0">
<div class="m-b0">
<p>0000000000000000000000</p>
<p>0000000000000000000000</p>
<p>0000000000000000000000</p>
<p>000000000000000000000... | mit |
maisquestoes/api-mean | public/modules/emaxiningboards/views/view-emaxiningboard.client.view.html | 759 | <section data-ng-controller="EmaxiningboardsController" data-ng-init="findOne()">
<div class="page-header">
<h1 data-ng-bind="emaxiningboard.name"></h1>
</div>
<div class="pull-right" data-ng-show="((authentication.user) && (authentication.user._id == emaxiningboard.user._id))">
<a class="btn btn-primary" href="... | mit |
jbalint/banshee-sympatico | percy/percy-wiki-pages.sh | 1958 | #!/bin/bash
# Script to query the wiki pages name for Helm completion source
# swivt:wikiPageModificationDate swivt:wikiPageSortKey
# TODO: error handling is bad
#set -x
QUERY=$(cat<<EOF
select *
from <virtual://mediawiki> {
?page a mw:Page ;
mw:pageNamespaceId ?nsid ;
mw:pageTitle ?title ;
mw:pageUr... | mit |
BaskerShu/typeidea | typeidea/typeidea/themes/default/static/js/markdownx-widget.js | 1967 | let widget = document.getElementsByClassName('markdownx-widget')[0];
let element = document.getElementsByClassName('markdownx');
let element_divs = element[0].getElementsByTagName('div');
let div_editor = element_divs[0];
let div_preview = element_divs[1];
let navbar_bar = document.getElementsByClassName('markdownx-to... | mit |
neonbug/meexo-common | src/assets/admin_assets/js/app/src/modules/dashboard.js | 5037 | module.exports = {};
var app_data = {};
function initCharts()
{
$(document).ready(function() {
$.get(app_data.config.analytics_data_route, function(analytics_data) {
data = analytics_data.data;
max_val = analytics_data.highest_value;
var parseDate = d3.time.format('%Y%m%d').parse;
data.... | mit |
npruehs/slash-framework | Ext/log4net-1.2.11/doc/release/sdk/log4net.Util.GlobalContextPropertiesProperties.html | 2162 | <html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>GlobalContextProperties Properties</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" hre... | mit |
weiyangtham/weiyangtham.github.io | _posts/2017-11-08-geom_errorline.md | 5405 | ---
title: "geom_errorline for intervals"
author: "Tham, Wei Yang"
date: "November 8, 2017"
output: html_document
excerpt: "Upper and lower bounds as lines rather than intervals at each point"
tags:
- r
---
I'm back! This post is about my attempt to create a ggplot2 `geom`, which I'm calling `geom_errorline`. You ... | mit |
CodaFi/PersistentStructure | PersistentStructure/CLJIChunk.h | 684 | //
// CLJIChunk.h
// PersistentStructure
//
// Created by Robert Widmann on 3/26/14.
// Copyright (c) 2014 CodaFi. All rights reserved.
// Released under the MIT license.
//
#import "CLJIIndexed.h"
#include "CLJTypes.h"
/// The CLJIChunk protocol declares the two methods necessary for an object to call itself a
... | mit |
mrsmartwatch/mrsmartwatch.github.io | kontakt/index.markdown | 510 | ---
author: guese.justin@gmail.com
comments: false
date: 2015-09-27 15:14:29+00:00
layout: page
slug: kontakt
title: Kontakt
wordpress_id: 497
---
<p>Haben Sie Fragen oder sonstige Anmerkungen? Dann schreiben Sie uns!</p>
<form action="//formspree.io/guese.justin@gmail.com"
method="POST">
<h2>Name: </h2><inp... | mit |
melissawimberly/melissawimberly.github.io | projects/memory/index.html | 595 | </!DOCTYPE html>
<html>
<head>
<title>Memory Challenge</title>
<link rel="stylesheet" type="text/css" href="main.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="main.js"></script>
<!-- <embed src="jeopardy.mp3" autostart="true" loop... | mit |
royNiladri/js-big-decimal | spec/helper/reporter.js | 317 | const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
jasmine.getEnv().clearReporters(); // remove default reporter logs
jasmine.getEnv().addReporter(new SpecReporter({ // add jasmine-spec-reporter
spec: {
displayPending: true,
},
summary: {
displayDuration: true,
}
})); | mit |
thomasloto/migang-crawler | src/aos/java/cn/osworks/aos/core/captcha/filter/library/DoubleRippleImageOp.java | 1248 | /*
* Copyright (c) 2009 Piotr Piastucki
*
* This file is part of Patchca CAPTCHA library.
*
* Patchca is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* ... | mit |
Corjo/Website-of-M.-Roller | template.php | 6141 | <!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="">
<!--<![en... | mit |
athenainn/rust-trace | libcore/array/[T; 18]/as_ref.rs | 5798 | #![feature(core)]
extern crate core;
#[cfg(test)]
mod tests {
use core::convert::AsRef;
// pub trait FixedSizeArray<T> {
// /// Converts the array to immutable slice
// fn as_slice(&self) -> &[T];
// /// Converts the array to mutable slice
// fn as_mut_slice(&mut self) -> &mut ... | mit |
pixeltrix/money | lib/money/currency.rb | 55066 | # encoding: utf-8
class Money
# Represents a specific currency unit.
class Currency
include Comparable
# Thrown when an unknown currency is requested.
class UnknownCurrency < StandardError; end
# List of known currencies.
#
# == monetary unit
# The standard unit of value of a currenc... | mit |
Yorick666/The-Elder-Codes | dungeon/Room.cpp | 3313 | //
// Created by Yorick on 18/10/2016.
//
#include "Room.h"
#include "../Rng.h"
using namespace std;
Room::Room(Coordinate coordinate, RoomType roomType, int securityLevel) {
_coordinate = coordinate;
_securityLevel = securityLevel;
_type = roomType;
_visited = false;
if (coordinate.x == 0 && co... | mit |
bretwalker/Rdio2Spotify | README.md | 504 | Rdio2Spotify
============
Copies playlists and collection tracks/albums from Rdio to Spotify.
Edit main.py, setting [Rdio API](http://www.rdio.com/developers/your-apps/) and [Spotify API](https://developer.spotify.com/my-applications) credentials in the first four variables.
The Rdio and Spotify API apps must have ht... | mit |
aiguanglee/dva-cnode | webpack.config.js | 1457 | const webpack = require('atool-build/lib/webpack');
module.exports = function (webpackConfig, env) {
webpackConfig.babel.plugins.push('transform-runtime');
webpackConfig.babel.plugins.push(['import', {
libraryName: 'antd',
style: 'css' // if true, use less
}]);
// Support hmr
if (env === 'developmen... | mit |
KinectingForWindows/GIK-KinectingARDrone | src/K4W.KinectDrone.Core/Enums/DroneFlyingAction.cs | 332 | using System.ComponentModel;
namespace K4W.KinectDrone.Core.Enums
{
public enum DroneFlyingAction
{
[Description("Unkown")]
Unknown = 0,
[Description("Emergency")]
Emergency = 1,
[Description("Land")]
Land = 2,
[Description("Takeoff")]
TakeOff = ... | mit |
peter-edge/pb | gogo/google/api/servicecontrol/v1/log_entry.pb.go | 9725 | // Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: google/api/servicecontrol/v1/log_entry.proto
package google_api_servicecontrol_v1
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "go.pedge.io/pb/gogo/google/api"
import google_logging_type "go.pedge.io/pb/gogo/go... | mit |
baphled/nark | features/step_definitions/nark_steps.rb | 1647 | Given /^I have installed the plugin$/ do
# Do nothing here
end
Given /^Nark is setup to monitor my application$/ do
Capybara.app = Nark::Middleware.with(DummyApp)
end
Given /^I have a application I want to track$/ do
# Do nothing here
end
When /^I created the following plugin$/ do |string|
eval string
end
T... | mit |
umpirsky/Gravatar | README.md | 1784 | <h3 align="center">
<a href="https://github.com/umpirsky">
<img src="https://farm2.staticflickr.com/1709/25098526884_ae4d50465f_o_d.png" />
</a>
</h3>
<p align="center">
<a href="https://github.com/umpirsky/Symfony-Upgrade-Fixer">symfony upgrade fixer</a> •
<a href="https://github.com/umpirsky/... | mit |
lordmarkm/baldy-commons | baldy-commons-models/src/main/java/com/baldy/commons/models/ref/RentalStatus.java | 126 | package com.baldy.commons.models.ref;
/**
* @author mbmartinez
*/
public enum RentalStatus {
AVAILABLE,
LEASED
}
| mit |
j-musca/mutservice | vendor/github.com/valyala/fasthttp/workerpool.go | 4152 | package fasthttp
import (
"net"
"runtime"
"runtime/debug"
"strings"
"sync"
"time"
)
// workerPool serves incoming connections via a pool of workers
// in FILO order, i.e. the most recently stopped worker will serve the next
// incoming connection.
//
// Such a scheme keeps CPU caches hot (in theory).
type worke... | mit |
gokmen/yeager | .github/PULL_REQUEST_TEMPLATE.md | 429 | #### Summary
[A brief description of what this pull request does.]
#### Issue Link
[Please link the GitHub issue this PR addresses.]
#### Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
- [ ] It's a new feature
- [ ] It's a bugfix
- [ ] Added or updated specs (require... | mit |
t4ec/blog | blog/__init__.py | 110 | from flask import Flask
app = Flask(__name__)
app.config.from_object('blog.config')
from blog import views
| mit |
sendz/aplikasi-keuangan | application/controllers/Pemasukan.php | 1823 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Class Index
*/
class Pemasukan extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('model_kelas');
$this->load->model('model_siswa');
$this->load->model('model_pemasukan');
$thi... | mit |
weiht/nrt.core | nrt-core-config/src/main/java/org/necros/settings/CascadingServiceInjector.java | 644 | /**
*
*/
package org.necros.settings;
/**
* @author weiht
*
*/
public class CascadingServiceInjector<T> {
private Integer zIndex = 0;
private T service;
private CascadingService<T> cascadingService;
public void doInject() {
if (cascadingService != null && service != null) {
cascadingSe... | mit |
jseward/solar | src/solar/math/mat33.h | 1934 | #pragma once
#include "vec3.h"
namespace solar {
class mat33 {
public:
static const int FORWARD_ROW_INDEX;
static const int UP_ROW_INDEX;
static const int CROSS_ROW_INDEX;
private:
#pragma warning(push)
#pragma warning(disable:4201) //warning C4201: nonstandard extension used: nameless struct/union
u... | mit |
matthandlersux/paypal_api | lib/generators/templates/ipn_message.rb | 621 | class IpnMessage < ActiveRecord::Base
alias_method :success?, :success
def self.create_from_message(hash)
ipn_message = IpnMessage.new
ipn_message.body = hash.to_yaml
ipn_message.success = hash["ACK"] == "Success"
ipn_message.correlation_id = hash["correlation_id"]
ipn_message.transaction_id = hash["tran... | mit |
donaldinou/frontend | src/Viteloge/CoreBundle/Resources/descriptions/69141.html | 2216 | <div class="commune_descr limited">
<p>
Mornant est
une commune située dans le département de Rhône en Rhône-Alpes. Elle comptait 5 229 habitants en 2008.</p>
<p>
La ville est équipée concernant l'éducation des jeunes de deux collèges.
Concernant les très jeunes, la commune est équipée de une maternelle e... | mit |
umpirsky/platform | src/Oro/Bundle/MeasureBundle/Family/TemperatureFamilyInterface.php | 624 | <?php
namespace Oro\Bundle\MeasureBundle\Family;
/**
* Temperature measures constants
*
*
*/
interface TemperatureFamilyInterface
{
/**
* Family measure name
* @staticvar string
*/
const FAMILY = 'Temperature';
/**
* @staticvar string
*/
const CELCIUS = 'CELCIUS';
... | mit |
si-tacuisses/si-tacuisses.github.io | _includes/prettyhead.html | 146 | <link rel="stylesheet" href="/assets/css/google-code-prettify/prettify.css">
<script src="/assets/js/google-code-prettify/prettify.js"></script>
| mit |
chefcore/core_web | recipes/apache.rb | 690 | # Install and Configure Apache
include_recipe 'apache2'
# Create Web Directory
directory node['core_web']['apache']['path'] do
action :create
user node['apache']['user']
group node['apache']['group']
end
# Apache Site Config (apache2 cookbook)
web_app node['core_web']['apache']['site_name'] do
server_name nod... | mit |
DylanMeador/gvnet | Source/GVNET/Interfaces/Node Interfaces/INodeSimple.cs | 879 | using System.Drawing;
namespace GVNET
{
/// <summary>
/// Basic node with added functionality to control the shape, color, and style of the node.
/// </summary>
public interface INodeSimple : INode
{
/// <summary>
/// Set the shape of a node.
/// </summary>
[DOTKeyword("shape")]
Shape NodeShape { get; ... | mit |
Pamplemousse/bemydiary | src/com/lesgrosspoof/bemydiary/network/MediaUploader.java | 4261 | package com.lesgrosspoof.bemydiary.network;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;... | mit |
morkt/GARbro | ArcFormats/Majiro/ImageRCT.cs | 25065 | //! \file ImageRCT.cs
//! \date Fri Aug 01 11:36:31 2014
//! \brief RCT image format implementation.
//
// Copyright (C) 2014-2017 by morkt
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// d... | mit |
dynamicguy/solrpress | src/test/javascript/spec/app/account/sessions/sessionsControllerSpec.js | 1153 | 'use strict';
describe('Controllers Tests ', function () {
beforeEach(module('solrpressApp'));
describe('SessionsController', function () {
var $scope, SessionsService;
beforeEach(inject(function ($rootScope, $controller, Sessions) {
$scope = $rootScope.$new();
Sessi... | mit |
heaven7/wsl-items | lib/client/helpers.js | 391 | Template.registerHelper("itemTypes", function() {
return [
{label: i18n.t('choose'), value: ''},
{label: i18n.t('offer'), value: 'offer', icon: 'icon gift'},
{label: i18n.t('need'), value: 'need', icon: 'icon fire'},
{label: i18n.t('wish'), value: 'wish', icon: 'icon wizard'},
... | mit |
asposemarketplace/Aspose-Slides-Java | src/programmersguide/workingwithpresentation/convertingpresentationwithnotestotiff/java/ConvertingPresentationWithNotesToTiff.java | 1098 | /*
* Copyright 2001-2013 Aspose Pty Ltd. All Rights Reserved.
*
* This file is part of Aspose.Slides. The source code in this file
* is only intended as a supplement to the documentation, and is provided
* "as is", without warranty of any kind, either expressed or implied.
*/
package programmersguide.workingwi... | mit |
CS2103AUG2016-F11-C1/main | src/main/java/seedu/todo/ui/UiManager.java | 5299 | package seedu.todo.ui;
import javafx.application.Platform;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.stage.Stage;
import seedu.todo.commons.util.StringUtil;
import seedu.todo.commons.core.ComponentManager;
import seedu.todo.commons.core.Config;
import seedu.todo.comm... | mit |
roman-neuhauser/hashstruct | lib/hashstruct.rb | 1071 | # (c) Roman Neuhauser
# MIT-Licensed
class HashStruct
def initialize hash = {}
@impl = Hash[hash]
end
def [] key
@impl[key]
end
def []= key, val
@impl[key] = val
end
def merge! other
other.each_pair do |key, val|
self[key] = val
end
end
def merge other
rv = self.clo... | mit |
stranne/BooliLib | Stranne.BooliLib.Tests/Models/DimensionSerializable.cs | 738 | using Stranne.BooliLib.Models;
using Xunit.Abstractions;
namespace Stranne.BooliLib.Tests.Models
{
public class DimensionSerializable : Dimension, IXunitSerializable
{
public DimensionSerializable()
{
}
public DimensionSerializable(int height, int width)
: base(hei... | mit |
chilts/awssum-amazon-cloudfront | config.js | 23102 | // --------------------------------------------------------------------------------------------------------------------
//
// cloudfront-config.js - config for AWS CloudFront
//
// Copyright (c) 2011 AppsAttic Ltd - http://www.appsattic.com/
// Written by Andrew Chilton <chilts@appsattic.com>
//
// License: http://open... | mit |
knutgoetz/evka01 | Groomba/src/de/vsis/groomba/communication/Log.java | 2295 | package de.vsis.groomba.communication;
public class Log {
/**
* @author Hannes
*
* Helps to create different log levels for debugging purposes.
*
*/
public final static int OFF = 0;
public final static int ERROR = 1;
public final static int INFO = 2;
public final static int VERBOSE = 3;
publ... | mit |
jojanper/angular-app | src/app/pages/apps/pages/terminal/terminal.component.ts | 2842 | import { Component, OnInit, OnDestroy, ElementRef, ViewChild } from '@angular/core';
import { fromEvent } from 'rxjs';
import { debounceTime, distinctUntilChanged, takeWhile } from 'rxjs/operators';
import { Terminal } from 'xterm';
import * as fit from 'xterm/lib/addons/fit/fit';
import * as search from 'xterm/lib/ad... | mit |
cngu/android-fun | app/src/main/java/com/cngu/androidfun/main/TopicManager.java | 3766 | package com.cngu.androidfun.main;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import com.cngu.androidfun.R;
import com.cngu.androidfun.data.ActionTopic;
import com.cngu.androidfun.data.MenuTopic;
import com.cngu.androidfun.data.Topic;
import com.cngu.androidfun.view.T... | mit |
yildirimyigit/cmpe220_2016_3 | hw1/non-merged/EMİRHAN SARAÇ_35869_assignsubmission_file_/suerdemir/latex/b1p2-310.tex | 2179 | \documentclass[11pt]{amsbook}
\usepackage{../HBSuerDemir}
\begin{document}
\hPage{b1p2/310}
\begin{flushleft}
side of $\ell$.
\end{flushleft}
\subsection*{D. CURVES} \hfill\\
Circle and line are some curves having polar equations
\begin{equation*}
r=a,\ r=a\ cos\... | mit |
JCThePants/NucleusFramework | src/com/jcwhatever/nucleus/internal/managed/scripting/api/SAPI_Locations.java | 2857 | /*
* This file is part of NucleusFramework for Bukkit, licensed under the MIT License (MIT).
*
* Copyright (c) JCThePants (www.jcwhatever.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the ... | mit |
jojoee/phaser-examples | games/sea-life-vs-mines/js/game.js | 4643 | var GlobezGame = GlobezGame || {};
GlobezGame.Boot = function() {};
GlobezGame.Boot.prototype = {
preload: function() {
console.log("%cStarting Fish Vs Mines", "color:white; background:red");
this.load.image("loading", "assets/sprites/loading.png");
this.load.image("logo", "assets/sprites/logo.png");
},... | mit |
yuikns/cmakes | include/argcv/util/util.h | 2171 | // Copyright 2014 Yu Jing<yujing5b5d@gmail.com>
#ifndef INCLUDE_ARGCV_UTIL_UTIL_H_
#define INCLUDE_ARGCV_UTIL_UTIL_H_
#include <cmath>
#include <ctime>
#include <cstdint> // uint64_t
#include <sstream>
#include <string>
#include <vector>
#include <map>
namespace argcv {
namespace util {
// c style hash key generat... | mit |
TsvetanMilanov/TelerikAcademyHW | 11_Databases/13_DatabasePerformance/DatabasePerformance/Logs.Data/Migrations/Configuration.cs | 445 | namespace Logs.Data.Migrations
{
using System.Data.Entity.Migrations;
using Logs.Data;
public sealed class Configuration : DbMigrationsConfiguration<Logs.Data.LogsDbContext>
{
public Configuration()
{
this.AutomaticMigrationsEnabled = true;
this.AutomaticMigrati... | mit |
noahjl1/illicit-design | dist/js/all.min.js | 997 | $("nav span").mouseenter(function(){$("nav").removeClass("closed")}),$("nav").mouseleave(function(){$("nav").addClass("closed")}),$("nav a").click(function(){var o=$(this).parent().index();console.log(o),$("html,body").animate({scrollTop:$(".section-container > section").eq(o).offset().top},500)}),$(window).scroll(func... | mit |
truthcoin/truthcoin-cpp | src/qt/ballotsealedvotefilterproxymodel.h | 693 | // Copyright (c) 2015 The Truthcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef TRUTHCOIN_QT_BALLOTSEALEDVOTEFILTERPROXYMODEL_H
#define TRUTHCOIN_QT_BALLOTSEALEDVOTEFILTERPROXYMODEL_H
#include <QMode... | mit |
namelessvoid/qrwar | include/game/skirmish/gui/skirmishpreparationplayeroptions.hpp | 717 | #ifndef QRW_SKIRMISHPREPARATIONPLAYEROPTIONS_HPP
#define QRW_SKIRMISHPREPARATIONPLAYEROPTIONS_HPP
#include <string>
#include "gui/ng/window.hpp"
namespace namelessgui
{
class LineInput;
}
namespace qrw
{
class SkirmishPreparationPlayerOptions : public namelessgui::Window
{
public:
SkirmishPreparationPlayerOptions... | mit |
kpeatt/crossthestreams | server/README.md | 15 | CrossTheStreams | mit |
sthuck/quick-2fa | src/index.spec.js | 94 | 'use strict';
describe('nothing', () => {
it('should do nothing', () => {
//
});
});
| mit |
jinchen92/JavaBasePractice | src/com/jinwen/thread/ch01/Demo010.java | 1232 | package com.jinwen.thread.ch01;
/**
* 知识点:线程挂起的问题
* @author JIN
*
*/
public class Demo010 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
final SynchronizedObject1 object = new SynchronizedObject1();
Thread thread1 = new Thread() {
@Ove... | mit |