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 |
|---|---|---|---|---|---|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>cfgv: 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.10.2-2.0.6/released/8.12.2/cfgv/8.9.0.html | HTML | mit | 6,931 |
---
author: chipoglesby
comments: true
date: 2012-05-09 13:39:16+00:00
excerpt: Rambling thoughts about posting more and the future of online only newspapers.
layout: post
slug: back-to-blogging-focus-on-passion-and-keep-it-short
title: 'Back to blogging: Focus on passion and keep it short'
wordpress_id: 27606
categori... | chipoglesby/chipoglesby.github.io | _posts/blog/2012-05-09-back-to-blogging-focus-on-passion-and-keep-it-short.md | Markdown | mit | 2,394 |
# Maps the jobs database table and validates the data.
class Job < ActiveRecord::Base
has_many :offers
validates :name, presence: true
validates :description, presence: true
validates :owner_id, presence: true
validate :owner_id_should_be_string
validates :status, presence: true, inclusion: {
in: %w(CRE... | talosdigital/TDJobs | app/models/job.rb | Ruby | mit | 1,185 |
---
layout: post
status: publish
published: true
title: Drizzle 2011.02.10 (RC) tarball has been released
author: Patrick Crews
author_login: pcrews
author_email: gleebix@gmail.com
wordpress_id: 1031
wordpress_url: http://blog.drizzle.org/?p=1031
date: 2011-02-15 10:10:00.000000000 +00:00
categories:
- Release
tags: []... | DrizzleFoundation/DrizzleFoundation.github.io | _posts/2011-02-15-drizzle-2011-02-10-tarball-has-been-released.markdown | Markdown | mit | 3,249 |
#ifndef SFC_COLORBUFFER_H
#define SFC_COLORBUFFER_H
#include <algorithm>
#include "../color/colorArray.h"
template <typename Display, typename Frontend, size_t Size, size_t ChunkSize, bool EqualColors>
class ColorBufferT;
/** \brief ColorBufferT specialized for equal color types in backend and frontend
* \tparam ... | crteensy/sfc | pageBuffer/ColorBuffer.h | C | mit | 3,270 |
#twitter_php
Using the Twitter API in PHP to get the latest tweets from a user
###API Key
To get an OAuth API Key, sign in to twitter.com and register an application from the https://apps.twitter.com page.
Add your Keys to the twitter.php file.
###Changelog
12/11/2014 - Initial realease
| qhaensler/twitter_php | README.md | Markdown | mit | 291 |
module Plugins
class Whoami
def initialize
# Any magic preparations needed go here
end
def self.info
plugin = Hash.new
plugin['name'] = 'whoami'
plugin['author'] = 'lukaszraczylo'
plugin['handle'] = 'whoami'
plugin['description'] = 'Print information a... | lukaszraczylo/github-manager | plugins/whoami.rb | Ruby | mit | 559 |
# Automaton_Lib
Automaton_Lib kompiliert das Beispiel MRT2_VL-3_Automaton zu einer statischen Bibliothek. Das Projekt ist schon so voreingstellt, dass es für die Platformen x86 und arm kompiliert werden kann.
### "automaton" Bibliothek für x86 kompilieren
1. Beispielprojekt MRT2_VL-3_Automaton_Lib aus dem Repository ... | plt-tud/PLT_MRT_ARM-RPi2 | Vorlesungsbeispiele/MRT2_VL-3_Automaton_Lib/README.md | Markdown | mit | 1,482 |
<?php namespace Vdbf\Pushover\Exception;
use Exception;
class RequestClientException extends Exception
{
}
| vdbf/pushover-php | src/Exception/RequestClientException.php | PHP | mit | 116 |
using Twilio.TwiML;
class Example
{
static void Main()
{
var response = new VoiceResponse();
response.Say("You will now be connected to an agent.");
System.Console.WriteLine(response.ToString());
}
}
| teoreteetik/api-snippets | twiml/voice/queue/queue-2/queue-2.5.x.cs | C# | mit | 239 |
/**
* Factory based on OS output
*
*/
var OS = require( "os" );
//Webcam types
var FSWebcam = require( "./webcams/FSWebcam.js" );
var ImageSnapWebcam = require( "./webcams/ImageSnapWebcam.js" );
var WindowsWebcam = require( "./webcams/WindowsWebcam.js" );
//Main singleton
var Factory = new function() {
... | chuckfairy/node-webcam | src/Factory.js | JavaScript | mit | 911 |
Personal blog using design of site by Leonard Lamprecht (http://leo.im).
| pocoapoco/pocoapoco.github.io | README.md | Markdown | mit | 74 |
<div class="row">
<div class="section-title text-center">
<h3>财政收支分类</h3>
<p>我需要知道我的钱都花在那些方面了</p>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<form name="form" role="form" novalidate>
<div class="row">
<div class="col-md-12"... | benbenguo/family | family/web-app/modules/finance-category/create-finance-category.html | HTML | mit | 3,830 |
// "C" is for cookie, that's good enough for me.
function getCookie(cname) {
var name = cname + "=";
var ca = document.cookie.split(";");
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == " ") c = c.substring(1);
if (c.indexOf(name) == 0) return c.substring(name.length, c.len... | mca62511/pokejisho | js/cookies.js | JavaScript | mit | 655 |
body {
margin: 0;
font-size: 26px;
font-family: Helvetica;
}
h1, h2, h4 {
margin: 0;
}
h1 {
font-family: Lobster, sans-serif;
font-size: 100px;
line-height: 80px;
max-width: 200px;
overflow: visible;
}
h2, h4 {
color: grey;
line-height: 30px;
}
h1 span {
font-size: 70px;
}
.header {
text-... | rodrigodebenito/icp-design-and-code-3 | week-4/workshop/css/main.css | CSS | mit | 749 |
module SaucelabsAdapter
class Tunnel
def self.factory(selenium_config)
tunnels = {
:saucetunnel => SauceTunnel,
:sauceconnecttunnel => SauceConnectTunnel,
:sshtunnel => SshTunnel,
:othertunnel => OtherTunnel
}
raise_with_message "Unknown tunnel type #{selenium_c... | pivotal/saucelabs-adapter | lib/saucelabs_adapter/tunnel.rb | Ruby | mit | 815 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ptsf: 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.10.2-2.0.6/released/8.14.1/ptsf/8.8.0.html | HTML | mit | 7,258 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>aac-tactics: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.04.2-2.0.5/released/8.6/aac-tactics/8.9.0.html | HTML | mit | 7,695 |
export default class Player extends Phaser.Sprite {
constructor(game) {
super(game, 0, 0, 'hero');
// enable physics for the player
this.game.physics.arcade.enableBody(this);
this.scale.setTo(1.1);
this.body.collideWorldBounds = true;
this.game.physics.arcade.enable(... | wylie99998/OSUCS419RTS | src/prefabs/Player.js | JavaScript | mit | 1,884 |
/*
* Owl Carousel Owl Demo Theme
* v1.3.3
*/
.owl-theme .owl-controls {
max-width: 500px;
margin: 0 auto;
}
/* Styling Next and Prev buttons */
.owl-theme .owl-controls .owl-buttons div{
color: #FFF;
display: inline-block;
zoom: 1;
*display: inline;/*IE7 life-saver */
margin: 5px;
padding: 3px 10px;
... | mucyomiller/goohs | public/css/owl.theme.css | CSS | mit | 1,672 |
//GET /quizes/question
exports.question = function(req, res){
res.render('quizes/question', {pregunta: 'Capital de Italia'});
};
//GET quizes/answer
exports.answer = function(req, res){
if(req.query.respuesta === 'Roma'){
res.render('quizes/answer', {respuesta: 'Correcto'});
}else{
res.render('quizes/answer', ... | diegovknight/mod07 | controllers/quiz_controller.js | JavaScript | mit | 354 |
<ion-view view-title="Smile">
<ion-content>
<div class="card">
<div class="item item-text-wrap">
<p>{{quote.quote}} - <span class="author">{{quote.author}}</span></p>
</div>
</div>
<div id="smile-button-container">
<a id="smile-button" ng-click="addSmile()" class="button but... | ishg/Smile | www/templates/tab-smile.html | HTML | mit | 2,095 |
using System.Runtime.InteropServices;
namespace LibGit2Sharp.Core.Handles
{
internal class GitConfigEntryHandle : NotOwnedSafeHandleBase
{
public GitConfigEntry MarshalAsGitConfigEntry()
{
return (GitConfigEntry)Marshal.PtrToStructure(handle, typeof(GitConfigEntry));
}
}... | yishaigalatzer/LibGit2SharpCheckOutTests | LibGit2Sharp/Core/Handles/GitConfigEntryHandle.cs | C# | mit | 323 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>error-handlers: 13 s 🏆</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.04.2-2.0.5/released/8.5.2~camlp4/error-handlers/1.1.1.html | HTML | mit | 6,675 |
"""
The :mod:`sklearn.metrics` module includes score functions, performance metrics
and pairwise metrics and distance computations.
"""
from . import cluster
from .classification import accuracy_score
from .classification import brier_score_loss
from .classification import classification_report
from .classification im... | DailyActie/Surrogate-Model | 01-codes/scikit-learn-master/sklearn/metrics/__init__.py | Python | mit | 3,388 |
// Color.cpp
// Sketchup C++ Wrapper for C API
// MIT License
//
// Copyright (c) 2017 Tom Kaneko
//
// 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... | TommyKaneko/Sketchup-API-C-Wrapper | src/SUAPI-CppWrapper/Color.cpp | C++ | mit | 1,920 |
/*
* Injectors - Base Header
*
* Copyright (C) 2012-2014 LINK/2012 <dma_2012@hotmail.com>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to an... | thelink2012/modloader | deps/injector/include/injector/gvm/gvm.hpp | C++ | mit | 6,224 |
require "test_helper"
class TestOrangemmsNet < Test::Unit::TestCase
include MMS2R::TestHelper
def test_orangemms_subject
# orangemms.net service
mail = mail('orange-uk-image-01.mail')
mms = MMS2R::Media.new(mail)
assert_equal "5551234", mms.number
assert_equal "orangemms.net", mms.carrier
... | monde/mms2r | test/test_orangemms_net.rb | Ruby | mit | 3,173 |
// WARNING: This code is auto-generated from the BaseCRM API Discovery JSON Schema
package com.getbase.services;
import com.getbase.http.HttpClient;
import com.getbase.models.Task;
import com.getbase.serializer.JsonDeserializer;
import com.getbase.serializer.JsonSerializer;
import com.getbase.serializer.Views;
import... | basecrm/basecrm-java | src/main/java/com/getbase/services/TasksService.java | Java | mit | 4,966 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>search-trees: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.mi... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.04.2-2.0.5/released/8.7.1+2/search-trees/8.5.0.html | HTML | mit | 7,055 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | kuhlenh/port-to-core | Reports/mv/mvvmcross.hottuna.mvvmcrosslibraries.3.5.1/Cirrious.MvvmCross-win81.html | HTML | mit | 14,157 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windo... | fabbrin/KinecTool | Kinect_RPS_Game/MainWindow.xaml.cs | C# | mit | 12,719 |
using System;
using System.Linq;
using IDI.Central.Common;
using IDI.Central.Common.Enums;
using IDI.Central.Core;
using IDI.Central.Domain.Modules.Sales.Commands;
using IDI.Central.Domain.Modules.Sales.Queries;
using IDI.Central.Models.Sales;
using IDI.Core.Authentication;
using IDI.Core.Common;
using IDI.Core.Common... | idi-studio/com.idi.central.api | src/IDI.Central/Controllers/VoucherController.cs | C# | mit | 3,509 |
(function () {
window._paddingsTest = function () {
var test = function (padding) {
for (var len = 0; len <= 32; len++) {
var initialArray = random.default.getUint8Array(len);
var padded = padding.pad(initialArray, 16, random.default);
var padCount = padding.unpad(padded);
if (padCount == -1) {
... | Zergatul/zChat | client/unit.tests.js | JavaScript | mit | 5,900 |
<html>
<head>
<title>Mozilla/5.0 (Playstation Vita 1.50) AppleWebKit/531.22.8 (KHTML, like Gecko) Silk/3.2</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" r... | ThaDafinser/UserAgentParserComparison | v3/user-agent-detail/4d/c1/4dc19ae0-ee8e-4d88-857c-a1d158548135.html | HTML | mit | 37,712 |
/* -*-c-*- */
/*
* included by eval.c
*/
static void
warn_printf(const char *fmt, ...)
{
VALUE str;
va_list args;
va_init_list(args, fmt);
str = rb_vsprintf(fmt, args);
va_end(args);
rb_write_error_str(str);
}
#define warn_print(x) rb_write_error(x)
#define warn_print2(x,l) rb_write_error2(... | ontouchstart/docker-ruby-2.2 | ruby-2.2.0/eval_error.c | C | mit | 6,859 |
package org.fuckboi
import org.scalatest.{Matchers, FlatSpec}
import java.io._
class InputTest extends FuckboiGeneratorTest{
it should "read integer from input" in {
writeToFile(path, "123")
val code =
"NETFLIX\n" +
"IS IT TOO LATE NOW TO SAY SORRY? \"Input a number:\"\n" +
"YO result\n" +... | VirenMohindra/Fuckboi | src/test/scala/org/fuckboi/InputTest.scala | Scala | mit | 1,392 |
#!/usr/bin/env node
const NumberUtil = require("../js/lib/number-util.js");
var Z80_assemble = require('../js/Z80/assembler');
var MZ_TapeHeader = require('../js/lib/mz-tape-header');
var changeExt = require('../js/lib/change-ext.js');
var fs = require('fs');
var getPackageJson = require("./lib/get-package-json");
var ... | takamin/mz700-js | bin/mzasm.js | JavaScript | mit | 4,492 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Coq bench</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet... | coq-bench/coq-bench.github.io-old | clean/Linux-x86_64-4.02.1-1.2.0/unstable/8.4.dev/contrib:amm11262/dev/index.html | HTML | mit | 5,444 |
---
layout: page
title: Sky Systems Award Ceremony
date: 2016-05-24
author: Jennifer Swanson
tags: weekly links, java
status: published
summary: Lorem ipsum dolor sit amet, consectetur.
banner: images/banner/leisure-02.jpg
booking:
startDate: 11/01/2019
endDate: 11/03/2019
ctyhocn: DTTNVHX
groupCode: SSAC
publi... | KlishGroup/prose-pogs | pogs/D/DTTNVHX/SSAC/index.md | Markdown | mit | 2,916 |
var path = require('path');
var gulp = require('gulp');
var tsc = require('gulp-tsc');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var compass = require('gulp-compass');
const CONF_PATH = 'conf/';
const SRC_PATH = 'frontend_src/';
const PUBLIC_PATH = 'public/';
gulp.task('tsc', function(... | dameleon/doorman | gulpfile.js | JavaScript | mit | 1,201 |
#Sequences of actual rotors used in WWII, format is name, sequences, turnover notch(es)
rotor_sequences = {
'I': ('EKMFLGDQVZNTOWYHXUSPAIBRCJ', ('Q')),
'II': ('AJDKSIRUXBLHWTMCQGZNPYFVOE', ('E')),
'III': ('BDFHJLCPRTXVZNYEIWGAKMUSQO', ('V')),
'IV': ('ESOVPZJAYQUIRHXLNFTGKDCMWB', ('J')),
'V... | jossthomas/Enigma-Machine | components/Default_Settings.py | Python | mit | 2,231 |
GameLoop
========
C#でゲームループを回すためのクラス
動作は呼び出し元(GameStart()したスレッド)とは別のスレッドで動作します
.NETの命名規則を無視していたりそもそも設計がひどかったりであまりオススメできません。
使い方:
TNKTLib.FPSTimer timer = new FPSTimer();
timer.Fps = 30;
timer.GameInit += () => {};//初期化処理を追加。他のイベントもこれと同じ型
timer.GameUpdate += timer_GameUpdate;//毎フレーム呼び出される更新処... | tnkt37/GameLoop | README.md | Markdown | mit | 665 |
/*
* ui.c - Common UI routines.
*
* Written by
* Andreas Boose <viceteam@t-online.de>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public L... | century-arcade/src | c64/vice-2.4/src/arch/unix/gui/ui.c | C | mit | 2,244 |
<?php
/* SoccerLandingBundle:Base:footer.html.twig */
class __TwigTemplate_98c202dddf3369bfcba6f8cea3be40dcfe34562af54b73d19e740e42a2cba45d extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = ar... | malioret/ConnectedSoccerApi | app/cache/dev/twig/0f/0fcb621461017b5c5b6ecd2a861357fa79ddd70d83936ec97661f9aa287c40db.php | PHP | mit | 3,419 |
<?php
namespace App\Models;
use App\Util\C;
/**
* Class GeneratorListEntry
* @package App\Models
* @property integer generator_list_id
* @property integer section_id
* @property integer meeting_id
* @property boolean required
*/
class GeneratorListEntry extends BaseModel
{
public $timestamps = false;
... | jregistr/myAgenda | app/Models/GeneratorListEntry.php | PHP | mit | 637 |
import { Pipe, PipeTransform } from '@angular/core';
import * as _ from 'lodash';
@Pipe({
name: 'myErrorsToList'
})
export class ErrorsToListPipe implements PipeTransform {
transform(value: {[key: string]: string | boolean}): any[] {
return _.toArray(value);
}
}
| damnko/angular2-django-movies | angular2-client/src/app/shared/pipes/errors-to-list.pipe.ts | TypeScript | mit | 275 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... | ymcao/TopNewsIOS | ProDevForIOS/React-Native-0.21-stable/website/layout/AutodocsLayout.js | JavaScript | mit | 14,360 |
<!DOCTYPE html>
<html>
<head>
<title>Be right back.</title>
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
<style>
html, body {
height: 100%;
}
body {
margin: 0;
... | wsmwason/3bow-net | resources/views/errors/404.blade.php | PHP | mit | 1,104 |
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
namespace Timers
{
/// <summary>
/// A timer based on System.Windows.Forms.Timer. Should be used for Windows Forms applications only.
/// Calls the TimerFired method every 10 seconds. Starts immed... | mika-s/Misc | CSharp/Timers/SystemWindowsFormsTimer.cs | C# | mit | 2,170 |
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CodeContracts;
namespace TestFoundations.UnitTests
{
[ContractMessage("class level")]
[ContractException(typeof(ArgumentException))]
public class Cu... | NickRusinov/CodeContracts.Fody | TestFoundations/TestFoundations.UnitTests/CustomContractClassLevelAttribute.cs | C# | mit | 1,049 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eo" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About ncicoin</source>
<translation>Pri ncicoin</translation>
</messag... | an420/123 | src/qt/locale/bitcoin_eo.ts | TypeScript | mit | 98,465 |
/*
* Copyright (C) 2004-2015 FBReader.ORG Limited <contact@fbreader.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later ... | zhqhzhqh/FbreaderJ | app/src/main/cpp/NativeFormats/fbreader/src/formats/html/HtmlReader.cpp | C++ | mit | 10,210 |
/** @jsx jsx */
import { Transforms } from 'slate'
import { jsx } from '../../..'
export const run = editor => {
Transforms.delete(editor)
}
export const input = (
<editor>
<block>
<anchor />
one
</block>
<block>
<focus />
two
</block>
</editor>
)
export const output = (
... | ianstormtaylor/slate | packages/slate/test/transforms/delete/selection/block-hanging-single.tsx | TypeScript | mit | 409 |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
using System;
using Microsoft.Owin.Security;
using Weibo;
namespace Owin
{
/// <summary>
/// Extension methods for using <see cref="WeiboAuthenticationMiddleware"/>
/// </su... | LionLai/OWINWeiboOAuth | WeiboAuthenticationExtensions.cs | C# | mit | 1,998 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Code Coverage for C:\xampp\htdocs\monitor\application/controllers/login.php</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-respo... | kveeen/monitorTA | application/tests/build/coverage/controllers_login.php.html | HTML | mit | 13,562 |
# -*- coding: utf-8
try:
import xml.etree.cElementTree as ET
except ImportError:
import xml.etree.ElementTree as ET
try:
import simplejson as json
except ImportError:
import json
ADDRESS_FIELDS = (
'first', 'middle', 'last', 'salutation', 'email', 'phone',
'fax', 'mobile', 'addr1', 'addr2', ... | derekperry/oaxmlapi | oaxmlapi/utilities.py | Python | mit | 4,499 |
<?php
/**
* Created by PhpStorm.
* User: songzhen
* Date: 2016/7/27
* Time: 14:19
*/
namespace OpenWechat\Auth;
use Doctrine\Common\Cache\Cache;
use OpenWechat\Core\AbstractAPI;
class AccessToken extends AbstractAPI
{
protected $appid;
protected $accessTokenPrefix;
protected $refreshTokenPrefix;
... | Tobecoder/OpenWechat | src/Auth/AccessToken.php | PHP | mit | 2,953 |
using BizHawk.Common;
using BizHawk.Common.NumberExtensions;
namespace BizHawk.Emulation.Cores.Nintendo.NES
{
//AKA mapper 67
//this may be confusing due to general chaos with the early sunsoft mappers. see docs/sunsoft.txt
public sealed class Sunsoft3 : NES.NESBoardBase
{
//configuration
int prg_bank_mask_16... | superusercode/RTC3 | Real-Time Corruptor/BizHawk_RTC/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/Boards/Sunsoft3.cs | C# | mit | 5,301 |
// RUN: %check --only -e %s -Wno-unused-label -Wno-dead-code
int f(void);
_Noreturn void noreturn(void);
int main()
{
switch(f()){
case 1:
f();
__attribute((fallthrough));
case 2:
__attribute((fallthrough));
case 3:
case 4:
;
__attribute((fallthrough)); // CHECK: error: fallthrough statement... | bobrippling/ucc-c-compiler | test/cases/switch/fallthrough.c | C | mit | 1,932 |
@font-face {
font-family: 'Raleway-Light';
font-style: normal;
font-weight: 300;
src: local('Raleway Light'), local('Raleway-Light'), url("//themes.googleusercontent.com/static/fonts/raleway/v7/-_Ctzj9b56b8RgXW8FArib3hpw3pgy2gAi-Ip7WPMi0.woff") format('woff');
}
@font-face {
font-family: 'Raleway';
font-sty... | leacar21/usm | web-app/app/stylesheets/fonts.css | CSS | mit | 506 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fcsl-pcm: 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.08.1-2.0.5/released/8.13.2/fcsl-pcm/1.1.0.html | HTML | mit | 7,502 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq: 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.09.1-2.0.6/released/8.8.2/metacoq/1.0~alpha2+8.11.html | HTML | mit | 7,681 |
[25, "hi", true]
| msfrisbie/pjwd-src | Chapter23JSON/Syntax/Arrays/ArraysExample02.js | JavaScript | mit | 17 |
use strict;
use warnings;
use 5.018;
chomp(my @lines = <>);
foreach (@lines){
if(/\./){
say $_;
}
}
| moosan63/LearningPerl | chapter7/ex7-3.pl | Perl | mit | 118 |
import Page from '../layouts/page';
import MainContent from '../layouts/main-content';
import PersonHeader from '../components/person-header';
import LevelContainer from '../components/level-container';
export default () => (
<Page>
<PersonHeader />
<MainContent>
<LevelContainer />
</MainContent>
... | jorgeherrera1/skill-matrix | pages/person.js | JavaScript | mit | 332 |
# modui-field
modui-field is an abstract class that is extended to provide a consistent interface for getting, setting, and validating values of modui components. Imagine we have a form that contains name, age, and locationn fields. If all our fields extend modui-field, setting the values of the fields in the form is ... | rotundasoftware/modui-field | README.md | Markdown | mit | 4,339 |
@import '../../../node_modules/normalize.css/normalize.css';
@import '../variables.css';
*, *:before, *:after {
box-sizing: inherit;
}
html {
color: #222;
font-weight: 100;
font-size: 1em; /* ~16px; */
font-family: var(--font-family-base);
line-height: 1.375; /* ~22px */
background: #F0F0F0;
box-sizin... | bencallis1/the-shop | src/components/App/App.css | CSS | mit | 2,350 |
module Smithy
class Engine < ::Rails::Engine
isolate_namespace Smithy
class << self
attr_accessor :root
def root
@root ||= Pathname.new(File.expand_path('../../', File.dirname(__FILE__)))
end
end
# app/inputs for formtastic
config.autoload_paths += %W(#{config.root}/lib... | sterrym/smithycms | lib/smithy/engine.rb | Ruby | mit | 1,978 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>aac-tactics: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.04.2-2.0.5/released/8.5.1/aac-tactics/8.11.0.html | HTML | mit | 7,622 |
_tmpl.link_entity = function( entity, tagName, returnHTML, count ){
if( !entity )
return false
if( tagName && typeof tagName == 'object' )
return _tmpl.link_entity(
entity,
tagName['tagName'] || null,
tagName['returnHTML'] || null,
tagName['count'] || null
)
tagName = tagName || 'a'
re... | Diablohu/WhoCallsTheFleet | source/js-app/templates/link_entity.js | JavaScript | mit | 1,109 |
---
title: 'Book shoppin’…'
author: manos_parzakonis
layout: post
permalink: /book-shoppin/
aktt_notify_twitter:
- yes
aktt_tweeted:
- 1
categories:
- infos
tags:
- book
- code
- programming
- R
---
I honestly have no book on R programming. In fact I have not a single book on programming at al... | statsravingmad/statsravingmad.github.io | _posts/2011-11-24-book-shoppin.md | Markdown | mit | 771 |
require 'syncano/active_record/association/base'
class Syncano
module ActiveRecord
module Association
# Class for belongs to association
class BelongsTo < Syncano::ActiveRecord::Association::Base
attr_reader :associated_model, :foreign_key, :source_model
# Constructor for belongs_to ... | Syncano/syncano-ruby | lib/syncano/active_record/association/belongs_to.rb | Ruby | mit | 780 |
/*!
* Start Bootstrap - Grayscale Bootstrap Theme (http://startbootstrap.com)
* Code licensed under the Apache License v2.0.
* For details, see http://www.apache.org/licenses/LICENSE-2.0.
*/
body {
width: 100%;
height: 100%;
font-family: Lora,"Helvetica Neue",Helvetica,Arial,sans-serif;
color: #fff... | ShawnJu/blogTemp | app/css/grayscale.css | CSS | mit | 14,905 |
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/l... | dsbaars/jq-ui-draggable-collision | examples/jquery-ui-draggable-collision-event-example.html | HTML | mit | 3,681 |
if [ -d boost ]; then
echo "-- Boost already installed"
exit 0
fi
echo -n "-- Downloading Boost library"
curl --silent "http://netix.dl.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.bz2" > boost_1_60_0.tar.bz2
RET=$?
if [ $RET -ne 0 ]; then
echo " failed"
exit $RET
fi
echo " done"
echo -n "-- Ex... | mikevo/uibk-acc | boost_install.sh | Shell | mit | 644 |
/* eslint-disable no-await-in-loop */
const assert = require('assert');
const TestUtils = require('../utils');
const query1 = `SELECT 1 AS id, 'blue' AS color`;
function wait(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
async function testBatchToCompletion(config) {
const utils = new TestUti... | rickbergfalk/sqlpad | server/test/api/query-result-stores.js | JavaScript | mit | 2,035 |
<div class="page-header" data-ng-controller="HeaderController">
<div class="logo pull-left">
<a class="navbar-brand" ui-sref="home">Attobyte</a>
</div>
<div class="left pull-left">
<ul class="navbar-nav nav">
<li data-ng-repeat="item in menus.main" ui-route="/{{item.link}}" ng-class="{active: $uiRo... | eddotman/attobyte | packages/system/public/views/header.html | HTML | mit | 1,365 |
---
title: React Native开发之多屏适配
date: 2018-3-24 08:56:47
---
# 多屏适配
# 字体不随系统字体缩放
**针对 `iOS`**
需要在 `node_modules/react-native` 中找到 `RCTFont.mm` 文件(在目录中搜索),在其中,可以找到如下代码:
```js
if (scaleMultiplier > 0.0 && scaleMultiplier != 1.0) {
fontSize = round(fontSize);
}
```
将其注释掉,打包出来的 App,就不会受到系统字体尺寸变化的影响。
**针对 `Android`*... | hstarorg/HstarDoc | React Native 开发笔记/React Native开发之多屏适配.md | Markdown | mit | 982 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>kildall: 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.09.0-2.0.5/released/8.11.0/kildall/8.6.0.html | HTML | mit | 7,159 |
/**
* @file VertexArrayObject.h
*
* @author Jan Duek <xdusek17@stud.fit.vutbr.cz>
* @date 2013
*/
#ifndef VERTEX_ARRAY_OBJECT_H
#define VERTEX_ARRAY_OBJECT_H
#include <GL/glew.h>
namespace gl {
/// Wrapper around OpenGL vao. Movable noncopyable
class VertexArrayObject
{
public:
VertexArrayObject() {
glGenV... | Zycon42/Heightmap | src/engine/VertexArrayObject.h | C | mit | 1,171 |
#!/usr/bin/env bash
if [ $# -lt 3 ]; then
echo "usage: $0 <db-name> <db-user> <db-pass> [db-host] [wp-version]"
exit 1
fi
DB_NAME=$1
DB_USER=$2
DB_PASS=$3
DB_HOST=${4-localhost}
WP_VERSION=${5-latest}
WP_TESTS_DIR=${WP_TESTS_DIR-\/tmp\/wordpress-tests-lib}
WP_CORE_DIR=${WP_CORE_DIR-\/tmp\/wordpress\/}
set -ex
do... | AngeIII/appveyour-codes-style-test | bin/install-wp-tests.sh | Shell | mit | 2,802 |
//
// HTextInputProtocals.h
// Hodor
//
// Created by zhangchutian on 15/5/29.
// Copyright (c) 2015年 zhangchutian. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@protocol HTextInputRecver <UITextInput>
- (void)setInputAccessoryView:(UIView *)inputAccessoryView;
- (void)setInpu... | jumperb/HTextInput | Class/HTextInputProtocals.h | C | mit | 487 |
# redux-trigger
Redux State Triggers
## What is it?
redux-trigger is a Redux middleware which allows delayed dispatching of an action
based on a trigger state in the Redux store. Here's how it works:
1. Dispatch a trigger (with action and state matcher function)
2. The matcher function will be run every time the st... | coderkevin/redux-trigger | README.md | Markdown | mit | 3,890 |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M22 4H2v16h20V4zm-2 4l-8 5-8-5V6l8 5 8-5v2z"
}), 'MailSharp'); | AlloyTeam/Nuclear | components/icon/esm/mail-sharp.js | JavaScript | mit | 185 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coinductive-reals: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstr... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.07.1-2.0.6/released/8.13.2/coinductive-reals/8.10.0.html | HTML | mit | 7,297 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>free-groups: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.03.0-2.0.5/released/8.7.2/free-groups/8.10.0.html | HTML | mit | 6,996 |
require_relative "../test_helper"
module SmartAnswer
class BlockTest < ActiveSupport::TestCase
context "#evaluate" do
setup do
@state = State.new(:node_key)
end
should "make response available to block" do
saved_response = nil
block = Block.new do |response|
s... | alphagov/smart-answers | test/unit/block_test.rb | Ruby | mit | 1,800 |
# ExchangeForMoney
仿淘宝闲鱼客户端
| mocne/ExchangeForMoney | README.md | Markdown | mit | 44 |
/* file : collection-test.js
MIT License
Copyright (c) 2016 Thomas Minier
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... | Callidon/carson | test/collections/collection-test.js | JavaScript | mit | 1,338 |
/*
* Kendo UI v2015.1.408 (http://www.telerik.com/kendo-ui)
* Copyright 2015 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... | hhuynhlam/Ulysses | src/client/vendor/kendo/src/js/cultures/kendo.culture.pa-Arab-PK.js | JavaScript | mit | 2,836 |
<?php
/*
* This class is inspired from Composer's compiler
* @see https://github.com/composer/composer/blob/master/src/Composer/Compiler.php
*/
namespace Onigoetz\Dyn53;
use Symfony\Component\Finder\Finder;
/**
* The Compiler class compiles dyn53 into a phar
*
* @author Fabien Potencier <fabien@symfony.com>
... | onigoetz/dyn53 | src/Compiler.php | PHP | mit | 5,293 |
import {
VFadeTransition,
VSlideXTransition
} from '~components/transitions'
export default {
name: 'v-progress-linear',
components: {
VFadeTransition,
VSlideXTransition
},
props: {
active: {
type: Boolean,
default: true
},
buffer: Boolean,
bufferValue: Number,
err... | stephane/vuetify | src/components/progress/VProgressLinear.js | JavaScript | mit | 2,625 |
"use strict";
var fs = require("fs");
var path = require("path");
var Sequelize = require("sequelize");
const appRoot = require('app-root-path');
const config = require(`${appRoot}/lib/config`)();
const sequelize = new Sequelize(config.db);
var db = {};
fs
.readdirSync(__dirname)
.filt... | anacesponda/sequelize-api | app/models/index.js | JavaScript | mit | 966 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>gappa: 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.09.1-2.0.6/released/8.7.0/gappa/1.4.2.html | HTML | mit | 6,991 |
<?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 ext... | karl62/Gsb | app/cache/dev/appDevUrlMatcher.php | PHP | mit | 14,477 |
# [@pockebot](https://telegram.me/pockebot)
Simple bot that save articles direct from your favorite
messanging app to Pocket. Additional this bot has some
extra features.
## How to use
1. Add [@pockebot](https://telegram.me/pockebot) to your
telegram.
2. Forward any message with link to this bot.
3. Really simple... | Fillll/pockebot | README.md | Markdown | mit | 1,090 |
# Contributor Code of Conduct
As contributors and maintainers of this project, and in the interest of
fostering an open and welcoming community, we pledge to respect all people who
contribute through reporting issues, posting feature requests, updating
documentation, submitting pull requests or patches, and other acti... | emaiax/exfiles | CODE_OF_CONDUCT.md | Markdown | mit | 2,387 |
/***************************************************************************
Bellfruit system85 driver, (under heavy construction !!!)
M.A.M.E Core Copyright Nicola Salmoria and the MAME Team,
used under license from http://mamedev.org
************************************************************... | clobber/MAME-OS-X | mame/src/mame/drivers/bfmsys85.c | C | mit | 16,024 |
import test from 'ava'
import configureStore from 'redux-mock-store'
import { mount } from 'enzyme'
import { createElement } from 'react'
import Home from '../../src/containers/home'
const mockStore = configureStore()
test('home', t => {
const store = mockStore()
const wrapper = mount(createElement(Home, {
s... | stoeffel/react-redux-bp | tests/containers/home.test.js | JavaScript | mit | 377 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.