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 |
|---|---|---|---|---|---|
seamless-immutable
==================
Immutable JS data structures which are backwards-compatible with normal Arrays and Objects.
Use them in `for` loops, pass them to functions expecting vanilla JavaScript data structures, etc.
```javascript
var array = Immutable(["totally", "immutable", {hammer: "Can’t Touch This"... | maty21/statistisc | node_modules/seamless-immutable/README.md | Markdown | mit | 18,447 |
/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2019 Advanced Micro Devices, 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
* ... | ROCmSoftwarePlatform/MIOpen | src/conv/invokers/gcn_asm_1x1u.cpp | C++ | mit | 2,639 |
// Copyright (c) 2014, Kelp Heavy Weaponry
// MasterLog project -- see MasterLog licencing for details.
// File access
namespace MasterLog {
namespace Storage {
int configure(Configuration const& config);
}} // File : MasterLog
| davidstewartzink/MasterLog | include/mstrlg/Storage.h | C | mit | 232 |
namespace BugTracker.WebServices.Areas.HelpPage
{
using System;
using System.Text;
using System.Web;
using System.Web.Http.Description;
public static class ApiDescriptionExtensions
{
/// <summary>
/// Generates an URI-friendly ID for the <see cref="ApiDescription"/>. E.g. "Get-V... | 2She2/WebSevices | 07.Web-Services-Testing/BugTracker.WebServices/Areas/HelpPage/ApiDescriptionExtensions.cs | C# | mit | 1,519 |
function goMain(){
window.location.href = 'main.html';
}; | Keimaru/liasonMaster | www/index.js | JavaScript | mit | 63 |
<?php
namespace PHQ\Database;
use PHQ\Database\PDO\Statement;
/**
* Interface IConnection
* @package PHQ\Database
*/
interface IConnection
{
/**
* Execute une requête avec la connexion interne
*
* @param string $statement
* @param array $params
* @return Statement L'objet représentant... | quenti77/phq | src/Database/IConnection.php | PHP | mit | 1,203 |
version https://git-lfs.github.com/spec/v1
oid sha256:8d51e43626611f90ffa2bf855ceaf2c501b01a5a083681b6a9426092bd85651f
size 3788
| yogeshsaroya/new-cdnjs | ajax/libs/angular.js/1.4.0-beta.6/i18n/angular-locale_ru-by.js | JavaScript | mit | 129 |
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
html {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
... | iranianpep/code-jetter | public/styles/bootstrap.css | CSS | mit | 147,501 |
<?php
use \Glucose\Model as Model;
require_once 'Models/Country.class.php';
require_once 'Models/City.class.php';
require_once 'Models/Person.class.php';
require_once 'Models/User.class.php';
class TransparentConcurrencyTest extends TableComparisonTestCase {
private static $mysqli;
protected function setUp() {
... | andsens/Glucose | UnitTests/Behaviour/Semi-Singleton/TransparentConcurrencyTest.php | PHP | mit | 1,571 |
---
layout: compress
---
<!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"><!--<![endif]-->
<hea... | quido3/quido3.github.io | _layouts/post-list.html | HTML | mit | 1,686 |
module Rosetta
module Generators
class MigrationGenerator < Rails::Generator::Base
include Rails::Generators::migration
desc 'Creates migrations for Rosetta tables'
source_root File.expand_path('../templates', __FILE__)
def self.next_migration_number
if @prev_migration_nr
... | jaronson/rosetta | lib/rails/generators/rosetta/migration/migration_generator.rb | Ruby | mit | 643 |
# Schema
Repositories allow you to query and update documents in the database.
To create a repository you first must define a schema to describe which columns and database tables to use.
## Defining Schemas
The `db.table` method allows creating repositories with a schema description.
```js
/**
* Create a reposito... | LOKE/mysql-orm | doc/Section 3 -- Schema.md | Markdown | mit | 1,607 |
<!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 | 14417fd/html/classv8_1_1_isolate_1_1_scope.html | HTML | mit | 5,626 |
package goenocean
type EepD20109 struct {
TelegramVld
}
func NewEepD20109() *EepD20109 { // {{{
return &EepD20109{NewTelegramVld()}
} // }}}
func (p *EepD20109) SetTelegram(t TelegramVld) { // {{{
p.TelegramVld = t
} // }}}
func (p *EepD20109) CommandId() uint8 {
return p.TelegramData()[0] & 0x0f
}
func (p *Eep... | jonaz/goenocean | eepd20109.go | GO | mit | 1,697 |
(function (angular) {
// Create all modules and define dependencies to make sure they exist
// and are loaded in the correct order to satisfy dependency injection
// before all nested files are concatenated by Gulp
// Config
angular.module('df.validator.config', [])
.value('df.validator.config', {
... | nikita-yaroshevich/df-validator | dist/df-validator.js | JavaScript | mit | 24,167 |
package fr.hmil.roshttp
/** Low-level configuration for the HTTP client backend
*
* @param maxChunkSize Maximum size of each data chunk in streamed requests/responses.
* @param internalBufferLength Maximum number of chunks of response data to buffer when the network is faster than what
* ... | hmil/RosHTTP | shared/src/main/scala/fr/hmil/roshttp/BackendConfig.scala | Scala | mit | 1,004 |
<table width="90%" border="0"><tr><td><script>function openfile(url) {fullwin = window.open(url, "fulltext", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");}</script><div class="layoutclass_pic"><div class="layoutclass_first_pic"><table class="ztable"><tr><th class="ztd1"><b>... | BuzzAcademy/idioms-moe-unformatted-data | all-data/3000-3999/3698-34.html | HTML | mit | 2,325 |
//-----------------------------------------------------------------------
// <copyright file="JsonExtensionObject.cs" company="NJsonSchema">
// Copyright (c) Rico Suter. All rights reserved.
// </copyright>
// <license>https://github.com/RicoSuter/NJsonSchema/blob/master/LICENSE.md</license>
// <author>Rico Suter, ... | RSuter/NJsonSchema | src/NJsonSchema/JsonExtensionObject.cs | C# | mit | 4,027 |
package net.sf.esfinge.metadata.examples.validate.field.visibility;
import net.sf.esfinge.metadata.examples.validate.field.test.OneAnnotationWithFieldVisibilityRequired;
public class VisibilityRequeridValid {
@OneAnnotationWithFieldVisibilityRequired
private String nome;
}
| EsfingeFramework/MetadataExamples | Examples/src/test/java/net/sf/esfinge/metadata/examples/validate/field/visibility/VisibilityRequeridValid.java | Java | mit | 280 |
// https://leetcode.com/problems/reverse-vowels-of-a-string/
class Solution {
public:
bool isVowel(char c) {
char check = tolower(c);
return (check == 'a') || (check == 'e') || (check == 'i') || (check == 'o') || (check == 'u');
}
string reverseVowels(string s) {
int fron... | nave7693/leetcode | 345-reverse-vowels-of-a-string.cpp | C++ | mit | 841 |
<?php return unserialize('a:1:{i:0;O:27:"Doctrine\\ORM\\Mapping\\Column":9:{s:4:"name";s:6:"gender";s:4:"type";s:6:"string";s:6:"length";i:20;s:9:"precision";i:0;s:5:"scale";i:0;s:6:"unique";b:0;s:8:"nullable";b:0;s:7:"options";a:0:{}s:16:"columnDefinition";N;}}'); | rajdamaciej/mycms | app/cache/prod/annotations/a9bc4272a8d44f4d80c627b7881525739d669e07$gender.cache.php | PHP | mit | 265 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Sat Nov 05 23:16:32 EST 2011 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Class com.puppycrawl.tool... | kentwang/algs4 | checkstyle-5.5/site/apidocs/com/puppycrawl/tools/checkstyle/checks/coding/class-use/MissingCtorCheck.html | HTML | mit | 6,404 |
module Gitlab
module Devops
VERSION = '0.1.2'
end
end
| sanjusoftware/gitlab-devops | lib/gitlab/devops/version.rb | Ruby | mit | 62 |
#!/usr/bin/env python
from setuptools import setup, find_packages
setup(
description='RESTful Nagios/Icinga Livestatus API',
author='Christoph Oelmueller',
url='https://github.com/zwopiR/lsapi',
download_url='https://github.com/zwopiR/lsapi',
author_email='christoph@oelmueller.info',
version='0... | zwopiR/lsapi | setup.py | Python | mit | 511 |
from __future__ import unicode_literals
from __future__ import absolute_import
import json
import logging
import logging.config
import os
class AlpineObject(object):
"""
Base Class of Alpine API objects
"""
#
# alpine alpine version string
#
_alpine_api_version = "v1"
_min_alpine_ver... | AlpineNow/python-alpine-api | alpine/alpineobject.py | Python | mit | 2,190 |
using System.Collections.Generic;
using SchoolSystem.Data.Models;
using SchoolSystem.Data.Models.CustomModels;
namespace SchoolSystem.Web.Services.Contracts
{
public interface IMarksManagementService
{
IEnumerable<SchoolReportCardModel> GetMarks(int subjectId, int classOfStudentsId);
void Ad... | HlebForms/SchoolSystemProject | SchoolSystem/SchoolSystem.Web.Services/Contracts/IMarksManagementService.cs | C# | mit | 504 |
import * as $ from 'jquery';
import { Timestamp } from 'index';
export const endlessWaiting = new Promise<void>(() => {});
export function waitDOMContentLoaded(): Promise<void> {
return new Promise(resolve => {
switch (document.readyState) {
case 'interactive': case 'complete': { resolve(); break;... | disjukr/jews | src/util.ts | TypeScript | mit | 3,495 |
namespace android.graphics.drawable
{
[global::MonoJavaBridge.JavaClass()]
public partial class AnimationDrawable : android.graphics.drawable.DrawableContainer, java.lang.Runnable, Animatable
{
internal new static global::MonoJavaBridge.JniGlobalHandle staticClass;
static AnimationDrawable()
{
InitJNI();
... | koush/androidmono | jni/MonoJavaBridge/android/generated/android/graphics/drawable/AnimationDrawable.cs | C# | mit | 13,373 |
module Gitlab
# Custom parser for GitLab-flavored Markdown
#
# It replaces references in the text with links to the appropriate items in
# GitLab.
#
# Supported reference formats are:
# * @foo for team members
# * #123 for issues
# * #JIRA-123 for Jira issues
# * !123 for merge requests
# ... | akumetsuv/gitlab | lib/gitlab/markdown.rb | Ruby | mit | 7,884 |
PHP Rest CURL
=========
PHP Rest CURL is a wrapper class for PHP, simplifying the typical CRUD requests to the extreme.
All the data passed to the server is encoded to JSON and decoded from JSON.
## Getting Started
Using it is as simple as can be.
```php
<?php
require_once('rest.inc.php');
// CALL
$result = RestCu... | ledfusion/php-rest-curl | README.md | Markdown | mit | 3,247 |
var assert = require('assert');
var wdQuery = require('../index.js');
describe('wd-query', function () {
describe('injected browser executing a Google Search', function () {
var browser, $;
before(function(){
browser = this.browser;
$ = wdQuery(browser);
});
it('performs as expected', ... | wookiehangover/wd-query | test/index.js | JavaScript | mit | 841 |
class RenameCommuniqueMessagesToCommuniqueOutgoingMessages < ActiveRecord::Migration
def up
rename_table :communique_messages, :communique_outgoing_messages
end
def down
rename_table :communique_outgoing_messages, :communique_messages
end
end
| clekstro/communique | db/migrate/20121223140443_rename_communique_messages_to_communique_outgoing_messages.rb | Ruby | mit | 260 |
/*
* Copyright 1999-2101 Alibaba Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | liufeiit/itmarry | source/geek.android/geek/src/com/alibaba/fastjson/serializer/AtomicLongArrayCodec.java | Java | mit | 2,667 |
# 简介
本风格指南的目的是展示AngularJS应用的最佳实践和风格指南。
这些最佳实践来自于:
0. AngularJS项目源码
0. 本人阅读过的源码和文章
0. 本人的实践经历
**说明1**: 这只是风格指南的草案,主要目的是通过交流以消除分歧,进而被社区广泛采纳。
**说明2**: 本版本是翻译自英文原版,在遵循下面的指南之前请确认你看到的是比较新的版本。
在本指南中不会包含基本的JavaScript开发指南。这些基本的指南可以在下面的列表中找到:
0. [Google's JavaScript style guide](http://google-styleguide.googlecode.com/svn... | chatii2412/angularjs-style-guide | README-zh-cn.md | Markdown | mit | 35,522 |
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>最短路径 | chenfy27的博客</title>
<meta name="author" content="chenfy27">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta property="og:site_name" content="chenfy27的博客"/>
<meta property="og:ima... | boyfaceone/boyfaceone.github.io | tags/最短路径/index.html | HTML | mit | 9,776 |
/*!
\file
\author Igor Mironchik (igor.mironchik at gmail dot com).
Copyright (c) 2017 Igor Mironchik
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 witho... | igormironchik/cfgfile | generator/generator.cpp | C++ | mit | 23,082 |
<!DOCTYPE html>
<html>
<head>
<title> demo </title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.css">
<link rel="stylesheet" type="text/css" href="ht... | anna-podhajska/anna-podhajska.github.io | blog/demo.html | HTML | mit | 4,027 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_80) on Thu Oct 27 12:13:59 EEST 2016 -->
<title>Uses of Class com.skobbler.ngx.map.SKAnimationSettings.SKAnimationType (SKMaps Framewor... | TrekDev/Xamarin.Android.Skobbler | src/Skobbler.Binding/Jars/docs/com/skobbler/ngx/map/class-use/SKAnimationSettings.SKAnimationType.html | HTML | mit | 10,481 |
<?php
/**
* PageSize
*
* PHP version 5
*
* @category Class
* @package DocuSign\eSign
* @author Swaagger Codegen team
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* DocuSign REST API
*
* The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for i... | docusign/docusign-php-client | src/Model/PageSize.php | PHP | mit | 5,645 |
<?php
return array (
'id' => 'apple_iphone_emulator_ver3',
'fallback' => 'apple_iphone_ver3',
'capabilities' =>
array (
'model_extra_info' => '3.0 Simulator',
),
);
| cuckata23/wurfl-data | data/apple_iphone_emulator_ver3.php | PHP | mit | 180 |
#include <iostream>
#include <string>
#include "vehicle.h"
#include "tourist.h"
int main() {
std::string cname; // name of the city
double x, y; // position of the city
double bsp, tsp, asp; // speed of bicycle, train and airplane.
std::cin >> cname >> x >> y;
City src = {x, y, cna... | MegaShow/college-programming | Homework/C++ Programming/2083 Travel(eden)/main.cpp | C++ | mit | 706 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Quotes Blog</title>
<!-- B... | JohnDivina0908/Blog | index.html | HTML | mit | 7,828 |
#!/bin/sh
set -euo pipefail
VERSION=`python setup.py --version`
MAJOR_BRANCH="`python setup.py --version | cut -d'.' -f1`.x"
IS_DEV=false
if [[ `python setup.py --version` =~ "dev" ]]; then
IS_DEV=true
fi
echo "# Releasing pyinfra v${VERSION} (branch ${MAJOR_BRANCH}, dev=${IS_DEV})"
echo "# Running tests..."
p... | Fizzadar/pyinfra | scripts/release.sh | Shell | mit | 848 |
#!/bin/bash
TMPDIR=~/.tmp
if [ $# -lt 1 ]; then
echo -e "\tusage: $0 <FASTA FILE 1> .. <FASTA FILE N>"
exit 1
fi
INPUT_FILES=$@
OUT_FILE_NAME=""
for f in $INPUT_FILES; do
if [ ! -f $f ]; then
echo File $f does not exist. Exiting.
exit 1
fi
fb=$(basename $f)
if [ -z $OUT_FILE_... | danydoerr/large_syn_workflow | run_mauve.sh | Shell | mit | 690 |
<!-- <section data-ng-controller="HomeController"> -->
<div ng-include=" '/modules/core/views/partials/page1.view.html' "></div>
<!--END HEADER SECTION -->
<div ng-include=" '/modules/core/views/partials/orderform.view.html' "></div>
<div ng-include=" '/modules/core/views/partials/paralax2.view.html' "></div>
<div c... | lwhiteley/superfly | public/modules/core/views/home.client.view.html | HTML | mit | 1,150 |
# THIS PROJECT IS NOT MAINTAINED #
# USE AT YOUR OWN RISK #
# angular2-uuid
Angular 2 UUID generator.
Uses crypto-secure PRNG window.crypto.getRandomValues() if available, otherwise fallback to Math.random();
## Install
`npm install angular2-uuid --save`
## Use
Include in Angular2 / Ionic2 project with
```
import { ... | wulfsolter/angular2-uuid | README.md | Markdown | mit | 450 |
// Type definitions for D3JS d3-scale module v1.0.3
// Project: https://github.com/d3/d3-scale/
// Definitions by: Tom Wanzek <https://github.com/tomwanzek>, Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
... | tomwanzek/d3-v4-definitelytyped | src/d3-scale/index.d.ts | TypeScript | mit | 17,011 |
<?PHP
defined('BASEPATH') OR exit('No direct script access allowed');
echo form_open($UrlPage, array('class' => 'form-horizontal'));
?>
<div class="control-group">
<label class="control-label" for="Type_PinPad">Модель пин-пада</label>
<div class="controls">
<?php echo $ID_Type_PinPad; ?>
</div>
</... | AutoTeh/term | application/views/pinpadedit.php | PHP | mit | 791 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./42b41b3f1eada6aad6c6c3276a9cc0e06849ff9ca0619de07e48f43e03dfbafa.html">Teleport</a>
<hr>
... | simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/6b5ba6626f729d3a74196f8609b00d92e3a15c98f72a5a0628d0ce632059e5ef.html | HTML | mit | 550 |
/* eslint no-var: [0] */
var path = require('path'),
assign = require('object-assign'),
pick = require('lodash.pick');
var browserWindowDefaults = {
width: 600,
height: 600
};
var webPreferencesDefaults = {
nodeIntegration: false,
javascript: true,
webSecurity: false
};
module.exports = function(b... | bjrmatos/electron-html-to | src/scripts/getBrowserWindowOpts.js | JavaScript | mit | 1,287 |
package xyz.niteshsahni.cityguidepro.activity;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.location.Location;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import a... | nsniteshsahni/City-Guide-Pro | app/src/main/java/xyz/niteshsahni/cityguidepro/activity/LocationFound.java | Java | mit | 8,105 |
# == Schema Information
#
# Table name: uploaded_files
#
# id :integer not null, primary key
# title :string
# description :text
# archive :string
# created_at :datetime not null
# updated_at :datetime not null
# publication_id :integer
#
FactoryGi... | Senhordim/loop_clipagem | spec/factories/uploaded_files.rb | Ruby | mit | 440 |
<!DOCTYPE html>
<html>
<head>
<title>RESTQuery.java</title>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
<link rel='stylesheet' type='text/css' href='../../../../coverage.css'/>
<link rel='shortcut icon' type='image/png' href='../../../../logo.png'/>
<script type='text/javascript' src=... | hideshis/scripts_for_research | MSRMiningChallenge2017/coverage-report_basex-api/org/basex/http/rest/RESTQuery.html | HTML | mit | 12,789 |
# 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::ApiManagement::Mgmt::V2016_07_07
module Models
#
# Defines values for ApiProtocolContract
#
module ApiProtocolContract
... | Azure/azure-sdk-for-ruby | management/azure_mgmt_api_management/lib/2016-07-07/generated/azure_mgmt_api_management/models/api_protocol_contract.rb | Ruby | mit | 375 |
# 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::V2017_10_01
module Models
#
# List of connection monitors.
#
class ConnectionMonitorListResult
include... | Azure/azure-sdk-for-ruby | management/azure_mgmt_network/lib/2017-10-01/generated/azure_mgmt_network/models/connection_monitor_list_result.rb | Ruby | mit | 1,576 |
using System.IO;
using System.Linq;
using Trinity.Extensions;
using Trinity.IO;
using Trinity.IO.Json;
namespace Trinity.Core
{
public class FunctionCode : ICode, ISerializable
{
private UInt160 _scriptHash;
public byte[] Script { get; set; }
public ContractParameterType[] ParameterList { get; set; }
public... | detroitpro/trinity | src/trinity/Core/FunctionCode.cs | C# | mit | 1,355 |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
#include "fonctions.h"
/*
But de la procédure : Lancer une partie ou reprendre une partie
int *grille : Tableau contenant les cases de la partie
int *score : Score de la partie
*/
void gaming (int *grille, int *score)
{
// Initialisatio... | kokno/2048-c | Code_Source/fonctions.c | C | mit | 29,801 |
package jeliot.theater;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Point;
/**
* ReferenceVariableActor represents graphically the
* variables of the reference type. It can bind
* ReferenceActor instances and render them.
*
* @author Pekka Uronen
* @author Niko Myller
... | moegyver/mJeliot | Jeliot/src/jeliot/theater/ReferenceVariableActor.java | Java | mit | 5,779 |
function load_servers(addr)
{
//ajax
$.get(addr,function(json,status){
// same as loadServers(addr)
serversElement = document.getElementById("servers-list");
var innerHtmls = "";
for (var obj in json) {
innerHtmls = innerHtmls +
" <li><a href=\"server.htm... | synusoft/HostWatcher | v2/js/serverPage.js | JavaScript | mit | 1,865 |
//
// BaseViewController.h
// RouterManager
//
// Created by 周际航 on 2017/8/14.
// Copyright © 2017年 周际航. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "XZRouterManager.h"
@interface BaseViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, XZRoutableProtocol>
@property (nonatom... | zhoujihang/ControllerRouterManager | RouterManager/RouterManager/Common/Base/BaseViewController.h | C | mit | 588 |
// -----------------------------------------------------------------------
// <copyright file="MediaManager.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------
namespace Crypton.AvChat.Gui.Media {
using System;
using System... | CryptonZylog/ueravchatclient | Crypton.AvChat.Gui/Media/MediaManager.cs | C# | mit | 591 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>知乎 - 与世界分享你的知识、经验和见解</title>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<style>
body{padding: 0;margin: 0;background: #F7FAFC;}
a{text-decoration: none;}
.index-box{width:300px;h... | wangyongtan/H5 | 2016/1109-知乎登录页/index.html | HTML | mit | 10,852 |
using System;
using System.Collections.Generic;
using System.Linq;
using NetFusion.Bootstrap.Plugins;
namespace NetFusion.Bootstrap.Health
{
/// <summary>
/// Contains a set of module associated aspects and information about
/// their current health.
/// </summary>
public class ModuleHealthCheck
... | grecosoft/NetFusion | netfusion/src/Core/NetFusion.Bootstrap/Health/ModuleHealthCheck.cs | C# | mit | 1,830 |
/* @author Arun Ramakani */
package arun.solve.route.challenge.busroutechallenge.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;... | ArunRamakani/bus_route_challenge | src/main/java/arun/solve/route/challenge/busroutechallenge/controller/DepartureArrivalRouteRest.java | Java | mit | 2,015 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>18 --> 19</title>
<link href="./../../assets/style.css" rel="stylesheet">
</head>
<body>
<h2>You have to be fast</h2>
<a href="./b1990c652889aea27b93c1bb3778412399d0673cda53efcd892bf98991711d89.html">Teleport</a>
<hr>
... | simonmysun/praxis | TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/36ad9dfde804dc007212275b0d841509d8b8b89803049dbb722857e5e7eb1f96.html | HTML | mit | 550 |
# iso-form
[](https://travis-ci.org/jasoniangreen/iso-form)
[](https://badge.fury.io/js/iso-form)
[](h... | jasoniangreen/iso-form | README.md | Markdown | mit | 1,428 |
<?php
declare(strict_types=1);
namespace Knp\DoctrineBehaviors\Tests\ORM;
use Iterator;
use Knp\DoctrineBehaviors\Contract\Entity\TreeNodeInterface;
use Knp\DoctrineBehaviors\Exception\TreeException;
use Knp\DoctrineBehaviors\Tests\AbstractBehaviorTestCase;
use Knp\DoctrineBehaviors\Tests\Fixtures\Entity\TreeNodeEnt... | KnpLabs/DoctrineBehaviors | tests/ORM/TreeNodeTest.php | PHP | mit | 13,523 |
require 'spec_helper'
feature 'Admin session handling' do
let(:admin) { create(:admin) }
scenario 'signs in with valid email and password' do
sign_in_admin admin
current_path.should == admins_services_path
end
scenario 'cannot sign in with invalid email and password' do
sign_in_admin admin, pas... | acrogenesis-lab/reporte-ciudadano | spec/features/admin/session_handling_spec.rb | Ruby | mit | 686 |
#ifndef MESH_H
#define MESH_H
#include <Animator.hpp>
#include <Config.hpp>
#include <Joint.hpp>
#include <Math.hpp>
#include <OpenGL.hpp>
#include <memory>
#include <vector>
class Material;
class Shader;
class Mesh
{
public:
struct Primitive
{
GLuint VAO;
GLenum Mode;
GLs... | benjinx/Temporality | include/Mesh.hpp | C++ | mit | 1,755 |
#
#calibrate.py
#
#calibrate fits images using darks, flats, and bias frames
#corrected image = (image - bias - k(dark-bias))/flat
#for k=1, i.e. image exp = dark exp, corrected image = (image - dark)/flat
import os
import glob
import math
import subprocess
import re
import sys
import datetime
import shutil
from decim... | mcnowinski/various-and-sundry | lightcurve/super.calibrate.py | Python | mit | 10,853 |
<?php
/**
* Myblocks
*
* Myblocks
*
* @package project
* @author Serge J. <jey@tut.by>
* @copyright http://www.atmatic.eu/ (c)
* @version 0.1 (wizard, 14:09:42 [Sep 23, 2014])
*/
//
//
class myblocks extends module {
/**
* myblocks
*
* Module class constructor
*
* @access private
*/
function myblo... | lekster/md_new | modules/myblocks/myblocks.class.php | PHP | mit | 6,288 |
import java.util.Scanner;
/**
* Created by 000 on 4.4.2017 г..
*/
public class exersiceTriangle1 {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
int n = Integer.parseInt(reader.nextLine());
for (int i = 1; i <= n; i++) {
for (int j = 1; j <=... | sineochk/Softuni-courses | Programming Basics - march 2017/Exercises/5. DrawingWithLoops/src/exersiceTriangle1.java | Java | mit | 560 |
-- The task is to refactor given functions into more Haskell idiomatic style
------------------------ (1) ----------------------------
-- Before:
fun1 :: [Integer] -> Integer
fun1 [] = 1
fun1 (x:xs)
| even x = (x - 2) * fun1 xs
| otherwise = fun1 xs
-- After:
fun1' :: [Integer] -> Integer
fun1' = product . map ... | vaibhav276/haskell_cs194_assignments | higher_order/Wholemeal.hs | Haskell | mit | 702 |
/**
* Test case for knListItemArrowIcon.
* Runs with mocha.
*/
"use strict";
const knListItemArrowIcon = require('../lib/kn_list_item_arrow_icon.js'),
assert = require('assert');
describe('kn-list-item-arrow-icon', () => {
before((done) => {
done();
});
after((done) => {
done();
... | kanna-lab/kanna-lib-components | test/kn_list_item_arrow_icon_test.js | JavaScript | mit | 404 |
---
layout: post
title: If Only He Practiced It
date: '2004-11-05 01:34:35 -0700'
mt_id: 830
blog_id: 1
post_id: 830
basename: if-only-he-practiced-it
categories:
- politics
---
<br />Quote from John Kerry's <a href="http://www.johnkerry.com/pressroom/speeches/spc_2004_1103.html">concession speech</a>: "But in an Ameri... | bbrown/bbrown.github.com | _posts/2004-11-05-if-only-he-practiced-it.markdown | Markdown | mit | 783 |
/**
* Class GameController
* @author Patricio Ferreira <3dimentionar@gmail.com>
* Copyright (c) 2017 nahuelio. All rights reserved.
**/
#include <iostream>
#include "headers/GameController.h"
#include "headers/WindowController.h"
#include "game/headers/ViewportController.h"
#include "game/headers/KeyboardController... | kuakman/game | src/com/nahuelio/game/controller/GameController.cpp | C++ | mit | 2,948 |
Mobird.defineModule('modules/scroller', function(require, exports, module) {
var elementStyle = document.createElement('div').style;
var vendor = (function() {
var vendors = ['t', 'webkitT', 'MozT', 'msT', 'OT'],
transform,
i = 0,
l = vendors.length;
for (; i < l; i++) {
transform ... | pinkpoppy/practice | Mobrid/packages/modules/scroller/index.js | JavaScript | mit | 56,242 |
/*global $:true, Backbone:true, _:true, App:true */
/*jshint browser:true */
/*jshint strict:false */
App.Models.Controller = Backbone.Model.extend({
defaults: {
socket: false
},
initialize: function(opts) {
}
});
| simonswain/lancaster | lib/server/public/js/models/controller.js | JavaScript | mit | 228 |
/* eslint-disable no-undef */
/* eslint-disable no-unused-vars */
const documents = {
indexList: []
};
const elements = {
indexInput: null,
indexTable: null
};
function isCorrect(index) {
return index.length === 6;
}
function addIndex(index) {
documents.indexList.push(index);
elements.indexTable.append(... | apt-ma/posthelper-desktop | src/modules/f20-print/js/main.js | JavaScript | mit | 1,213 |
import time
def check_vertical(matrix):
max_product = 0
for row in xrange(0, len(matrix)-3):
for col in xrange(0, len(matrix)):
product = matrix[row][col] * matrix[row+1][col] * matrix[row+2][col] * matrix[row+3][col]
max_product = max(product, max_product)
return max_product
def check_horizontal(matrix)... | CianciuStyles/project-euler | 011.py | Python | mit | 1,763 |
.footer {
position: relative;
clear: both;
box-sizing: border-box;
height: 60px;
margin-top: -60px;
padding: 15px;
border-top: 1px solid #e7e7e7;
line-height: 30px;
p {
color: #777;
}
}
| fs/backbone-base | app/stylesheets/modules/footer.css | CSS | mit | 211 |
<?php
namespace OreSpark\Bundle\DoctrineBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link h... | tylerbeal/ore-spark-symfony2 | src/OreSpark/Bundle/DoctrineBundle/DependencyInjection/Configuration.php | PHP | mit | 897 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | nyrocron/tracking-server | tracker/migrations/0001_initial.py | Python | mit | 2,159 |
<!doctype html>
<!--
Minimal Mistakes Jekyll Theme 4.5.1 by Michael Rose
Copyright 2017 Michael Rose - mademistakes.com | @mmistakes
Free for personal and commercial use under the MIT license
https://github.com/mmistakes/minimal-mistakes/blob/master/LICENSE.txt
-->
<html lang="en" class="no-js">
<head>
<... | vahid-dan/ipop-project.github.io | _site/wiki/Configuration.html | HTML | mit | 20,183 |
package jiguang.chat.activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import butterknife.Bind;
import butterknife.ButterKnife;
import ... | jpush/jchat-android | chatapp/src/main/java/jiguang/chat/activity/GroupAvatarActivity.java | Java | mit | 3,130 |
<!DOCTYPE html>
<html ng-app="OgilvyOne">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Log in</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">... | trantuanckc/ogilvyone-blog | server/views/login.html | HTML | mit | 1,001 |
<?php
namespace eMapper\Regex;
use eMapper\Mapper;
/**
* Tests parsing an array mapping expression
*
* @author emaphp
* @group regex
*/
class ArrayRegexTest extends \PHPUnit_Framework_TestCase {
const REGEX = Mapper::ARRAY_TYPE_REGEX;
public function testSimpleArray1() {
$expr = 'array';
$result = preg_... | emaphp/eMapper | tests/eMapper/Regex/ArrayRegexTest.php | PHP | mit | 5,806 |
package com.ami.gui2go;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.webkit.WebView;
import android.webkit... | amigold/Gui2Go | src/com/ami/gui2go/UserGuideActivity.java | Java | mit | 3,114 |
=begin
= rds.rb
*Copyright*:: (C) 2013 by Novu, LLC
*Author(s)*:: Tamara Temple <tamara.temple@novu.com>
*Since*:: 2013-02-26
*License*:: GPLv3
*Version*:: 0.0.1
== Description
=end
require 'fog'
module Rds::S3::Backup
class MyRDSException < RuntimeError ; end
class MyRDS
def ini... | novu/rds-s3-backup-gem | lib/rds-s3-backup/myrds.rb | Ruby | mit | 4,502 |
<div class="form-group">
<label for="Username" class="control-label">Username</label>
<input class="form-control" #name type="text" autofocus placeholder="Username">
</div>
<div class="form-group">
<label for="Password" class="control-label">Password</label>
<input class="form-control" #pwd type=... | antonsirocka/angular2-moviedb | src/MovieDatabase_NetCoreApp/wwwroot/app/components/register/register.component.html | HTML | mit | 922 |
export {default} from 'ember-frost-demo-components/components/frost-file-node/component'
| sophypal/ember-frost-demo-components | app/components/frost-file-node.js | JavaScript | mit | 89 |
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\TwigBundle\TwigBun... | odino/odino_org | app/AppKernel.php | PHP | mit | 1,265 |
import { getEvent, eventMap } from '../../src/module/moveRow/event';
import { EMPTY_TPL_KEY } from '../../src/common/constants';
describe('drag', () => {
describe('getEvent', () => {
let events = null;
beforeEach(() => {
});
afterEach(() => {
events = null;
});
... | baukh789/GridManager | test/moveRow/event_test.js | JavaScript | mit | 1,254 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="google-site-verification" content="xBT4GhYoi5qRD5tr338pgPM5OWHHIDR6mNg1a3euekI" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="descri... | Rothdyt/rothdyt.github.com | _site/optimization/2016/11/07/CH2.1/index.html | HTML | mit | 25,275 |
package org.lcr.server.entity;
import java.io.Serializable;
import java.util.Date;
@SuppressWarnings("unused")
public class AccessTokenEntity implements Serializable {
private static final long serialVersionUID = 3204873801685152409L;
private String loginName;
private String password;
private String acces... | lcrappserver/app-server | appserver/src/main/java/org/lcr/server/entity/AccessTokenEntity.java | Java | mit | 1,263 |
output = function() {
navigator.camera.getPicture(function(imageData) {
cb({ imageData: $.create(imageData) });
}, function(err) {
cb({ error: $.create(err) });
}, {
quality: $.quality,
sourceType: Camera.PictureSourceType[$.sourceType],
allowEdit: $.allowEdit,
encodingType: Camera.Encodin... | nodule/phonegap | nodes/getPicture/node.js | JavaScript | mit | 417 |
#!/usr/bin/env bash
. util.sh
checkroot
ufw allow 80/tcp || { log "Failed to add firewall rule"; exit 1; }
ufw allow 443/tcp || { log "Failed to add firewall rule"; exit 1; }
ufw allow ${SSH_PORT}/tcp || { log "Failed to add firewall rule"; exit 1; }
ufw allow ${OPENVPN_PORT}/udp || { log "Failed to add firewal... | ppruitt/site | scripts/configure_firewall.sh | Shell | mit | 399 |
module Czechit
VERSION = "0.0.1"
end
| michalvich/czechit | lib/czechit/version.rb | Ruby | mit | 39 |
<extend name="template/base_index" />
<block name="area_header">
<link rel="stylesheet" href="__CSS__/shangjia.css">
</block>
<block name="area_body">
<include file='Widget/sjtop' />
<div class="seller_main clearfix" controller="seller/common">
<div class="seller_content_wrap">
<div class="seller_content"... | h136799711/201506bbjie | Application/Home/View/default/Usersj/sj_zhaq.html | HTML | mit | 4,402 |
<?php
if(!defined('INCLUDE_CHECK')) header("Location: 404.php");
/* Database config */
//Local
$db_host = 'localhost';
$db_user = 'root';
$db_pass = 'password';
$db_database = 'kunalsha_fashioncents_blog';
/* Server
$db_host = 'sql308.byethost22.com';
$db_user = 'b22_19030898';
$db_pass = 'F4shion$... | KKsharma99/fashioncents | blogconnect.php | PHP | mit | 718 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.