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 defined('C5_EXECUTE') or die("Access Denied."); global $c; // grab all the collections belong to the collection type that we're looking at Loader::model('collection_types'); $ctID = $c->getCollectionTypeID(); $ct = CollectionType::getByID($ctID); $cList = $ct->getPages(); ?> <div class="ccm-ui"> <form method="...
tayeke/Klein-Instruments
concrete/elements/block_master_collection_alias.php
PHP
mit
2,644
<?php use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model AlexanderEmelyanov\yii\modules\articles\models\Article */ $this->title = Yii::t('app', 'Update {modelClass}: ', [ 'modelClass' => 'Article', ]) . ' ' . $model->article_id; $this->params['breadcrumbs'][] = ['label' => Yii::t('app', '...
alexander-emelyanov/yii2-articles-module
views/articles/update.php
PHP
mit
682
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateRoadblockTagAndContextTables extends Migration { /** * Run the migrations. * * @return void */ public function up() { if (!Schema::hasTable('roadblocks')) { ...
BBBThunda/projectify
app/database/migrations/2014_09_04_132444_create_roadblock_tag_and_context_tables.php
PHP
mit
3,901
@import url("./bootstrap/css/bootstrap.css"); @import url("./fontawesome/css/font-awesome.css"); body { } .navbar-brand img { max-height: 30px; margin-right: 20px; margin-top: -6px; }
TokenMarketNet/ethereum-smart-contract-transaction-demo
src/main.css
CSS
mit
193
#include <cstdio> #include <algorithm> using namespace std; const int maxn = 111; int arr[maxn]; int main() { //freopen("in.txt", "r", stdin); int n, m; while(2 == scanf("%d%d", &n, &m) && !(n==0 && m==0)) { for(int i = 0; i < n; ++i) scanf("%d", &arr[i]); arr[n] = m; s...
bashell/oj
hdu/2019.cpp
C++
mit
485
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace ContosoUniversity.WebApi.Controllers { public class ValuesController : ApiController { // GET api/values public IEnumerable<string> Get() { ...
ChauThan/WebApi101
src/ContosoUniversity.WebApi/Controllers/ValuesController.cs
C#
mit
791
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./52b2fda3bd58f1a43a67b48b0bb8d03f82aae6247c19cb3e1f6cb057ca1c8718.html">Teleport</a> <hr> ...
simonmysun/praxis
TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/76fdc108858381c1bd203e3bd2fb2126995af3857aa91fa0c688c54727428c26.html
HTML
mit
550
/** * A debounce method that has a sliding window, there's a minimum and maximum wait time **/ module.exports = function (cb, min, max, settings) { var ctx, args, next, limit, timeout; if (!settings) { settings = {}; } function fire() { limit = null; cb.apply(settings.context || ctx, args); } function ...
b-heilman/bmoor
src/flow/window.js
JavaScript
mit
935
# -*- coding: utf-8 -*- from flask import Blueprint from jotonce.api import route from jotonce.passphrases.models import Passphrase bp = Blueprint('passphrase', __name__, url_prefix='/passphrase') @route(bp, '/') def get(): p = Passphrase.get_random() return {"results": p}
nficano/jotonce.com
jotonce/api/passphrases.py
Python
mit
285
package ru.lanbilling.webservice.wsdl; import java.util.ArrayList; import java.util.List; import javax.annotation.Generated; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; ...
kanonirov/lanb-client
src/main/java/ru/lanbilling/webservice/wsdl/GetVgroupsAddonsStaffResponse.java
Java
mit
2,337
class AddIndicesToPartialFlow < ActiveRecord::Migration[5.1] def change add_index :partial_flows, [ :is_syn, :state ] add_index :partial_flows, [ :src_ip, :dst_ip, :src_port, :dst_port, :state ], name: 'identify_index' end end
GetPhage/phage
db/migrate/20171029040306_add_indices_to_partial_flow.rb
Ruby
mit
239
#include "background_extractor.h" namespace TooManyPeeps { BackgroundExtractor::BackgroundExtractor(const cv::Mat& original, cv::Mat& result, int historySize, double threshold) : ProcessFilter(original, result) { backgroundExtractor = cv::createBackgroundSubtractorMOG2(historySize, threshold, TRACK_SHA...
99-bugs/toomanypeeps
opencv_detector/src/lib/filter/background_extractor.cpp
C++
mit
783
<?php namespace App; use Doctrine\ORM\Mapping as ORM; /** * @ORM\MappedSuperclass * @ORM\HasLifecycleCallbacks() */ abstract class Entity { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** ...
Meshredded/slim-framework_doctrine_mini_web-service
src/App/Entity.php
PHP
mit
1,676
--- title: Comunicación en Tiempo Real sidebar_label: WebSockets --- > *This feature is available from version 2.8 onwards.* Foal allows you to establish two-way interactive communication between your server(s) and your clients. For this, it uses the [socket.io v4](https://socket.io/) library which is primarily based...
FoalTS/foal
docs/i18n/es/docusaurus-plugin-content-docs/current/websockets.md
Markdown
mit
12,529
var gulp = require('gulp'), jshint = require('gulp-jshint'), mocha = require('gulp-mocha'), cover = require('gulp-coverage'), jscs = require('gulp-jscs'); gulp.task('default', ['jscs', 'lint', 'test'], function () { }); gulp.task('lint', function () { return gulp.src(['./lib/*.js', './test/*.js'])...
olavhaugen/telldus-live-promise
gulpfile.js
JavaScript
mit
875
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace RepertoryGridGUI.ufos { public partial class ufoConstructAlternative : Form { public ufoConstru...
felixlindemann/RepertoryGrid
RepertoryGrid/RepertoryGridGUI/ufos/ufoConstructAlternative.cs
C#
mit
407
using System.ComponentModel.DataAnnotations; using EPiServer; using EPiServer.DataAbstraction; using EPiServer.DataAnnotations; using ImageProcessor.Web.Episerver.UI.Blocks.Business; namespace ImageProcessor.Web.Episerver.UI.Blocks.Models.Blocks { [ContentType(DisplayName = "Detect Edges", GUID = "d490901...
vnbaaij/ImageProcessor.Web.Episerver
src/ImageProcessor.Web.Episerver.UI.Blocks/Models/Blocks/DetectEdgesBlock.cs
C#
mit
1,125
public class Solution { public List<List<Integer>> generate(int numRows) { List<List<Integer>> result = new ArrayList<>(); ArrayList<Integer> tmp = new ArrayList<>(); for (int i = 0; i < numRows; i++) { tmp.add(0, 1); for (int j = 1; j < tmp.size() - 1; j++) { ...
liupangzi/codekata
leetcode/Algorithms/118.Pascal'sTriangle/Solution.java
Java
mit
471
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="../css/lib/pure.min.css"> <link rel="stylesheet" href="../css/whhg.css"> <link rel="stylesheet" href="../css/main.css"> <link rel="icon" type="image/png" href="../favicon.png?v=1.01"> <title>Dining @ CU</title> ...
kevin-roark/dining-at-cu
menu/index.html
HTML
mit
5,671
if (typeof window !== 'undefined') { var less = require('npm:less/lib/less-browser/index')(window, window.less || {}) var head = document.getElementsByTagName('head')[0]; // get all injected style tags in the page var styles = document.getElementsByTagName('style'); var styleIds = []; for (va...
Aaike/jspm-less-plugin
less.js
JavaScript
mit
2,820
(function () { "use strict"; angular.module("myApp.components.notifications") .factory("KudosNotificationService", KudosNotificationService); KudosNotificationService.$inject = [ "Transaction" ]; function KudosNotificationService(transactionBackend) { var service = { ...
open-kudos/open-kudos-intern-web
src/app/components/kudos-notifications-transaction/kudos-notification-transaction.service.js
JavaScript
mit
722
--- layout: base published: true --- <style> #carouselExampleIndicators{ /*max-height: 70vh;*/ padding-top: -10vh; padding-bottom: 8vh; height: 100vh; position: relative; } .carousel-inner{ padding-top: -10vh; padding-bottom: 8vh; height: 100vh; position: relative; backgr...
CarletonComputerScienceSociety/carletoncomputersciencesociety.github.io
_layouts/main.html
HTML
mit
4,717
import numpy as np from pycqed.analysis import measurement_analysis as ma from pycqed.analysis_v2 import measurement_analysis as ma2 from pycqed.measurement import sweep_functions as swf from pycqed.measurement import detector_functions as det MC_instr = None VNA_instr = None def acquire_single_linear_frequency_span...
DiCarloLab-Delft/PycQED_py3
pycqed/measurement/VNA_module.py
Python
mit
12,353
#include <stdbool.h> #include <string.h> #include <stdio.h> #include <assert.h> #include "hkl_tree.h" #include "hkl_alloc.h" /* * HklPair */ HklPair* hkl_pair_new() { HklPair* pair = hkl_alloc_object(HklPair); pair->key = hkl_string_new(); pair->value = NULL; return pair; } HklPair* hkl_pair_new_from_d...
hkl/hkl
src/hkl_tree.c
C
mit
9,955
/** (function(){ window.saveUser(); saveBlog(); var util_v1 = new window.util_v1(); util_v1.ajax(); test1(); test2(); test3(); //当$(function(){window.test3=fn});时,报错! test4(); })(); **/ /** (function(w){ w.saveUser(); saveBlog(); var util_v1 = new w.util_v1(); util_v1.ajax(); test1(); test2(); t...
rainbowCN/soul
javascript/research/JS 10 Share/Javascript技术研究第1讲《JS代码的组织》/app2.js
JavaScript
mit
1,127
# Change Log All notable changes to this project will be documented in this file. ## 1.0.0 - Initial commit copied from
kasperwelner/Clean-RxSwift-Template
CHANGELOG.md
Markdown
mit
124
Template.login.events({ 'submit form': function(){ event.preventDefault(); var email = event.target.email.value; var password = event.target.password.value; //error handling Meteor.loginWithPassword(email, password, function(error){ if (error) { alert(error.reason); } else{ Router.go('/'); ...
quanbinn/healthygeek
client/templates/login.js
JavaScript
mit
336
#include "utility/vector.h" #include "utility/direction.h" #include <math.h> static Vector DIRECTIONS[DIRECTION_POOL_SIZE]; void Direction_init() { double angle = 0.; int id; for (id = 0; id < DIRECTION_POOL_SIZE; ++id) { Vector_set( &DIRECTIONS[id], cos(angle), -sin(angle) ); angle -= ...
OrenjiAkira/spacegame
src/utility/direction.c
C
mit
427
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
MTASZTAKI/ApertusVR
plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/test/parallel/test-fs-write.js
JavaScript
mit
4,815
using System; using Microsoft.Extensions.DependencyInjection; using ZptSharp.Dom; using ZptSharp.Hosting; namespace ZptSharp { /// <summary> /// Extension methods for <see cref="IBuildsHostingEnvironment"/> instances. /// </summary> public static class XmlHostingBuilderExtensions { /// <sum...
csf-dev/ZPT-Sharp
DocumentProviders/ZptSharp.Xml/XmlHostingBuilderExtensions.cs
C#
mit
1,301
abstract sealed class Action case class Atom(atom: Unit => Action) extends Action { override def toString() = "atom" } case class Fork(a1: Action, a2: Action) extends Action { override def toString = s"fork ${a1 toString} ${a2 toString}" } case class Stop() extends Action { override def toString = "stop" ...
mitochon/hexercise
src/mooc/fp101/Lab5Scala/Concurrent.scala
Scala
mit
1,856
/** * @generated-from ./$execute.test.js * This file is autogenerated from a template. Please do not edit it directly. * To rebuild it from its template use the command * > npm run generate * More information can be found in CONTRIBUTING.md */ /* eslint-disable no-unused-vars */ import { asyncExecute } from '.....
sithmel/iter-tools
src/__tests__/async-execute.test.js
JavaScript
mit
1,434
<?php namespace Brasa\RecursoHumanoBundle\Repository; use Doctrine\ORM\EntityRepository; /** * * This class was generated by the Doctrine ORM. Add your own custom * repository methods below. */ class RhuCapacitacionTipoRepository extends EntityRepository { }
wariox3/brasa
src/Brasa/RecursoHumanoBundle/Repository/RhuCapacitacionTipoRepository.php
PHP
mit
270
var through = require('through2'); var cheerio = require('cheerio'); var gulp = require('gulp'); var url = require('url'); var path = require('path'); var fs = require('fs'); var typeMap = { css: { tag: 'link', template: function(contents, el) { var attribute = el.attr('media'); attribute = attri...
jonnyscholes/gulp-inline
index.js
JavaScript
mit
3,543
package strain type Ints []int type Lists [][]int type Strings []string func (i Ints) Keep(filter func(int) bool) Ints { if i == nil { return nil } filtered := []int{} for _, v := range i { if filter(v) { filtered = append(filtered, v) } } i = filtered return i } func (i Ints) Discard(filter func(int...
rootulp/exercism
go/strain/strain.go
GO
mit
862
/************************************************************************************ PublicHeader: OVR.h Filename : OVR_Math.h Content : Implementation of 3D primitives such as vectors, matrices. Created : September 4, 2012 Authors : Andrew Reisse, Michael Antonov, Steve LaValle, Anna Yershov...
StellaArtois/JRift
JRiftLibrary/LibOVR/Src/Kernel/OVR_Math.h
C
mit
39,173
package main import ( "fmt" "time" "github.com/kevinburke/rct/genetic" ) func main() { files := genetic.GetOldFiles(1 * time.Hour) for _, file := range files { fmt.Println(file) } }
kevinburke/rct
genetic/get_old_experiments/main.go
GO
mit
193
using System; namespace SampleWebAPIApp.Areas.HelpPage.ModelDescriptions { /// <summary> /// Describes a type model. /// </summary> public abstract class ModelDescription { public string Documentation { get; set; } public Type ModelType { get; set; } public string Name { g...
adzhazhev/ASP.NET-Web-Forms
01. Introduction-to-ASP.NET/01. Sample-ASP.NET-Apps/SampleWebAPIApp/Areas/HelpPage/ModelDescriptions/ModelDescription.cs
C#
mit
338
/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * ...
ROCmSoftwarePlatform/MIOpen
src/ocl/rnnocl.cpp
C++
mit
222,865
<?php namespace Renovate\MainBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Renovate\MainBundle\Entity\Vacancy; use Renovate\MainBundle\Entity\Document; class VacanciesController extends Con...
oligarch777/renovate
src/Renovate/MainBundle/Controller/VacanciesController.php
PHP
mit
3,444
#!/bin/bash apt-get install -y postgresql-client-9.5 postgresql-9.5 postgresql-9.5-postgis-2.2 postgresql-9.5-postgis-2.2-scripts postgresql-server-dev-9.5 postgresql-contrib-9.5
motobyus/moto
install/postgresql9.5/2.install.sh
Shell
mit
181
export WORKON_HOME="$HOME/.virtualenvs" export VIRTUALENVWRAPPER_PYTHON='/usr/local/bin/python3' export PROJECT_HOME="$HOME/code" source /usr/local/bin/virtualenvwrapper.sh
jacquesd/dotfiles
python/config.zsh
Shell
mit
172
class AddMemberAddressFragments < ActiveRecord::Migration def up add_column :members, :street_address, :string add_column :members, :address_locality, :string add_column :members, :address_region, :string add_column :members, :address_country, :string add_column :members, :postal_code, :string ...
theodi/member-directory
db/migrate/20150303135313_add_member_address_fragments.rb
Ruby
mit
889
using System; using System.ComponentModel; using System.Diagnostics; using System.Runtime.InteropServices; // https://stackoverflow.com/a/34384189 namespace PS4Macro.Classes.GlobalHooks { public class GlobalKeyboardHookEventArgs : HandledEventArgs { public GlobalKeyboardHook.KeyboardState Ke...
komefai/PS4Macro
PS4Macro/Classes/GlobalHooks/GlobalKeyboardHook.cs
C#
mit
9,190
module Rapa class AlternateVersion # @return [Hash] attr_reader :source # @param source [Hash] def initialize(source) @source = source end # @return [String] def asin source["ASIN"] end # @return [String] def binding source["Binding"] end # @return...
r7kamura/rapa
lib/rapa/alternate_version.rb
Ruby
mit
384
/** * \file * \brief Implementions of RL domains, Mountain Car (MC), HIV, and Bicycle. * * Copyright (c) 2008-2014 Robert D. Vincent. */ #include <vector> #include <utility> #include <cmath> #include <string.h> using namespace std; #include "domain.h" #include "random.h" /** Returns the sign of a real number. ...
rdvincent/fqi
domain.cpp
C++
mit
13,528
'use strict'; angular.module('app.directives') .directive('questionBlock',function() { return { restrict: 'E', scope: { question:'=' }, templateUrl:'/directives/questions/question-block.html' }; });
pwithers/agrippa
public/js/directives/question-block.js
JavaScript
mit
244
# mcrypt_compat [![Build Status](https://travis-ci.org/phpseclib/mcrypt_compat.svg?branch=master)](https://travis-ci.org/phpseclib/mcrypt_compat) PHP 5.x/7.x polyfill for mcrypt extension. ## Installation With [Composer](https://getcomposer.org/): ``` composer require phpseclib/mcrypt_compat ``` ## Supported algo...
delaneymethod/delaneymethod
craft/app/vendor/phpseclib/mcrypt_compat/README.md
Markdown
mit
845
from asyncio import coroutine import pytest from aiohttp import HttpBadRequest, HttpMethodNotAllowed from fluentmock import create_mock from aiohttp_rest import RestEndpoint class CustomEndpoint(RestEndpoint): def get(self): pass def patch(self): pass @pytest.fixture def endpoint(): r...
atbentley/aiohttp-rest
tests/test_endpoint.py
Python
mit
2,542
package main import ( "log" "os" "golang.org/x/net/context" "google.golang.org/grpc" // "google.golang.org/grpc/credentials/oauth" "google.golang.org/grpc/metadata" m "github.com/konjoot/grpc/proto/messages" s "github.com/konjoot/grpc/proto/sessions" ) const sessionAddr = "localhost:50051" const messageAddr...
konjoot/grpc
cmd/messages/client/main.go
GO
mit
1,558
'use strict'; var _ = require('lodash'); var utils = require('../utils'); var d3 = require('d3'); var sunCalc = require('suncalc'); var geocoder = require('geocoder'); var Path = require('svg-path-generator'); var margin = { top: 20, right: 0, bottom: 20, left: 0 }; var dayOfYear = function(d) { ...
mathisonian/sunrise
src/js/viz/viz.js
JavaScript
mit
11,928
// All symbols in the `Runic` script as per Unicode v10.0.0: [ '\u16A0', '\u16A1', '\u16A2', '\u16A3', '\u16A4', '\u16A5', '\u16A6', '\u16A7', '\u16A8', '\u16A9', '\u16AA', '\u16AB', '\u16AC', '\u16AD', '\u16AE', '\u16AF', '\u16B0', '\u16B1', '\u16B2', '\u16B3', '\u16B4', '\u16B5', '\u16B6', '\u...
mathiasbynens/unicode-data
10.0.0/scripts/Runic-symbols.js
JavaScript
mit
1,010
/////////////////////////////////////////////////////////////////////////////// // Copyright (c) Lewis Baker // Licenced under MIT license. See LICENSE.txt for details. /////////////////////////////////////////////////////////////////////////////// #ifndef CPPCORO_TESTS_COUNTED_HPP_INCLUDED #define CPPCORO_TESTS_COUNTE...
lewissbaker/cppcoro
test/counted.hpp
C++
mit
1,141
#! /usr/bin/python # -*- coding: utf-8 -*- """ Created on Fri Jan 27 18:31:59 2017 @author: katsuya.ishiyama """ from numpy import random # Definition of module level constants SUCCESS_CODE = 1 FAILURE_CODE = 0 class Strategy(): def __init__(self, n): _success_probability = _generate_success_proba...
Katsuya-Ishiyama/simulation
strategy/strategy.py
Python
mit
2,013
# 美化网站导航 ## 前提条件 * [语法](http://www.jianshu.com/p/7d2c5f36702b) * [Flex 布局](http://www.jianshu.com/p/b2b48c39450b) * [CSS 常用属性概览](http://www.jianshu.com/p/b2889973263f) * 会用 Chrome 审查元素 ## 概要 类型:总结 难度:简单 ## 任务描述 将之前做的导航页,外观如下图所示 ![](http://upload-images.jianshu.io/upload_images/7219342-006a4d84e62337d5.jpeg?imageM...
zhiFEclub/front-end-learn
resource/task/css/beautify/README.md
Markdown
mit
756
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Eloquent\SoftDeletes; class CreateImagesTable extends Migration { //use SoftDeletes; /** * Run the migrations. * * @return void */ ...
timitek/GetRealTLanding
database/migrations/2017_10_24_142738_create_images_table.php
PHP
mit
908
package de.v13dev.designpatterns.util; import java.util.List; /** * Created by stebo on 22.03.17. */ public class TestHelper { public static boolean isSortedAscending(List<Integer> list) { if(list.size() < 2) return true; for(int i = 1; i < list.size(); i++) { if(list.get(i - 1) > ...
ste-bo/designpatterns
src/test/java/de/v13dev/designpatterns/util/TestHelper.java
Java
mit
705
import { FormGroup } from '@angular/forms'; export class PasswordMatchValidator { static validate(passwordFormGroup: FormGroup) { const password = passwordFormGroup.controls.password.value; const repeatPassword = passwordFormGroup.controls.password_confirmation.value; if (repeatPassword.length <= ...
aviabird/angularspree
src/app/shared/custom-validator/password-match-validator.ts
TypeScript
mit
475
<?php namespace DTR\CrawlerBundle\Services\Crawler; use DTR\CrawlerBundle\Services\Algorithms\PatternIdentifierInterface; use DTR\CrawlerBundle\Services\Inspectors\ComponentInspector; use Symfony\Component\DomCrawler\Crawler; class MenuCrawler implements CrawlerInterface { /** * @var ComponentInspector ...
nfqakademija/dydis-turi-reiksme
src/DTR/CrawlerBundle/Services/Crawler/MenuCrawler.php
PHP
mit
5,270
module Effective module Providers module Free extend ActiveSupport::Concern def free raise('free provider is not available') unless EffectiveOrders.free? @order ||= Order.find(params[:id]) EffectiveResources.authorize!(self, :update, @order) unless @order.free? ...
code-and-effect/effective_orders
app/controllers/effective/providers/free.rb
Ruby
mit
809
body { font-size: 1.0em; }
simplyianm/clububer
themes/2point0/fontsize/large.css
CSS
mit
27
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover"> <meta name="theme-color" content="#03375F"> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAARdEBQWL0JrVWMnHBQwFwaK...
Nextzy/client-nextzy-landing-page-2017
public/index.html
HTML
mit
3,000
package fr.aumgn.bukkitutils.geom; import fr.aumgn.bukkitutils.geom.direction.VectorDirection; import fr.aumgn.bukkitutils.geom.vector.VectorIterator; import org.apache.commons.lang.builder.HashCodeBuilder; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.block.Block; import org.bukkit.entity.Ent...
aumgn/BukkitUtils
src/main/java/fr/aumgn/bukkitutils/geom/Vector.java
Java
mit
6,906
/** * Central storage with in-memory cache */ const fs = require('fs'); const path = require('path'); const mkdirp = require('mkdirp'); const app = process.type === 'renderer' ? require('electron').remote.app : require('electron').app; const _defaultDir = path.join(app.getPath('userData'), 'data'); const _stora...
scholtzm/punk
src/utils/storage.js
JavaScript
mit
1,642
<?php class HtmlTest extends \Codeception\TestCase\Test { /** * @var \CodeGuy */ protected $codeGuy; public function testSend() { $instance = new \Hahns\Response\Html(); $response = $instance->send('<h1>hello world</h1>'); $this->assertEquals('<h1>hello world</h1>', $r...
pklink/Hahns
tests/unit/Response/HtmlTest.php
PHP
mit
680
require 'spec_helper' describe AdminsController do describe 'attempting to access the admin dashboard when not logged in' do before :each do get :index, {:id => 2} end it 'should redirect to the login page' do response.should be_redirect response.should redirect_to('/logi...
Berkeley-BCEF/IntakeApp
spec/controllers/admin_controller_spec.rb
Ruby
mit
343
<?php header("Access-Control-Allow-Origin:*"); ?> <html> <head> <title>TESTS AJAX</title> <style type="text/css"> .bouton,.obj_prec{ margin-left:4px; color:blue; font-size:14px; font-weight:bold; cursor:pointer; } .bouton:hover{ color:#ccc; } #log{ border:1px solid red...
jc-miralles/WebSymfony
web/tests_ajax.php
PHP
mit
4,802
#include <stdlib.h> #include "sway/commands.h" #include "log.h" struct cmd_results *bar_cmd_secondary_button(int argc, char **argv) { // TODO TRAY return cmd_results_new(CMD_INVALID, "secondary_button", "TODO TRAY"); }
taiyu-len/sway
sway/commands/bar/secondary_button.c
C
mit
222
<?php namespace Nemundo\Package\FontAwesome\Icon; use Nemundo\Package\FontAwesome\AbstractFontAwesomeIcon; class TrashIcon extends AbstractFontAwesomeIcon { public function getContent() { $this->icon = 'trash'; return parent::getContent(); } }
nemundo/framework
src/Package/FontAwesome/Icon/TrashIcon.php
PHP
mit
278
import { Component, Input } from '@angular/core'; import { Character } from '../../../data/models/character'; import { LinkLocation } from '../../directive/insertLinks/insertLinks.directive'; @Component({ selector: 'lc-character', templateUrl: 'character.component.html', styleUrls: [ 'character.component.scss' ]...
manuelhuber/LostColonies
src/app/components/character/character.component.ts
TypeScript
mit
450
// Copyright (c) 2011-2016 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 "coincontroldialog.h" #include "ui_coincontroldialog.h" #include "addresstablemodel.h" #include "bitcoinunits.h" #i...
trippysalmon/bitcoin
src/qt/coincontroldialog.cpp
C++
mit
29,915
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./4703c69f923e43a33917a8c255df64036726dfab6335e115d802c67dc861f2e5.html">Teleport</a> <hr> ...
simonmysun/praxis
TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/d8f1da9c79203f326f97696576bf661b5a4a6a656caad0d54b1eb66df7adeb48.html
HTML
mit
550
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>18 --> 19</title> <link href="./../../assets/style.css" rel="stylesheet"> </head> <body> <h2>You have to be fast</h2> <a href="./20c5dddf18a00c634c481d431f5a710d510181165c30d071ad312ba5525cdc86.html">Teleport</a> <hr> ...
simonmysun/praxis
TAIHAO2019/pub/SmallGame/AsFastAsYouCan2/45c5b6cd2a2a68330c4a637578e70c087de3f640b237407f583fcd162401c7e6.html
HTML
mit
550
###2015-05-22 ####python * [AlessandroZ/LaZagne](https://github.com/AlessandroZ/LaZagne): Credentials recovery project * [no13bus/baymax](https://github.com/no13bus/baymax): "Hello, I am your personal health companion" * [nvbn/thefuck](https://github.com/nvbn/thefuck): Magnificent app which corrects your previous cons...
larsbijl/trending_archive
2015-05/2015-05-22.md
Markdown
mit
15,635
/* ******************************************************* * Released under the MIT License (MIT) --- see LICENSE * Copyright (c) 2014 Ankit Singla, Sangeetha Abdu Jyothi, * Chi-Yao Hong, Lucian Popa, P. Brighten Godfrey, * Alexandra Kolla, Simon Kassing * ******************************************************** *...
ndal-eth/topobench
src/test/java/ch/ethz/topobench/graph/TestGraph.java
Java
mit
799
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Ryan Hall Media | Front-end Web Designer from Madison, WI</title> <!--mobile meta--> <meta name="viewport" content="width=device-width,initial-scale=1,width=device-width,user-scalable=no"> <meta name="HandheldFriendly" content="true" /> ...
RyanHallMedia/newsite
contact.html
HTML
mit
12,753
<!DOCTYPE html> <html class="h-100" lang="en"> {% include _head.htm %} <body> {% include _cookie_banner.htm %} {% include _header.htm %} <div class="min-h-80 docs-container container-fluid"> <div class="row"> <div class="col-xl-3"> <details...
barton2526/Gridcoin-Site
_layouts/wiki.html
HTML
mit
2,158
<div class="{{ field_classes|default:'field' }}{% if field.errors %} error{% endif %}"> {{ field }} {% if field.errors %} <div class="ui error message"> {% for error in field.errors %} <p><i class="warning sign icon"></i>&nbsp;<span>{{ error }}</span></p> {% endfo...
alexey-grom/django-userflow
userflow/templates/userflow/forms/_field-short.html
HTML
mit
363
--- layout: post title: "MySQL Reflection" date: 2016-11-16 categories: "projects" assignment: "true" --- [Link to Github Repository](https://github.com/ldinkins/malily5) We continued working on the bash script from Assignment 4 by adding a connection to MySQL. First, we created the database malily if it didn't alr...
pillaim/pillaim.github.io
_posts/2016-11-16-mysqlReflection.markdown
Markdown
mit
2,383
<?php /* Safe sample input : use fopen to read /tmp/tainted.txt and put the first line in $tainted Flushes content of $sanitized if the filter number_float_filter is not applied construction : use of sprintf via a %d with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without wri...
stivalet/PHP-Vulnerability-test-suite
Injection/CWE_95/safe/CWE_95__fopen__func_FILTER-VALIDATION-number_float_filter__variable-sprintf_%d_simple_quote.php
PHP
mit
1,502
<?php /* * This file is part of App/Validation. * * (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net> * * For the full copyright and license information, please view the "LICENSE.md" * file that was distributed with this source code. */ namespace App\Validation\Exceptions; class PostalCodeException extend...
Javier-Solis/admin-project
app/Validation/Exceptions/PostalCodeException.php
PHP
mit
662
The Skills API Platform ======================= An open platform to store human skills. Powered by [API Platform](https://api-platform.com/) and [Fansible Tywin](https://github.com/fansible/tywin).
OpenSkills/skillsapi
README.md
Markdown
mit
200
<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>Insert Before Example</title> <script> onload = insertTagBefore; function insertTagBefore(){ // CREATE A LI TAG var list = document.createElement("li"); list.innerHTML = "New Item"; // CREATE A REFERENCE TO THE 3rd LIS...
joshsager/Code-Examples
JS_DOM_INSERT_BEFORE/index.html
HTML
mit
687
<?php /******************************/ /* Submission Form Management */ /******************************/ require_once("../includes/admin_init.php"); require_once("../includes/adminAccount.class.php"); require_once("../includes/subForm.class.php"); require_once("../includes/conference.class.php"); /* Intitalize and ou...
jakkub/Confy
src/admin/conference_subform.php
PHP
mit
3,708
'use strict'; /* global $: true */ /* global animation: true */ /* global boidWeights: true */ //Slider for selecting initial number of boids //--------------------------------------------- $('#numBoidsSlider').slider({ min: 0, max: 400, step: 10, value: animation.numBoids }); $('#numBoidsVal').text(...
johhat/boids
ui-components/ui.js
JavaScript
mit
1,967
package test; /** scala> map res6: java.util.HashMap[String,java.util.List[String]] = {AAA=[BBB, CCC, EEE], CCC=[DDD]} scala> test.Test.printCompany(map) -AAA -BBB -CCC -DDD -EEE */ import java.util.HashMap; import java.util.HashSet; import java.util.List; public class Test { public static void printCompany(...
sadikovi/algorithms
careercup/company-structure.java
Java
mit
1,233
#!/bin/sh set -e echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRO...
cshireman/HWAYCoreData
Example/Pods/Target Support Files/Pods-HWAYCoreData_Tests/Pods-HWAYCoreData_Tests-frameworks.sh
Shell
mit
2,620
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" #import "SChartDataPointMapper.h" @interface SChartRadialDataPointMapper : NSObject <SChartDataPointMapper> { id <SChartRadialDataPointMapperSource> _sour...
JChanceHud/GearIndicator
Fitness/SChartRadialDataPointMapper.h
C
mit
1,871
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W28770_text</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> ...
datamade/elpc_bakken
ocr_extracted/W28770_text/page2.html
HTML
mit
8,921
<?php /* @var $this UserController */ /* @var $data User */ ?> <div class="view"> <b><?php echo CHtml::encode($data->getAttributeLabel('id')); ?>:</b> <?php echo CHtml::link(CHtml::encode($data->id), array('view', 'id'=>$data->id)); ?> <br /> <b><?php echo CHtml::encode($data->getAttributeLabel('level_id')); ?>:...
felladrin/joinuo
protected/views/user/_view.php
PHP
mit
1,185
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2015 by PyCLibrary Authors, see AUTHORS for more details. # # Distributed under the terms of the MIT/X11 license. # # The full license is in the file LICENCE, distributed with this software. # -----------...
mrh1997/pyclibrary
pyclibrary/c_parser.py
Python
mit
62,500
package com.slicer.utils; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.audio.Sound; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.graphics.Texture; public class AssetLoader { public static Texture bgGame, bgGameOver, bgFinish, score, soundOn, soundOff; public static Sound gameOver...
burakkose/libgdx-game-slicer
core/src/com/slicer/utils/AssetLoader.java
Java
mit
1,612
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'iframe', 'ko', { border: '프레임 테두리 표시', noUrl: '아이프레임 주소(URL)를 입력해주세요.', scrolling: '스크롤바 사용', title: '아이프레임 속성', to...
otto-torino/gino
ckeditor/plugins/iframe/lang/ko.js
JavaScript
mit
424
// // SMCampaignsManager.h // SessionM // // Copyright © 2018 SessionM. All rights reserved. // #ifndef __SM_CAMPAIGNS_MANAGER__ #define __SM_CAMPAIGNS_MANAGER__ #import "SMFeedMessage.h" #import "SMPromotion.h" #import "SMError.h" #import "SMBaseDelegate.h" NS_ASSUME_NONNULL_BEGIN /*! @const SM_CAMPAIGNS_MANA...
sessionm/ios-smp-example
Pods/SessionMFramework/SessionM_iOS_v2.5.2.1/SessionMFramework.framework/Headers/SMCampaignsManager.h
C
mit
7,990
--- layout: page title: Works permalink: /data/ --- Here are some of the things I did, or I was involved in somehow, and software I maintain. UnToLD ------- Unsupervised Topic-based Lexical Debias [Website](/untold) Hurtlex ------- Hurtlex is a multilingual lexicon of offensive, aggressive and hateful words. It ...
valeriobasile/valeriobasile.github.io
projects.md
Markdown
mit
2,523
#ifndef SIDECAR_GUI_PPIWIDGET_PATHSETTING_H // -*- C++ -*- #define SIDECAR_GUI_PPIWIDGET_PATHSETTING_H #include "QtWidgets/QLabel" #include "QtWidgets/QPushButton" #include "GUI/StringSetting.h" namespace SideCar { namespace GUI { class PathSetting : public StringSetting { Q_OBJECT public: PathSetting(Prese...
bradhowes/sidecar
GUI/PathSetting.h
C
mit
626
''' This file contains tests for the bar plot. ''' import matplotlib.pyplot as plt import pytest import shap from .utils import explainer # (pytest fixture do not remove) pylint: disable=unused-import @pytest.mark.mpl_image_compare def test_simple_bar(explainer): # pylint: disable=redefined-outer-name """ Check ...
slundberg/shap
tests/plots/test_bar.py
Python
mit
509
/** * Hydro configuration * * @param {Hydro} hydro */ module.exports = function(hydro) { hydro.set({ suite: 'equals', timeout: 500, plugins: [ require('hydro-chai'), require('hydro-bdd') ], chai: { chai: require('chai'), styles: ['should'], stack: true } }...
jkroso/equals
test/hydro.conf.js
JavaScript
mit
324
<!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_40) on Sun Oct 06 19:07:34 PDT 2013 --> <title>pacman.controllers Class Hierarchy</title> <meta name="date" content="2013-10-06"> <link...
bpgabin/pacman-vs-ghosts
doc/pacman/controllers/package-tree.html
HTML
mit
4,702
# -*- coding: utf-8 -*- from datetime import timedelta, datetime import asyncio import random from .api import every, once_at, JobSchedule, default_schedule_manager __all__ = ['every_day', 'every_week', 'every_monday', 'every_tuesday', 'every_wednesday', 'every_thursday', 'every_friday', 'every_saturday', '...
eightnoteight/aschedule
aschedule/ext.py
Python
mit
3,564