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 TankWarGame;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;
public class EnergyBar extends GameObject {
int energy;
int defaultEnergy = 5000/30;
public int getEnergy() {
return energy;
}
public void setEnergy(int energy) {
this.energy = energy;
}
public Energ... | TakeshiTseng/JavaTankWarGame | src/TankWarGame/EnergyBar.java | Java | mit | 633 |
local arduino_boards = { at43usb320,at43usb355,at76c711,at86rf401,at90c8534,at90can128,at90can32,at90can64,
at90pwm1,at90pwm161,at90pwm2,at90pwm216,at90pwm2b,at90pwm3,at90pwm316,at90pwm3b,
at90pwm81,at90s1200,at90s2313,at90s2323,at90s2333,at90s2343,at90s4414,at90s4433,
at90s4434,at90s8515,at90s8535,at90scr100,at90usb12... | dlannan/webdruino | release/lua/arduino-boards.lua | Lua | mit | 2,922 |
package com.amee.domain.data.builder.v2;
import com.amee.base.utils.XMLUtils;
import com.amee.domain.Builder;
import com.amee.domain.ItemBuilder;
import com.amee.domain.ItemService;
import com.amee.domain.TimeZoneHolder;
import com.amee.domain.item.BaseItemValue;
import com.amee.domain.item.NumberValue;
import com.ame... | OpenAMEE/amee.platform.api | amee-platform-domain/src/main/java/com/amee/domain/data/builder/v2/ItemValueBuilder.java | Java | mit | 4,429 |
# Orvibo Node for NodeRED
A simple node that can control the Orvibo S20 state.
To change the state of a device send the node a payload of:
```
{
macAddress: 'MAC ADDRESS',
macPadding: '202020202020',
type: 'Socket',
ip: 'IP ADDRESS',
state: false,
name: 'Socket MA... | stephenkeep/node-red-contrib-orvibo | README.md | Markdown | mit | 571 |
// This file is part of the :(){ :|:& };:'s project
// Licensing information can be found in the LICENSE file
// (C) 2014 :(){ :|:& };:. All rights reserved.
#include "sys/common.h"
CVar * CVar::root = NULL;
// -----------------------------------------------------------------------------
void CVar::Init(const std::s... | DoCGameDev/RPG-Engine | src/sys/cvar.cc | C++ | mit | 3,887 |
---
layout: page
title: "Jonathan Weber Bein"
comments: true
description: "blanks"
keywords: "Jonathan Weber Bein,CU,Boulder"
---
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script... | nikhilrajaram/nikhilrajaram.github.io | instructors/Jonathan_Weber_Bein.md | Markdown | mit | 1,448 |
package cvut.fit.borrowsystem.domain.entity;
import org.springframework.data.mongodb.core.mapping.Document;
/**
* Created by Jakub Tuček on 03/06/16.
*/
@Document(collection = "item")
public class Book extends Item {
private int isbn;
public Book() {
}
public Book(String itemName, int count, int ... | jakub-tucek/simple-spring-borrow-system | src/main/java/cvut/fit/borrowsystem/domain/entity/Book.java | Java | mit | 521 |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open... | GoC-Spending/data-corporations | html/234567006179.html | HTML | mit | 31,114 |
var gulp = require("gulp"),
del = require("del"),
ts = require("gulp-typescript"),
tsProject = ts.createProject("tsconfig.json")
typedoc = require("gulp-typedoc");
var compileTS = function () {
return tsProject.src()
.pipe(tsProject())
.js.pipe(gulp.dest("app"));
};
gulp.task("doc", function() {
return gulp... | SantiMA10/HomePi | gulpfile.js | JavaScript | mit | 674 |
#==============================================================================
#description : Solves travelling salesman problem by using Hill Climbing.
#author : Yakup Cengiz
#date : 20151121
#version : 0.1
#notes :
#python_version : 3.5.0
#Reference : http://www.psy... | yakupc/Artificial-Intelligence | Algorithms/SolveTSPSimulatedAnnealing/SolveTSPSimulatedAnnealing.py | Python | mit | 4,196 |
/* global describe, it, beforeEach */
'use strict';
process.env.NODE_ENV = 'test';
var sharedModule = require('../lib/module-shared');
var instance1;
var instance2;
var should = require('should');
var stubs = {};
describe('Private Module Tests', function () {
beforeEach(function (done) {
for (var stub ... | Icehunter/npm-base-package | test/module-shared-tests.js | JavaScript | mit | 3,863 |
"""django_todo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | GunnerJnr/_CodeInstitute | Stream-3/Full-Stack-Development/21.Django REST Framework/4.User-Authentication/django_todo/django_todo/urls.py | Python | mit | 869 |
<?php
/*
* This file is part of the ItaPaypalPlugin package.
* (c) Matteo Montanari <matteo@italinux.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* @package PayPal
*/
/**
* Make sure our parent class is defined... | italinux/PaypalPlugin-v1 | sdk/lib/PayPal/Type/GetBillingAgreementCustomerDetailsRequestType.php | PHP | mit | 1,251 |
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
#require 'test/unit'
require 'ssh-config-lib'
| hiro-su/ssh-config-lib | test/helper.rb | Ruby | mit | 157 |
---
layout: post
title: MHV Quadcopter Workshop 2.0
---
**Start:** 24/07/2013 18:30<br>
**Where:** At MHV in Downer

I wo... | brendam/jekyll-incorporated | blog/2013-06-25-mhv-quadcopter-workshop-2.md | Markdown | mit | 1,311 |
<div class="commune_descr limited">
<p>
Valsonne est
un village
géographiquement positionné dans le département de Rhône en Rhône-Alpes. Elle totalisait 807 habitants en 2008.</p>
<p>Le nombre de logements, à Valsonne, se décomposait en 2011 en 66 appartements et 381 maisons soit
un marché plutôt équil... | donaldinou/frontend | src/Viteloge/CoreBundle/Resources/descriptions/69254.html | HTML | mit | 1,669 |
<div class="commune_descr limited">
<p>
Mennessis est
un village
localisé dans le département de l'Aisne en Picardie. Elle totalisait 386 habitants en 2008.</p>
<p>Le nombre d'habitations, à Mennessis, était réparti en 2011 en zero appartements et 172 maisons soit
un marché plutôt équilibré.</p>
<p>Si ... | donaldinou/frontend | src/Viteloge/CoreBundle/Resources/descriptions/02474.html | HTML | mit | 1,352 |
package com.jim.portal.controller;
import com.jim.portal.entity.BooksEntity;
import com.jim.portal.hibernate.BookManagementRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import o... | liu1084/springmvc-cookbook | cloudstreetmarket-parent/cloudstreetmarket-webapp/src/main/java/com/jim/portal/controller/BookController.java | Java | mit | 1,630 |
/*! HTML5 Boilerplate v5.0.0 | MIT License | http://h5bp.com/ */
/*
* What follows is the result of much research on cross-browser styling.
* Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
* Kroc Camen, and the H5BP dev community and team.
*/
/* ============================================... | intip/merit-market | core/static/css/main.css | CSS | mit | 6,848 |
Spying
======
1. [What is spying?](#what-is-spying?)
1. [Types of spies](#types-of-spies)
1. [Spy components](#spy-components)
1. [Subjects](#subjects)
1. [Spy methods](#spy-methods)
1. [Evidence](#evidence)
1. [Unique association keys](#unique-association-keys)
1. [Persisting evidence to disk](#persisti... | samodom/TestSwagger | Docs/Spying.md | Markdown | mit | 9,116 |
<?php
/**
* miniShop
*
* @author Team phpManufaktur <team@phpmanufaktur.de>
* @link https://kit2.phpmanufaktur.de/miniShop
* @copyright 2014 Ralf Hertsch <ralf.hertsch@phpmanufaktur.de>
* @license MIT License (MIT) http://www.opensource.org/licenses/MIT
*/
namespace phpManufaktur\miniShop\Data\Setup;
use Sile... | phpManufaktur/kfMiniShop | Data/Setup/Uninstall.php | PHP | mit | 1,312 |
.game-canvas {
border: 3px solid #999;
border-radius: 3px;
margin: auto;
display: block;
background-image:url('./images/background.png');
-webkit-box-shadow: 3px 3px 5px 1px rgba(0,0,0,0.32);
-moz-box-shadow: 3px 3px 5px 1px rgba(0,0,0,0.32);
box-shadow: 3px 3px 5px 1px rgba(0,0,0,0.32);
margin-left:5... | haveanicedavid/socket-scrabble | style.css | CSS | mit | 326 |
# coding: utf-8
[
{ pt: 'Arte', en: 'Art' },
{ pt: 'Artes plásticas', en: 'Visual Arts' },
{ pt: 'Circo', en: 'Circus' },
{ pt: 'Comunidade', en: 'Community' },
{ pt: 'Humor', en: 'Humor' },
{ pt: 'Quadrinhos', en: 'Comicbooks' },
{ pt: 'Dança', en: 'Dance' },
{ pt: 'Design', en: 'Design' },
{ pt: 'E... | razaosocial/irs_crowdfunding | db/seeds.rb | Ruby | mit | 3,096 |
/* Copyright (c) 2015 Pozirk Games
* http://www.pozirk.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 Software without restriction, including without limitation the rights
* to use, copy,... | openfl/extension-amazonads | dependencies/amazonads/src/com/pozirk/ads/AmazonAdsListener.java | Java | mit | 2,319 |
nlp-nltk-workshop
=================
Repo for the Python/natual language processing fun had at 7/27/2013 workshop (http://www.meetup.com/Data-Community-DC/events/123049612/)
Check out `NOTES.md` for, well, notes. | marks/nlp-nltk-workshop | README.md | Markdown | mit | 213 |
module os_detect
implicit none (type, external)
contains
function getos()
!! heuristic detection of operating system based on de facto environment variables
character(256) :: buf
character(:), allocatable :: getos
call get_environment_variable("HOME", buf)
if (len_trim(buf) > 0) getos = "unix"
call get_environment... | scienceopen/fortran2015-examples | system/os_detect.f90 | FORTRAN | mit | 433 |
body {
padding: 0;
margin: 0;
}
html, body, #map {
height: 946px;
width: 1495px;
}
html, body, #slide {
width: 1495px;
padding: 0;
margin: 0;
}
th {
text-align: left;
vertical-align: top;
}
.info {
padding: 6px 8px;
font: 14px/16px Arial, Helvetica, sans-serif;
background: white;
background: rgba(255,255... | ninety-plus-of-blue/ninety-plus-of-blue.github.io | kartograph-test/leafmap/export_2015_06_29_01_12_30/css/own_style.css | CSS | mit | 477 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>quicksort-complexity: 1 m 49 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.09.1-2.0.6/released/8.10.1/quicksort-complexity/8.10.0.html | HTML | mit | 20,929 |
package com.codepoetics.protonpack.selectors;
import java.util.Comparator;
import java.util.Objects;
import java.util.stream.Stream;
public final class Selectors {
private Selectors() {
}
public static <T> Selector<T> roundRobin() {
return new Selector<T>() {
private int startIndex = ... | poetix/protonpack | src/main/java/com/codepoetics/protonpack/selectors/Selectors.java | Java | mit | 1,740 |
<?php
namespace Cinemino\SiteBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class DefaultController extends Controller
{
public function indexAction($name)
{
return $this->render('CineminoSiteBundle:Default:index.html.twig', array('name' => $name));
}
}
| hclerb/Cinemino | src/Cinemino/SiteBundle/Controller/DefaultController.php | PHP | mit | 307 |
<?php
namespace JDT\Api;
use Illuminate\Http\Request;
use Illuminate\Routing\Router;
use Laravel\Passport\Passport;
use Illuminate\Http\UploadedFile;
use JDT\Api\Http\InternalApiRequest;
use Illuminate\Filesystem\Filesystem;
use Laravel\Passport\ApiTokenCookieFactory;
use Symfony\Component\HttpFoundation\Cookie;
use ... | jdtsoftware/api | src/InternalRequest.php | PHP | mit | 11,858 |
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("Do... | guitarrapc/AzureFunctionsIntroduction | v1/src/DotNetFrameworkVersionResponseCSharp/Properties/AssemblyInfo.cs | C# | mit | 1,408 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Sci blog jekyll theme">
<meta name="author" content="AIR RAYA Group">
<link href='... | xiazemin/MyBlog | docker/2019/12/15/kubernetes.html | HTML | mit | 57,978 |
class Public::PeopleController < ApplicationController
layout false
after_action :allow_iframe
skip_before_action :verify_authenticity_token
skip_before_action :authenticate_user!
# GET /people/new
def new
@referrer = false
if params[:referrer]
begin
uri = URI.parse(params[:referrer])... | smartchicago/kimball | app/controllers/public/people_controller.rb | Ruby | mit | 2,632 |
<div class="header clearfix border-bottom-grey">
<h4 class="margin-zero">Delete Review</h4>
<span class="icon icon-cross2 close-modal" ng-click="RemovePopup.cancel()"></span></div>
<div class="padded clearfix">
<div class="content">
<p class="margin-top-five">Are you sure you want to delete this review?</p>
... | kmtabish/customerFeedbackPlugin | control/content/templates/deleteReviewModal.html | HTML | mit | 745 |
# GitLab Slack application **[FREE ONLY]**
NOTE: **Note:**
The GitLab Slack application is only configurable for GitLab.com. It will **not**
work for on-premises installations where you can configure the
[Slack slash commands](slack_slash_commands.md) service instead. We're working
with Slack on making this configurab... | iiet/iiet-git | doc/user/project/integrations/gitlab_slack_application.md | Markdown | mit | 2,456 |
---
title: High Quality images to use for Sermon Series, Website Banners and other purposes
author:
name: Vision 100 IT
date: 2015-11-20
tags:
- Images
image:
href: ./cityscape.jpeg
size: wide
alt: Unsplash images
---
As a team helping small churches without the funds to do high quality photography, we're always ... | Vision100IT/v100it-template | src/blog/2015-11-20.md | Markdown | mit | 1,077 |
<?php
class AnnotatorException extends Exception {
}
class Annotator {
const INFO = 0;
const BEFORE = 1;
const AFTER = 2;
const AROUND = 3;
public static $annotations = array();
/**
* Register annotation handler
*
* @param string $annotation Annotation code
* @param callable $handler Annotation handl... | baryshev/Annotator | Annotator.php | PHP | mit | 6,141 |
local Hack = {
nId = 20170327,
strName = "Display Essences in Loot Stack",
strDescription = "Fakes essence gains as items so they show up in the loot stack",
strXmlDocName = nil,
tSave = nil,
}
local karColors = { "Red", "Green", "Blue", "Purple" }
function Hack:Initialize()
return true
end
function Hack... | aramunn/wildstar-hacks-by-aramunn | Hacks/DisplayEssencesInLootStack.lua | Lua | mit | 7,663 |
using AppShell.NativeMaps;
namespace AppShell.Samples.NativeMaps
{
public class NativeMapsShellCore : ShellCore
{
public override void Run()
{
Push<MasterDetailShellViewModel>(new { Name = "Main", Master = new NativeMapsMasterViewModel(serviceDispatcher) });
serviceDis... | cschwarz/AppShell | samples/NativeMaps/AppShell.Samples.NativeMaps/NativeMapsShellCore.cs | C# | mit | 490 |
import {
featureCollection,
lineString,
multiLineString,
// Typescript Definitions
Polygon,
LineString,
MultiLineString,
MultiPolygon,
Feature,
FeatureCollection
} from '@turf/helpers'
import lineStringToPolygon from './'
// Fixtures
const coords = [[125, -30], [145, -30], [145,... | hooplert/jesper | packages/turf-linestring-to-polygon/types.ts | TypeScript | mit | 702 |
module Ruboty
module Variable
module Actions
class Get < Ruboty::Variable::Actions::Variable
def call(key)
if var.data.has_key?(key)
message.reply(var.get(key))
else
message.reply(undefined_message(key))
end
end
def undefined_mes... | snakazawa/ruboty-variable | lib/ruboty/variable/actions/get.rb | Ruby | mit | 400 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>interval: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.1/released/8.6/interval/3.4.2.html | HTML | mit | 7,535 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ramsey: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.04.2-2.0.5/released/8.5.3/ramsey/8.7.0.html | HTML | mit | 8,415 |
---
lang: en
layout: post
title: Example content for posts
category: Others
color: purple
theme_color: "#9c27b0"
img: /static/IMG/4.jpg
tags: Jekyll
---
This demo page has been used from [here](http://jasonm23.github.io/markdown-css-themes/).
<h1>A First Level Header</h1>
<h2>A Second Level Header</h2>
<h3>A Thi... | chipprogrammers/chipprogrammers.github.io | _posts/2016-06-04-example-content.md | Markdown | mit | 3,159 |
<?php
/**
* Trait for Control that use Vue Lookup component.
*/
declare(strict_types=1);
namespace Atk4\Ui\Form\Control;
use Atk4\Ui\Callback;
trait VueLookupTrait
{
/** @var Callback */
public $dataCb;
public function initVueLookupCallback(): void
{
if (!$this->dataCb) {
$thi... | atk4/ui | src/Form/Control/VueLookupTrait.php | PHP | mit | 1,370 |
////////////////////////////////////////////////////////////////////////////
//
// This file is part of RTIMULibCS
//
// Copyright (c) 2015, richards-tech, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), ... | emmellsoft/RPi.SenseHat | RPi.SenseHat/RTIMULibCS/Devices/LSM9DS1/LSM9DS1Config.cs | C# | mit | 3,360 |
// C++.
#include <cassert>
#include <sstream>
#include <algorithm>
// Qt.
#include <QWidget>
#include <QMessageBox>
#include <QDesktopWidget>
#include <QFileDialog>
// Infra.
#include <QtCommon/Util/RestoreCursorPosition.h>
#include <QtCommon/Scaling/ScalingManager.h>
#include <Utils/Include/rgaCliDefs.h>
// Local.
... | GPUOpen-Tools/RGA | RadeonGPUAnalyzerGUI/Src/rgBuildSettingsViewVulkan.cpp | C++ | mit | 41,275 |
#
# File: Urasandesu.Prig.psd1
#
# Author: Akira Sugiura (urasandesu@gmail.com)
#
#
# Copyright (c) 2012 Akira Sugiura
#
# This software is MIT License.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Sof... | urasandesu/Prig | Urasandesu.Prig.VSPackage/tools/Urasandesu.Prig/Urasandesu.Prig.psd1 | PowerShell | mit | 3,563 |
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("Cu... | marianamn/Telerik-Academy-Activities | Homeworks/01. CSharp-Basics/01. Intro Programing Homework/CurrentDateAndTime/Properties/AssemblyInfo.cs | C# | mit | 1,412 |
exports.commands = {
'c8': 'crazyeights',
crazyeights: function(arg, by, room) {
if (room.charAt(0) === ',') return false;
if (!crazyeight.gameStatus[room]) {
crazyeight.gameStatus[room] = 'off';
}
if (!arg) {
return false;
}
else {
arg = toId(arg);
}
switch (arg) {
case 'new':
if (!Bo... | megaslowbro1/Marcu5thebaw5-bot | commands/crazyeights.js | JavaScript | mit | 18,455 |
<?php
/* PMUserBundle:Registration:register_content.html.twig */
class __TwigTemplate_f6e31e9e2fb72ad7021d9bf921bafcc5a9a3a5263216ec6875135a086381234f extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->... | quentinl-c/Player_manager | app/cache/dev/twig/f6/e3/1e9e2fb72ad7021d9bf921bafcc5a9a3a5263216ec6875135a086381234f.php | PHP | mit | 8,748 |
---
layout: post
title: Содержимое платы Raspberry Pi
date: 2014-03-29 15:10:55
category: 1. Описание
---
<style type="text/css">
ol { list-style-type: upper-alpha; }
</style>
Сегодня поговорим о содержимом платы Raspberry Pi.
На самом деле, Raspberry Pi ни что иное, как внутренняя плата мобильного телефона. Еди... | gizatm/gizatm.github.io | _posts/2014-03-29-raspberry-pi-hardware.md | Markdown | mit | 4,810 |
<?php
class SmartWikiInitializeController {
private $log;
/**
* Constructor
*/
function __construct() {
# TODO: Do something or remove
}
/**
* Do the initialize of SmartWiki
*
* @param boolean $showInMenu
*
* @return HTML output code
*/
public function execute($showInMenu =... | Mantix/SmartWiki | includes/controller/SmartWikiInitializeController.class.php | PHP | mit | 1,968 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | v8-dox/v8-dox.github.io | 2dd68af/html/classv8_1_1_string_1_1_value-members.html | HTML | mit | 6,167 |
package me.xwang1024.sifResExplorer.model;
public class UnitSkill {
}
| xwang1024/SIF-Resource-Explorer | src/main/java/me/xwang1024/sifResExplorer/model/UnitSkill.java | Java | mit | 77 |
require 'nn'
local opts = require '__0_dcgan.script.opts'
local gen = require '__0_dcgan.models.gen'
local dis = require '__0_dcgan.models.dis'
-- basic settings.
torch.setdefaulttensortype('torch.FloatTensor')
torch.setnumthreads(2)
-- get opt ans set seed.
local opt = opts.parse(arg)
print(opt)
if opt.seed == 0 t... | nashory/gans-collection.torch | __0_dcgan/script/main.lua | Lua | mit | 1,386 |
import React from 'react';
import ReactDOM from 'react-dom';
import Layout from './layout.js';
document.addEventListener('DOMContentLoaded', () => {
ReactDOM.render(<Layout />, document.getElementById('main'));
});
| gauravchl/react-simple-sidenav | demo/src/index.js | JavaScript | mit | 218 |
##TaDaa/vim-emmet-autocompleter
#HTML/SVG autocompleter with Emmet support for Vim
Providing HTML+SVG autocompletions with support for Emmet syntax!
##Installation
````
Bundle 'TaDaa/vim-emmet-autocompleter'
````
##Options
`g:emmet_completions_use_omnifunc = [1|0=Default]` - setting this to 1 will cause vim-emmet-a... | TaDaa/vim-emmet-autocompleter | README.md | Markdown | mit | 404 |
# mysetting
dotfiles
| robonostone/mysetting | README.md | Markdown | mit | 21 |
$.fn.onEnterKey =
function( closure ) {
$(this).keypress(
function( event ) {
var code = event.keyCode ? event.keyCode : event.which;
if (code == 13) {
closure();
return false;
}
} );
}
Str... | junajan/YoutubeDownloader | public/libs/common.js | JavaScript | mit | 466 |
命令行发包
heart_beat:
echo "0006 00000001 0000" | xxd -r -ps |nc 127.0.0.1 8888 -q 2|hexdump -C | bronze1man/it-summary | net/命令行发包.md | Markdown | mit | 101 |
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using ConverterContracts.ConversionElementsStyles;
using FB2Library.Elements;
using XHTMLClassLibrary.BaseElements;
using XHTMLClassLibrary.BaseElements.InlineElements... | LordKiRon/fb2converters | fb2epub/FB2EPubConverter/HRefManagerV2.cs | C# | mit | 13,852 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _01.StringBuilderSubstring
{
public static class StringBuilderExtention
{
public static StringBuilder Substring(this StringBuilder input, int index, int length)
{
... | zvet80/TelerikAcademyHomework | 03.C# OOP/03.ExtensionMethodsDelegatesLambdaLINQ/01.StringBuilderSubstring/StringBuilder.cs | C# | mit | 939 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | v8-dox/v8-dox.github.io | 196184d/html/hierarchy.html | HTML | mit | 29,717 |
/*
Sample code file for CPJ2e.
All code has been pasted directly from the camera-ready copy, and
then modified in the smallest possible way to ensure that it will
compile -- adding import statements or full package qualifiers for
some class names, adding stand-ins for classes and methods that are
referred ... | Ericliu001/BigBangJava | src/main/resources/DougLea.java | Java | mit | 121,587 |
/**
* Pipedrive API v1
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* ... | pipedrive/client-nodejs | src/model/UpdateFileRequest.js | JavaScript | mit | 2,415 |
"""
Example
-------
class SystemSetting(KVModel):
pass
setting = SystemSetting.create(key='foo', value=100)
loaded_setting = SystemSetting.get_by_key('foo')
"""
from django.db import models
from .fields import SerializableField
class KVModel(models.Model):
"""
An Abstract model that has key and value... | amdorra/django-kvmodel | kvmodel/models.py | Python | mit | 1,100 |
---
layout: page
title: About
permalink: /about/
---
Linguist, data scientist, math tutor, photographer, and cook! I love patterns, numbers, and playing around with language. Been living in the Bay Area for the past few years. Originally from LA and lived in Boston before SF. Excited to apply my skills as a linguist a... | schwabos/schwabos.github.io | about.md | Markdown | mit | 377 |
<?php
return array (
'id' => 'opwv_sdk_ver1_sub40wpk010149',
'fallback' => 'uptext_generic',
'capabilities' =>
array (
),
);
| cuckata23/wurfl-data | data/opwv_sdk_ver1_sub40wpk010149.php | PHP | mit | 136 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>gaia: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.02.3-2.0.6/released/8.5.0~camlp4/gaia/1.11.html | HTML | mit | 7,362 |
<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call(UsersTableSeeder::class);
$this->call(CoursesTableSeeder::class);
//$this->call(RepositoryTableSeede... | guelph-code-ninjas/core | database/seeds/DatabaseSeeder.php | PHP | mit | 339 |
<?php
namespace Chebur\SphinxBundle\Sphinx\Connection;
use Foolz\SphinxQL\Drivers\Mysqli\Connection as FoolzMysqliConnection;
class MysqliConnection extends FoolzMysqliConnection implements ConnectionInterface
{
/**
* потому что Exception лучше error
* @var bool
*/
protected $silence_connectio... | vchebotarev/sphinx-bundle | Sphinx/Connection/MysqliConnection.php | PHP | mit | 355 |
export default class ContestType {
constructor(options) {
let _id = null;
let _name = null;
let _berryFlavor = null;
let _color = null;
Object.defineProperty(this, 'id', {
enumarable: true,
get() {
return _id;
}
});
Object.defineProperty(this, 'name', {
e... | milk-shake/electron-pokemon | app/js/entities/contestType.js | JavaScript | mit | 850 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coqffi: 21 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesh... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.12.0-2.0.8/released/8.13.1/coqffi/1.0.0~beta7.html | HTML | mit | 10,042 |
//
// defines.h
//
//
// Created by Samuco on 19/04/2015.
//
//
#ifndef _defines_h
#define _defines_h
// Rendering flags
#define SHADOW_MAP_SIZE 1024
#define RENDER_SWAT_REFLECTION
#define RENDER_SENV_REFLECTION
// Force hardware acceleration
#define RENDER_PIPELINE
#define RENDER_GPU
#ifdef RENDER_PIPELINE
... | ShadovvMoon/Electron | Electron/platform/mac/Gallium/defines.h | C | mit | 2,337 |
<?php
/**
*
*/
class M_login extends CI_Model{
public function login_authen($username, $password){
$this->db->select('*');
$this->db->where('username', $username);
$this->db->where('password', $password);
$this->db->from('user');
$query = $this->db->get();
... | ericsrizal/kopiganes | application/models/M_login.php | PHP | mit | 441 |
#include <map>
#include <assert.h>
#include <exception>
#include "pf/base/string.h"
#include "pf/file/database.h"
namespace pf_file {
Database::Database(uint32_t id) {
__ENTER_FUNCTION
id_ = id;
string_buffer_ = NULL;
index_column_ = -1;
record_number_ = 0;
__LEAVE_FUNCTION
}
Database::~Database(... | viticm/plainframework1 | pf/core/src/file/database.cc | C++ | mit | 18,796 |
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame'];
window.cancelAnimationFrame =
window[vendors[x]+'CancelA... | randuhmm/html5-prototype-mode7 | js/main.js | JavaScript | mit | 6,851 |
package query
import (
"context"
"errors"
"fmt"
"os"
"runtime/debug"
"strconv"
"sync"
"sync/atomic"
"time"
"github.com/influxdata/influxdb/models"
"github.com/influxdata/influxql"
"go.uber.org/zap"
)
var (
// ErrInvalidQuery is returned when executing an unknown query type.
ErrInvalidQuery = errors.New... | vladlopes/influxdb | query/query_executor.go | GO | mit | 15,829 |
using System.Data.Entity;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
namespace TwitterBot.Models
{
// You can add profile data for the user by adding more properties to your ApplicationUser class, please visit http:... | b1thunt3r/sixdegree | TwitterBot/Models/IdentityModels.cs | C# | mit | 1,209 |
// Looking at closures
// http://stackoverflow.com/q/111102/137001
$(document).ready(function() {
closureTest();
function closureTest() {
//console.log
}
}); | TimCollins/jQueryPluginTest | script/closure.js | JavaScript | mit | 179 |
require 'spec_helper'
describe ActionView::Helpers::FormHelper do
before do
helper.form_for(FakeModel.new, :url => "myurl", :builder => Manageable::Helpers::FormBuilder) do |f|
@text_field = f.text_field(:name)
@password_field = f.password_field(:name)
@telephone_field = f.telephone_field(:nam... | fabiokr/manageable | spec/helpers/form_builder_spec.rb | Ruby | mit | 4,704 |
<?php
/* @Debug/Profiler/dump.html.twig */
class __TwigTemplate_87214dbb795c597762c22e04f33cdac6be858641b8887823b0d50282e4b88981 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("@WebPr... | rince1990/photocool | app/cache/dev/twig/6b/6b71bb18f4add4f495b2075399e972f2b6c75277cfc00146f5f2f88109075914.php | PHP | mit | 18,596 |
FROM openjdk:8-jre-alpine
LABEL maintainer="Billy Yuan <billy112487983@gmail.com>"
ENV VERTICLE_FILE vertx-postgresql-starter-1.0-SNAPSHOT-fat.jar
ENV HTTP_SERVER_CONFIG application-conf.json
# Set the location of the verticles
ENV VERTICLE_HOME /usr/verticles
EXPOSE 8080
# Copy your fat jar to the container
COPY... | BillyYccc/vertx-postgresql-starter | Dockerfile | Dockerfile | mit | 652 |
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Lucca.Upgrading.Abstractions;
using Lucca.Upgrading.Discovery;
using Lucca.Upgrading.Strategy;
using Lucca.Upgrading.Test.EfDb;
using Lucca.Upgrading.Test.Fakes;
using Xunit... | LuccaSA/Lucca.Upgrading | test/Lucca.Upgrading.Test/SqlExecutionTests.cs | C# | mit | 4,084 |
markdown
========
simple markdown editor
### build
```
$ cd markdown
$ ./httpd.py `pwd`/app
```
### use
* 浏览器进入主页 <http://localhost:8080>
* 主页有update按钮,可以更新`index.html`和转换所有已经编辑完且已经保存的m文件为html文件
* 添加新md文件,点击add按钮
* 需要修改某个已经编辑的文件,点击文章右边edit
* 支持上传图片功能,模仿ghos博客的编辑器添加图片方式,详情见<https://raw.githubusercontent.com/ha... | hanxi/markdown | README.md | Markdown | mit | 1,648 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dblib: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.05.0-2.0.6/extra-dev/8.11.dev/dblib/8.8.0.html | HTML | mit | 7,049 |
package armored.g12matrickapp.Activities;
import android.content.ComponentName;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.H... | RhinoSoftware/G12Matric | app/src/main/java/armored/g12matrickapp/Activities/subject_Choose.java | Java | mit | 21,736 |
--Write a SQL statement to create a view that displays the users from the Users
--table that have been in the system today. Test if the view works correctly.
--Please use the same database as for the previous exercises
USE TelerikAcademy
GO
CREATE VIEW UsersActiveToday AS
SELECT *
FROM Users
WHERE CONVERT(DATE,Las... | LazarDL/TelerikHomeworks | DataBases/SQLADVANCEDHW/16ActiveUsersTodayView.sql | SQL | mit | 361 |
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.Owin;
using Microsoft.Owin.Security.Cookies;
using Microsoft.Owin.Security.Google;
using Microsoft.Owin.Security.OAuth;
using Owin;
using APM.WebAPI.Provi... | sionjlewis/AngularF2BWebAPI | APM/APM.WebAPI/App_Start/Startup.Auth.cs | C# | mit | 2,772 |
# Kinshasa
| jeanpierreb/Kinshasa | README.md | Markdown | mit | 11 |
<!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="en" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en" dir="ltr">
<!--<![endif]-->
<!-- Usage: /eic/site/ccc-rec.nsf/tpl-eng/template-1col.html?Open... | GoC-Spending/data-corporations | html/123593450000.html | HTML | mit | 52,984 |
//!
//! @author Wang Weixu 13114633, Xiufeng Zhang 06197620, Boxi Zhang, 12238967
//! @date 12.12.2014
//!
//! @brief This code implemented Big Number using linked list as underlying
//! data structure.
//!
//! Assignment 4, 159.201,s3,2014
//!
#include <iostream>
#include <fstream>
#include <s... | Mooophy/159201 | assignment4/as4/assignment04_159201_final_version.cpp | C++ | mit | 3,226 |
require 'spec_helper'
describe Graphdb do
describe 'configuration' do
context 'default configuration' do
subject{
Graphdb::Configuration.new
}
it do
expect(subject.extensions.empty?).to be true
expect(subject.neo4j_server).to eq('http://localhost:7474')
end
en... | haw-itn/bitcoin2graphdb | spec/graphdb_spec.rb | Ruby | mit | 808 |
---
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>UrlService | @uirouter/react</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href... | ui-router/ui-router.github.io | _react_docs/0.8.8/classes/url.urlservice.html | HTML | mit | 44,804 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EspaceClient.FrontOffice.Infrastructure.Services.Translation;
using EspaceClient.FrontOffice.Web.ViewModels.Pages.Module.StaticModel;
using EspaceClient.FrontOffice.Domaine.Results;
namespace EspaceClient.FrontOffice.Web.ViewM... | apo-j/Projects_Working | EC/espace-client-dot-net/EspaceClient.FrontOffice.Web.ViewModels/Pages/Document/DocumentsAuditViewModel.cs | C# | mit | 655 |
version https://git-lfs.github.com/spec/v1
oid sha256:0f088644576fe6fee42bb3ce7f1d056f5db1079bf284c312f2acb895c5510851
size 11112
| yogeshsaroya/new-cdnjs | ajax/libs/angular-strap/2.1.5/modules/select.js | JavaScript | mit | 130 |
import re
from datetime import datetime
from flask import current_app as app
from flask_jwt import current_identity
from flask_restplus import Namespace, Resource, fields, reqparse
from sqlalchemy.exc import IntegrityError
from packr.models import Message
api = Namespace('contact',
description='Opera... | KnightHawk3/packr | packr/api/contact.py | Python | mit | 4,011 |
# ArdR120
Arduino project to allow a Strand R120 remote to work with Eos over TCP using the ESP8266 chip - developement done using an Adafruit Huzzah board with a Max232 chip to shift the serial data to RS232 levels - PCB design is in the PCB folder
Specifically targetted to work with the Stage Electrics version of th... | richardwilliamson/ArdR120 | README.md | Markdown | mit | 4,166 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.