code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
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 ... | ceji-longquan/ceji_android | app/src/main/java/com/lqtemple/android/lqbookreader/model/MusicMedia.java | Java | mit | 2,766 |
(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... | loveencounterflow/ncr | lib/main.js | JavaScript | mit | 25,632 |
/**
* 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... | beatfactor/nightwatch | lib/api/expect/assertions/element/property.js | JavaScript | mit | 2,710 |
<!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: ... | JoshuaCrocker/Battleships-Server | app/index.html | HTML | mit | 1,084 |
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... | github/codeql | java/ql/src/Security/CWE/CWE-090/LdapInjectionJndi.java | Java | mit | 1,337 |
---
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,... | jdkram/jdkram.github.io | _posts/2015-12-30-reblog-how-bad-are-things.md | Markdown | mit | 5,024 |
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;
... | Jacob-Gray/Ario | src/sample/Controller.java | Java | mit | 1,145 |
---
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... | emeraldjava/emeraldjava.github.io | jekyll/_posts/2013/2013-06-25-video-post.md | Markdown | mit | 786 |
<?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... | moneyphp/money | tests/Formatter/IntlMoneyFormatterTest.php | PHP | mit | 3,392 |
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();... | DimitarIvanov8/software-university | DB_Advanced_Entity_Framework/Advanced Querying/Book Titles by Category StartUp/StartUp.cs | C# | mit | 1,130 |
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... | mingaldrichgan/gatsby | packages/gatsby-remark-prismjs/src/parse-line-number-range.js | JavaScript | mit | 1,302 |
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... | mjmlio/mjml | packages/mjml-validator/src/rules/validTag.js | JavaScript | mit | 539 |
# -*- 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():
... | tlake/data-structures-mk2 | tests/test_insertion_sort.py | Python | mit | 1,008 |
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 ... | mrpapercut/wscript | testfiles/COMobjects/JSclasses/DXImageTransform.Microsoft.CrBlinds.1.js | JavaScript | mit | 598 |
'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... | cirocosta/ledmatrix | webpack.config.js | JavaScript | mit | 772 |
/**
* Created by ff on 2016/10/25.
*/
require('./style.css');
var vm = avalon.define({
$id:'map'
})
module.exports = vm; | orgrinDataOrganization/orgrinData | src/mv/map/index.js | JavaScript | mit | 123 |
/**
* @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... | SRombauts/cpp-skeleton | src/Utils/CompilerVersion.h | C | mit | 3,157 |
<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... | brownzach125/WebGL | lesson03/mine.html | HTML | mit | 5,680 |
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... | fw42/cubecomp | db/seeds/themes/default/blue/colors.css | CSS | mit | 1,651 |
///////////////////////////////////////////////////////////////////////////////
// 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 ... | colinhect/hect | Engine/Source/Hect/Scene/Scenes/DefaultScene.cpp | C++ | mit | 4,169 |
<!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... | kvakil/moonchain | docs/classes/Block.html | HTML | mit | 4,952 |
<!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... | juhnowski/backbone_hello_world | 4.html | HTML | mit | 514 |
// Copyright © 2015, Peter Atashian
// Licensed under the MIT License <LICENSE.md>
extern crate build;
fn main() {
build::link("wow32", true)
}
| Boddlnagg/winapi-rs | lib/wow32/build.rs | Rust | mit | 149 |
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;
... | JoshGlazebrook/tictactoe-glazebrook | api/src/main/java/com/glazebrook/tictactoe/responses/JoinGameResponse.java | Java | mit | 1,004 |
# 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... | viljaste/docker-logs | README.md | Markdown | mit | 1,358 |
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... | wavesplatform/Waves | node/src/main/scala/com/wavesplatform/transaction/assets/exchange/AssetPair.scala | Scala | mit | 2,574 |
<!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... | alexanderwe/the-traveler | docs/interfaces/groupv2.html | HTML | mit | 35,694 |
/**
* 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... | bguidolim/TiClusteredMapKit | iphone/Classes/ComGuidolimTiclusteredmapkitViewProxy.h | C | mit | 337 |
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, ... | niquola/health_seven | lib/health_seven/2.6/messages/ror_ror.rb | Ruby | mit | 1,296 |
'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... | elastic-coders/serverless-webpack | lib/prepareOfflineInvoke.js | JavaScript | mit | 802 |
<?php
namespace Convict\Validator;
class Any implements Validator {
public function validate($key, $value)
{
}
public function coerce($value)
{
return $value;
}
}
| jsol/php-convict | src/Validator/Any.php | PHP | mit | 183 |
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;
}
}
| quyenlm/pokersu | poker-common/src/main/java/com/mrmq/poker/common/glossary/ServiceType.java | Java | mit | 230 |
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... | spazzarama/Direct3D-Rendering-Cookbook | Ch05_01TessellationPrimitives/Properties/AssemblyInfo.cs | C# | mit | 1,424 |
/*
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[... | stackprobe/Factory | Tools/CsvToJson.c | C | mit | 915 |
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... | VelizarMitrev/Programmming_Fundamentals | Regex Test/Regex Test MatchCollection/Program.cs | C# | mit | 647 |
//
// 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.... | ytimesru/kkm-pc-client | src/main/java/ru/fsrar/wegais/infoversionttn/ObjectFactory.java | Java | mit | 1,434 |
<!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... | jtarleton/jt-web | lib/i18n/Arabic/Examples/Mktime.php | PHP | mit | 2,458 |
// 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... | jonathanbuchanan/Sunglasses | sunglasses/include/sunglasses/Graphics/Loaders/TextureResource.h | C | mit | 868 |
% 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... | hengxin/algorithm-lectures | algorithm-lecture-mst/tikz-in-beamer/cut-property-example-overlay.tex | TeX | mit | 1,856 |
\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}
| Jwely/pivpr | texdocs/figs/run_10/run_10_turb_visc_ettap_top_vs_r_mesh_scatter.tex | TeX | mit | 286 |
/**
* (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... | raptor-mvk/BiblioGuide-Java | src/ru/mvk/biblioGuide/service/BookCaseViewService.java | Java | mit | 1,907 |
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... | ssindelar/ps2-parser | src/test/java/com/github/ssindelar/ps2parser/WorldDaoTest.java | Java | mit | 1,256 |
<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... | NetEaseWD/NEJPublisher | demo/web-app/src/html/index/b.b0.html | HTML | mit | 570 |
<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="... | maisquestoes/api-mean | public/modules/emaxiningboards/views/view-emaxiningboard.client.view.html | HTML | mit | 759 |
#!/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... | jbalint/banshee-sympatico | percy/percy-wiki-pages.sh | Shell | mit | 1,958 |
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... | BaskerShu/typeidea | typeidea/typeidea/themes/default/static/js/markdownx-widget.js | JavaScript | mit | 1,967 |
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.... | neonbug/meexo-common | src/assets/admin_assets/js/app/src/modules/dashboard.js | JavaScript | mit | 5,037 |
<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... | npruehs/slash-framework | Ext/log4net-1.2.11/doc/release/sdk/log4net.Util.GlobalContextPropertiesProperties.html | HTML | mit | 2,162 |
---
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 ... | weiyangtham/weiyangtham.github.io | _posts/2017-11-08-geom_errorline.md | Markdown | mit | 5,405 |
//
// 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
... | CodaFi/PersistentStructure | PersistentStructure/CLJIChunk.h | C | mit | 684 |
---
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... | mrsmartwatch/mrsmartwatch.github.io | kontakt/index.markdown | Markdown | mit | 510 |
</!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... | melissawimberly/melissawimberly.github.io | projects/memory/index.html | HTML | mit | 595 |
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,
}
})); | royNiladri/js-big-decimal | spec/helper/reporter.js | JavaScript | mit | 317 |
/*
* 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
* ... | thomasloto/migang-crawler | src/aos/java/cn/osworks/aos/core/captcha/filter/library/DoubleRippleImageOp.java | Java | mit | 1,248 |
<!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... | Corjo/Website-of-M.-Roller | template.php | PHP | mit | 6,141 |
#![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 ... | athenainn/rust-trace | libcore/array/[T; 18]/as_ref.rs | Rust | mit | 5,798 |
# 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... | pixeltrix/money | lib/money/currency.rb | Ruby | mit | 55,066 |
//
// 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... | Yorick666/The-Elder-Codes | dungeon/Room.cpp | C++ | mit | 3,313 |
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... | bretwalker/Rdio2Spotify | README.md | Markdown | mit | 504 |
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... | aiguanglee/dva-cnode | webpack.config.js | JavaScript | mit | 1,457 |
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 = ... | KinectingForWindows/GIK-KinectingARDrone | src/K4W.KinectDrone.Core/Enums/DroneFlyingAction.cs | C# | mit | 332 |
// 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... | peter-edge/pb | gogo/google/api/servicecontrol/v1/log_entry.pb.go | GO | mit | 9,725 |
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... | baphled/nark | features/step_definitions/nark_steps.rb | Ruby | mit | 1,647 |
<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/... | umpirsky/Gravatar | README.md | Markdown | mit | 1,784 |
package com.baldy.commons.models.ref;
/**
* @author mbmartinez
*/
public enum RentalStatus {
AVAILABLE,
LEASED
}
| lordmarkm/baldy-commons | baldy-commons-models/src/main/java/com/baldy/commons/models/ref/RentalStatus.java | Java | mit | 126 |
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... | j-musca/mutservice | vendor/github.com/valyala/fasthttp/workerpool.go | GO | mit | 4,152 |
#### 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... | gokmen/yeager | .github/PULL_REQUEST_TEMPLATE.md | Markdown | mit | 429 |
from flask import Flask
app = Flask(__name__)
app.config.from_object('blog.config')
from blog import views
| t4ec/blog | blog/__init__.py | Python | mit | 110 |
<?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... | sendz/aplikasi-keuangan | application/controllers/Pemasukan.php | PHP | mit | 1,823 |
/**
*
*/
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... | weiht/nrt.core | nrt-core-config/src/main/java/org/necros/settings/CascadingServiceInjector.java | Java | mit | 644 |
#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... | jseward/solar | src/solar/math/mat33.h | C | mit | 1,934 |
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... | matthandlersux/paypal_api | lib/generators/templates/ipn_message.rb | Ruby | mit | 621 |
<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... | donaldinou/frontend | src/Viteloge/CoreBundle/Resources/descriptions/69141.html | HTML | mit | 2,216 |
<?php
namespace Oro\Bundle\MeasureBundle\Family;
/**
* Temperature measures constants
*
*
*/
interface TemperatureFamilyInterface
{
/**
* Family measure name
* @staticvar string
*/
const FAMILY = 'Temperature';
/**
* @staticvar string
*/
const CELCIUS = 'CELCIUS';
... | umpirsky/platform | src/Oro/Bundle/MeasureBundle/Family/TemperatureFamilyInterface.php | PHP | mit | 624 |
<link rel="stylesheet" href="/assets/css/google-code-prettify/prettify.css">
<script src="/assets/js/google-code-prettify/prettify.js"></script>
| si-tacuisses/si-tacuisses.github.io | _includes/prettyhead.html | HTML | mit | 146 |
# 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... | chefcore/core_web | recipes/apache.rb | Ruby | mit | 690 |
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; ... | DylanMeador/gvnet | Source/GVNET/Interfaces/Node Interfaces/INodeSimple.cs | C# | mit | 879 |
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;... | Pamplemousse/bemydiary | src/com/lesgrosspoof/bemydiary/network/MediaUploader.java | Java | mit | 4,261 |
//! \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... | morkt/GARbro | ArcFormats/Majiro/ImageRCT.cs | C# | mit | 25,065 |
'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... | dynamicguy/solrpress | src/test/javascript/spec/app/account/sessions/sessionsControllerSpec.js | JavaScript | mit | 1,153 |
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'},
... | heaven7/wsl-items | lib/client/helpers.js | JavaScript | mit | 391 |
/*
* 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... | asposemarketplace/Aspose-Slides-Java | src/programmersguide/workingwithpresentation/convertingpresentationwithnotestotiff/java/ConvertingPresentationWithNotesToTiff.java | Java | mit | 1,098 |
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... | CS2103AUG2016-F11-C1/main | src/main/java/seedu/todo/ui/UiManager.java | Java | mit | 5,299 |
# (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... | roman-neuhauser/hashstruct | lib/hashstruct.rb | Ruby | mit | 1,071 |
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... | stranne/BooliLib | Stranne.BooliLib.Tests/Models/DimensionSerializable.cs | C# | mit | 738 |
// --------------------------------------------------------------------------------------------------------------------
//
// 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... | chilts/awssum-amazon-cloudfront | config.js | JavaScript | mit | 23,102 |
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... | knutgoetz/evka01 | Groomba/src/de/vsis/groomba/communication/Log.java | Java | mit | 2,295 |
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... | jojanper/angular-app | src/app/pages/apps/pages/terminal/terminal.component.ts | TypeScript | mit | 2,842 |
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... | cngu/android-fun | app/src/main/java/com/cngu/androidfun/main/TopicManager.java | Java | mit | 3,766 |
\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\... | yildirimyigit/cmpe220_2016_3 | hw1/non-merged/EMİRHAN SARAÇ_35869_assignsubmission_file_/suerdemir/latex/b1p2-310.tex | TeX | mit | 2,179 |
/*
* 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 ... | JCThePants/NucleusFramework | src/com/jcwhatever/nucleus/internal/managed/scripting/api/SAPI_Locations.java | Java | mit | 2,857 |
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");
},... | jojoee/phaser-examples | games/sea-life-vs-mines/js/game.js | JavaScript | mit | 4,643 |
// 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... | yuikns/cmakes | include/argcv/util/util.h | C | mit | 2,171 |
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... | TsvetanMilanov/TelerikAcademyHW | 11_Databases/13_DatabasePerformance/DatabasePerformance/Logs.Data/Migrations/Configuration.cs | C# | mit | 445 |
$("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... | noahjl1/illicit-design | dist/js/all.min.js | JavaScript | mit | 997 |
// 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... | truthcoin/truthcoin-cpp | src/qt/ballotsealedvotefilterproxymodel.h | C | mit | 693 |
#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... | namelessvoid/qrwar | include/game/skirmish/gui/skirmishpreparationplayeroptions.hpp | C++ | mit | 717 |
CrossTheStreams | kpeatt/crossthestreams | server/README.md | Markdown | mit | 15 |
'use strict';
describe('nothing', () => {
it('should do nothing', () => {
//
});
});
| sthuck/quick-2fa | src/index.spec.js | JavaScript | mit | 94 |
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... | jinchen92/JavaBasePractice | src/com/jinwen/thread/ch01/Demo010.java | Java | mit | 1,232 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.