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 |
|---|---|---|---|---|---|
<?php
// Add new input type "border width"
if ( function_exists('smile_add_input_type'))
{
smile_add_input_type('margin' , 'margin_settings_field' );
}
add_action( 'admin_enqueue_scripts', 'enqueue_margin_param_scripts' );
function enqueue_margin_param_scripts( $hook ){
$cp_page = strpos( $hook, 'plug_page... | 20steps/alexa | web/wp-content/plugins/framework/lib/fields/margin/margin.php | PHP | mit | 5,319 |
body {
outline: 0;
text-decoration: none;
}
.heading1 {
margin-top: 25px;
text-align: center;
font-size: 25px;
font-family: sans-serif;
color: #127348;
}
.heading2 {
text-align: center;
font-size: 15px;
font-family: sans-serif;
color: #127348;
}
.login-image {
width: 120px;
}
.title-banner {
m... | shozii/PDMAreporting | css/login.css | CSS | mit | 4,231 |
/**
* interact.js v1.1.2
*
* Copyright (c) 2012, 2013, 2014 Taye Adeyemi <dev@taye.me>
* Open source under the MIT License.
* https://raw.github.com/taye/interact.js/master/LICENSE
*/
(function () {
'use strict';
var document = window.document,
SVGElement = window.SVGElement ... | emilkje/interact.js | interact.js | JavaScript | mit | 210,270 |
var base64url = require('urlsafe-base64')
, After = require('json-list-response').After
, inherits = require('util').inherits
module.exports = DateAfter
function DateAfter(value, options) {
After.call(this, value, options)
this.skip = 0
this.value = 0
if (value) {
value = base64url.decode(value)
... | tellnes/mongo-list | lib/after/date.js | JavaScript | mit | 1,122 |
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Rehydrating pre-rendered html in Vue.js with Quench Vue</title>
<link rel="stylesheet" href="stylesheets/quench-one.css">
</head>
<body>
<!-- qr data comes from script,q-data is rendered from server -->
<div id="app" class... | kigenofkenya/snowflake | public/quench-one.html | HTML | mit | 4,975 |
# OMAK
---
Open Mail Access Kit at AUC
| omarayad1/omak | README.md | Markdown | mit | 39 |
# wakautils.pl v9
use strict;
use Time::Local;
use Socket;
use Net::SMTP;
my $has_md5=0;
eval 'use Digest::MD5 qw(md5)';
$has_md5=1 unless $@;
my $has_encode=0;
eval 'use Encode qw(decode)';
$has_encode=1 unless $@;
use constant MAX_UNICODE => 1114111;
#
# HTML utilities
#
my $protocol_re=qr{(?:http://|https://... | marlencrabapple/Glaukaba | wakautils.pl | Perl | mit | 39,034 |
# ファイル一覧
```
ghrb-jp $ find ./ -type f -not -path "./.git/*" -not -path "./.idea/*"
./.github/actions/README.md
./.github/CODE_OF_CONDUCT.md
./.github/CONTRIBUTING.md
./.github/ISSUE_TEMPLATE/bug_report.md
./.github/ISSUE_TEMPLATE/custom.md
./.github/ISSUE_TEMPLATE/feature_request.md
./.github/PULL_REQUEST_TEMPLATE.md... | officel/ghrb-jp | docs/index.md | Markdown | mit | 1,350 |
<?php
require __DIR__ . "/../vendor/autoload.php";
// NOTE: To run this you need to have installed violent-death
// see https://github.com/gabrielelana/violent-death
// Sorry but I don't want to have an explicit dependency
// with violent-death (wich is not so easy to install) only
// to run this example
// The out... | gabrielelana/graceful-death | examples/catch_segmentation_fault.php | PHP | mit | 606 |
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta chars... | AndrewAlva/Newbauer | index.html | HTML | mit | 14,685 |
"""94. Binary Tree Inorder Traversal
https://leetcode.com/problems/binary-tree-inorder-traversal/
Given a binary tree, return the in-order traversal of its nodes' values.
Example:
Input: [1,null,2,3]
1
\
2
/
3
Output: [1,3,2]
Follow up: Recursive solution is trivial, could you do it iteratively?... | isudox/leetcode-solution | python-algorithm/leetcode/problem_94.py | Python | mit | 1,229 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>graph-basics: 31 s 🏆</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.07.1-2.0.6/released/8.8.1/graph-basics/8.8.0.html | HTML | mit | 11,454 |
import React, { MouseEvent, FunctionComponent } from 'react';
import classnames from 'classnames';
import rcFont from '../../assets/RcFont/RcFont.scss';
import styles from './styles.scss';
export interface RemoveButtonProps {
className?: string;
visibility?: boolean;
onClick: (ev: MouseEvent) => void;
}
export ... | ringcentral/ringcentral-js-widget | packages/ringcentral-widgets/components/RemoveButton/RemoveButton.tsx | TypeScript | mit | 790 |
export goCommand from './goCommand'
export goReducer from './goReducer'
export parseBestmove from './parseBestmove'
export parseId from './parseId'
export parseInfo from './parseInfo'
export parseOption from './parseOption'
export initReducer from './initReducer'
| ebemunk/node-uci | src/parseUtil/index.js | JavaScript | mit | 264 |
# TelestreamCloud::Tts::TtsApi
All URIs are relative to *https://api.cloud.telestream.net/tts/v1.0*
Method | HTTP request | Description
------------- | ------------- | -------------
[**corpora**](TtsApi.md#corpora) | **GET** /projects/{projectID}/corpora | Returns a collection of Corpora
[**corpus**](TtsApi.md#corpus... | Telestream/telestream-cloud-ruby-sdk | tts/docs/TtsApi.md | Markdown | mit | 20,771 |
The Laravel way
---------------
```php
class User extends Eloquent
{
// don't need to add anything here
}
```
| Laravel-OC/june-presentation | slides/02_models/01_00_laravel_class.md | Markdown | mit | 114 |
---
layout: page
title: Schwartz 15th Anniversary
date: 2016-05-24
author: Ralph Stanley
tags: weekly links, java
status: published
summary: In eget vestibulum ante. Maecenas pharetra non velit quis.
banner: images/banner/people.jpg
booking:
startDate: 08/31/2019
endDate: 09/01/2019
ctyhocn: DAYAPHX
groupCode: ... | KlishGroup/prose-pogs | pogs/D/DAYAPHX/S1A/index.md | Markdown | mit | 1,703 |
---
layout: page
title: Cunningham Summit Music Award Ceremony
date: 2016-05-24
author: Judith Rowland
tags: weekly links, java
status: published
summary: Nam ut mi feugiat, dapibus eros nec, vestibulum dui.
banner: images/banner/leisure-01.jpg
booking:
startDate: 03/10/2019
endDate: 03/11/2019
ctyhocn: DALVRHX
... | KlishGroup/prose-pogs | pogs/D/DALVRHX/CSMAC/index.md | Markdown | mit | 2,625 |
# A-star search
An implementation of the A* search algorithm used to solve the 8-tile puzzle.
This program tests three different heuristics
- Uniform Cost Search
- Misplaced Tile
- Manhattan Distance
## How to Compile
Type in make.
The executable that is genereated is called a_star.
To remove the dependency files an... | Dave864/A_star_search | README.md | Markdown | mit | 2,613 |
package domain;
import java.util.Date;
/**
* @author Verbroucht Johann
* Test Java Date : 15 aot. 2011
*/
public class Mark {
private Date date;
private int mark;
public Mark(Date _date, int _mark) {
this.date = _date;
this.mark = _mark;
}
public Date getDate() {
return date;
... | johannv/javaTestEasy | src/domain/Mark.java | Java | mit | 497 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
using System.Text.RegularExpressions;
using SharpDX;
namespace Oggy
{
public class MapLayoutResource : IDisposable// : ResourceBase
{
#region properties
priv... | oggy83/OculusWalkerDemo | OculusWalkerDemo/Map/MapLayoutResource.cs | C# | mit | 1,291 |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::DataBoxEdge::Mgmt::V2019_08_01
module Models
#
# Represents the networkAdapter on a device.
#
class NetworkAdapter
in... | Azure/azure-sdk-for-ruby | management/azure_mgmt_databoxedge/lib/2019-08-01/generated/azure_mgmt_databoxedge/models/network_adapter.rb | Ruby | mit | 7,107 |
# v1.4.13
* Original: [Release electron v1.4.13 - electron/electron](https://github.com/electron/electron/releases/tag/v1.4.13)
## Bug Fixes
* Printing now works when the sandbox is enabled. [#8165](https://github.com/electron/electron/pull/8165)
* サンドボックスが有効なときでも印刷が動作するようにしました
* サンドボックス状態だと PDF 印刷が失敗する問題 [#7984... | akabekobeko/electron-release-notes-ja-private-edition | v1.x/v1.4/v1.4.13.ja.md | Markdown | mit | 6,222 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using PubSub;
using Microsoft.Framework.ConfigurationModel;
using Microsoft.Framework.DependencyInjection;
using System.Threading;
namespace MonitorTest
{
public class Program
{
IConfiguration Config { get... | zbrad/WebSocketsDemo | archive/MonitorDemo/MonitorTest/Program.cs | C# | mit | 4,080 |
<?php
namespace Tyler\TopTrumpsBundle\Controller;
use Doctrine\Common\Persistence\ObjectManager;
use Doctrine\ORM\Query;
use Doctrine\ORM\QueryBuilder;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\DependencyInjection\ContainerInterface;
class RequestUtilityFunctions
{
/**
* @param Obj... | DaveTCode/TopTrumps-PHPSymfony | src/Tyler/TopTrumpsBundle/Controller/RequestUtilityFunctions.php | PHP | mit | 2,688 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Gareth Jon Lynch
*
* 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
* ... | gazbert/BX-bot | bxbot-exchanges/src/test/java/com/gazbert/bxbot/exchanges/trading/api/impl/TestOpenOrderImpl.java | Java | mit | 5,233 |
exports.translate = function(tag) {
return this.import("riot").compile(tag);
};
| lixiaoyan/jspm-plugin-riot | riot.js | JavaScript | mit | 82 |
<?php
return array (
'id' => 'lenovo_a2207_ver1_suban41',
'fallback' => 'lenovo_a2207_ver1',
'capabilities' =>
array (
'device_os_version' => '4.1',
),
);
| cuckata23/wurfl-data | data/lenovo_a2207_ver1_suban41.php | PHP | mit | 170 |
/**
* @file ic_frame_constructor.c
* @author Paweł Kaźmierzewski <p.kazmierzewski@inteliclinic.com>
* @author Wojtek Weclewski <w.weclewski@inteliclinic.com>
* @date February, 2017
* @brief Brief description
*
* Description
*/
#include "ic_frame_constructor.h"
#pragma GCC visibility push(hidden)
typ... | inteliclinic/neuroon-unified-communication | src/ic_frame_constructor.c | C | mit | 7,569 |
package cognitiveservices
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is r... | Azure/azure-sdk-for-go | services/cognitiveservices/mgmt/2021-04-30/cognitiveservices/privatelinkresources.go | GO | mit | 5,466 |
<!DOCTYPE html>
<html>
<head>
<title>Game Theory</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/gt/assets/css/main.css">
<link rel="stylesheet" href="/gt/assets/css/normalize.css">
<link rel="stylesheet" href="/gt/assets/css/skeleton.css">
<link ... | drvinceknight/gt | chapters/index.html | HTML | mit | 5,096 |
# -*- coding: utf-8 -*-
from django.core.cache import cache
from django.shortcuts import render
from django.http import Http404
from styleguide.utils import (Styleguide, STYLEGUIDE_DIR_NAME,
STYLEGUIDE_DEBUG, STYLEGUIDE_CACHE_NAME,
STYLEGUIDE_ACCESS)
def in... | andrefarzat/django-styleguide | styleguide/views.py | Python | mit | 897 |
---
layout: post
title: 'Games and Actors (UPDATE)'
date: 2005-06-09 13:48
comments: true
categories : []
---
So I logon this morning and read over at <a href="http://www.wired.com/news/business/0,1367,67803,00.html?tw=rss.TOP">Wired</a> that there's been a settlement between SAG Actors and video game developers.
... | fusion94/fusion94.github.io | _posts/2005-06-09-games-and-actors-update.md | Markdown | mit | 2,156 |
<!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.4.2_05) on Thu Sep 30 22:15:39 GMT+01:00 2004 -->
<TITLE>
Uses of Interface org.springframework.beans.factory.InitializingBean (Spring Framework)
</TITLE... | dachengxi/spring1.1.1_source | docs/api/org/springframework/beans/factory/class-use/InitializingBean.html | HTML | mit | 111,409 |
require 'minitest/unit'
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'disp3D'
| toshi0328/disp3D | test/helper.rb | Ruby | mit | 112 |
# What
Shows how to use an Angular date picker via angular ui bootstrap, yay!
# How
1. download code
2. run `npm install`
3. run `bower install`
4. run `npm start`
5. open up the browser to `http://localhost:8628/`
| JesterXL/angular-date-picker-exercise | README.md | Markdown | mit | 221 |
#pragma once
#include <anax/Component.hpp>
#include <anax/Entity.hpp>
struct BulletComponent :anax::Component
{
float lifeRemaining = 5.f;
int dmg;
anax::Entity owner;
}; | valentingrigorean/Tanks-IP | include/tank/components/BulletComponent.h | C | mit | 176 |
#ifndef BATCHEXTENSION_H
#define BATCHEXTENSION_H
namespace batchextension {
void initBatch(const char *key);
}
#endif | byrobingames/batch | project/include/Utils.h | C | mit | 124 |
.tweets-section {
margin-top: 40px;
height: 100vh;
}
@media (min-width: 768px) {
.map-section {
position: fixed;
}
}
.sebm-google-map-container {
height: 600px;
margin-top: 40px;
height: 100vh;
} | sherifsaleh/meteo | client/components/gmap/gmap.component.css | CSS | mit | 244 |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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.
#ifndef __cplusplus
#error This header can only be compiled as C++.
#endif
#ifnde... | pelorusjack/BlockDX | src/protocol.h | C | mit | 4,640 |
from quotes.models import Quote
from django.contrib import admin
class QuoteAdmin(admin.ModelAdmin):
list_display = ('message', 'name', 'program', 'class_of',
'submission_time')
admin.site.register(Quote, QuoteAdmin)
| k4rtik/alpo | quotes/admin.py | Python | mit | 243 |
<div class="main-content">
<div class="main-content-inner">
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
<ul class="breadcrumb">
<li>
<i class="ace-icon fa fa-home home-icon"></i>
<a href="<?php echo site_url('Home') ?>">Sistem Informasi Kasir</a>
</li><li>
<i class="ac... | ElfanRodh/sikame | application/views/modal/edit.php | PHP | mit | 3,353 |
function Set-DbaDbCompression {
<#
.SYNOPSIS
Sets tables and indexes with preferred compression setting.
.DESCRIPTION
This function sets the appropriate compression recommendation, determined either by using the Tiger Team's query or set to the CompressionType parameter.
... | SirCaptainMitch/dbatools | functions/Set-DbaDbCompression.ps1 | PowerShell | mit | 19,148 |
using UnityEngine;
using System.Collections;
/// <summary>
/// THIS IS OBSOLETE CLASS
/// Use PowerUpManager instead
/// </summary>
public class PowerUpElement : MonoBehaviour {
const float SUPERCHARGE_BASE_TIME = 5.0f;
Animator animator;
public enum PowerUpType { pu_triple_shot, pu_safety_net, pu_reinforced_gl... | gbudiman/glass | Gloria_Huixin_Glass/Assets/Networking/PowerUpElement.cs | C# | mit | 4,705 |
en.resources.define("audio",{
name: "Engine",
src: "./audio/ship_engine.ogg",
}, function(content, callback){
var sound = client.audio.createSound();
sound.load(content.src, function(sound){
content.sound = sound;
callback(content.type, content);
});
}, function(content){
return content.sound;
}); | thehink/GLWars | client/assets_types/audio.js | JavaScript | mit | 319 |
/**
* @file PrintableButton.h
* @brief Contains PrintableButton class declaration
* @author Khalin Yevhen
* @version 0.0.1
* @date 07.09.17
*/
#pragma once
#include "..\khalin03\Button.h"
#include <StorageInterface.h>
#include "..\khalin01\Printable.h"
#include <string>
/**
* @brief It's just a print... | kit25a/se-cpp | khalin-yevhen/src/khalin05/PrintableButton.h | C | mit | 902 |
from tkinter import *
import tkinter
import HoursParser
class UserInterface(tkinter.Frame):
def __init__(self, master):
self.master = master
self.events_list = []
# Set window size
master.minsize(width=800, height=600)
master.maxsize(width=800, height=600)
... | itsknob/TechnicalServicesScheduler-Python | interface.py | Python | mit | 3,856 |
---
layout: page
subheadline: Events
title: "Semagrow site online"
teaser: "The SemaGrow project is approaching completion in a few days,
and we are preparing for life after EC funding."
meta_teaser: "The SemaGrow project is approaching completion in a few
days, and we are preparing for life after EC funding."
brea... | semagrow/semagrow.github.io | _posts/events/2015-10-23-Semagrow-site-online.md | Markdown | mit | 829 |
required_states = ['accept', 'reject', 'init']
class TuringMachine(object):
def __init__(self, sigma, gamma, delta):
self.sigma = sigma
self.gamma = gamma
self.delta = delta
self.state = None
self.tape = None
self.head_position = None
return
... | ssanderson/turing.py | turing.py | Python | mit | 2,182 |
#pragma once
#include "RenderInfo.h"
class MeshObject;
class DefaultObjcetRenderInfo final : public RenderInfo
{
public:
float m_specularPower = 100.0f;
int m_celShaded = 0;
void updatePerObjectBuffers(const DrawData&, const MeshObject&) override;
void updatePerFrameBuffers(const DrawData&) override;
~DefaultObj... | OCHyams/VROutline | VROutline/VROutline/DefaultObjectRenderInfo.h | C | mit | 355 |
using System.Web;
using System.Web.Optimization;
namespace SimpleSTS
{
public class BundleConfig
{
// For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptB... | johnproctor/ThinktectureSSODemo | SimpleSTS/App_Start/BundleConfig.cs | C# | mit | 1,240 |
.user-dashboard{
position: absolute;
right: 0;
width: 80%;
height: auto;
} | mozi22/IntraFileSharingSystem | sharing/src/app/add-files/add-files.component.css | CSS | mit | 90 |
---
layout: author
login: ibenichou
title: Ilan Benichou
twitter: IlanBenhamou
permalink: /authors/ibenichou/
---
Développeur Fullstack (PHP/JS/IOS/DEVOPS), j'adore découvrir de nouvelle chose, toujours prêt à relever un challenge.
| eleven-labs/eleven-labs.github.io | _authors/ibenichou.md | Markdown | mit | 236 |
<?php
namespace ZfbUser\Options;
/**
* Interface ResetPasswordFormOptionsInterface
*
* @package ZfbUser\Options
*/
interface ResetPasswordFormOptionsInterface extends FormOptionsInterface
{
/**
* @return string
*/
public function getCredentialFieldLabel(): string;
/**
* @return string
... | narekps/ZfbUser | src/Options/ResetPasswordFormOptionsInterface.php | PHP | mit | 583 |
module ArrayNamedAccess
def second
self[1]
end
def third
self[2]
end
end | jimjames99/group_by_summary | lib/array_named_access.rb | Ruby | mit | 91 |
/*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | wawaeasybuy/jobandroid | Job/app/src/main/java/com/mardin/job/widgets/wizard/ui/SingleChoiceFragment.java | Java | mit | 4,068 |
/// <reference path="../../tsd.d.ts" />
import {
Component, View,
} from 'angular2/core';
import { CORE_DIRECTIVES } from 'angular2/common';
import {tabs} from '../../ng2-bootstrap';
import {TimepickerDemo} from './timepicker/timepicker-demo';
let name = 'Timepicker';
let src = 'https://github.com/valor-software/ng... | ciriarte/ng2-bootstrap | demo/components/timepicker-section.ts | TypeScript | mit | 1,970 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="tr" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About Mojocoin</source>
<translation>Mojocoin Hakkında</translation>
</message>
<message>
<lo... | MOJOv3/mojocoin | src/qt/locale/bitcoin_tr.ts | TypeScript | mit | 131,730 |
var express = require("express");
var Pusher = require("pusher");
var bodyParser = require("body-parser");
var env = require("node-env-file");
var app = express();
app.use(bodyParser.urlencoded());
try {
env(__dirname + "/.env");
} catch (_error) {
error = _error;
console.log(error);
}
var pusher = new Pusher... | adambutler/geo-pusher | server.js | JavaScript | mit | 735 |
module Protobuf
module ActiveRecord
class Railtie < Rails::Railtie
config.protobuf_active_record = Protobuf::ActiveRecord.config
ActiveSupport.on_load(:active_record) do
on_inherit do
include Protobuf::ActiveRecord::Model if Protobuf::ActiveRecord.config.autoload
end
e... | film42/protobuf-activerecord | lib/protobuf/active_record/railtie.rb | Ruby | mit | 623 |
<html>
<head>
<title>
The rising resistance
</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="744... | ISO-tech/sw-d8 | web/2003-1/440/440_03_Resistance.php | PHP | mit | 4,954 |
var app = angular.module("ethics-app");
// User create controller
app.controller("userCreateController", function($scope, $rootScope, $routeParams, $filter, $translate, $location, config, $window, $authenticationService, $userService, $universityService, $instituteService) {
/************************************... | sitcomlab/Ethics-app | public/member-client/js/controllers/user/createController.js | JavaScript | mit | 5,089 |
package sample.rabbitmq;
import static sample.rabbitmq.annotation.RabbitDirectRouting.*;
import java.util.Arrays;
import java.util.concurrent.*;
import org.springframework.amqp.rabbit.annotation.*;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.amqp.rabbit.listener.ListenerCon... | jkazama/sandbox | amqp/src/main/java/sample/rabbitmq/RabbitDirectChecker.java | Java | mit | 3,030 |
/*
* Author: 陈志杭 Caspar
* Contact: 279397942@qq.com qq:279397942
* Description: 数据接口契约文件
* 文件由模板生成,请不要直接修改文件,如需修改请创建一个对应的partial文件
*/
using System;
using System.Collections;
using Zh.DAL.Define.Entities;
using Zh.DAL.Define;
using Zh.DAL.Base.Define;
using Zh.DAL.Define.Contracts;
namespace Zh.DAL.Define.Contrac... | Caspar12/Csharp | src/Zh.DAL.Define/Contracts/Imp/AutoCode/dtArticleDao.cs | C# | mit | 580 |
/*
* Author: 陈志杭 Caspar
* Contact: 279397942@qq.com qq:279397942
* Description: 数据契约实体模型文件
* 文件由模板生成,请不要直接修改文件,如需修改请创建一个对应的partial文件
*/
using System;
using System.Collections;
using System.Collections.Generic;
using Zh.DAL.Define.Entities;
using Zh.DAL.Base.Define.Entities;
namespace Zh.DAL.Define.Entities
{
#r... | Caspar12/Csharp | src/Zh.DAL.Define/Entities/AutoCode/Activity_AC_Match.cs | C# | mit | 3,078 |
<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!... | merenlab/web | _layouts/page.html | HTML | mit | 2,006 |
#!/usr/bin/env node
var child_process = require('child_process');
var argv = require('yargs')
.boolean(['readability', 'open'])
.argv;
var pdfdify = require('../lib');
var srcUrl = argv._[0];
console.log("Convertering: '"+srcUrl+"'");
pdfdify.convert({
title:argv.title|| srcUrl,
readability:argv.readability,
... | darvin/prince-bookmarklet | bin/pdfdify.js | JavaScript | mit | 507 |
module WargamingApi::Util
end
require 'wargaming_api/util/uri'
require 'wargaming_api/util/params'
require 'wargaming_api/util/http' | DmitryDrobotov/wargaming_api_ruby | lib/wargaming_api/util.rb | Ruby | mit | 133 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HelpTheHomelessApp.Models;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace HelpTheHomelessApp
{
public partial class SurveyPage : ContentPage
{
public List<SurveyQuestionModel> ... | leightonb/HomelessHack2017 | HelpTheHomelessApp/HelpTheHomelessApp/SurveyPage.xaml.cs | C# | mit | 4,006 |
package graphql.analysis;
import graphql.PublicApi;
import graphql.execution.AbortExecutionException;
import graphql.execution.instrumentation.InstrumentationContext;
import graphql.execution.instrumentation.SimpleInstrumentation;
import graphql.execution.instrumentation.parameters.InstrumentationValidationParameters;... | graphql-java/graphql-java | src/main/java/graphql/analysis/MaxQueryComplexityInstrumentation.java | Java | mit | 7,538 |
package com.github.maxopoly.finale.combat;
public class CombatConfig {
private int cpsLimit;
private long cpsCounterInterval;
private boolean noCooldown;
private double maxReach;
private boolean sweepEnabled;
private CombatSoundConfig combatSounds;
private double horizontalKb;
private double verticalKb;
priv... | Maxopoly/Finale | src/main/java/com/github/maxopoly/finale/combat/CombatConfig.java | Java | mit | 4,053 |
//
// Created by Chris Richards on 28/04/2016.
//
#include <gtest/gtest.h>
#include <DbfTable.h>
class Dbase31TableFixture : public ::testing::Test {
protected:
virtual void SetUp() {
dbf_table_ = DbfTablePtr(new DbfTable("/Users/chrisr/Development/ClionProjects/dbf2csv/dbf_tests/fixtures/dbase_31.dbf"));... | yellowfeather/dbf2csv | dbf_tests/dbase31_tests/Dbase31TableFixture.cpp | C++ | mit | 699 |
---
uid: SolidEdgeAssembly.Bundle.DeletePhysicalConductor
summary:
remarks:
---
| SolidEdgeCommunity/docs | docfx_project/apidoc/SolidEdgeAssembly.Bundle.DeletePhysicalConductor.md | Markdown | mit | 85 |
/**
* Sizzle Engine Support v2.2.0
* http://rightjs.org/plugins/sizzle
*
* Copyright (C) 2009-2011 Nikolay Nemshilov
*/
/**
* sizzle initialization script
*
* Copyright (C) 2010-2011 Nikolay Nemshilov
*/
RightJS.Sizzle = {
version: '2.2.0'
};
/*!
* Sizzle CSS Selector Engine - v1.0
* Copyright 2009, ... | MadRabbit/right-rails | vendor/assets/javascripts/right/sizzle-src.js | JavaScript | mit | 30,339 |
#!/usr/bin/python
import argparse
from os import path as os_path
import demo_project as demo
import traceback
def set_host_url_arg():
parser.add_argument('--host', required=True,
help='the url for the Materials Commons server')
def set_datapath_arg():
parser.add_argument('--datapath', ... | materials-commons/materialscommons.org | backend/scripts/demo-project/build_project.py | Python | mit | 1,400 |
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import getIn from '@mzvonar/getin';
import isEvent from './../utils/isEvent';
import getPath from './../utils/getPath';
import deepEqual from 'react-fast-compare';
function deleteChildren(object, children) {
let del... | mzvonar/modular-redux-form | src/components/ConnectedInput.js | JavaScript | mit | 6,941 |
<html>
<head>
<style>
canvas#imageCanvas {
position: absolute;
left: 100px;
top: 100px;
}
canvas#coverCanvas {
position: absolute;
left: 500px;
top: 100px;
}
canvas#fftCanvas {
position: absolute;
left: 900px;
top: 100px;
}
</style>
</head>
<body>
<canvas id="imageCa... | wowhack/uncovered-service | public/graphics.html | HTML | mit | 4,574 |
# feedback
> An angular directive for sending feedback featuring [Angular 6](https://angular.io), [Html2canvas](https://html2canvas.hertzen.com/), [Angular Material](https://material.angular.io), [Rxjs](https://rxjs-dev.firebaseapp.com/), inspired by Google send feedback, based on [angular-cli](https://github.com/angul... | RickonChen/feedback | README.md | Markdown | mit | 3,216 |
using System.Xml.Serialization;
namespace MovieDatabase.ImportDataFromFiles.ImportingData.XMLModels
{
public class Director
{
[XmlElement("firstName")]
public string FirstName { get; set; }
[XmlElement("lastName")]
public string LastName { get; set; }
[XmlElement("age... | Team-Singapore-Sling/TeamWork | MovieDatabase/MovieDatabase.ImportDataFromFiles/ImportingData/XMLModels/Director.cs | C# | mit | 446 |
# frozen_string_literal: true
# Job is a base class that jobs must subclass
class DivvyUp::Job
class << self
attr_reader :queue
def perform_async(*args)
DivvyUp.service.enqueue job_class: self, args: args
end
end
end
| nilobject/divvyup | lib/divvyup/job.rb | Ruby | mit | 241 |
# nodedev
Development sandbox using node
| leapon/nodedev | README.md | Markdown | mit | 41 |
package edu.stanford.graphics.shapenet.jme3.viewer
import java.io.File
import edu.stanford.graphics.shapenet.{Constants, UserDataConstants}
import edu.stanford.graphics.shapenet.common.{CameraState, GeometricScene, CameraInfo}
import edu.stanford.graphics.shapenet.jme3.JmeUtils
import edu.stanford.graphics.shapenet.j... | ShapeNet/shapenet-viewer | src/main/scala/edu/stanford/graphics/shapenet/jme3/viewer/CameraPositionOptimizer.scala | Scala | mit | 31,453 |
<!DOCTYPE html>
<html>
<head>
<title>Concave shapes demo - p2.js physics engine</title>
<link href="css/demo.css" rel="stylesheet"/>
<meta name="description" content="Demonstrates concave shapes and how to use Body.fromPolygon().">
<meta charset="utf-8">
<meta name="viewport" content="width=device-w... | playif/play_p2 | demo/concave.html | HTML | mit | 607 |
import { createTest } from 'tests/test-utils'
import moment from 'moment'
import { EventTypes, Disciplines } from 'client/calendar/events/types'
import _ from 'lodash'
import ncnca2017 from '../2017-ncnca-events'
import usac2017 from '../2017-usac-events'
const events = _.concat(
// does not inlcude older events th... | Restuta/rcn.io | src/client/temp/data/tests/common-tests.js | JavaScript | mit | 4,852 |
using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using Quasar.Communication.Packets.Outgoing.Users;
using Quasar.Database.Interfaces;
namespace Quasar.Communication.Packets.Incoming.Users
{
class CheckValidNameEvent : IPacketEvent
{
public void Parse(HabboHotel.... | slaapkopamy/PlusEmu-making-ready-for-linux-server | Communication/Packets/Incoming/Users/CheckValidNameEvent.cs | C# | mit | 2,939 |
# frozen_string_literal: true
module Eve
class RegionContractsJob < ApplicationJob
queue_as :default
retry_on EveOnline::Exceptions::Timeout,
EveOnline::Exceptions::ServiceUnavailable,
EveOnline::Exceptions::BadGateway,
EveOnline::Exceptions::InternalServerError,
OpenSSL::SSL::SSLErr... | biow0lf/evemonk | app/jobs/eve/region_contracts_job.rb | Ruby | mit | 504 |
/**
* Global Variable Configuration
* (sails.config.globals)
*
* Configure which global variables which will be exposed
* automatically by Sails.
*
* For more information on configuration, check out:
* http://sailsjs.org/#!/documentation/reference/sails.config/sails.config.globals.html
*/
module.exports.global... | dcamachoj/rauxa-code | config/globals.js | JavaScript | mit | 3,304 |
/***
* Inferno Engine v4 2015-2017
* Written by Tomasz "Rex Dex" Jonarski
*
* [# filter: elements\controls\simple #]
***/
#include "build.h"
#include "uiProgressBar.h"
#include "ui/toolkit/include/uiStaticContent.h"
namespace ui
{
//---
// active area element, does nothing but is
class ProgressBarArea ... | InfernoEngine/engine | dev/src/ui/widgets/src/uiProgressBar.cpp | C++ | mit | 3,017 |
<?php
/**
* Flash Messenger - implement session-based messages
*
* @author Loïc Frering <loic.frering@gmail.com>
*/
class LoSo_Zend_Controller_Action_Helper_FlashMessenger extends Zend_Controller_Action_Helper_FlashMessenger
{
/**
* preDispatch() - runs before action is dispatched.
*
* @return Lo... | loicfrering/losolib | src/LoSo/Zend/Controller/Action/Helper/FlashMessenger.php | PHP | mit | 1,579 |
#include "MW_Timer.hpp"
MW_Timer::MW_Timer(double periodInSeconds): period(periodInSeconds)
{
reset();
}
bool MW_Timer::get() const
{
b_mutex.lock();
bool retVal = MPI::Wtime() > expirationTime;
b_mutex.unlock();
return retVal;
}
void MW_Timer::reset()
{
b_mutex.lock();
expirationTime = MPI::Wtime() + perio... | seanjh/parallel_lab2 | MW_Timer.cpp | C++ | mit | 344 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JavaScript Validator</title>
<link rel="stylesheet" type="text/css" href="styles/style.css" />
<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/jquery-ui.js"></script>
<script type="text/j... | xDaevax/Industrial-Validation | examples/basicValidator/index.html | HTML | mit | 2,088 |
using StatsdClient.MetricTypes;
using System;
using System.Collections.Generic;
namespace StatsdClient
{
public interface IStatsd
{
void Send<TCommandType>(string name, int value) where TCommandType : Metric, IAllowsInteger, new();
void Send<TCommandType>(string name, double value) whe... | Kyle2123/statsd-csharp-client | src/StatsdClient/IStatsd.cs | C# | mit | 714 |
#require 'byebug'
require_relative '../models/url'
get '/' do
@urls = Url.last
erb :"static/index"
end
post '/urls' do
x = Url.new(long_url: params[:long_url])
x.shorten
x.save!
x.to_json
# redirect to '/'
#use return @long_url to immediately return the long_url without going to the controller
#ajax is usin... | anyatan/bitly-clone | app/controllers/static.rb | Ruby | mit | 504 |
this.NesDb = this.NesDb || {};
NesDb[ '9F3DE783494F7FF30679A17B0C5B912834121095' ] = {
"$": {
"name": "Nekketsu Kouha Kunio-kun",
"altname": "熱血硬派くにおくん",
"class": "Licensed",
"catalog": "TJC-KN",
"publisher": "Technos",
"developer": "Technos",
"region": "Japan",
"players": "2",
"date": "1987-04-17"
... | peteward44/WebNES | project/js/db/9F3DE783494F7FF30679A17B0C5B912834121095.js | JavaScript | mit | 1,227 |
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=88fa5378154507f6f401)
* Config saved to config.json and https:... | iGusev/slayer | public/css/bootstrap-theme.css | CSS | mit | 26,020 |
<?php
/*
* This file is part of Pimple.
*
* Copyright (c) 2009 Fabien Potencier
*
* 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... | alpipego/resizefly | src/Common/Pimple/Exception/UnknownIdentifierException.php | PHP | mit | 1,717 |
/**
* Interaction for the tags module
*
* @author Tijs Verkoyen <tijs@sumocoders.be>
*/
jsBackend.tags =
{
// init, something like a constructor
init: function()
{
$dataGridTag = $('.jsDataGrid td.tag');
if($dataGridTag.length > 0) $dataGridTag.inlineTextEdit({ params: { fork: { action: 'edit' } }, tooltip:... | jlglorences/jorge_prueba | src/Backend/Modules/Tags/Js/Tags.js | JavaScript | mit | 392 |
/* global WebFont */
(function () {
'use strict';
function FontLoaderFactory () {
return {
setFonts : function () {
WebFont.load({
custom: {
families: [ 'FontAwesome','Ubuntu','Oxygen','Open Sans' ],
urls: [ '/fonts/base.css']
}
});
}
... | dlfinis/master-sigma | assets/angular/components/core/fontloader/fontloader.mdl.js | JavaScript | mit | 428 |
module.exports = handler
var debug = require('../debug').server
var fs = require('fs')
function handler (err, req, res, next) {
debug('Error page because of ' + err.message)
var ldp = req.app.locals.ldp
// If the user specifies this function
// then, they can customize the error programmatically
if (ldp.e... | nicola/ldnode | lib/handlers/error-pages.js | JavaScript | mit | 941 |
export interface IArticle {
articleId: number,
name: string,
description: string,
prix: number,
stock: number
} | milleniu/JavaForWeb.CandiesForAll | app/candiesForAll/src/app/model/article.model.ts | TypeScript | mit | 131 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.