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 |
|---|---|---|---|---|---|
/*
Copyright 2011 Google Inc.
Modifications Copyright (c) 2014 Simon Zimmermann
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 a... | simonz05/blobserver | blob/fetcher.go | GO | mit | 1,050 |
module HTMLValidationHelpers
def bad_html
'<html><title>the title<title></head><body><p>blah blah</body></html>'
end
def good_html
html_5_doctype + '<html><title>the title</title></head><body><p>a paragraph</p></body></html>'
end
def dtd
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitiona... | ericbeland/html_validation | spec/helpers/html_validation_helpers.rb | Ruby | mit | 576 |
using System.Xml.Serialization;
namespace ImgLab
{
[XmlRoot("source")]
public sealed class Source
{
[XmlElement("database")]
public string Database
{
get;
set;
}
}
} | takuya-takeuchi/DlibDotNet | tools/ImgLab/Source.cs | C# | mit | 263 |
package fr.adrienbrault.idea.symfony2plugin.tests;
import fr.adrienbrault.idea.symfony2plugin.ServiceMap;
import fr.adrienbrault.idea.symfony2plugin.ServiceMapParser;
import org.junit.Test;
import org.junit.Assert;
import java.io.ByteArrayInputStream;
import java.util.Map;
/**
* @author Adrien Brault <adrien.brault... | Ocramius/idea-php-symfony2-plugin | tests/fr/adrienbrault/idea/symfony2plugin/tests/ServiceMapParserTest.java | Java | mit | 2,039 |
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'minitest/reporters'
Minitest::Reporters.use!
class ActiveSupport::TestCase
# Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
fixtures :all
include Applicat... | stepnivlk/stepnivlk | test/test_helper.rb | Ruby | mit | 999 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
int main () {
int n;
while(scanf("%d", &n) && n) {
bitset<32> bs,a,b;
bs = n;
int cont = 0;
for(int i = 0; i < 32; i++) {
if(bs.test(i)) {
... | matheuscarius/competitive-programming | uva/11933-2.cpp | C++ | mit | 491 |
#ifndef BARBERPOLE_H
#define BARBERPOLE_H
#include "iLampAnimation.h"
#include "Lamp.h"
class BarberPole : public iLampAnimation
{
public:
BarberPole(Lamp* lamp);
int itterate();
void reset();
protected:
int cur_led = 0;
int offset = 0;
uint8_t hue = 0;
uint8_t fps = 60;
private:
};
... | lienmeat/arduino-lamp | BarberPole.h | C | mit | 344 |
describe Certificate do
it { is_expected.to have_property :id }
it { is_expected.to have_property :identifier }
it { is_expected.to have_property :image_key }
it { is_expected.to have_property :certificate_key }
it { is_expected.to have_property :created_at }
it { is_expected.to belong_to :delivery }
it... | CraftAcademy/workshop | spec/certificate_spec.rb | Ruby | mit | 1,999 |
<?php
namespace OpenRailData\NetworkRail\Services\Stomp\Topics\Rtppm\Entities\Performance;
/**
* Class Performance
*
* @package OpenRailData\NetworkRail\Services\Stomp\Topics\Rtppm\Entities\Performance
*/
class Performance
{
/**
* @var int
*/
private $totalCount;
/**
* @var int
*/... | neilmcgibbon/php-open-rail-data | src/NetworkRail/Services/Stomp/Topics/Rtppm/Entities/Performance/Performance.php | PHP | mit | 3,258 |
package gitnotify
import (
"errors"
"fmt"
"html/template"
"net/http"
"os"
"sort"
"github.com/gorilla/mux"
"github.com/markbates/goth"
"github.com/markbates/goth/gothic"
"github.com/markbates/goth/providers/github"
"github.com/markbates/goth/providers/gitlab"
"github.com/sairam/kinli"
)
// Authentication ... | sairam/gitnotify | gitnotify/auth.go | GO | mit | 5,241 |
import numpy as np
import matplotlib.pylab as plt
from numba import cuda, uint8, int32, uint32, jit
from timeit import default_timer as timer
@cuda.jit('void(uint8[:], int32, int32[:], int32[:])')
def lbp_kernel(input, neighborhood, powers, h):
i = cuda.grid(1)
r = 0
if i < input.shape[0] - 2 * neighborho... | fierval/KaggleMalware | Learning/1dlbp_tests.py | Python | mit | 4,911 |
package me.F_o_F_1092.WeatherVote.PluginManager.Spigot;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import me.F_o_F_1092.WeatherVote.Options;
import me.F_o_F_1092.WeatherVote.PluginManager.Command;
import me.F_o_F_1092.WeatherVote.Plugi... | fof1092/WeatherVote | src/me/F_o_F_1092/WeatherVote/PluginManager/Spigot/HelpPageListener.java | Java | mit | 2,808 |
namespace _05_SlicingFile
{
using System;
using System.Collections.Generic;
using System.IO;
class StartUp
{
static void Main()
{
var sourceFile = @"D:\SoftUni\05-Csharp Advanced\08-EXERCISE STREAMS\Resources\sliceMe.mp4";
var destinationDirectory = @"D:\Sof... | MrPIvanov/SoftUni | 04-Csharp Advanced/08-EXERCISE STREAMS/08-StreamsExercises/05-SlicingFile/StartUp.cs | C# | mit | 2,788 |
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("Be... | mpenchev86/WindowsApplicationsTeamwork | WindowsPhoneApplication/BeastApplication/Properties/AssemblyInfo.cs | C# | mit | 1,052 |
#pragma once
#include "SYCL/detail/common.h"
namespace cl {
namespace sycl {
namespace detail {
using counter_t = unsigned int;
template <class T, counter_t start = 0>
class counter {
private:
static counter_t internal_count;
counter_t counter_id;
public:
counter() : counter_id(internal_count++) {}
coun... | ProGTX/sycl-gtx | sycl-gtx/include/SYCL/detail/counter.h | C | mit | 913 |
pub const MEMORY_REGIONS_MAX: usize = 8;
| ababo/arwen | src/kernel/config.rs | Rust | mit | 41 |
<!-- INCLUDE ucp_header.html -->
<!-- IF not PROMPT -->
<!-- INCLUDE ucp_pm_message_header.html -->
<!-- ENDIF -->
<!-- IF PROMPT -->
<h2>{L_EXPORT_AS_CSV}</h2>
<form id="viewfolder" method="post" action="{S_PM_ACTION}">
<div class="panel">
<div class="inner"><span class="corners-top"><span></span></span>
<h3... | UnliCrea/CPT | ContentPlatformsTriangle/Index/community/styles/prosilver/template/ucp_pm_viewfolder.html | HTML | mit | 4,962 |
define(['omega/entity', 'omega/core'], function (e, o) {
'use strict';
var triggerKey = function (action, e) {
o.trigger(action, {
keyCode: e.keyCode,
shiftKey: e.shiftKey,
ctrlKey: e.ctrlKey,
altKey: e.altKey
});
};
window.onkeydown =... | alecsammon/OmegaJS | omega/behaviour/keyboard.js | JavaScript | mit | 897 |
package zeonClient.mods;
import java.util.Iterator;
import org.lwjgl.input.Keyboard;
import net.minecraft.client.entity.EntityOtherPlayerMP;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.playe... | A-D-I-T-Y-A/Zeon-Client | src/minecraft/zeonClient/mods/KillAura.java | Java | mit | 2,021 |
package com.github.lunatrius.schematica.client.gui;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiSlot;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.resources.I18n;
import net.minecraft.item.ItemStack;
class GuiSchematicMaterialsSlot extends GuiSlot {
p... | CannibalVox/Schematica | src/main/java/com/github/lunatrius/schematica/client/gui/GuiSchematicMaterialsSlot.java | Java | mit | 2,204 |
package li.cryx.minecraft.death;
import java.util.logging.Logger;
import li.cryx.minecraft.death.i18n.ITranslator;
import li.cryx.minecraft.death.persist.AbstractPersistManager;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Player;
public interface ISpiritHealer {
void addAltarL... | cryxli/SpiritHealer | src/main/java/li/cryx/minecraft/death/ISpiritHealer.java | Java | mit | 609 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* A CodeIgniter library that wraps \Firebase\JWT\JWT methods.
*/
class Jwt {
function __construct()
{
// TODO: Is this the best way to do this? (Issue #4 at psignoret/aad-sso-codeigniter.)
require_once(APPPATH . 'libra... | psignoret/aad-sso-codeigniter | application/libraries/Jwt.php | PHP | mit | 774 |
---
layout: post
title: 100 Plus
date: 2013-07-13 20:23
author: admin
comments: true
---
Hey, I just noticed that this is my 102nd entry here on Tidy Husband. I've written over 100 articles here - An anniversary of sorts and when you think about it, it only took me about a year. I've written 55,000 words here.... | ramseeker/newjims | _posts/2013-07-13-100-plus.md | Markdown | mit | 3,037 |
$(window).on('load', function() {//main
const dom = {//define inputs
tswitch: $("#wave-switch input"),
aSlider: $("input#angle"),//angle slider
nSlider: $("input#refractive-index-ratio"),
};
let layout = {//define layout of pot
showlegend: false,
... | cydcowley/Imperial-Visualizations | visuals_EM/Waves and Dielectrics/scripts/2D_Dielectric_Dielectric.js | JavaScript | mit | 10,284 |
// EX.1 - READ A TEXT FILE CHAR BY CHAR
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
FILE *bin; //declare a file pointer variable
FILE *numfile;
char s[20] = "1234";
int ch;
int i;
char line[50];
numfile = fopen("numbers.txt","r");
bin = fopen("numbers.... | RobertEviston/CollegeWork | C Programming/PersisTest.c | C | mit | 747 |
<html>
<head>
<title>主页</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta http-equiv="imagetoolbar" content="no"/>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/... | tiansiyuan/SQA | projects/dd/prototype/主页_1.html | HTML | mit | 6,083 |
/*****************************************************************
* syscall.c
* adapted from MIT xv6 by Zhiyi Huang, hzy@cs.otago.ac.nz
* University of Otago
*
********************************************************************/
#include "types.h"
#include "defs.h"
#include "param.h"
#include "mem... | fosler/xv6-rpi-port | source/syscall.c | C | mit | 3,791 |
// Package machinelearningservices implements the Azure ARM Machinelearningservices service API version 2019-06-01.
//
// These APIs allow end users to operate on Azure Machine Learning Workspace resources.
package machinelearningservices
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under t... | Azure/azure-sdk-for-go | services/machinelearningservices/mgmt/2019-06-01/machinelearningservices/client.go | GO | mit | 1,478 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<base data-ice="baseUrl" href="../../../">
<title data-ice="title">CondaExecutable | API Document</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css">
<script src="sc... | jsoma/mcpyver | dist/esdoc/class/src/executables/conda.js~CondaExecutable.html | HTML | mit | 44,514 |
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
class AdminLoginController extends Controller
{
/*
|--------------------------------------------------------------------------
| Login Controller
... | mobyan/thc-platform | src/app/Http/Controllers/AdminLoginController.php | PHP | mit | 1,582 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>XPEDYTOR</title>
<meta name="author" content="lajmahal"/>
<meta name="description" content="The Xpedytor App"/>
<meta name="keywords" content="xpedytor"/>
<link rel="stylesheet" href="../../js/lib/bootstrap/dist/css/bootstrap.... | lajmahal/xpedytor | xpedytor-site/src/index.html | HTML | mit | 1,018 |
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class LogoutBox
Inherits System.Windows.Forms.Form
'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
... | KameQuazi/Software-Major-Assignment-2k18 | LampClient/DialogBoxes/LogoutBox.Designer.vb | Visual Basic | mit | 6,027 |
---
tags: post
title: The utility module antipattern
description:
Why naming a module or file utils is a bad idea and how to fix that problem.
date: 2020-05-20
published: true
featuredImage: "./www/posts/utils-antipattern/banner.jpg"
featuredImageAlt: Messy toolbox
thumbnailImage: "./thumbnail.jpg"
thumbnailImageAlt:... | yanglinz/personal-site | www/posts/utils-antipattern/index.md | Markdown | mit | 6,647 |
# ETL
We are going to do the `Transform` step of an Extract-Transform-Load.
### ETL
Extract-Transform-Load (ETL) is a fancy way of saying, "We have some crufty, legacy data over in this system, and now we need it in this shiny new system over here, so
we're going to migrate this."
(Typically, this is followed by, "W... | attilahorvath/exercism-rust | etl/README.md | Markdown | mit | 3,133 |
package pixlepix.auracascade.data;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
/**
* Created by localmacaccount on 5/31/15.
*/
public class Quest {
//TODO QUEST
public static int nextId;
public final ItemStack target;
public final ItemStack result;
public f... | pixlepix/Aura-Cascade | src/main/java/pixlepix/auracascade/data/Quest.java | Java | mit | 1,082 |
<?php
/*
* This file is part of the Itkg\Core package.
*
* (c) Interakting - Business & Decision
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Itkg\Core\Cache\Adapter;
use Itkg\Core\Cache\AdapterInterface;
use Itkg\C... | itkg/core | src/Itkg/Core/Cache/Adapter/Persistent.php | PHP | mit | 2,140 |
// Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "splashscreen.h"
#include "clientversion.h"
#include "util.h"
#include <QPainter>
#undef loop /* ugh, remove this wh... | paulmadore/woodcoin | src/qt/splashscreen.cpp | C++ | mit | 2,296 |
<?php
namespace Oro\Bundle\NoteBundle\Controller;
use FOS\RestBundle\Util\Codes;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Bundle\FrameworkBundle\Routing\Router;
use Symfony\Component\HttpFoundation\Response;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\F... | morontt/platform | src/Oro/Bundle/NoteBundle/Controller/NoteController.php | PHP | mit | 4,038 |
'use strict';
memoryApp.controller('AuthCtrl', function ($scope, $location, AuthService) {
$scope.register = function () {
var username = $scope.registerUsername;
var password = $scope.registerPassword;
if (username && password) {
AuthService.register(username, password).then(
function () ... | emilkjer/django-memorycms | backend/static/js/controllers/auth.js | JavaScript | mit | 980 |
backbone.io-todos
=================
A very simple todos app demonstrating the backbone.io module and mongoDB middleware
| minizatic/backbone.io-todos | README.md | Markdown | mit | 121 |
/**
* MIT License
*
* Copyright (c) 2017 zgqq
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... | zgqq/mah | mah-core/src/main/java/mah/ui/util/UiUtils.java | Java | mit | 1,999 |
<html>
<head>
<title>
Why we oppose the FTAA
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php include "../../legacy-includes/Script.htmlf" ?>
</head>
<body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0">
<table width="74... | ISO-tech/sw-d8 | web/2003-2/476/476_06_FTAA.php | PHP | mit | 15,290 |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH... | hafiznuzal/sirumkit1 | application/config/config.php | PHP | mit | 18,153 |
<html>
<head>
<title>User agent detail - Mozilla/5.0 (Linux; U; Android 4.2.1; en-us; Q600 Build/JOP40D) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
... | ThaDafinser/UserAgentParserComparison | v4/user-agent-detail/bb/2b/bb2bec2d-c506-4a00-ab4c-3042c0832d8c.html | HTML | mit | 46,375 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - LG-G922 Obigo/WAP2.0 MIDP-2.0/CLDC-1.1</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link href="https://fonts.goo... | ThaDafinser/UserAgentParserComparison | v5/user-agent-detail/c4/23/c42390fe-75db-4b07-a102-6fd5f5dc7ad0.html | HTML | mit | 46,803 |
---
category: travel
type: post
---
# 千里江山&赵孟頫&茜茜公主
住在北京的最大好处就是冬天能以 40 元的价格逛故宫,并看到别处动辄上百的展品。
## 千里江山图 & 江山秋色图



class BeforeFilterTest < Test::Unit::TestCase
it "executes filters in the order defined" do
count = 0
mock_app do
get('/') { 'Hello World' }
before do
assert_equal 0, count
count = 1
end
before do
assert_equal 1, ... | Callygraphy/morrissey | test/filter_test.rb | Ruby | mit | 11,117 |
//
// SPFastPush.h
// e-mail:83118274@qq.com
//
// Created by lishiping on 16/11/11.
// Copyright (c) 2016年 lishiping. All rights reserved.
//
//If you think this open source library is of great help to you, please open the URL to click the Star,your approbation can encourage me, the author will publish the better ... | lishiping/SPFastPush | SPFastPush/SPFastPush/SPFastPush.h | C | mit | 13,090 |
<?php
namespace IdeaSeven\Core\Services\Menu;
use IdeaSeven\Core\Exceptions\InvalidMenuStructureException;
use IdeaSeven\Core\Helpers\Strings;
use IdeaSeven\Core\Services\Lang\Contracts\LanguagesContract;
/**
* Class PermalinkCreator
* @package IdeaSeven\Core\Services\Menu
*/
class PermalinkCreator
{
/**
... | mbouclas/mcms-laravel-core | src/Services/Menu/PermalinkCreator.php | PHP | mit | 3,536 |
<?php
/* TwigBundle:Exception:exception_full.html.twig */
class __TwigTemplate_add344e1e383c1eb02227246319313ae extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("TwigBundle::layout.html.twig");
... | krlts/Homefanfics | app/cache/dev/twig/ad/d3/44e1e383c1eb02227246319313ae.php | PHP | mit | 2,264 |
<!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-beta2) on Mon Mar 19 19:30:45 CST 2007 -->
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<TITLE>
接口 javax.print.FlavorException... | piterlin/piterlin.github.io | doc/jdk6_cn/javax/print/class-use/FlavorException.html | HTML | mit | 6,932 |
<?php
namespace CBSi\ProductBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use CBSi\ProductBundle\Model\Product;
use CBSi\ProductBundle\ApiClient;
class DefaultController extends Controller
{
public function indexAction($name)
{
return $this->render('CBSiProductBundle:De... | smp4488/symfony2 | src/CBSi/ProductBundle/Controller/DefaultController.php | PHP | mit | 1,439 |
<!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 | 5a9e795/html/functions_func_p.html | HTML | mit | 6,770 |
<!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 | fe4434b/html/classv8_1_1_cpu_profile-members.html | HTML | mit | 6,568 |
<!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/123456256186.html | HTML | mit | 38,608 |
export const PlusCircle = `
<svg viewBox="0 0 28 28">
<g fill="none" fill-rule="evenodd">
<path d="M8 14h12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
<circle stroke="currentColor" cx="14" cy="14" r="13"/>
<path d="M14 8v12" stroke="currentColor" stroke-linecap="round" stroke-... | clair-design/clair | packages/icons/icons/PlusCircle.ts | TypeScript | mit | 355 |
<?php
/*
* Description of bibliographyController
*
* This is a controller loading the bibliography. It does not support any user input
*/
namespace PNM\controllers;
class bibliographyController
{
public function load()
{
$bibliography = new \PNM\models\bibliography();
$view = new \PNM\vi... | ailintom/persons-names-MK | PHP/controllers/bibliographyController.php | PHP | mit | 394 |
package com.missingeye.pixelpainter.events.network.texture;
import com.missingeye.pixelpainter.common.PixelMetadata;
import net.minecraft.util.ResourceLocation;
/**
* Created on 1/17/2015.
*
* @auhtor Samuel Agius (Belpois)
*/
public class ServerUpdatedTexturePacketEvent extends UpdatedTexturePacketEvent
{
publi... | Belpois/pixelpainter | src/main/java/com/missingeye/pixelpainter/events/network/texture/ServerUpdatedTexturePacketEvent.java | Java | mit | 470 |
# Changelog
## 2.0.5 (Sep 16 2014)
- Fix small bugs
## 2.0.4 (Sep 9 2014)
- Prevent window from moving when clicking window buttons
## 2.0.3 (Sep 9 2014)
- Add "Media Link" button, click to open current playing video/music link (Can resolve SoundCloud URL now)
- Load faster
- Fix Auto-Woot doesn't work if loaded too... | perjantai/Plugwoot | CHANGELOG.md | Markdown | mit | 1,701 |
Contributing
============
- [Fork](https://help.github.com/articles/fork-a-repo) the [notifier on github](https://github.com/bugsnag/bugsnag-android-gradle-plugin)
- Build and test your changes
- Commit and push until you are happy with your contribution
- [Make a pull request](https://help.github.com/articles... | bugsnag/bugsnag-android-gradle-plugin | CONTRIBUTING.md | Markdown | mit | 3,248 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
namespace QSDStudy
{
public class RouteConfig
{
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*path... | lsolano/qsd_study | QSDStudy/App_Start/RouteConfig.cs | C# | mit | 578 |
<!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/123456099923.html | HTML | mit | 40,912 |
---
title: Dimmer
---
<h3 class="docs-subsection-title">Default</h3>
<div class="docs-example">
<div av-dimmer class="card card-block">
<div class="dimmer-content dimmer-content-dark text-center">
<p> Dimmer Message </p>
</div>
<h4 class="card-title">Example title</h4>
<p class="card-text">Examp... | Availity/availity-angular | src/ui/dimmer/docs/template.html | HTML | mit | 1,435 |
#ifndef LUCE_HEADER_TYPETRAIT_TYPEEQUAL_HH
#define LUCE_HEADER_TYPETRAIT_TYPEEQUAL_HH
#include <Luce/Configuration.hh>
#include <Luce/Utility/NonComparable.hh>
#include <Luce/Utility/NonCopyable.hh>
namespace Luce
{
namespace TypeTrait
{
template<typename Lhs_, typename Rhs_>
struct TypeEqual LUCE_M... | kmc7468/Luce | Include/Luce/TypeTrait/TypeEqual.hh | C++ | mit | 799 |
#!/usr/bin/env julia
using ArgParse
s = ArgParseSettings()
@add_arg_table s begin
"config"
help = "a YAML configuration file"
default = "config.yaml"
end
parsed_args = parse_args(ARGS, s)
import YAML
config = YAML.load(open(parsed_args["config"]))
# Make some diagnostic plots to show what the model loo... | iancze/JudithExcalibur | attic/plot_tstructure.jl | Julia | mit | 5,278 |
export type TemplateToken = string | TemplatePlaceholder;
export interface TemplatePlaceholder {
before: string;
after: string;
name: string;
}
interface TokenScanner {
text: string;
pos: number;
}
const enum TemplateChars {
/** `[` character */
Start = 91,
/** `]` character */
En... | emmetio/emmet | src/markup/format/template.ts | TypeScript | mit | 3,227 |
<!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_24) on Mon Apr 01 21:56:35 EDT 2013 -->
<TITLE>
Groupable (ATG Java API)
</TITLE>
<META NAME="date" CONTENT="2013-04-01">
<LINK REL ="stylesheet" T... | Smolations/more-dash-docsets | docsets/ATG 10.2.docset/Contents/Resources/Documents/atg/search/routing/command/search/Groupable.html | HTML | mit | 17,127 |
package com.example.aperture.core.contacts;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.provider.ContactsContract;
import java.util.List;
import java.util.ArrayList;
import com.example.aperture.core.Module;
public class Email... | ayshen/caek | src/com/example/aperture/core/contacts/EmailFilter.java | Java | mit | 5,607 |
<?php
return array (
'id' => 'samsung_n300_ver1',
'fallback' => 'uptext_generic',
'capabilities' =>
array (
'model_name' => 'SGH-N300',
'brand_name' => 'Samsung',
'streaming_real_media' => 'none',
),
);
| cuckata23/wurfl-data | data/samsung_n300_ver1.php | PHP | mit | 226 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--... | GreatMindsRobotics/DemoGames | Pong/Pong/Pong/Pong/Service References/WebService/Reference.cs | C# | mit | 24,727 |
<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="flayoutclass"><div class="flayoutclass_first"><table class="tableoutfmt2"><tr><th class="std1"><b>... | BuzzAcademy/idioms-moe-unformatted-data | all-data/27000-27999/27041-22.html | HTML | mit | 1,432 |
// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "kcoingui.h"
#include "kcoinunits.h"
#include "clientmodel.h"
#include "guiconstants.h"
#include "guiutil.h"
#inclu... | Kcoin-project/kcoin | src/qt/kcoingui.cpp | C++ | mit | 39,810 |
var xmas = {};
(function() {
xmas.present = {
box: {}
};
}());
(function(global) {
global.xmas.present.box.color = 'Red';
}(this));
| watilde/rejs-example | test/fixture1.js | JavaScript | mit | 146 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace GSAKWrapper.Excel
{
public class PropertyItemHasUserNote : PropertyItem
{
public PropertyItemHasUserNote()
: base("HasUserNote")
{
}
public ... | GlobalcachingEU/GSAKWrapper | GSAKWrapper/Excel/PropertyItemHasUserNote.cs | C# | mit | 439 |
Vswiki::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both thread web serve... | villez/vswiki | config/environments/production.rb | Ruby | mit | 3,332 |
/**
* A decorator for making sure specific function being invoked serializely.
*
* Usage:
* class A {
* @serialize
* async foo() {}
* }
*
*/
export default function serialize(target, key, descriptor) {
let prev = null;
function serializeFunc(...args) {
const next = () =>
Promise.resolve(descr... | ringcentral/ringcentral-js-widget | packages/ringcentral-integration/lib/serialize.js | JavaScript | mit | 524 |
<?php
namespace Application\Controller;
use Zend\Mvc\Controller\AbstractRestfulController;
use Zend\View\Model\JsonModel;
class UserController extends AbstractRestfulController
{
protected $collectionOptions = array('GET', 'POST');
protected $resourceOptions = array('GET', 'PUT', 'DELETE');
protected fu... | amercier/dogu-legacy | UserController.php | PHP | mit | 1,957 |
Changelog
==========
### 3.1.2
- Bump to FBSDK 5.5.0
### 3.1.1
- Bump to FBSDK 5.4.1
### 3.1.0
- Bump to FBSDK 5.2.3
### 3.0.2
- Bug fix with facebook picture pagination
### 3.0.1
- Bug fix with facebook album pagination
### 3.0.0
- Bump to FBSDK 5.0.0 (contains a lot of breaking change)
### 2.6.0
- Bu... | terflogag/GBHFacebookImagePicker | CHANGELOG.md | Markdown | mit | 3,968 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../openssl_sys/enum.stack_st_X509.html">
</head>
<body>
<p>Redirecting to <a href="../../openssl_sys/enum.stack_st_X509.html">../../openssl_sys/enum.stack_st_X509.html</a>...</p>
<script>location.replace("../../openssl_sys/... | malept/guardhaus | main/openssl_sys/x509/enum.stack_st_X509.html | HTML | mit | 405 |
<?php
/**
* This module shows an introduction tour for new users
*
* @package profiler.modules_core.like
* @since 0.5
*/
class TourModule extends HWebModule
{
public $isCoreModule = true;
public static function onDashboardSidebarInit($event)
{
if (HSetting::Get('enable', 'tour') == 1 && Yii:... | ProfilerTeam/Profiler | protected/modules_core/tour/TourModule.php | PHP | mit | 547 |
package ast
import (
"testing"
"bitbucket.org/yyuu/xtc/xt"
)
func TestPrefixOpNode(t *testing.T) {
x := NewPrefixOpNode(loc(0,0), "--", NewVariableNode(loc(0,0), "a"))
s := `{
"ClassName": "ast.PrefixOpNode",
"Location": "[:0,0]",
"Operator": "--",
"Expr": {
"ClassName": "ast.VariableNode",
"L... | yyuu/xtc | ast/prefix_op_test.go | GO | mit | 478 |
package com.dpanayotov.simpleweather.api.base;
public class BaseForecastResponse {
}
| deanpanayotov/simple_weather | SimpleWeather/app/src/main/java/com/dpanayotov/simpleweather/api/base/BaseForecastResponse.java | Java | mit | 87 |
//
// EmailComposer.h
//
//
// Created by Jesse MacFadyen on 10-04-05.
// Copyright 2010 Nitobi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <MessageUI/MFMailComposeViewController.h>
#import <MobileCoreServices/MobileCoreServices.h>
#import <Cordova/CDV.h>
@interface EmailCompose... | steve-jansen/cordova-ios-emailcomposer | src/ios/EmailComposer.h | C | mit | 675 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qarith: 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.08.1-2.0.5/extra-dev/8.10.dev/qarith/8.7.0.html | HTML | mit | 6,987 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>cfml: 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/released/8.5.0/cfml/20180525.html | HTML | mit | 6,598 |
require 'rails_helper'
RSpec.describe "Pages", :type => :request do
describe "GET /pages" do
it "redirects when unauthenticated" do
get pages_path
expect(response.status).to be(302)
end
end
let(:rory) {User.create!(name: 'Rory', uid: "1")}
let(:valid_attributes) { { path: 'path/to/page', b... | csexton/corporate-tool | spec/requests/pages_request_spec.rb | Ruby | mit | 3,401 |
---
layout: post
title: "Welcome"
date: 2015-07-26 15:07:29
author: Rodrigo de Freitas
modalID: modalWelcome
image: /images/posts/welcome.png
---
Normalmente as pessoas da minha área colocariam o título de "Hello World" na primeira postagem do blog, mas como eu já acho isso um pouco batido e como você deve ter notad... | rodrigodfreitas/rodrigodfreitas.github.io | _posts/2015-07-26-welcome.md | Markdown | mit | 1,200 |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Huoran Chat</title>
<link rel="stylesheet" type="text/css" href="styles/main.css" />
</head>
<body>
<!-- The window for login and registration -->
<div id='loginWindow'>
<h1>Huoran Chat</h1>
<br>
<div id="loginWrap... | flcloud/Huoran-chat | www/index.html | HTML | mit | 4,155 |
var functions = {}
functions.evaluateSnapshotType = function (name) {
var splittedName = name.split('-')
var type = splittedName[splittedName.length - 1].split('.')[0]
return type === 'motion' ? type : type === 'snapshot' ? 'periodic' : 'unknown'
}
functions.getSnapshotDate = function (name) {
var splittedDa... | rackdon/securityCam-server | src/utils/commonUtils.js | JavaScript | mit | 446 |
package bsw
import (
"testing"
)
func TestMX(t *testing.T) {
_, results, err := MX("stacktitan.com", "8.8.8.8")
if err != nil {
t.Error("error returned from MX")
t.Log(err)
}
found := false
for _, r := range results {
if r.Hostname == "mx1.emailsrvr.com" {
found = true
}
}
if !found {
t.Error("MX... | intfrr/blacksheepwall | bsw/mx_test.go | GO | mit | 376 |
package edu.avans.hartigehap.web.util;
import java.io.UnsupportedEncodingException;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.util.UriUtils;
import org.springframework.web.util.WebUtils;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class UrlUtil {
private UrlUtil() {
... | jermeyjungbeker/VP11B2 | src/main/java/edu/avans/hartigehap/web/util/UrlUtil.java | Java | mit | 833 |
package com.veggie.src.java.controllers.transaction;
import java.util.List;
import com.veggie.src.java.controllers.Controller;
import com.veggie.src.java.form.Form;
import com.veggie.src.java.form.AbstractFormBuilder;
import com.veggie.src.java.form.AbstractFormBuilderFactory;
import com.veggie.src.java.notification.N... | ejw0013/vegemite-smoothie | com/veggie/src/java/controllers/transaction/ReturnController.java | Java | mit | 1,973 |
<?php return array (
'FrameworkBundle:Form:attributes.html.php' => 'C:\\xampp\\htdocs\\linkedxpert\\vendor\\symfony\\symfony\\src\\Symfony\\Bundle\\FrameworkBundle/Resources/views/Form/attributes.html.php',
'FrameworkBundle:Form:button_attributes.html.php' => 'C:\\xampp\\htdocs\\linkedxpert\\vendor\\symfony\\symfon... | MoisesSan/linkedxpert | app/cache/prod/templates.php | PHP | mit | 15,701 |
# tapjoy Module
## Description
TODO: Enter your module description here
## Accessing the tapjoy Module
To access this module from JavaScript, you would do the following:
var tapjoy = require("ti.tapjoy");
The tapjoy variable is a reference to the Module object.
## Reference
TODO: If your module has an API, yo... | rafagomes/titanium-tap-joy | iphone/documentation/index.md | Markdown | mit | 748 |
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS and IE text size adjust after device orientation change,
* without disabling user zoom.
*/
html {
font-family: sans-serif;
/* 1 */
-ms-text-size-adjust: 100%;
/* 2... | PSDCoder/scss-base-set | dist/main.css | CSS | mit | 51,980 |
using Android.App.Job;
namespace Plugin.FirebasePushNotification
{
public class PNFirebaseJobService : JobService
{
public override bool OnStartJob(JobParameters @params)
{
return false;
}
public override bool OnStopJob(JobParameters @params)
{
... | CrossGeeks/FirebasePushNotificationPlugin | Plugin.FirebasePushNotification/PNFirebasejobService.android.cs | C# | mit | 353 |
(function() {
'use strict';
angular
.module('rtsApp')
.directive('hasAuthority', hasAuthority);
hasAuthority.$inject = ['Principal'];
function hasAuthority(Principal) {
var directive = {
restrict: 'A',
link: linkFunc
};
return directive... | EnricoSchw/readthisstuff.com | src/main/webapp/app/services/auth/has-authority.directive.js | JavaScript | mit | 1,477 |
require 'rails_helper'
RSpec.describe Gallery, type: :model do
it "is valid with valid attributes" do
gallery = create(:gallery)
expect(gallery).to be_valid
end
describe "associations and validations" do
it { should have_many(:collections) }
it { should validate_presence_of(:name) }
it { s... | ericbooker12/fuzzy_hat_artist_site | spec/models/gallery_spec.rb | Ruby | mit | 1,006 |
Gitscm::Application.routes.draw do
constraints(:host => 'whygitisbetterthanx.com') do
root :to => 'site#redirect_wgibtx', as: :whygitisbetterthanx
end
constraints(:host => 'progit.org') do
root :to => 'site#redirect_book', as: :progit
get '*path' => 'site#redirect_book'
end
# constraints(:subdom... | jasonlong/git-scm.com | config/routes.rb | Ruby | mit | 3,528 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.