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 |
|---|---|---|---|---|---|
<!--
MIT License
Copyright 2017-2018 Sabre GLBL Inc.
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,... | SabreOSS/conf4j | conf4j-examples/conf4j-example-spring/README.md | Markdown | mit | 1,189 |
---
uid: SolidEdgeConstants.TextLineSpacingTypeConstants
summary:
remarks:
---
| SolidEdgeCommunity/docs | docfx_project/apidoc/SolidEdgeConstants.TextLineSpacingTypeConstants.md | Markdown | mit | 84 |
//
// HMNavigateController.h
// HMMeiTuanHD19
//
// Created by heima on 16/9/14.
// Copyright © 2016年 heima. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HMNavigateController : UINavigationController
@end
| DarlingXIe/iPadProject | XDLBestReservationHD/XDLBestReservationHD/Classes/Main(主要)/Common/HMNavigateController.h | C | mit | 229 |
require File.expand_path "../../spec_helper.rb", __FILE__
RSpec.describe "home" do
it "has a homepage" do
get "/"
expect(last_response).to be_ok
expect(last_response.body).to include(
"an API for movies and UK cinema listings",
)
end
end
| nickcharlton/moviesapi | spec/requests/home_spec.rb | Ruby | mit | 266 |
<!DOCTYPE html>
<html>
<head>
<!-- Giga... -->
<meta charset="utf-8">
<title>Test Stuffs</title>
</head>
<body>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script>
<script src="new-bot.js"></script>
</body>
</html> | JavascriptFTW/livecoding-chat-bot | sandbox.html | HTML | mit | 296 |
#####################################################
#
# A library for getting match information for a given team at a given event
# out of the Blue Alliance API
#
# Authors: Andrew Merrill and Jacob Bendicksen (Fall 2014)
#
# Requires the blueapi.py library
######################################################
#thi... | jacobbendicksen/BlueAPI | matchinfo.py | Python | mit | 4,831 |
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.apimanagement.v2019_12_01.implementation;
import... | selvasingh/azure-sdk-for-java | sdk/apimanagement/mgmt-v2019_12_01/src/main/java/com/microsoft/azure/management/apimanagement/v2019_12_01/implementation/SubscriptionContractInner.java | Java | mit | 15,027 |
<?php
declare(strict_types=1);
namespace WsdlToPhp\WsSecurity;
class Username extends Element
{
const NAME = 'Username';
public function __construct(string $username, string $namespace = self::NS_WSSE)
{
parent::__construct(self::NAME, $namespace, $username);
}
}
| WsdlToPhp/WsSecurity | src/Username.php | PHP | mit | 292 |
---
title: "Web frontend"
menu:
main:
identifier: "technical/plugins/webfrontend"
parent: "technical/plugins"
---
# Web frontend Plugins
### Plugin types
- [Asset detail](types/asset-detail-plugin)
- [Custom data types](types/custom-data-type-plugin)
- [Custom mask splitter](types/custom-mask... | programmfabrik/easydb-documentation | content/technical/plugins/webfrontend/_index.en.md | Markdown | mit | 3,601 |
$(document).ready(function(){
var nbSlots = 1;
var roles = [];
$('.captain-role option').each(function(){
roles.push([$(this).val(), $(this).text()]);
});
$(".crew-slots").append(generateDivSlot(nbSlots));
$('#add_slot').click(function(){
nbSlots++;
$(".crew-slots").... | rafatic/starcrew | public/js/addCrewSlot.js | JavaScript | mit | 1,618 |
/* A Bison parser, made by GNU Bison 2.3. */
/* Skeleton interface for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU... | PurplePilot/lex-yacc | adelphi/words2/words2.tab.h | C | mit | 2,331 |
FROM tboquet/the7hc5workeralp
MAINTAINER Thomas Boquet <thomas.boquet@hec.ca>
CMD ["celery", "worker", "-A", "alp.backend.keras_backend", "-Q", "keras", "-l", "INFO", "--maxtasksperchild=1", "--autoscale=6,1"]
| tboquet/okeydockey | the7hc5workeralpk/Dockerfile | Dockerfile | mit | 212 |
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>RokianStats II</title>
<link rel="shortcut icon" href="/RMLogo.ico" >
<script type="text/javascript">
function updateTextInput(val) {
document.getElementById('textInput').value=val+" PP";
}
</script>
</head>
<img src="RM1.png" ... | billy1234567892/robloxadmin | EditUsers.php | PHP | mit | 3,163 |
package com.girnar.explorejaipur.jsondata;
/**
* The Class MonumentsData.
*/
public class Monuments {
private String monumentId;
private String name;
private String category;
private String description;
private String location;
private String latitude;
private String longitude;
private String distance;
priv... | tarundixitravi/ExploreJaipur | src/com/girnar/explorejaipur/jsondata/Monuments.java | Java | mit | 2,582 |
require 'spec_helper'
describe CloudPayments::Namespaces do
subject{ CloudPayments::Client.new }
describe '#payments' do
specify{ expect(subject.payments).to be_instance_of(CloudPayments::Namespaces::Payments) }
end
describe '#subscriptions' do
specify{ expect(subject.subscriptions).to be_instance_of... | heretge/cloud_payments | spec/cloud_payments/namespaces_spec.rb | Ruby | mit | 1,423 |
const { Router } = require('director');
const ReactDOM = require('react-dom');
const { computed, observable } = require('../../core');
const React = require('../../react');
const { Todo, todos } = require('./model');
const { StatsView } = require('./StatsView');
const { TodoView } = require('./TodoView');
const { ca... | alastairpatrick/spellbound | demo/todomvc/AppView.js | JavaScript | mit | 2,721 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define TRUE 1
#define FALSE 0
#define REI 'A'
#define HAKUSYU 'B'
int main(int argc, char const *argv[]) {
char input[63], *data, output;
int n, isREI = TRUE;
scanf("%[^\n]", input); // 1 2 3
data = strtok(input, " ");
while (data != NULL) {
... | sa-inu/algorithm_toybox | p__za/D63.c | C | mit | 536 |
// Include application headers.
#include "Display.hpp"
namespace wabbit {
Display::Display( )
{
cv::namedWindow( "Hello", cv::WINDOW_AUTOSIZE );
}
wabbit::ImageAndTime*
Display::operator()( wabbit::ImageAndTime* image_and_time )
{
cv::imshow( "Hello", image_and_time->image );
cv::waitKey( 1 );
retur... | vmlaker/wabbit | src/cpp/src/Display.cpp | C++ | mit | 365 |
---
layout: post
title: Travel a lot? Here's how to stay organized, like professors do
author: Charles Sutton
tags:
- advice
- organizational advice
date: 2017-12-02 17:00:00
---
We had a fun time on the professors' Facebook the other day, swapping stories of the dumbest travel mistakes that we've made. You know, book... | casutton/casutton.github.io | _posts/2017-12-02-travel-professor.md | Markdown | mit | 3,259 |
body {
font-family: 'Lato', sans-serif;
}
#title {
margin-left: auto;
margin-right: auto;
text-align: center;
padding: 20px;
font-size: 1.7em;
}
svg {
display: block;
margin: 0 auto;
}
path {
fill: none;
}
.axis path, .axis line {
stroke: gray;
stroke-opacity: 0.5;
}
.label {... | rlucioni/cs171-hw3-lucioni-renzo | Problem2/css/linegraph.css | CSS | mit | 534 |
package com.zfgc.mappers;
import com.zfgc.dbobj.UserSecuritySettingsDbObj;
import com.zfgc.dbobj.UserSecuritySettingsDbObjExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface UserSecuritySettingsDbObjMapper {
/**
* This method was generated by MyBatis Generator. This method... | ZFGCCP/ZFGC3 | src/main/java/com/zfgc/mappers/UserSecuritySettingsDbObjMapper.java | Java | mit | 3,208 |
(function () {
'use strict';
angular
.module('buildings')
.controller('BuildingsController', BuildingsController);
BuildingsController.$inject = ['$scope', '$state', 'projectResolve', '$window', 'Authentication'];
function BuildingsController ($scope, $state, project, $window, Authentication) {
... | AlekseyH/buildingCompany | modules/buildings/client/controllers/buildings.client.controllers.js | JavaScript | mit | 2,046 |
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>CuteDigitalClock</title>
<style type="text/css">
body
{
margin: 0;
padding: 0;
width: 130px;
height: 67px;
vertical-align: mid... | jana4u/CuteDigitalClock.gadget | gadget.html | HTML | mit | 3,691 |
// Developed by doiTTeam => devdoiTTeam@gmail.com
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace DHT
{
[DataContract(Name = "FindNodeResult{0}")]
public class FindNodeResult<TKey>
{
public FindNodeResult(IEnumerable<NodeIdentifier<TKey>> nodes)
{
... | dayanruben/DistributedSearchs | Src/DHT/Common/FindNodeResult.cs | C# | mit | 453 |
<div class="col-sm-12" ng-controller="ObraDetalleController">
<span ng-if="bandera == false">
<small><em>Construyendo Vista</em></small>
<uib-progressbar class="progress-striped active" value="100" type="info">Cargando...</uib-progressbar>
</span>
<span ng-if="bandera == true">
<... | javiomoreno/Calendario-Virtual-AKC | app/partes/administrador/imagenes/obras/detalle-obra.html | HTML | mit | 4,608 |
export { default } from 'ember-flexberry-gis/components/layer-treenode-contents/base';
| Flexberry/ember-flexberry-gis | app/components/layer-treenode-contents/base.js | JavaScript | mit | 87 |
var path = require('path')
var webpack = require('webpack')
const config = {
entry: path.join(__dirname, './src/index.js'),
output: {
filename: 'ajax-manager.js',
library: 'ajaxManager',
libraryTarget: 'umd',
path: path.join(__dirname, './dist')
},
module: {
rules: [
{
test: /... | BboyAwey/ajax-manager | webpack.config.js | JavaScript | mit | 575 |
"""
WSGI config for gevsckio project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "gevsckio.settings")
from django.core... | arthuralvim/django-gevsckio-example | gevsckio/wsgi.py | Python | mit | 391 |
if(typeof exports === 'object') {
var assert = require("assert");
var alasql = require('../alasql.js');
};
if(false) {
describe('Test 16b', function() {
it('Grouping', function(done){
alasql('create database test16;use test16');
alasql.tables.students = new alasql.Table({data: [
{studentid:58,studentname:'S... | agershun/alamdx | node_modules/alasql/test/test16a.js | JavaScript | mit | 2,087 |
/*
* jQuery File Upload Image Preview & Resize Plugin
* https://github.com/blueimp/jQuery-File-Upload
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* https://opensource.org/licenses/MIT
*/
/* jshint nomen:false */
/* global define, require, window, Blob */
;(f... | SJTU-UMJI-Tech/JI-Student-Web | js/file-upload/js/jquery.fileupload-image.js | JavaScript | mit | 12,297 |
/*Problem 2. Divisible by 7 and 5
Write a boolean expression that checks for given integer if it can be divided (without remainder) by 7 and 5 in the same time.
Examples:
n Divided by 7 and 5?
3 false
0 true
5 false
7 false
35 true
140 true*/
var number = 35,
devidedBySevenandFive = true;
if (number % ... | koravski/TelerikAcademy | 06.JS Fundamentals/02.OperatorsАndExpressions/Problem02DivisibleBy7And5.js | JavaScript | mit | 438 |
# -----------------------------------------------------------------------------
# Constants
# -----------------------------------------------------------------------------
SERVICE_UNIT_ENVIRONMENT_KEYS="
DOCKER_CONTAINER_OPTS
DOCKER_IMAGE_PACKAGE_PATH
DOCKER_IMAGE_TAG
DOCKER_PORT_MAP_TCP_22
SSH_AUTHORIZED_KEYS
SS... | zeroc0d3/docker-lab | application/rootfs/opt/scmi/service-unit.sh | Shell | mit | 892 |
<div class="code-box" id="demo-row-selection">
<div class="code-box-demo">
<div id="components-table-demo-row-selection"></div>
<script>(function(){'use strict';
var Table = antd.Table;
var columns = [{
title: '姓名',
dataIndex: 'name',
render: function render(text) {
return React.createElement(
... | ant-design/09x.ant.design | components/table/demo/row-selection.html | HTML | mit | 4,058 |
# Mailgun plug-in #
Plugin for playframwork 1.x to ease integration of mailgun emails solution.
## Installation ##
1. Add plugin play1-mailgun to your dependencies
2. Add the twoo following declarations to your application.conf file:
`mailgun.domain=your.mailgun.domain
mailgun.api.key=your_mailgun_key`
## Sen... | corwinAmbre/play1 | Mailgun/README.md | Markdown | mit | 1,191 |
<html><body>
<h4>Windows 10 x64 (18363.657)</h4><br>
<h2>_POP_POWER_SETTING_VALUES</h2>
<font face="arial"> +0x000 StructureSize : Uint4B<br>
+0x004 PopPolicy : <a href="./_SYSTEM_POWER_POLICY.html">_SYSTEM_POWER_POLICY</a><br>
+0x0ec CurrentAcDcPowerState : <a href="./SYSTEM_POWER_CONDITION.html... | epikcraw/ggool | public/Windows 10 x64 (18363.657)/_POP_POWER_SETTING_VALUES.html | HTML | mit | 1,639 |
---
layout: page
title: 留言
comments: yes
---
欢迎留言!
| canonxu/canonxu.github.io | guestbook/index.md | Markdown | mit | 73 |
<?php echo $this->getView('default_header', $data) ?>
<div class="container">
<div class="row">
<div class="col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1">
<?php foreach($data->collection as $key => $post): ?>
<div class="post-list-item">
... | ArroyoLabs/erdiko-wordpress | src/views/post_list.php | PHP | mit | 2,881 |
#!/usr/bin/env bash
# get the pwd of this executable
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# assume this executable is stored in the dotfiles directory
# run macOS native find and sed, they work differently than GNU flavors
# and more reliable than assuming GNU flavors are installed and in $PATH
... | cameronmalek/dotfiles | update-git-submodules.sh | Shell | mit | 761 |
<?php
/**
* ZfDebugModule. WebUI and Console commands for debugging ZF2 apps.
*
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @copyright 2016 Vítor Brandão <vitor@noiselabs.org>
*/
namespace Noiselabs\ZfDebugModuletest\Unit\Factory\Controller\Http;
use Noiselabs\ZfDebugModule\Contr... | noiselabs/zf-debug-utils | test/Unit/Factory/Controller/Http/IndexControllerFactoryTest.php | PHP | mit | 1,662 |
/*
* This file is included by vm.c
*/
#include "id_table.h"
#define METHOD_DEBUG 0
#if OPT_GLOBAL_METHOD_CACHE
#ifndef GLOBAL_METHOD_CACHE_SIZE
#define GLOBAL_METHOD_CACHE_SIZE 0x800
#endif
#define LSB_ONLY(x) ((x) & ~((x) - 1))
#define POWER_OF_2_P(x) ((x) == LSB_ONLY(x))
#if !POWER_OF_2_P(GLOBAL_METHOD_CACHE_SIZ... | pmq20/ruby-compiler | ruby/vm_method.c | C | mit | 67,543 |
package se.oxidev.animtools64;
public class Const {
public static String WORKING_DIR = System.getProperty("user.dir");
public static String VICE_PATH = "/Users/mikael/Dropbox/JavaDev/vice-mac/tools/x64";
public static int VISIBLE_SCREEN_WIDTH = 960;
public static int VISIBLE_SCREEN_HEIGHT = 600;
public stat... | oxidy/animtools64 | src/main/java/se/oxidev/animtools64/Const.java | Java | mit | 1,038 |
# checkbox example
### run example
```
git clone https://github.com/gorangajic/react-svg-morph
cd react-svg-morph/example/checkbox
npm install
npm start
open http://localhost:8080
```
| gorangajic/react-svg-morph | example/checkbox/README.md | Markdown | mit | 186 |
/* global describe, expect, it */
const fishNames = require('../src/index');
const allFish = fishNames.all;
describe('fish names', function() {
describe('all', function() {
it('should return an object containing all 200 fish names', function() {
expect(Object.keys(allFish).length).toEqual(200);
});
... | yeskunall/fish-names | __test__/index.test.js | JavaScript | mit | 1,323 |
---
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>TransitionHookFn | @uirouter/angular</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="styleshe... | ui-router/ui-router.github.io | _ng2_docs/2.0.0/interfaces/transition.transitionhookfn.html | HTML | mit | 20,936 |
package meetup;
public class Member
{
private String id;
private String name;
private String link;
private String photoUrl;
private String bio;
private String latitude;
private String longitude;
private String country;
private String city;
private String state;
public String getId()
{
return id... | cybersecurity-li/vereinsaustausch | MeetupClientJava/src/main/meetup/Member.java | Java | mit | 1,539 |
# 判斷式
>如果今天颱風假,我就在家耍廢;否則我還是得來上課。
在程式內為了運用各式各樣的狀況,判斷式這樣東西的存在是非常重要的。
為了應付這種狀況,C 語言理所當然地也提供了很多條件判斷式。
## if條件判斷
最為基礎的則是if條件判斷,他的基本語法如下:
```C++
if(條件){
do1;
}
else{
do2;
}
```
所以如果拿我們最上面案例的話就會變成
```C++
if(放颱風假){
在家耍廢;
}
else{
乖乖去上課;
}
```
當然在必要時刻其實不一定有if就要有else
我們也可以只有一個if即可,例如:
```C++
if(放颱風假){
在家耍... | FCUIECS/CCDS | content/docs/Ch3/05_ifStatement.md | Markdown | mit | 5,004 |
# -*- coding: utf-8 -*-
u'''\
:mod:`ecoxipy.pyxom` - Pythonic XML Object Model (PyXOM)
========================================================
This module implements the *Pythonic XML Object Model* (PyXOM) for the
representation of XML structures. To conveniently create PyXOM data structures
use :mod:`ecoxipy.pyxom.o... | IvIePhisto/ECoXiPy | ecoxipy/pyxom/__init__.py | Python | mit | 21,834 |
<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* appDevUrlMatcher.
*
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class appDevUrlMatcher ex... | jcg678/pruebasSymfony | var/cache/dev/appDevUrlMatcher.php | PHP | mit | 13,895 |
---
author: slowe
categories: Information
comments: true
date: 2009-12-22T23:14:44Z
slug: virtualization-short-take-32
tags:
- Networking
- Storage
- Virtualization
- VMware
- vSphere
title: 'Virtualization Short Take #32'
url: /2009/12/22/virtualization-short-take-32/
wordpress_id: 1772
---
Here it is---the last Virt... | lowescott/weblog | content/post/2009-12-22-virtualization-short-take-32.md | Markdown | mit | 6,685 |
## 16: Copying files
Copying files with the [cp][] (copy) command is very similar to moving them. Remember to always specify a source and a target location. Let's create a new file and make a copy of it:
```bash
learner@:learning_unix$ touch file1
learner@:learning_unix$ cp file1 file2
learner@:learning_unix$ ls
file... | iracooke/BC2023 | lessons/chapters_md/16_copying_files.md | Markdown | mit | 1,449 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... | oranta-dev/oranta | application/config/config.php | PHP | mit | 18,137 |
# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'sinatra', 'sinatra_test_cases'))
require File.expand_path(File.join(File.dirname(__FILE__), '..... | jinutm/silvfinal | vendor/bundle/ruby/2.1.0/gems/newrelic_rpm-3.6.9.171/test/multiverse/suites/deferred_instrumentation/sinatra_test.rb | Ruby | mit | 2,456 |
#pragma once
#include <iostream>
#include "Exception.h"
template<class T>
class List
{
private:
class ListNode
{
public:
/*
Listnode Constructor sets the next and previous pointers to nullptr to make sure they arnt pointing to garbage
no returns
*/
ListNode()
{
Next = nullptr;
Previous = nullptr;... | ASharpy/AI-Project | Containers/Source/List.h | C | mit | 7,404 |
/*
* Copyright © 2013 Intel Corporation
* Copyright © 2013 Jonas Ådahl
*
* 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 ... | eyolfson/weston | src/libinput-seat.c | C | mit | 10,252 |
<?php
/**
* This file is part of RedisClient.
* git: https://github.com/cheprasov/php-redis-client
*
* (C) Alexander Cheprasov <cheprasov.84@ya.ru>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RedisClient\Protocol;
u... | evnix/cas | v1/php-redis-client/src/RedisClient/Protocol/RedisProtocol.php | PHP | mit | 4,995 |
package com.grasp.security.jwt;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.JwtBuilder;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import org.springframework.beans.factory.annotation.Value;
import javax.crypto.spec.SecretKeySpec;
import javax.xml.bind.DatatypeConverter;
import j... | Grasp-Team/grasp | src/main/java/com/grasp/security/jwt/JWT.java | Java | mit | 1,637 |
<b>Public User: </b>{{ adminuser.first_name }} {{ adminuser.last_name }}<br />
<b>Public User Number: </b>{{ adminuser.id }}<br />
<b>Public User Address: </b>{{ adminuser.address }}<br />
<b>Public User City: </b>{{ adminuser.city }}<br />
<b>Public User Postal Code: </b>{{ adminuser.postalcode }}<br />
<b>Public Use... | oldpond/gaming---ChicagoBoss-Framework-application | src/view/internaluser/view.html | HTML | mit | 433 |
import produce from 'immer';
import homeReducer, { initialState } from '../reducer';
import {
loadGalleries,
galleriesLoadingSuccess,
galleriesLoadingError,
} from '../actions';
/* eslint-disable default-case, no-param-reassign */
describe('homeReducer', () => {
let state;
beforeEach(() => {
state = ini... | danactive/history | ui/app/containers/HomePage/tests/reducer.jest.js | JavaScript | mit | 1,532 |
package operateur;
import entite.Entite;
import entite.GameException;
public class DeplDir extends Mouvement {
Direction dir;
int lg;
public DeplDir(Direction dir, int lg) {
super();
this.dir = dir;
this.lg = lg;
}
@Override
public boolean isDoable() {
// TODO
return false;
}
public void... | EnzoMolion/Projet-PLA | src/operateur/DeplDir.java | Java | mit | 488 |
from abc import abstractmethod
from threading import Timer
from ctx.uncertainty.measurers import clear_dobson_paddy
class Event:
def __init__(self, type, **kwargs):
self.type = type
self.properties = kwargs
class Observer:
def update(self):
raise NotImplementedError("Not implemented"... | fmca/ctxpy | ctx/toolkit.py | Python | mit | 2,280 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="Minh-Quan Nguyen">
<title>Visit - Landing Craft Support Museum</title>
<link href="vend... | Minitquan/Minitquan.github.io | _site/visit.html | HTML | mit | 9,593 |
package net.shafranov.coolbutton.behaviors;
import java.util.HashMap;
import java.util.Map;
import net.shafranov.coolbutton.component.CoolButton;
import org.apache.wicket.Component;
import org.apache.wicket.behavior.Behavior;
import org.apache.wicket.markup.html.IHeaderResponse;
import org.apache.wicket.util.templat... | shafranov/wicket-javascript | cool-button/src/net/shafranov/coolbutton/behaviors/CoolButtonMouseEventsBehavior.java | Java | mit | 3,097 |
<?php
/**
* This file is part of the Spryker Demoshop.
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace Pyz\Zed\Collector\Persistence\Storage\Propel;
use Orm\Zed\Touch\Persistence\Map\SpyTouchTableMap;
use Orm\Zed\Url\Persistence\Map\SpyUrlRedir... | spryker/demoshop | src/Pyz/Zed/Collector/Persistence/Storage/Propel/RedirectCollectorQuery.php | PHP | mit | 1,530 |
var x;
var y;
var d;
var speedX;
var speedY;
function setup() {
createCanvas(windowWidth, windowHeight);
background(0, 255, 255);
d = 100;
x = random(d, width-d);
y = random(d, height-d);
speedX = random(5, 15);
speedY = random(5, 15);
}
function draw() {
background(0, 255, 255);
ellipse(x, y, d, ... | lminsky/9th-Grade-CS | 2016-2017/Section 3/Classwork/2017-05-03/ball/sketch.js | JavaScript | mit | 639 |
@font-face{font-family:Lato;font-style:normal;font-weight:300;src:local('Lato Light'),local('Lato-Light'),url(font/IY9HZVvI1cMoAHxvl0w9LVKPGs1ZzpMvnHX-7fPOuAc.woff2) format('woff2');unicode-range:U+0100-024F,U+1E00-1EFF,U+20A0-20AB,U+20AD-20CF,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Lato;font-style:normal;font-... | roxao/BSN | assets/main-admin.min.css | CSS | mit | 16,103 |
/* eslint-disable no-console,func-names,react/no-multi-comp */
const React = require('react');
const ReactDOM = require('react-dom');
const Table = require('table-v7');
require('table-v7/assets/index.less');
const columns = [
{ title: '表头1', dataIndex: 'a', key: 'a', width: 100, fixed: 'left' },
{ title: '表头2', da... | ninemilli-song/table-v7 | examples/fixedColumns.js | JavaScript | mit | 1,648 |
---
layout: post
title: Ep. 12 - Prof. Stefan Hell - Inside the mind of a Nobel laureate
date: 2017-06-05 14:00:00 +0100
categories: episode
comments: true
redirect_from:
- /stefanhell
---
In the final episode of Season 1, we met [Prof. Stefan Hell](https://en.wikipedia.org/wiki/Stefan_Hell) - a Nobel prize winni... | gsidhu/simplifyd | _posts/2017-06-05-ep-12-stefan-hell.md | Markdown | mit | 2,003 |
import { EventEmitter } from 'events'
import path from 'path'
import type { URL } from 'url'
import { URLFactory } from './factory'
import logger from '@wdio/logger'
import { transformCommandLogResult } from '@wdio/utils'
import type { Options } from '@wdio/types'
import { isSuccessfulResponse, getErrorFromResponseBo... | webdriverio/webdriverio | packages/webdriver/src/request/index.ts | TypeScript | mit | 9,663 |
package p05_randomArrayList;
import java.util.ArrayList;
import java.util.Random;
public class RandomArrayList extends ArrayList {
public Object getRandomElement(ArrayList<Object> inputList) {
Random random = new Random();
Object obj = inputList.get(random.nextInt(inputList.size()));
inpu... | ivelin1936/Studing-SoftUni- | Java Fundamentals/Java OOP Basic/Lab - Inheritance/src/p05_randomArrayList/RandomArrayList.java | Java | mit | 368 |
# Œ 1334 ‰
---
krih pRiqpwl ] Awip ik®pw kir rwKhu hir jIau poih n skY jmkwlu ]2]
qyrI srxweI scI hir jIau nw Eh GtY n jwie ] jo hir Coif dUjY Bwie
lwgY Ehu jMmY qY mir jwie ]3] jo qyrI srxweI hir jIau iqnw dUK BUK ikCu
nwih ] nwnk nwmu slwih sdw qU scY sbid smwih ]4]4] pRBwqI mhlw 3
] gurmuiK hir jIau sdw iDAwvhu jb l... | bogas04/SikhJS | assets/docs/md/SGGS/Ang 1334.md | Markdown | mit | 1,617 |
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
{% block head %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>
| freevoid/yawf | yawf/templates/yawf/base.html | HTML | mit | 184 |
<!DOCTYPE html>
<html ng-app="ngb2.chp10.demo09">
<head lang="en">
<meta charset="UTF-8">
<title>第10章 指令详解</title>
<script type="text/javascript" src="../../bower_components/angular/angular.js"></script>
</head>
<body>
<p>P84 controller</p>
<div my-directive>
</div>
<script !src="">
var app = angula... | nail2008/cookbook-angularjs | app/ng-book2/chapter10/demo090.html | HTML | mit | 990 |
package C3;
public class Ejercicio08 {
public static void main(String[] args) {
switch (args.length) {
case 0 : System.out.println("Se han introducido 0 argumentos"); break;
case 1 : System.out.println("Se ha introducido 1 argumento"); break;
case 2 : System.out.println("Se han introducido 2 a... | xChasingWaves/clase | Programacion/Unidad03/C3/Ejercicio08.java | Java | mit | 508 |
<h1>Wishlist</h1>
<p>
As most of you may have realized, we live in Japan and will have
difficulty transporting and finding room for physical gifts in our
notoriously small Japanese apartment. Also, electronics are often not
compatible due to wattage differences.
... | brymck/wedding | wishlist.php | PHP | mit | 3,408 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Network::Mgmt::V2020_03_01
module Models
#
# Public IP prefix resource.
#
class PublicIPPrefix < Resource
include MsR... | Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2020-03-01/generated/azure_mgmt_network/models/public_ipprefix.rb | Ruby | mit | 8,048 |
using Robust.Client.Graphics.Shaders;
using Robust.Client.Interfaces.GameObjects.Components;
using Robust.Shared.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Prototypes;
namespace Content.Client.GameObjects.Components
{
[RegisterComponent]
public class InteractionOutlineComponent : Component
{... | space-wizards/space-station-14-content | Content.Client/GameObjects/Components/InteractionOutlineComponent.cs | C# | mit | 1,981 |
---
layout: post
title: "Coursera Course: Intro to Data Science With Python"
modified:
categories: [Programming, MOOC]
excerpt: Intermediate Python for data analysis with Pandas and Numpy libraries.
tags: [Python, Data Analysis, Pandas, MOOC]
image:
feature:
date: 2016-12-07T21:44:58+00:00
---
# Intro to Data Scienc... | yanniey/yanniey.github.io | _posts/2016-12-07-coursera-course-intro-to-data-science-with-python.markdown | Markdown | mit | 19,112 |
using System.Linq;
using Abp.Authorization;
using Abp.Authorization.Roles;
using Abp.Authorization.Users;
using Abp.MultiTenancy;
using FreeInventoryManager.Authorization;
using FreeInventoryManager.Authorization.Roles;
using FreeInventoryManager.EntityFramework;
using FreeInventoryManager.Users;
namespace FreeInvento... | FabriDamazio/Free-Inventory-Manager | FreeInventoryManager/FreeInventoryManager.EntityFramework/Migrations/SeedData/TenantRoleAndUserBuilder.cs | C# | mit | 2,732 |
[‹ AdMob Doc Home](./)
<h1>AdMob 集成指南</h1>
<<[../../shared/-VERSION-/version.md]
## 集成
首先,您需要在 [AdMob](https://www.google.com/admob/) 官网注册一个帐号。
然后,用如下命令来集成 SDKBOX AdMob 插件,请确保您可以正常执行的 SDKBOX 安装器.
```bash
$ sdkbox import admob
```
最后,请您仔细阅读官方的 [iOS FAQ](https://developers.google.com/admob/ios/quick-start#faq) ... | sdkbox-doc/zh | src/admob/readme.md | Markdown | mit | 4,288 |
# vue-webpack2
A simple template webpack 2 + vuejs setup for projects
# Documentation
[Vue 2.0](http://vuejs.org/guide/): general information about how to work with Vuejs, not specific to this template.
[Karma](https://karma-runner.github.io/1.0/index.html): general information about how to work with Karma, not speci... | waka-templates/vue-webpack2 | README.md | Markdown | mit | 578 |
using System;
using System.Collections;
using System.Collections.Generic;
using Bender.Configuration;
using Bender.Nodes;
using Bender.Nodes.Object.Values;
using Bender.Reflection;
using NUnit.Framework;
using Should;
namespace Tests.Nodes.Object.Values
{
[TestFixture]
public class ValueFactoryTe... | mikeobrien/Bender | src/Tests/Nodes/Object/Values/ValueFactoryTests.cs | C# | mit | 5,759 |
Simple example
===
Example bundling an UMD package with one `vue` file and exporting stylus and CSS (both minified and unminified) to different files.
## Building
### With build script
```
cd example
node build.js
ls dist
```
### With rollup cli
```
cd example
npm i -g rollup
rollup -c --input Hello.vue --output ... | znck/rollup-plugin-vue | example/README.md | Markdown | mit | 339 |
# mip-qqy-yuyue
mip-qqy-yuyue 去去游手机预约组件
标题|内容
----|----
类型|通用
支持布局|responsive,fixed-height,fill,container,fixed
所需脚本|https://c.mipcdn.com/static/v1/mip-qqy-yuyue/mip-qqy-yuyue.js
## 示例
### 基本用法
```html
<mip-qqy-yuyue>
自定义内容,可以嵌套其他组件
</mip-qqy-yuyue>
```
### {属性名}
说明:预约元素点击弹层、关闭元素
| mipengine/mip-extensions-platform | mip-qqy-yuyue/README.md | Markdown | mit | 420 |
import Ember from 'ember';
const {
Route
} = Ember;
export default Route.extend({
model(params) {
return this.get('store').findRecord('item', params.id);
}
});
| runspired/ember-history | tests/dummy/app/routes/items/single/route.js | JavaScript | mit | 176 |
function RegisterExtractorPack()
local goExtractor = GetPlatformToolsDirectory() .. 'go-extractor'
if OperatingSystem == 'windows' then
goExtractor = GetPlatformToolsDirectory() .. 'go-extractor.exe'
end
return {
CreatePatternMatcher({'^go-autobuilder$', '^go-autobuilder%.exe$'},
... | github/codeql-go | codeql-tools/tracing-config.lua | Lua | mit | 731 |
FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-stretch-slim
WORKDIR /app
COPY . .
ENTRYPOINT ["dotnet", "AbpODataDemo.Web.Host.dll"]
| aspnetboilerplate/sample-odata | AbpODataDemo-Core-vNext/aspnet-core/src/AbpODataDemo.Web.Host/Dockerfile | Dockerfile | mit | 134 |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbo... | lgbtcoin/LGBT | src/qt/sendcoinsentry.cpp | C++ | mit | 4,616 |
# smf-flat
Theme for SMF 2.1 that follows modern web design
| live627/smf-flat | README.md | Markdown | mit | 60 |
<p align="center">
<img src="https://raw.githubusercontent.com/asowers1/CodableCache/master/CodableCache.png">
</p>
<br>


 and have the npm command available.
First you need to get the boilerplate code down to your machine:
$ git ... | nikhilrao89/Grunt-Boilerplate | README.md | Markdown | mit | 934 |
<?php
/*
This is part of Wedeto, the WEb DEvelopment TOolkit.
It is published under the MIT Open Source License.
Copyright 2017, Egbert van der Wal
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... | Wedeto/Application | tests/LogAttachHookTest.php | PHP | mit | 6,193 |
// Copyright (c) Simple Injector Contributors. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for license information.
namespace SimpleInjector
{
using System;
using System.Reflection;
using SimpleInjector.Advanced;
/// <summary>
/// Contextual inform... | simpleinjector/SimpleInjector | src/SimpleInjector/InjectionConsumerInfo.cs | C# | mit | 4,517 |
app.service('UserService', function (FIREBASE_URL, $firebase) {
var connectedUsersRef = new Firebase(FIREBASE_URL + 'whiteBoard/connectedUsers');
this.userRef = null;
this.setCurrentUser = function(user) {
this.userRef = connectedUsersRef.push(user);
this.userRef.onDisconnect().remove();
... | thomaswinckell/angularfire-white-board | src/app/service/userService.js | JavaScript | mit | 515 |
package iso20022
// Account to or from which a securities entry is made.
type SubAccountIdentification11 struct {
// Party that legally owns the account.
AccountOwner *PartyIdentification13Choice `xml:"AcctOwnr,omitempty"`
// Account to or from which a securities entry is made.
SafekeepingAccount *SecuritiesAcco... | fgrid/iso20022 | SubAccountIdentification11.go | GO | mit | 1,384 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.34014
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | sirmmo/MetaBack | MetaBak/MetaBak.Gui/Properties/Resources.Designer.cs | C# | mit | 2,787 |
const server = require('./server')
const port = process.env.PORT || 3000
server.listen(port, () => {
console.log('Listening on port %s', port)
})
| hexjelly/url-shortener-microservice | index.js | JavaScript | mit | 149 |
/* eslint-disable */
const NODE_ENV = process.env.NODE_ENV;
if (NODE_ENV !== 'development' && NODE_ENV !== 'production') {
throw new Error('NODE_ENV must either be set to development or production.');
}
global.__DEV__ = NODE_ENV === 'development';
global.requestAnimationFrame = function(callback) {
setTimeout(cal... | prometheansacrifice/react | scripts/jest/setupEnvironment.js | JavaScript | mit | 1,804 |
package org.jscala
import scala.reflect.macros.blackbox
/**
* Author: Alexander Nemish
*/
trait SyntaxConverter[C <: blackbox.Context] extends BasisConverter[C] {
import c.universe._
protected lazy val jsReturn1: ToExpr[JsStmt] = {
case Return(expr) => q"org.jscala.JsReturn(${jsExprOrDie(expr)})"
}
pr... | nau/jscala | jscala/src/main/scala/org/jscala/SyntaxConverter.scala | Scala | mit | 6,050 |
import { NgModule } from '@angular/core';
import { SharedModule } from '../shared/shared.module';
import { ArchivesRoutingModule } from './archives-routing.module';
import { ArchiveDetailResolve } from './archive-detail/archive-detail-resolve.service';
import { ArchiveDetailComponent } from './archive-detail/archive-... | ATConference/atc-website | src/app/archives/archives.module.ts | TypeScript | mit | 915 |
[](https://godoc.org/github.com/jackc/pgtype)
# pgtype
pgtype implements Go types for over 70 PostgreSQL types. pgtype is the type system underlying the
https://github.com/jackc/pgx PostgreSQL driver. These types support the binary format for enhanced performan... | dollarshaveclub/furan | vendor/github.com/jackc/pgtype/README.md | Markdown | mit | 446 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.