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 |
|---|---|---|---|---|---|
import pl.edu.agh.amber.common.AmberClient;
import pl.edu.agh.amber.drivetopoint.DriveToPointProxy;
import pl.edu.agh.amber.drivetopoint.Location;
import pl.edu.agh.amber.drivetopoint.Point;
import pl.edu.agh.amber.drivetopoint.Result;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import ... | project-capo/amber-java-clients | amber-java-examples/src/main/java/DriveToPointExample.java | Java | mit | 2,273 |
/****************************************************************************
Copyright (c) 2013-2015 scutgame.com
http://www.scutgame.com
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 ... | wenhulove333/ScutServer | Sample/Koudai/Server/src/ZyGames.Tianjiexing.BLL/Action/Action4206.cs | C# | mit | 4,309 |
package daemon
import (
"log"
"time"
"github.com/Cloakaac/cloak/models"
)
type RecordDaemon struct{}
func (r *RecordDaemon) tick() {
total := models.GetOnlineCount()
err := models.AddOnlineRecord(total, time.Now().Unix())
if err != nil {
log.Fatal(err)
}
}
| Cloakaac/cloak | daemon/record.go | GO | mit | 270 |
from django.dispatch import Signal
user_email_bounced = Signal() # args: ['bounce', 'should_deactivate']
email_bounced = Signal() # args: ['bounce', 'should_deactivate']
email_unsubscribed = Signal() # args: ['email', 'reference']
| fin/froide | froide/bounce/signals.py | Python | mit | 236 |
<?php declare(strict_types = 1);
namespace PHPStan\Rules\Comparison;
use PHPStan\Type\Constant\ConstantBooleanType;
class BooleanOrConstantConditionRule implements \PHPStan\Rules\Rule
{
public function getNodeType(): string
{
return \PhpParser\Node\Expr\BinaryOp\BooleanOr::class;
}
/**
* @param \PhpParser\... | rquadling/phpstan | src/Rules/Comparison/BooleanOrConstantConditionRule.php | PHP | mit | 1,115 |
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style>
body, html{
background-color:#ddd;
margin: 0px;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
}
#bodymovin{
background-color:#000;
... | chen-ye/bodymovin | player/index.html | HTML | mit | 6,058 |
package org.bitcoins.core.p2p
import org.bitcoins.core.p2p.TypeIdentifier._
import org.bitcoins.testkit.util.BitcoinSUnitTest
class TypeIdentifierTest extends BitcoinSUnitTest {
"MsgTx" must "serialize to 01000000" in {
MsgTx.hex must be("01000000")
}
"MsgWitnessTx" must "serialize to 01000040" in {
M... | bitcoin-s/bitcoin-s-core | core-test/src/test/scala/org/bitcoins/core/p2p/TypeIdentifierTest.scala | Scala | mit | 779 |
// pin_io_macros.h
//
// Makes it easy to define pins as logical names and then use those names
// throughout the program. Not the most efficient method for multiple pins
// on the same port but otherwise makes coding easier and more transportable.
//
// by Paul Duke 2012
#ifndef PIN_IO_MACROS
#define PIN_IO_MACRO... | pduke/UNO_TPI | pin_io_macros.h | C | mit | 1,474 |
<html>
<head>
<title>
Keep fighting for justice!
</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... | ISO-tech/sw-d8 | web/2004-1/488/488_04_KennyCollins.php | PHP | mit | 3,573 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Microsoft Azure Batch Management Library")]
... | hovsepm/azure-libraries-for-net | src/ResourceManagement/Batch/Properties/AssemblyInfo.cs | C# | mit | 804 |
// member.cs
//
// Copyright 2010 Microsoft Corporation
//
// 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 appli... | afisd/jovice | Aphysoft.Share/External/AjaxMin/JavaScript/member.cs | C# | mit | 2,558 |
<?php
/**
* TableBlock.php
*
* @since 31/05/15
* @author gseidel
*/
namespace Enhavo\Bundle\AppBundle\Block\Block;
use Enhavo\Bundle\AppBundle\Block\BlockInterface;
use Enhavo\Bundle\AppBundle\Type\AbstractType;
class TableBlock extends AbstractType implements BlockInterface
{
public function render($parame... | kiwibun/enhavo | src/Enhavo/Bundle/AppBundle/Block/Block/TableBlock.php | PHP | mit | 3,107 |
// package main provides an implementation of netcat using the secio package.
// This means the channel is encrypted (and MACed).
// It is meant to exercise the spipe package.
// Usage:
// seccat [<local address>] <remote address>
// seccat -l <local address>
//
// Address format is: [host]:port
package main
imp... | kyledrake/go-ipfs | cmd/seccat/seccat.go | GO | mit | 5,208 |
<!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 charset="ut... | tdang2/tdpharma-client | client/index.html | HTML | mit | 10,329 |
/* eslint-disable */
"use strict";
var express = require("express"),
path = require("path"),
webpack = require("webpack"),
config = require("./examples.config");
config.module.loaders[0].query = {presets: ["react-hmre"]};
config.entry.unshift("webpack-hot-middleware/client");
config.plugins = [
new w... | danielyaa5/react-contextulize | server.js | JavaScript | mit | 944 |
// f is not called via a go function, instead the go function is inside the body of f.
package main
func main() {
x := "Hello World"
ch := make(chan string)
f(ch)
// @expectedflow: false
sink(x)
x = source()
ch <- x
}
func f(ch chan string) {
// *ssa.MakeClosure
go func() {
y := <-ch
// @expectedflow: tr... | akwick/gotcha | tests/exampleCode/chanPaper2.go | GO | mit | 408 |
a = [int(i) for i in input().split()]
print(sum(a))
| maisilex/Lets-Begin-Python | list.py | Python | mit | 52 |
<?php
/* WebProfilerBundle:Collector:memory.html.twig */
class __TwigTemplate_ccb1a70d7cfd163aa51619d0fc404c67 extends Twig_Template
{
protected $parent;
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->blocks = array(
'toolbar' => array($... | radzikowski/alf | app/cache/dev/twig/cc/b1/a70d7cfd163aa51619d0fc404c67.php | PHP | mit | 2,299 |
<!DOCTYPE html>
<html lang="en">
<!-- Mirrored from bucketadmin.themebucket.net/google_map.html by HTTrack Website Copier/3.x [XR&CO'2013], Fri, 21 Feb 2014 19:39:48 GMT -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" conten... | mromrell/quotadeck-frontend | public/partials/theme/google_map.html | HTML | mit | 29,848 |
<?php
/**
* CompraingredienteFixture
*
*/
class CompraingredienteFixture extends CakeTestFixture {
/**
* Fields
*
* @var array
*/
public $fields = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'unsigned' => false, 'key' => 'primary'),
'resto_id' => array('type' => 'integer',... | kster007/CUBETECH-SOLTERA | app/Test/Fixture/CompraingredienteFixture.php | PHP | mit | 2,307 |
#
# This file belongs to MTYPE13 package by Wlodek Bzyl <matwb@univ.gda.pl>
#
DVIPSFLAGS = -u +sign-000.map
# Read in font independent definitions.
make_root = ../../../make
include $(make_root)/type3common.mk
GENERATEDFILES = test-signs.{log,dvi,ps}
sign-000.dvi : sign-000.t3 sign-000.proof
test-signs.dvi : sign... | wbzyl/mtype13 | metapost/type3/signposts-000/Makefile | Makefile | mit | 328 |
<?php
namespace spec\Prophecy\Exception\Prophecy;
use PhpSpec\ObjectBehavior;
use Prophecy\Prophecy\ObjectProphecy;
class ObjectProphecyExceptionSpec extends ObjectBehavior
{
function let(ObjectProphecy $objectProphecy)
{
$this->beConstructedWith('message', $objectProphecy);
}
... | gustavokev/preescolar1 | vendor/phpspec/prophecy/spec/Prophecy/Exception/Prophecy/ObjectProphecyExceptionSpec.php | PHP | mit | 611 |
/*
* The MIT License (MIT)
*
* Copyright (c) 2016 by luxe - https://github.com/de-luxe - BURST-LUXE-RED2-G6JW-H4HG5
*
* 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,
... | de-luxe/burstcoin-faucet | src/main/java/burstcoin/faucet/data/Account.java | Java | mit | 2,187 |
"use strict";
const _ = require ('underscore')
_.hasTypeMatch = true
/* Type matching for arbitrary complex structures (TODO: test)
======================================================================== */
Meta.globalTag ('required')
Meta.globalTag ('atom')
$global.const ('$any', _.identity)
_.deferTest ([... | xpl/useless | base/tier0/typeMatch.js | JavaScript | mit | 6,907 |
<?php
return [
'app' => [
'name' => 'OctoberCMS',
'tagline' => 'Getting back to basics'
],
'locale' => [
'be' => 'Беларуская',
'bg' => 'Български',
'cs' => 'Čeština',
'da' => 'Dansk',
'en' => 'English (United States)',
'en-au' => 'English (Aus... | c57fr/c57 | modules/system/lang/vn/lang.php | PHP | mit | 21,151 |
Braintree Multi-Merchant Example
================================
## Set Up
Note: This example requires multiple Braintree sandbox accounts.
1. Clone this repository
2. [Install Composer](https://getcomposer.org/download/), if necessary
3. Install dependencies (`composer install`)
4. Modify `credentials.php` to incl... | matthewpatterson/braintree_multi_merchant_example | README.md | Markdown | mit | 413 |
void inplace(double *invec, double *outvec, int n, int m) {
int i;
for (i=0; i < n; i++) {
outvec[i] = 2*invec[i];
}
}
| odellus/year_of_code | swig/inplace/inplace.c | C | mit | 139 |
/**
* Copyright 2017, 2018, 2019, 2020 Stephen Powis https://github.com/Crim/pardot-java-client
*
* 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 limi... | Crim/pardot-java-client | src/main/java/com/darksci/pardot/api/request/form/FormCreateRequest.java | Java | mit | 2,672 |
import { $, util } from './util-node'
import Taglet from './taglet'
var
lace,
version = '1.0.0',
defaults = {
opts: {}
},
warehouse = {
singleton: null,
compiled_dom: null,
laces: {
global: null
},
taglets: {}
}
;
class Lace {... | jRoadie/lace | src/es6/lace.js | JavaScript | mit | 1,897 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cinema
{
class Program
{
static void Main(string[] args)
{
var project = Console.ReadLine().ToLower();
var r = double.Parse(Console.ReadLine());... | vasilchavdarov/SoftUniHomework | Projects/ComplexCondition/Cinema/Program.cs | C# | mit | 875 |
from django.conf import settings
from django.conf.urls import static
from django.urls import include, path, re_path
from django.contrib import admin
urlpatterns = [
path(r"admin/", admin.site.urls),
path(r"flickr/", include("ditto.flickr.urls")),
path(r"lastfm/", include("ditto.lastfm.urls")),
path(r"... | philgyford/django-ditto | devproject/devproject/urls.py | Python | mit | 795 |
import angular from 'rollup-plugin-angular';
import commonjs from 'rollup-plugin-commonjs';
import nodeResolve from 'rollup-plugin-node-resolve';
import typescript from 'rollup-plugin-typescript';
import uglify from 'rollup-plugin-uglify';
import { minify } from 'uglify-es';
// rollup-plugin-angular addons
import sas... | ngx-form/element | rollup.config.js | JavaScript | mit | 3,420 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>stalmarck: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | coq-bench/coq-bench.github.io | clean/Linux-x86_64-4.07.1-2.0.6/released/8.13.2/stalmarck/8.9.0.html | HTML | mit | 7,149 |
using System;
namespace Problem_04_Float_or_Integer
{
class Program_04_Float_or_Integer
{
static void Main()
{
decimal number = decimal.Parse(Console.ReadLine());
number = Math.Round(number);
Console.WriteLine(number);
}
}
}
| ReapeR-MaxPayne/SU-TM-PF-Ext-0517-Excersises-CSharp | 03-DataTypesAndVariables-Exercises/Problem_04_Float or Integer/Program_04_Float_or_Integer.cs | C# | mit | 302 |
using System;
using System.Collections;
using UnityEngine;
namespace Doubility3D.Resource.Downloader
{
public class WWWDownloader : IDownloader
{
private string home;
internal WWWDownloader (string _home)
{
home = _home;
if (home [home.Length - 1] != '/') {
home += "/";
}
}
public IEnumerat... | lighter-cd/Doubility3D | DoubilityUnity/Runtime/Doubility3D/Resource/Downloader/WWWDownloader.cs | C# | mit | 704 |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from os import listdir
import os
import re
import sys
from argparse import ArgumentParser
import random
import subprocess
from math import sqrt
import ast
from adderror import adderror
"""ENSAMBLE, -d directory -n number of models """
"""-k number of selected structure"""
... | spirit01/SAXS | test_caxs.py | Python | mit | 6,842 |
// 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
// regenerated.
namespac... | matthchr/autorest | src/generator/AutoRest.CSharp.Azure.Fluent.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperationsExtensions.cs | C# | mit | 27,615 |
import isEnabled from 'ember-metal/features';
import run from 'ember-metal/run_loop';
import { observer } from 'ember-metal/mixin';
import { set } from 'ember-metal/property_set';
import { bind } from 'ember-metal/binding';
import {
beginPropertyChanges,
endPropertyChanges
} from 'ember-metal/property_events';
impo... | topaxi/ember.js | packages/ember-runtime/tests/system/object/destroy_test.js | JavaScript | mit | 4,435 |
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe Stellar::Client do
let(:client) { Stellar::Client.new }
shared_examples_for 'an authenticated client' do
describe 'get_nokogiri' do
let(:page) { client.get_nokogiri '/atstellar' }
it 'should be a Nokogiri docume... | pwnall/stellar | spec/stellar/client_spec.rb | Ruby | mit | 1,522 |
package seedu.tache.ui;
import java.util.logging.Logger;
//import org.controlsfx.control.Notifications;
import com.google.common.eventbus.Subscribe;
import javafx.application.Platform;
//import javafx.geometry.Pos;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.i... | CS2103JAN2017-T09-B4/main | src/main/java/seedu/tache/ui/UiManager.java | Java | mit | 6,234 |
// softlayer_billing_item_cancellation_request - SoftLayer customers can use this API to submit a
// cancellation request. A single service cancellation can contain multiple cancellation items which
// contain a billing item.
package softlayer_billing_item_cancellation_request
// DO NOT EDIT. THIS FILE WAS AUTOMATICAL... | sudorandom/softlayer-go-gen | methods/softlayer_billing_item_cancellation_request/doc.go | GO | mit | 333 |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- template designed by Marco Von Ballmoos -->
<title>Docs for page Updated.php</title>
... | broadinstitute/gdata-cli | lib/gapps/ZendGdata-1.10.8/documentation/api/core/Zend_Gdata/App/_Gdata---App---Extension---Updated.php.html | HTML | mit | 6,213 |
#define VMA_IMPLEMENTATION
#include <vk_mem_alloc.h>
#include "VulkanMemoryAllocator.h"
#include "VulkanUtility.h"
#include "Core/Assertion.h"
namespace cube
{
namespace rapi
{
void VulkanMemoryAllocator::Initialize(VkInstance instance, VkPhysicalDevice GPU, VkDevice device)
{
VkR... | Cube219/CubeEngine | Source/RenderAPIs/VulkanAPI/VulkanMemoryAllocator.cpp | C++ | mit | 4,378 |
<template name="myworks">
<article class="page container-fluid shine-wrapper">
{{> myworksNav}}
{{> myworksList}}
</article>
</template>
<template name="myworksNav">
<header>
<h3>My works</h3>
</header>
<div class="row-fluid">
<nav class="navtabs">
<ul class="navtabs-list">
<li clas... | johnghoonchoi/meteor-shine | apps/front/modules/myworks/client/myworks.html | HTML | mit | 2,485 |
#ifndef VPP_OPENCV_UTILS_HH_
# define VPP_OPENCV_UTILS_HH_
# include <iostream>
# include <regex>
# include <opencv2/highgui/highgui.hpp>
# include <vpp/core/boxNd.hh>
# include <vpp/core/image2d.hh>
inline bool open_videocapture(const char* str, cv::VideoCapture& cap)
{
if (std::regex_match(str, std::regex("[0-9]+... | pdebus/MTVMTL | thirdparty/vpp/vpp/utils/opencv_utils.hh | C++ | mit | 1,322 |
import collections
puzzle_input = (0,13,1,8,6,15)
test_inputs = [
([(0,3,6), 10], 0),
([(1,3,2)], 1),
([(2,1,3)], 10),
([(1,2,3)], 27),
([(2,3,1)], 78),
([(3,2,1)], 438),
([(3,1,2)], 1836),
# Expensive Tests
# ([(0,3,6), 30000000], 175594),
# ([(1,3,2), 30000000], 2578),
#... | AustinTSchaffer/DailyProgrammer | AdventOfCode/2020/day_15/solution.py | Python | mit | 1,352 |
import { DomSanitizer } from '@angular/platform-browser';
export declare class IndexTrack {
transform(_x: any): (index: any) => any;
}
export declare class Stringify {
transform(input: any, spaces?: number): string;
}
export declare class ForceArray {
transform(input: any, repeat?: any, repeatValue?: any): ... | AckerApple/ack-angular | pipes.d.ts | TypeScript | mit | 3,095 |
---
title: "Events"
menu:
addons:
weight: 2
---
# Events
Addons hook into mitmproxy's internal mechanisms through events. These are
implemented on addons as methods with a set of well-known names. Many events
receive `Flow` objects as arguments - by modifying these objects, addons can
change traffic on th... | vhaupert/mitmproxy | docs/src/content/addons-events.md | Markdown | mit | 1,023 |
<?php
namespace Fdr\UserBundle\Form\Type;
//use Symfony\Component\Form\FormBuilder;
//use FOS\UserBundle\Form\Type\RegistrationFormType as BaseType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Doctrine\ORM\EntityRepository;
class RegistrationFormType extends AbstractTy... | ingetat2014/www | src/Fdr/UserBundle/Form/Type/RegistrationFormType.php | PHP | mit | 2,730 |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
using UnityEngine;
namespace Microsoft.MixedReality.Toolkit.Physics
{
/// <summary>
/// A Distorter that distorts points based on their distance and directi... | SystemFriend/HoloLensUnityChan | Assets/MRTK/Core/Utilities/Physics/Distorters/DistorterGravity.cs | C# | mit | 2,822 |
# Termux
[Termux](https://termux.com/) is a terminal emulator and Linux environment for
Android.
## Configuration
Install the [app](https://play.google.com/store/apps/details?id=com.termux) and
the
[CodeBoard](https://play.google.com/store/apps/details?id=com.gazlaws.codeboard&rdid=com.gazlaws.codeboard)
keyboard.
... | dguo/dotfiles | systems/termux/README.md | Markdown | mit | 574 |
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-tou... | alexander-heimbuch/rss-page | index.html | HTML | mit | 1,258 |
#pragma once
// MESSAGE ATTITUDE_TARGET PACKING
#define MAVLINK_MSG_ID_ATTITUDE_TARGET 83
MAVPACKED(
typedef struct __mavlink_attitude_target_t {
uint32_t time_boot_ms; /*< Timestamp in milliseconds since system boot*/
float q[4]; /*< Attitude quaternion (w, x, y, z order, zero-rotation is 1, 0, 0, 0)*/
f... | YKSamgo/AR-Drone | ARDrone/ARDrone/include/common/mavlink_msg_attitude_target.h | C | mit | 17,916 |
#include "questdisplay.h"
#include "../core/global.h"
//QuestLister stuff
QuestLister::QuestLister(int xp, int yp, int wp, int hp) : BasicGUI(xp, yp, wp, hp) {
headerSize = 35;
//-1 due to the header
displayableQuestCount = h / headerSize - 1;
padding = 5;
selectedElementPos = 0;
defaultBGTexture = Global::res... | kovleventer/FoD | src/player/questdisplay.cpp | C++ | mit | 6,449 |
package com.github.gilz688.mifeditor;
import com.github.gilz688.mifeditor.proto.MIEView;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
public class MIEApplication extends Application {
pri... | gilz688/MIF-ImageEditor | MIFImageEditor/src/main/java/com/github/gilz688/mifeditor/MIEApplication.java | Java | mit | 1,289 |
/*
* ==================================================================================
*
* Filename: poller.h
*
* Description:
*
* Verson: 1.0
* Created: 2016-03-09
* Compiler: g++
*
* Author: Jiewei Wei <weijieweijerry@163.com>
* Company: S... | JieweiWei/lnet | src/poller.h | C | mit | 1,023 |
# Router
Provides the ability to perform actions based on changes in the URL hash.
```javascript
import {Router} from "estoolbox";
Router.when("/about", () => {
// Show the about route content.
});
Router.when("/person/:username", (route) => {
const username = route.variables.username;
// Show the person con... | dbtedman/estoolbox | docs/Router.md | Markdown | mit | 348 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="pl" version="2.1">
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About ShadowCoin</source>
<translation>O ShadowCoin</translation>
</message>
<message>
<locat... | hansacoin/hansacoin | src/qt/locale/bitcoin_pl.ts | TypeScript | mit | 119,674 |
The PDF includes all problems from the 2012 SoCal Regional ICPC.
We're only doing problem six this week! That's the one entitled "The Perks of Planning Ahead."
<a href="http://socalcontest.org/current/index.shtml" target="_blank">SoCal ICPC official website</a>
| acm-csuf/icpc | 2012-12-6-The_Perks_of_Planning_Ahead/notes.md | Markdown | mit | 263 |
#pragma once
#include "afxwin.h"
#include "CM5/ListCtrlEx.h"
#include "CM5/CStatic/staticex.h"
// CBoatMonitorViewer form view
class CBoatMonitorViewer : public CFormView
{
DECLARE_DYNCREATE(CBoatMonitorViewer)
public:
CBoatMonitorViewer(); // protected constructor used by dynamic creation
virtual ~CBo... | temcocontrols/T3000_Building_Automation_System | T3000/BoatMonitorViewer.h | C | mit | 832 |
var axios = require('axios')
module.exports = function (app) {
app.get('/context_all.jsonld', function (req, res) {
axios.get(app.API_URL + 'context_all.jsonld')
.then(function (response) {
res.type('application/ld+json')
res.status(200).send(JSON.stringify(response.data, null, 2))
})... | nypl-registry/browse | routes/context.js | JavaScript | mit | 477 |
module Githu3
class Tag < Githu3::Resource
end
end
| sbellity/githu3 | lib/githu3/tag.rb | Ruby | mit | 55 |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... | Ragingart/TRage | src/app/page/settings/settings.component.js | JavaScript | mit | 1,673 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Reflection;
using System.Runtime.Serialization;
using System.Web.Http;
using System.Web.Http.Description;
using System.Xml... | kpnlora/LoRaClient | examples/Betabit EventHub Example/Betabit.Lora.Nuget.EventHub/Betabit.Lora.Nuget.EventHub/Areas/HelpPage/ModelDescriptions/ModelDescriptionGenerator.cs | C# | mit | 19,100 |
<?php
\Larakit\StaticFiles\Manager::package('larakit/sf-grid')
->cssPackage('lk-grid.css')
->setSourceDir('public'); | larakit/sf-grid | init.php | PHP | mit | 124 |
package containerservice
// 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 re... | Azure/azure-sdk-for-go | services/containerservice/mgmt/2021-10-01/containerservice/maintenanceconfigurations.go | GO | mit | 19,659 |
'use strict';
import React from 'react-native'
import {
AppRegistry,
Component,
Navigator,
ToolbarAndroid,
View,
} from 'react-native';
import globalStyle, { colors } from './globalStyle';
class NavBar extends Component {
onClickBackToHome() {
this.props.navigator.push({
name: 'home',
sc... | kmjennison/boop | components/NavBar.js | JavaScript | mit | 1,192 |
<?php
namespace App;
use App\models\User;
use Illuminate\Database\Eloquent\Model;
class InstDepartment extends Model
{
public static function get_departments_by_inst_id($id)
{
$departments = InstDepartment::where('institution_id', $id)->get();
return $departments;
}
public static f... | Webnician/EduForum | app/InstDepartment.php | PHP | mit | 2,871 |
# Copyright (c) 2015 Jean Dias
require 'test_helper'
class PublicidadesControllerTest < ActionController::TestCase
# test "the truth" do
# assert true
# end
end
| jeanmfdias/blog-initial | test/controllers/publicidades_controller_test.rb | Ruby | mit | 171 |
class CreateTakedowns < ActiveRecord::Migration[5.0]
def change
create_table :takedowns do |t|
t.integer :linked_account_id, null: false
t.timestamps
end
end
end
| bountysource/core | db/migrate/20171126185423_create_takedowns.rb | Ruby | mit | 186 |
/* Copyright (c) 2002-2010 Dovecot authors, see the included COPYING file */
/* @UNSAFE: whole file */
#include "lib.h"
#include "ioloop.h"
#include "write-full.h"
#include "network.h"
#include "sendfile-util.h"
#include "istream.h"
#include "istream-internal.h"
#include "ostream-internal.h"
#include <unistd.h>
#inc... | via/dovecot-clouddb | src/lib/ostream-file.c | C | mit | 24,954 |
IF OBJECT_ID('LoggerBase.Layout_ApplicationName') IS NOT NULL
SET NOEXEC ON
GO
CREATE FUNCTION LoggerBase.Layout_ApplicationName()
RETURNS NVARCHAR(256)
AS
BEGIN
RETURN NULL
END
GO
SET NOEXEC OFF
GO
/*********************************************************************************************
FUNCTION LoggerB... | jbpion/log4mssql | log4mssql/LoggerBase/Functions/Layout_ApplicationName.sql | SQL | mit | 695 |
<!DOCTYPE html>
<html lang="en">
<head>
<title>jsTester</title>
<link rel="stylesheet" type="text/css" href="../public/stylesheets/style.css" />
</head>
<body>
<h1>jsTester</h1>
<div id='jsTesterLog'></div>
<script type='text/javascript' src='../public/javascripts/jsTester.js'></script>
<... | rawright/jsTester | test/index.html | HTML | mit | 398 |
package fpr9.com.nbalivefeed.entities;
/**
* Created by FranciscoPR on 07/11/16.
*/
public class RecordContainer {
private String id;
private Record record;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Record getRecord() {
... | FranPR9/NBALIVEFEED | app/src/main/java/fpr9/com/nbalivefeed/entities/RecordContainer.java | Java | mit | 430 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta name="generator" content="PHPDoctor 2RC4 (http://phpdoctor.sourceforge.net/)">
<meta name="when" content="Wed, 14 Apr 2010 15:12:06 +0000">
<link rel="stylesheet" type="text/css" href="../../../st... | j13k/doctrine1 | lib/api/doctrine/dbal/driver/package-globals.html | HTML | mit | 2,113 |
import React, { Component, PropTypes } from 'react';
import ItemTypes from './ItemTypes';
import { DragSource, DropTarget } from 'react-dnd';
import flow from 'lodash.flow';
function isNullOrUndefined(o) {
return o == null;
}
const cardSource = {
beginDrag(props) {
return {
id: props.id,
index: pr... | jas-chen/react-dnd-card | src/index.js | JavaScript | mit | 3,144 |
<section data-ng-controller="TrainersController" data-ng-init="findOne()">
<div class="page-header">
<h1 data-ng-bind="trainer.name"></h1>
</div>
<div class="pull-right" data-ng-show="((authentication.user) && (authentication.user._id == trainer.user._id))">
<a class="btn btn-primary" href="/#!/trainers/{{traine... | H3rN4n/mascoteros | public/modules/trainers/views/view-trainer.client.view.html | HTML | mit | 710 |
using System;
using Microsoft.Hadoop.MapReduce;
namespace MapReduceSamples.Utils
{
public class TestReducerCombinerContext : ReducerCombinerContext
{
public TestReducerCombinerContext(bool isCombiner) : base(isCombiner)
{
}
public override void EmitKeyValue(string key, string ... | SaschaDittmann/MapReduceSamples | MapReduceSamples/MapReduceSamples.Utils/TestReducerCombinerContext.cs | C# | mit | 1,520 |
#!/usr/bin/env python
import os
import time
import argparse
import tempfile
import PyPDF2
import datetime
from reportlab.pdfgen import canvas
parser = argparse.ArgumentParser("Add signatures to PDF files")
parser.add_argument("pdf", help="The pdf file to annotate")
parser.add_argument("signature", help="The signature... | yourcelf/signpdf | signpdf.py | Python | mit | 2,594 |
# frozen_string_literal: true
require 'vk/api/responses'
module Vk
module API
class Likes < Vk::Schema::Namespace
module Responses
# @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
class IsLikedResponse < Vk::Schema::Response
# @return [Object] @see https://gi... | alsemyonov/vk | lib/vk/api/likes/responses/is_liked_response.rb | Ruby | mit | 473 |
<script type="application/ld+json">{
"section":"components",
"title":"Menus Manager",
"sections":[
]
}</script>
<ng-include src="'../../../src/DocBundle/views/parts/content.html'"></ng-include>
| OSW3/odyssey-desktop | src/DocBundle/Views/sections/Components/MenusManager.html | HTML | mit | 211 |
import { AppPage } from './app.po';
import { browser, logging } from 'protractor';
describe('workspace-project App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
it('should display welcome message', () => {
page.navigateTo();
expect(page.getTitleText()).toEqual('sandbox... | basp/sandbox | e2e/src/app.e2e-spec.ts | TypeScript | mit | 640 |
## Bookmarks tagged [[css-preprocessor]](https://www.codever.land/search?q=[css-preprocessor])
_<sup><sup>[www.codever.land/bookmarks/t/css-preprocessor](https://www.codever.land/bookmarks/t/css-preprocessor)</sup></sup>_
---
#### [gcss](https://github.com/yosssi/gcss)
_<sup>https://github.com/yosssi/gcss</sup>_
Pure... | Codingpedia/bookmarks | tagged/css-preprocessor.md | Markdown | mit | 825 |
// @license
// Redistribution and use in source and binary forms ...
// Copyright 2012 Carnegie Mellon University. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of sou... | CI-WATER/tmaps | tmc-1.2.1-linux/timemachine-viewer/js/org/gigapan/timelapse/mercator.js | JavaScript | mit | 2,858 |
describe('gridClassFactory', function() {
var gridClassFactory;
beforeEach(module('ui.grid.ie'));
beforeEach(inject(function(_gridClassFactory_) {
gridClassFactory = _gridClassFactory_;
}));
describe('createGrid', function() {
var grid;
beforeEach( function() {
grid = gridClassFactory.cre... | domakas/ui-grid | test/unit/core/services/GridClassFactory.spec.js | JavaScript | mit | 8,044 |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="es" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="+14"/>
<source>About GoldDiggerCoin</source>
<translation>Acerca de GoldDiggerCoin</trans... | golddiggercoin/golddiggercoin | src/qt/locale/bitcoin_es.ts | TypeScript | mit | 120,085 |
#include "../../include/domains/AODeterminization.h"
#include "../../include/domains/DummyAction.h"
AllOutcomesDeterminization::
AllOutcomesDeterminization(mlcore::Problem* problem) {
originalProblem_ = problem;
problem->generateAll();
int s_idx = 0;
for (mlcore::State* s : problem->states()) ... | luisenp/mdp-lib | src/domains/AODeterminization.cpp | C++ | mit | 2,532 |
<?php
namespace BigD\ThemeBundle\DependencyInjection;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
/**
* This is the class that validates and merges configuration from your app/config files
*
* To learn more see {@link http://symfony.... | matudelatower/BigD | src/BigD/ThemeBundle/DependencyInjection/Configuration.php | PHP | mit | 870 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="fr">
<head>
<!-- Generated by javadoc (1.8.0_121) on Fri Mar 30 17:39:20 CEST 2018 -->
<title>F-Index</title>
<meta name="date" content="2018-03-30">
<link rel="stylesheet" type="text/css"... | AllanDubrulle/distributeur_tickets | Implementation/ML-TheoDaix,AllanDubrulle,VictorVerhoye-implementation/Documentation/Javadoc/index-files/index-6.html | HTML | mit | 7,569 |
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
namespace Flarum\Post;
/**
* @property array $content
*/
abstract class AbstractEventPost extends Post
{
/**
* Unserialize the cont... | flarum/core | src/Post/AbstractEventPost.php | PHP | mit | 783 |
var searchData=
[
['setdebugflags',['setDebugFlags',['../dwarfDbgDebugInfo_8c.html#ab42dd1f5e0f83cb14eed0902aa036a95',1,'dwarfDbgDebugInfo.c']]],
['showchildren',['showChildren',['../dwarfDbgDieInfo_8c.html#a7e7301f838fc67cbb4555c6c250c2dc0',1,'dwarfDbgDieInfo.c']]],
['showcontents',['showContents',['../dwarfDbgL... | apwiede/nodemcu-firmware | docs/dwarfDbg/search/functions_8.js | JavaScript | mit | 660 |
/*Owner & Copyrights: Vance King Saxbe. A.*//*Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe@... | VanceKingSaxbeA/KOSPI-Engine | App/HITEJINRO.php | PHP | mit | 9,175 |
import 'reflect-metadata';
import 'rxjs/Rx';
import 'zone.js';
import AppComponent from './components/AppComponent.js';
import { bootstrap } from 'angular2/platform/browser';
bootstrap(AppComponent);
| Scoutlit/realtimeSyncing | webclient/app/app.js | JavaScript | mit | 201 |
#!/usr/bin/python
import pexpect
import sys
import logging
import vt102
import os
import time
def termcheck(child, timeout=0):
time.sleep(0.05)
try:
logging.debug("Waiting for EOF or timeout=%d"%timeout)
child.expect(pexpect.EOF, timeout=timeout)
except pexpect.exceptions.TIMEOUT:
logging.debug("Hit timeout... | paulboal/pexpect-curses | demo/demo3.py | Python | mit | 1,476 |
<?php
namespace Outil\ServiceBundle\Param;
use Symfony\Component\HttpKernel\Exception\Exception;
class Param{
// private $mailer;
// private $locale;
// private $minLength;
// public function __construct(\Swift_Mailer $mailer, $locale, $minLength)
// {
// $this->mailer = $mailer;
// $this->locale... | junioraby/architec.awardspace.info | src/Outil/ServiceBundle/Param/Param.php | PHP | mit | 605 |
#include "CharTypes.h"
namespace GeneHunter {
bool firstMatchSecond( char c1, char c2 )
{
if ( c1 == c2 ) return true;
if ( c1 == 'U' and c2 == 'T' ) return true;
if ( c1 == 'T' and c2 == 'U' ) return true;
if ( c1 == 'K' and ( c2 == 'G' or c2 == 'T' )) return true;
if ( c1 == 'S' and ( c2 == 'G' ... | BrainTwister/GeneHunter | src/GenomeLib/CharTypes.cpp | C++ | mit | 652 |
using System;
using System.Collections.Generic;
using System.Text;
namespace DesignPatterns.Behavioral.Visitor
{
public class Director : Employee
{
public Director(string name, double income, int vacationDays)
: base(name, income, vacationDays) { }
}
}
| Ysovuka/design-patterns | src/c-sharp/DesignPatterns/Behavioral/Visitor/Director.cs | C# | mit | 289 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | michto01/ardp | doc/html/d7/d02/classes__2_8js.html | HTML | mit | 6,222 |
# simply_smoked
| SeanWitt/SeanWitt.github.io | README.md | Markdown | mit | 18 |
class CreateImages < ActiveRecord::Migration
def change
create_table :images do |t|
t.string :title, :null => false
t.boolean :free_shipping, :null => false, :default => false
t.timestamps
end
end
end
| piggybak/piggybak_free_shipping_by_product | test/dummy/db/migrate/20111231040354_create_images.rb | Ruby | mit | 231 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.