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 |
|---|---|---|---|---|---|
.list-of-brand img
{
/*max width and height make img fit into div*/
max-width: 100%;
max-height: 100%;
display: block;
margin: auto auto;
}
.list-of-brand div
{
height: 100%;
}
| Saebyuckbaan/DeeCaf | public/assets/css/add-new-coffee.css | CSS | mit | 203 |
class VideoRepliesController < ApplicationController
before_filter :require_user, :only => [:create, :delete]
def create
@reply = VideoReply.new(params[:video_reply])
@reply.user = @current_user
if @reply.save
flash[:notice] = 'Reply Submitted Successfully'
redirect_to @reply.video
else
... | AlexChien/shadowgraph | app/controllers/video_replies_controller.rb | Ruby | mit | 492 |
// Copyright (c) Microsoft Corporation
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Runtime.InteropServices;
namespace Microsoft.Xbox.Services.Leaderboard
{
public partial class LeaderboardQuery
{
public string StatNam... | MSFT-Heba/xbox-live-unity-plugin | CSharpSource/Source/api/Leaderboard/LeaderboardQuery.cs | C# | mit | 1,787 |
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("Sm... | Shtereva/Fundamentals-with-CSharp | Lists-ProcessingVariable-LengthSequences/SmallestElementInArray/Properties/AssemblyInfo.cs | C# | mit | 1,420 |
/**
* Returns an Express Router with bindings for the Admin UI static resources,
* i.e files, less and browserified scripts.
*
* Should be included before other middleware (e.g. session management,
* logging, etc) for reduced overhead.
*/
var browserify = require('../middleware/browserify');
var express = requir... | joerter/keystone | admin/server/app/createStaticRouter.js | JavaScript | mit | 1,923 |
<div ng-include src="'templates/partials/sidebar.tpl.html'" id="sidebar" class="hidden-xs"></div>
<div
id="main"
class="secure fixed"
ui-view="content"
ng-hide="advSearchIsOpen"></div>
<ng-include src="'templates/partials/composer.tpl.html'" id="composerFrame"></ng-include>
<ng-include src="'templates/partials/form.b... | GovanifY/WebClient | src/app/templates/layout/secured.tpl.html | HTML | mit | 591 |
/*
* User: aleksey.nakoryakov
* Date: 03.08.12
* Time: 12:32
*/
using System;
using System.Reflection;
using Autodesk.AutoCAD.ApplicationServices;
namespace LayoutsFromModel
{
/// <summary>
/// Класс для работы с настройками AutoCAD
/// </summary>
public static class AcadPreferencesHelper
{
/// <summary>
... | bargool/LayoutsFromModel | LayoutsFromModel/Helpers/AcadPreferencesHelper.cs | C# | mit | 1,694 |
/*
** my_putchar.c for my_putchar in /home/soto_a/my_funcs
**
** Made by adam kaso
** Login <soto_a@epitech.net>
**
** Started on Wed Oct 1 10:04:23 2014 adam kaso
** Last update Fri Jan 16 14:28:51 2015 Kaso Soto
*/
#include "my.h"
void my_putchar(char c)
{
if (write(1, &c, 1) == -1)
exit(EXIT_FAILURE);
... | KASOGIT/bsq | lib/src/my_putchar.c | C | mit | 322 |
package org.nextrtc.signalingserver.api;
import lombok.extern.log4j.Log4j;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import com.google.common.eventbus.EventBus;
@Log4j
@Service("nextRTCEventBus")
@Scope("singleton")
public class NextRTCEventBus {
private E... | kevintanhongann/nextrtc-signaling-server | src/main/java/org/nextrtc/signalingserver/api/NextRTCEventBus.java | Java | mit | 719 |
---
layout: page
title: Bradley - Anthony Wedding
date: 2016-05-24
author: Martha Shaw
tags: weekly links, java
status: published
summary: In id rutrum sem. Fusce ac feugiat ligula, id sagittis.
banner: images/banner/leisure-03.jpg
booking:
startDate: 06/29/2016
endDate: 07/04/2016
ctyhocn: LGUUTHX
groupCode: B... | KlishGroup/prose-pogs | pogs/L/LGUUTHX/BAW/index.md | Markdown | mit | 2,038 |
'use strict'
const isPlainObject = require('lodash.isplainobject')
const getPath = require('lodash.get')
const StaticComponent = require('./StaticComponent')
const DynamicComponent = require('./DynamicComponent')
const LinkedComponent = require('./LinkedComponent')
const ContainerComponent = require('./ContainerCompo... | zaboco/deependr | src/components/index.js | JavaScript | mit | 1,892 |
# Include hook code here
require 'active_record'
require 'qds'
ActiveRecord::Base.extend MindAsLab::Searchable
| mindaslab/qds | init.rb | Ruby | mit | 112 |
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
describe "Cards" do
it "fails" do
fail "hey buddy, you should probably rename this file and start specing for real"
end
end
| rhyhann/cards | spec/cards_spec.rb | Ruby | mit | 199 |
//-----------------------------------------------------------------------
// <copyright file="PropertiesFileGenerator.cs" company="SonarSource SA and Microsoft Corporation">
// Copyright (c) SonarSource SA and Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the pr... | HSAR/sonar-msbuild-runner | SonarRunner.Shim/PropertiesFileGenerator.cs | C# | mit | 14,482 |
'use strict';
var program = require('commander');
var Q = require('q');
var fs = require('fs');
var resolve = require('path').resolve;
var stat = Q.denodeify(fs.stat);
var readFile = Q.denodeify(fs.readFile);
var writeFile = Q.denodeify(fs.writeFile);
var assign = require('./util/assign');
program
.option('--get', ... | zorrodg/fox-cove | lib/config.js | JavaScript | mit | 1,822 |
require "pubdraft/version"
require "pubdraft/engine"
require "pubdraft/state"
require "pubdraft/model"
module Pubdraft
def pubdraft(**options)
include Model::InstanceMethods
extend Model::ClassMethods
cattr_accessor :pubdraft_states
cattr_accessor :pubdraft_options
before_create :set_pubdraft_d... | neotericdesign/pubdraft | lib/pubdraft.rb | Ruby | mit | 772 |
package pt.lsts.imc;
import java.io.IOException;
import java.net.URI;
import java.util.concurrent.Future;
import org.eclipse.jetty.websocket.api.Session;
import org.eclipse.jetty.websocket.api.annotations.OnWebSocketConnect;
import org.eclipse.jetty.websocket.api.annotations.OnWebSocketMessage;
import org.eclipse.jet... | LSTS/imcproxy | src/pt/lsts/imc/ImcClientSocket.java | Java | mit | 1,796 |
# Dropbox
This application is for demonstration purposes only.
## Frameworks/Tools
- coming soon
## Design
- Product design was created in Adobe Photoshop CC: [Raw PSD files](https://github.com/nicholas-davis/dropbox-angular-bootstrap/tree/master/design/mockups/app) / [PNG files](https://github.com/nicholas-davis/dr... | nicholas-davis/dropbox-angular-bootstrap | README.md | Markdown | mit | 411 |
<?php
namespace Core;
use Silex\ControllerCollection;
abstract class AbstractController
{
/**
*
* @var Application
*/
protected $app;
public function __construct( Application $app )
{
$this->app = $app;
}
/**
*
* @param \Silex\ControllerCollection $controllers
* @return \Si... | kor3k/silex | src/Core/AbstractController.php | PHP | mit | 714 |
<!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_18) on Mon Feb 08 23:29:05 EST 2010 -->
<TITLE>
ProductComponent
</TITLE>
<META NAME="date" CONTENT="2010-02-08">
<LINK REL ="stylesheet" TYPE="tex... | axel-halin/Thesis-JHipster | Dependencies/SPLAR/doc/splar/plugins/configuration/bdd/javabdd/catalog/ProductComponent.html | HTML | mit | 12,496 |
# Activerecord::Slave
[](https://travis-ci.org/hirocaster/activerecord-slave) [](https://coveralls.io/github/hirocaste... | w1mvy/activerecord-slave | README.md | Markdown | mit | 2,324 |
# -*- coding: utf-8 -*-
import json
from axe.http_exceptions import BadJSON
def get_request(request):
return request
def get_query(request):
return request.args
def get_form(request):
return request.form
def get_body(request):
return request.data
def get_headers(request):
return request.header... | soasme/axe | axe/default_exts.py | Python | mit | 680 |
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
# Mayor.create(:n... | warolv/wikydoc | db/seeds.rb | Ruby | mit | 362 |
'use strict';
import cheerio = require('cheerio');
import fs = require('fs');
import mkdirp = require('mkdirp');
import my_request = require('./my_request');
import path = require('path');
import subtitle from './subtitle/index';
import vlos from './vlos';
import video from './video/index';
import xml2js = require('xml... | Godzil/Crunchy | src/episode.ts | TypeScript | mit | 13,585 |
<!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_55) on Wed Jun 11 14:26:13 PDT 2014 -->
<title>FVector (Javadocs: FLib)</title>
<meta name="date" content="2014-06-11">
<link rel="styl... | frederickk/flibs | java/distribution/FLib-010/reference/flib/core/FVector.html | HTML | mit | 30,643 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Reflection;
using System.Net.Http;
using Newtonsoft.Json;
namespace Codenesium.DataConversionExtensions
{
public static class ObjectExtensions
{
... | codenesium/DataConversionExtensions | DataConversionExtensions/ObjectExtensions.cs | C# | mit | 2,903 |
//=================================================================================================
/*!
// \file blaze/math/adaptors/uniuppermatrix/Sparse.h
// \brief UniUpperMatrix specialization for sparse matrices
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// This file is part of the ... | camillescott/boink | include/goetia/sketches/sketch/vec/blaze/blaze/math/adaptors/uniuppermatrix/Sparse.h | C | mit | 110,583 |
import qambi, {
getMIDIInputs
} from 'qambi'
document.addEventListener('DOMContentLoaded', function(){
console.time('loading and parsing assets took')
qambi.init({
song: {
type: 'Song',
url: '../data/minute_waltz.mid'
},
piano: {
type: 'Instrument',
url: '../../instruments/h... | abudaan/qambi | examples/concat/main.js | JavaScript | mit | 1,165 |
# Proyecto Yomi!!!
Red social para el descubrimiento, búsqueda y recomendación de menús y recetas de cocina con todas las instrucciones y términos para que puedas prepararlas de forma fácil y sin confusión.
| yomi-network/app | README.md | Markdown | mit | 214 |
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS ... | bigfoot90/doctrine2 | lib/Doctrine/ORM/Query/AST/DeleteClause.php | PHP | mit | 1,646 |
## VERSION 1.1.5
#### GENERAL:
- Created changelog
#### CSS:
- Added emoji-picker CSS
- Fixed highlight CSS
## VERSION 1.1.6
#### CSS:
- Added scrollbar CSS for public server list
## VERSION 1.1.7
#### GENERAL:
- Added link to changelog
- Added link to a preview image
#### CSS:
- Added notification badge CSS for fr... | just4you51/Emerald-J4Y | Changelog.md | Markdown | mit | 19,122 |
module Doorkeeper
class TokensController < Doorkeeper::ApplicationMetalController
def create
response = authorize_response
headers.merge! response.headers
self.response_body = response.body.to_json
self.status = response.status
rescue Errors::DoorkeeperError => e
hand... | EasterAndJay/doorkeeper | app/controllers/doorkeeper/tokens_controller.rb | Ruby | mit | 2,774 |
export default function widget(widget=null, action) {
switch (action.type) {
case 'widget.edit':
return action.widget;
case 'widget.edit.close':
return null;
default:
return widget;
}
}
| KevinAst/astx-redux-util | src/reducer/spec/samples/hash/widgetOld.js | JavaScript | mit | 223 |
---
layout: page
title: Latest Posts
excerpt: "A simple and clean responsive Jekyll theme for words and photos."
search_omit: true
---
<ul class="post-list">
{% for post in site.posts limit:10 %}
<li><article><a href="{{ site.url }}{{ post.url }}"><b>{{ post.title }}</b> <span class="entry-date"><time datetime="{{ p... | xiaoxubeii/xiaoxubeii.github.com | index.html | HTML | mit | 623 |
def tryprint():
return ('it will be oke') | cherylyli/stress-aid | env/lib/python3.5/site-packages/helowrld/__init__.py | Python | mit | 45 |
/*
* JBox2D - A Java Port of Erin Catto's Box2D
*
* JBox2D homepage: http://jbox2d.sourceforge.net/
* Box2D homepage: http://www.gphysics.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 o... | cr0ybot/MIRROR | libraries/JBox2D/src/org/jbox2d/testbed/TestSettings.java | Java | mit | 2,286 |
/**
* @file pifacedigital.h
* @brief A simple static library for controlling PiFace Digital.
* See mcp23s17.h for more register definitions.
*
* Copyright (C) 2013 Thomas Preston <thomas.preston@openlx.org.uk>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the ... | ChristopherGittner/RaspPlc | include/external/pifacedigital.h | C | mit | 5,033 |
<?php
/*
* This file is part of the AntiMattr Content MongoDB Bundle, a Symfony Bundle by Matthew Fitzgerald.
*
* (c) 2014 Matthew Fitzgerald
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace AntiMattr\Bundle\ContentMongo... | antimattr/symfony-demo-app-01 | src/vendor/content-mongodb-bundle/src/AntiMattr/Bundle/ContentMongoDBBundle/Form/Document/PageSectionFormType.php | PHP | mit | 1,927 |
/*!
* Start Bootstrap - Agency v3.3.7+1 (http://startbootstrap.com/template-overviews/agency)
* Copyright 2013-2017 Start Bootstrap
* Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
*/
body {
overflow-x: hidden;
font-family: "Roboto Slab", "Helvetica Neue", Helvetic... | alexgt9/the-pirate-trip | css/agency.css | CSS | mit | 16,369 |
module MollieNLIDeal
class Engine < Rails::Engine
config.mollie_ideal = MollieNLIDeal::Config
end
end
| rsneekes/mollienl-ideal | lib/mollienl-ideal/engine.rb | Ruby | mit | 111 |
require "rails_helper"
RSpec.describe GoogleUrlValidator do
include GoogleSheetHelper
it "validates an incorrect host name" do
record = build_stubbed(:tagging_spreadsheet, url: "https://invalid.com")
GoogleUrlValidator.new.validate(record)
expect(record.errors[:url]).to include(/is not a google docs ... | alphagov/content-tagger | spec/validators/google_url_validator_spec.rb | Ruby | mit | 1,701 |
package org.github.mervyn.io;
import static org.junit.Assert.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @ClassName: FileInputStreamTest
* @Des... | csmervyn/java-learn | java-learn-io/src/test/java/org/github/mervyn/io/FileInputStreamTest.java | Java | mit | 1,707 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Desktop</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<link rel="stylesheet" href="... | hitraffic/desktop | views/index.html | HTML | mit | 837 |
<div class="post">
<h1><a href="{{ Cupboard::route('posts.show', $post->slug) }}">{{ $post->title }}</a></h1>
<div class="date">{{ date("M/d/Y", strtotime($post->publish_date)) }}</div>
<div class="content">
{{ $post->parsed_intro }}
</div>
</div>
| CupboardCMS/core | public/themes/default/inc/post.blade.php | PHP | mit | 254 |
@charset "utf-8";
/* CSS Document */
html,
body {
color: black;
background-color: #333;
}
h1{
color: #e0dfdc;
text-shadow: 0 -1px 0 #ffffff, 0 1px 0 #2e2e2e, 0 2px 0 #2c2c2c, 0 3px 0 #2a2a2a, 0 4px 0 #282828, 0 5px 0 #262626, 0 6px 0 #242424, 0 7px 0 #222222, 0 8px 0 #202020, 0 9px 0 #1e1e1e, 0 10px ... | acmeinfotec/html5formgenerator | css/color/html5-form-generator-color-Yellow.css | CSS | mit | 5,017 |
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("Se... | BlueDress/School | C# Advanced/Regular Expressions Exercises/Series of Letters/Properties/AssemblyInfo.cs | C# | mit | 1,410 |
package be.swsb.productivity.chapter5.beans;
public abstract class CoffeeBeans {
public abstract String scent();
}
| Sch3lp/ProductivityWithShortcuts | src/main/java/be/swsb/productivity/chapter5/beans/CoffeeBeans.java | Java | mit | 120 |
'use strict';
var MemoryStats = require('../../src/models/memory_stats')
, SQliteAdapter = require('../../src/models/sqlite_adapter')
, chai = require('chai')
, expect = chai.expect
, chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
describe('MemoryStats', function() {
describe('.con... | davidcunha/wharf | test/models/memory_stats_test.js | JavaScript | mit | 848 |
package com.zs.leetcode.array;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class MergeIntervals {
public static void main(String[] args) {
}
public List<Interval> merge(List<Interval> intervals) {
List<Interval> list = new ... | zsgithub3895/common.code | src/com/zs/leetcode/array/MergeIntervals.java | Java | mit | 1,011 |
# What is this?
A script and data for a bot that automatically generates and posts the daily/weekly threads to /r/gamedev, as well as stickies and flairs them as appropriate.
# How does it work?
It automatically schedules posts, one post type per `/threads` folder. It determines which thread to post by first looking... | r-gamedev/weekly-posts | README.md | Markdown | mit | 3,708 |
module.exports = {
resolve: {
alias: {
'vue': 'vue/dist/vue.js'
}
}
}
| ye-will/vue-factory | webpack.config.js | JavaScript | mit | 88 |
/**
* Created by kalle on 12.5.2014.
*/
/// <reference path="jquery.d.ts" />
var TheBall;
(function (TheBall) {
(function (Interface) {
(function (UI) {
var ResourceLocatedObject = (function () {
function ResourceLocatedObject(isJSONUrl, urlKey, onUpdate, boundToElements, boundTo... | abstractiondev/TheBallDeveloperExamples | WebTemplates/AdminTemplates/categoriesandcontent/assets/oiplib1.0/TheBall.Interface.UI/UpdatingDataGetter.js | JavaScript | mit | 4,578 |
package bixie.checker.transition_relation;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedList;
import bixie.boogie.controlflow.AbstractControlFlowFactory;
import bixie.boogie.controlflow.BasicBlock;
import bixie.boogie.controlflow.CfgProcedure;
import ... | SRI-CSL/bixie | src/main/java/bixie/checker/transition_relation/FaultLocalizationTransitionRelation.java | Java | mit | 5,883 |
---
title: COPLESTONE
is_name: true
---
COPLESTONE RADCLIFFE see RADCLIFFE
| stokeclimsland/stokeclimsland | _cards/COPLESTONE.md | Markdown | mit | 80 |
<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/2000-2999/2358-34.html | HTML | mit | 2,256 |
module.exports = { prefix: 'far', iconName: 'road', icon: [576, 512, [], "f018", "M246.7 435.2l7.2-104c.4-6.3 5.7-11.2 12-11.2h44.9c6.3 0 11.5 4.9 12 11.2l7.2 104c.5 6.9-5 12.8-12 12.8h-59.3c-6.9 0-12.4-5.9-12-12.8zM267.6 288h41.5c5.8 0 10.4-4.9 10-10.7l-5.2-76c-.4-5.2-4.7-9.3-10-9.3h-31c-5.3 0-9.6 4.1-10 9.3l-5.2 76c-... | dolare/myCMS | static/fontawesome5/fontawesome-pro-5.0.2/fontawesome-pro-5.0.2/advanced-options/use-with-node-js/fontawesome-pro-regular/faRoad.js | JavaScript | mit | 854 |
<?php
function getHost()
{
// Determine the "host" (domain) part of the requested resource URL.
if(isset($_SERVER['HTTP_X_FORWARDED_HOST']) && $host = $_SERVER['HTTP_X_FORWARDED_HOST']) {
$elements = explode(',', $host);
$host = trim(end($elements));
}
el... | Scowen/osrs-market | application/config/appenv.php | PHP | mit | 3,628 |
package ru.ifmo.springaop.namepc;
import org.springframework.aop.Advisor;
import org.springframework.aop.framework.ProxyFactory;
import org.springframework.aop.support.DefaultPointcutAdvisor;
import org.springframework.aop.support.NameMatchMethodPointcut;
import ru.ifmo.springaop.staticpc.SimpleAdvice;
/**
... | meefik/java-examples | SpringAOP/src/main/java/ru/ifmo/springaop/namepc/NamePointcutExample.java | Java | mit | 1,153 |
package fastlanestat
import (
"net/http"
"html/template"
// "fmt"
// Import appengine urlfetch package, that is needed to make http call to the api
"appengine"
"appengine/datastore"
)
type ViewContext struct {
PricePoints []PricePoint
}
func viewStatsHandler(w http.ResponseWriter, r... | ido-ran/fastlanestats | view.go | GO | mit | 881 |
// The MIT License (MIT)
// Copyright © 2015 AppsLandia. All rights reserved.
// 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
... | haducloc/appslandia-common | src/main/java/com/appslandia/common/base/BufferedWriter.java | Java | mit | 3,684 |
/**
* Copyright (c) 2010 Daniel Murphy
*
* 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, merge, publ... | pearlqueen/java-simple-mvc | src/main/java/com/dmurph/mvc/gui/combo/MVCJComboBox.java | Java | mit | 10,703 |
'use strict';
module.exports = function(config) {
config.set({
autoWatch : true,
frameworks: ['jasmine'],
browsers : ['PhantomJS'],
plugins : [
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-coverage'
],
preprocessors: {
'src/**/*.js': ['coverage... | threeq/angular-weui | karma.conf.js | JavaScript | mit | 518 |
<?php
/*
Unsafe sample
input : use exec to execute the script /tmp/tainted.php and store the output in $tainted
sanitize : regular expression accepts everything
construction : concatenation with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty f... | stivalet/PHP-Vulnerability-test-suite | Injection/CWE_90/unsafe/CWE_90__exec__func_preg_match-no_filtering__userByCN-concatenation_simple_quote.php | PHP | mit | 1,525 |
using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Threading;
using System.Web.Mvc;
using WebMatrix.WebData;
using PersonaMVC4Example.Models;
namespace PersonaMVC4Example.Filters
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, I... | shanselman/AspNetPersonaId | MVC4/PersonaMVC4Example/Filters/InitializeSimpleMembershipAttribute.cs | C# | mit | 2,018 |
---
title: JavaScript创建并触发事件
---
只测试了Chrome和UC手机浏览器
## 创建自定义事件
使用[Event][1]构造函数可以直接创建时间,并在制定元素上触发:
```
var event = new Event('build.qiu');
elem.addEventListener('build.qiu', function (e) {}, false);
elem.dispatchEvent(event);
```
[在线demo][1]
## 创建自定义事件并携带数据
使用`CustomEvent`构造函数, 在配置参数的`detail`字段添加需要的参数.然后在`even... | qiu-deqing/qiu-deqing.github.io | html5/_posts/2015-08-18-create-and-trigger-event.md | Markdown | mit | 1,479 |
/*
* Copyright (c) 2013 Triforce - in association with the University of Pretoria and Epi-Use <Advance/>
*
* 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... | jwfwessels/AFK | src/afk/ge/tokyo/ems/systems/DebugRenderSystem.java | Java | mit | 6,629 |
<img src="Z/posix-file-types-file_name.png" alt="Filename type."/>
| io7m/coreland-posix-ada-doc | src/Z/posix-file-types-file_name.html | HTML | mit | 67 |
<?php
require_once('vendor/autoload.php');
| thepsion5/menuizer | tests/bootstrap.php | PHP | mit | 45 |
package models
import java.sql.Timestamp
case class NodeEntity(id: String, instancesCount: Int)
case class InstanceEntity(id: String, nodeId: String, state: String)
case class AttributeEntity(instanceId: String, key: String, value: String)
case class OperationEntity(instanceId: String, interfaceName: String, opera... | vuminhkh/tosca-runtime | deployer/app/models/Models.scala | Scala | mit | 2,119 |
# -*- encoding: utf-8 -*-
module XenAPI
module Network
def network_name_label(name_label)
self.network.get_by_name_label(name_label)
end
end
end
| locaweb/xenapi-ruby | lib/xenapi/network.rb | Ruby | mit | 163 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<a href="" onmouseover="facebook()">Facebook</a>
<br>
<a href="" onmouseover="google()">goggle</a>
<br>
<a href="" onmouseover="twitter()">twitter</a>
<!--<div id="imgs"></div>-->
<br>
<img id="imgs" sr... | david995/phpprojects | Ejercicios/javascript/img/onmousehover.html | HTML | mit | 823 |
package view.menuBar.workspace;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import javax.swing.JOptionPane;
import view.Constants;
import view.ViewController;
/**
* Class that reads in workspace preference files
*
* @author Lalita Maraj
* @author Su... | chinnychin19/CS308_Proj3 | src/view/menuBar/workspace/WorkSpacePreferenceReader.java | Java | mit | 1,836 |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package erp.cfd;
import java.io.Serializable;
/**
*
* @author Juan Barajas
*/
public final class SCfdiSignature implements Serializable {
private String msUuid;
private String msFechaTimbrado;
private ... | swaplicado/siie32 | src/erp/cfd/SCfdiSignature.java | Java | mit | 1,709 |
---
layout: post
lang: fr
title: "Châle White Bird"
date: 2018-02-25 17:00:00
categories: ['crochet', 'création']
comments: true
meta_description: "Un châle tout blanc au crochet avec explications gratuites"
asset_path: 'white-bird'
tags:
- 'crochet'
- 'chale'
- 'shawl'
- 'creation'
- 'NorskFine'
- 'blan... | david-barbion/lcda | _posts/2018-02-25-white-bird.markdown | Markdown | mit | 8,271 |
import traverse from "../lib";
import assert from "assert";
import { parse } from "babylon";
import * as t from "babel-types";
function getPath(code) {
const ast = parse(code, { plugins: ["flow", "asyncGenerators"] });
let path;
traverse(ast, {
Program: function (_path) {
path = _path;
_path.stop... | STRML/babel | packages/babel-traverse/test/inference.js | JavaScript | mit | 8,822 |
# Open Translators to Things Sample App - Android
Sample apps built to Android for Lamp, Shades and Temperature sensors.
This README will help get you started running the sample apps.
## Install Tools
Get your dev environment set up:
* install your Android/Java IDE
## Get the Source
Next, clone this repo to your... | openT2T/sampleapps | android/README.md | Markdown | mit | 1,322 |
var Chartist = require('chartist');
module.exports = makePluginInstance;
makePluginInstance.calculateScaleFactor = calculateScaleFactor;
makePluginInstance.scaleValue = scaleValue;
function makePluginInstance(userOptions) {
var defaultOptions = {
dot: {
min: 8,
max: 10,
unit: 'px'
},
... | psalaets/chartist-plugin-scale-lines-and-dots | index.js | JavaScript | mit | 2,292 |
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | SpongePowered/Sponge | src/main/java/org/spongepowered/common/entity/ai/goal/SpongeGoalType.java | Java | mit | 1,809 |
#pragma once
#include <type_traits>
namespace funcpp::typeclass::eq {
template <typename T>
struct eq_class<T, std::enable_if_t<std::is_scalar<T>::value>> : std::true_type {
static bool
equal(T const& a, T const& b) {
return a == b;
}
};
} | julian-becker/funcpp | modules/typeclass/include/typeclass/eq/scalar.h | C | mit | 260 |
<!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/234567133020.html | HTML | mit | 35,741 |
exports.BattleStatuses = {
brn: {
effectType: 'Status',
onStart: function (target, source, sourceEffect) {
if (sourceEffect && sourceEffect.id === 'flameorb') {
this.add('-status', target, 'brn', '[from] item: Flame Orb');
return;
}
this.add('-status', target, 'brn');
},
onBasePower: function ... | nehoray181/pokemon | data/statuses.js | JavaScript | mit | 14,531 |
package com.example.profbola.bakingtime.provider;
import android.database.sqlite.SQLiteDatabase;
import com.example.profbola.bakingtime.provider.RecipeContract.IngredientEntry;
import static com.example.profbola.bakingtime.utils.RecipeConstants.IngredientDbHelperConstants.INGREDIENT_RECIPE_ID_IDX;
/**
* Created by... | Ehbraheem/Baking-Time | app/src/main/java/com/example/profbola/bakingtime/provider/IngredientDbHelper.java | Java | mit | 2,247 |
version https://git-lfs.github.com/spec/v1
oid sha256:5a4f668a21f7ea9a0b8ab69c0e5fec6461ab0f73f7836acd640fe43ea9919fcf
size 89408
| yogeshsaroya/new-cdnjs | ajax/libs/bacon.js/0.7.46/Bacon.js | JavaScript | mit | 130 |
# jAlgorithms
Algorithms and data structures practice
| ilyagubarev/jAlgorithms | README.md | Markdown | mit | 54 |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define({widgetLabel:"\u56fe\u5c42\u5217\u8868",noItemsToDisplay:"\u5f53\u524d\u6ca1\u6709\u8981\u663e\u793a\u7684\u9879\u76ee\u3002",layerInvisibleAtScale:"\u5728\... | ycabon/presentations | 2020-devsummit/arcgis-js-api-road-ahead/js-api/esri/widgets/LayerList/nls/zh-cn/LayerList.js | JavaScript | mit | 480 |
<?php
namespace Sydes\L10n\Locales;
use Sydes\L10n\Locale;
use Sydes\L10n\Plural\Rule1;
class EuLocale extends Locale
{
use Rule1;
protected $isoCode = 'eu';
protected $englishName = 'Basque';
protected $nativeName = 'euskara';
protected $isRtl = false;
}
| sydes/framework | src/L10n/Locales/EuLocale.php | PHP | mit | 280 |
( function( factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous module.
define( [ "jquery" ], factory );
} else {
// Browser globals
factory( jQuery );
}
} ( function( $ ) {
$.ui = $.ui || {};
return $.ui.version = "1.12.1";
} ) );
/*!
* jQuery UI Widget 1... | malahinisolutions/verify | public/assets/jquery-ui/widgets/controlgroup-f525e8d53867db2d7a4e30c79b5d800b.js | JavaScript | mit | 28,612 |
<?php
/**
* TOP API: taobao.xhotel.rate.add request
*
* @author auto create
* @since 1.0, 2013-12-10 16:57:25
*/
class XhotelRateAddRequest
{
/**
* 额外服务-是否可以加床,1:不可以,2:可以
**/
private $addBed;
/**
* 额外服务-加床价格
**/
private $addBedPrice;
/**
* 币种(仅支持CNY)
**/
private $currencyCode;
/**
*... | allengaller/mazi-cms | web/doc/Resources/open/taobao/taobao-sdk-PHP-online_standard-20131210/top/request/XhotelRateAddRequest.php | PHP | mit | 3,443 |
import java.util.Iterator;
import java.util.NoSuchElementException;
@SuppressWarnings("unchecked")
public class RandomizedQueue<Item> implements Iterable<Item> {
private Item[] _arr;
private int _length = 0;
private void resize(int newLength) {
if (newLength > _arr.length) newLength = 2 * _arr.len... | hghwng/mooc-algs1 | 2/RandomizedQueue.java | Java | mit | 2,505 |
//
//#include "Mesure.h"
//
//Mesure *m;
//
//void setup()
//{
//
//}
//
//void loop()
//{
// m = new Mesure(13,20,4,4);
// m->addNote(Note_E,4,NOIR);
// m->addNote(Note_E,4,NOIR);
// m->addNote(Note_E,4,NOIR);
// m->addNote(Note_C,4,NOIR);
// m->play();
//
// m = new Mesure(13,20,4,4);
// m->addNot... | alexgus/libAudio | Mesure_test.cpp | C++ | mit | 1,521 |
'------------------------------------------------------------------------------
' <auto-generated>
' This code was generated by a tool.
' Runtime Version:4.0.30319.42000
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
' </auto-generated>
'-----------... | miguel2192/CSC-162 | Rodriguez_GuessingGame/Rodriguez_GuessingGame/My Project/Settings.Designer.vb | Visual Basic | mit | 2,950 |
<?php
namespace Robo\Task\FileSystem;
use Robo\Result;
/**
* Mirrors a directory to another
*
* ``` php
* <?php
* $this->taskMirrorDir(['dist/config/' => 'config/'])->run();
* // or use shortcut
* $this->_mirrorDir('dist/config/', 'config/');
*
* ?>
* ```
*/
class MirrorDir extends BaseDir
{
public fun... | boedah/Robo | src/Task/FileSystem/MirrorDir.php | PHP | mit | 835 |
# Makefile.in generated by automake 1.10.1 from Makefile.am.
# Makefile. Generated from Makefile.in by configure.
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation... | SirUsername/flow | node_modules/expresso/deps/jscoverage/Makefile | Makefile | mit | 31,200 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Cookies;
usi... | Useful-Software-Solutions-Ltd/PhantomRunnerAndSearchCrawlerHelper | SearchCrawlerHelper.Sample/Providers/ApplicationOAuthProvider.cs | C# | mit | 4,146 |
import * as types from '@/store/mutation-types';
export default {
namespaced: true,
state: {
type: 0,
catId: 0
},
getters: {
[types.STATE_INFO]: state => {
return state.type + 3;
}
}
}
| Tiny-Fendy/web-express | public/store/modules/m2/m3/index.js | JavaScript | mit | 204 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.Dx.Wopi.Models
{
public class WopiHostCapabilities : IWopiHostCapabilities
{
public bool SupportsCobalt { get; set; }
public bool SupportsContainers { get; se... | apulliam/WOPIFramework | Microsoft.Dx.Wopi/Models/WopiHostCapabilities.cs | C# | mit | 991 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>bdds: 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.07.1-2.0.6/released/8.13.0/bdds/8.9.0.html | HTML | mit | 7,632 |
package com.company;
import java.util.Scanner;
public class TrainingHallEquipment {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
double budget = Double.parseDouble(scanner.nextLine());
int numberOfItems = Integer.parseInt(scanner.nextLine());
... | ivelin1936/Studing-SoftUni- | Programming Fundamentals/Basics-MoreExercises/src/com/company/TrainingHallEquipment.java | Java | mit | 1,209 |
document.observe('click', function(e, el) {
if (el = e.findElement('form a.add_nested_fields')) {
// Setup
var assoc = el.readAttribute('data-association'); // Name of child
var target = el.readAttribute('data-target');
var blueprint = $(el.readAttribute('data-blueprint-id'));
var cont... | Stellenticket/nested_form | vendor/assets/javascripts/prototype_nested_form.js | JavaScript | mit | 2,739 |
<hr />
<div class="post-nav">
{{if .Prev}}<a class="prev-post" href="/posts/{{.Prev.File}}"><- {{.Prev.Title}}</a>{{end}}
{{if .Next}}<a class="next-post" href="/posts/{{.Next.File}}">{{.Next.Title}} -></a>{{end}}
</div>
| Inaimathi/langnostic | resources/public/templates/post-links.html | HTML | mit | 231 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.