id stringlengths 64 64 | content stringlengths 500 100k | language stringclasses 29
values | path stringlengths 4 333 | repo stringlengths 5 116 | license stringclasses 15
values | size int64 500 100k | lines int64 26 8.06k | source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|
fb5f6f754577c602999efba4e533cd92b32539e347a657b2c3c119707f9d8957 | package com.uzen.slimapk.struct;
import java.util.Locale;
/**
* @author dongliu
*/
public class Locales {
/**
* when do localize, any locale will match this
*/
public static final Locale any = new Locale("", "");
public static int match(Locale locale, Locale targetLocale) {
if (local... | Java | java/com/uzen/slimapk/struct/Locales.java | uzen/slimapk | mit | 862 | 34 | codeparrot/github-code |
ca1f5947c5322a5bc66a6bc0efeab6851afcb98b73608b7ea3d61f5905f09340 | /*
* Defines for JSON, especially duk_bi_json.c.
*/
#ifndef DUK_JSON_H_INCLUDED
#define DUK_JSON_H_INCLUDED
/* Object/array recursion limit (to protect C stack) */
#if defined(DUK_USE_DEEP_C_STACK)
#define DUK_JSON_ENC_RECURSION_LIMIT 1000
#define DUK_JSON_DEC_RECURSION_LIMIT 1000
#else
#define D... | C | src/duk_json.h | andoma/duktape | mit | 2,359 | 73 | codeparrot/github-code |
9eaddaad8385a06730701dccab7f9e138b15da04afd275d81e27b9c2474c0e38 | using System;
using BeeDevelopment.Brazil;
namespace BeeDevelopment.Z80Tester {
/// <summary>
/// Implements a simple Z80 machine for testing instructions.
/// </summary>
class Tester : Z80A {
/// <summary>
/// The strength of the test.
/// </summary>
public enum Strength {
/// <summary... | C# | Z80 Tester/Program.cs | MathewWi/cogwheel | mit | 2,854 | 107 | codeparrot/github-code |
878a4611bbd03319066a88c34a648002cf5a538d63870ef0f9b571e4467f9d06 |
export interface IUsedDocument {
getDocument(): Document;
setDocument(value:Document): void;
}
export interface IUsedTimeout {
setTimeout(value:number): void;
getTimeout(): number;
}
export interface IUsedFactory<T> {
getFactory(): T;
setFactory(value:T): void;
}
export interface IUsedEncodi... | TypeScript | xlib/core.ts | rodzewich/playground | mit | 6,368 | 235 | codeparrot/github-code |
ed63ed7d0a485fbdee195c5c46e3bfd480db34b6ce434e203241af10e4824352 | package me.liangdi.zaoshu.util;
import com.google.gson.Gson;
import lombok.extern.slf4j.Slf4j;
import me.liangdi.zaoshu.Constant;
import me.liangdi.zaoshu.model.Event;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.stream.Collectors;
/**
* webhook event 工具类
* Created by ... | Java | src/main/java/me/liangdi/zaoshu/util/EventUtil.java | Liangdi/zaoshu-java-sdk | mit | 1,784 | 67 | codeparrot/github-code |
bdec4c0029a1e4dbe7c9c70fd054dbce835ccd7a0e8a3880a6875b9123919400 | (function(define) {'use strict';
define(function(require) {
// inverseCDF.js
// takes a getMode function, updateLeft, and updateRight
// The resulting function will call getMode with whatever arguments are
// passed to it. getMode returns the object with val = mode, prob =
// corresponding probability.
... | JavaScript | distributions/inverseCDF.js | PanthR/rgen | mit | 1,683 | 52 | codeparrot/github-code |
45c592c2478cc472a96eceb01fe296c38b9f886aec754c16ce7ee8555636bf98 | -- Support for modules defined by Kethane
-- Kethane.rule.lua
-- by Starstrider42
-- Created June 17, 2014
-- Last modified July 2, 2014
-- Manual include of resource library for now
function resourceLabel (resourceName)
local name, icon
name = resourceName
if resourceName == "LFOX" then
name = "Rocket Fuel"
... | Lua | Kethane.rule.lua | OverloadUT/part-catalog-scripts | mit | 4,992 | 172 | codeparrot/github-code |
6d9987ef1a7f1895535a9ba9a3b02cc6ab43d7ec9cfd5a56f86c50388d7bd2db | package uk.co.ticklethepanda.carto.apps.stats.aggregator.buckets;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoField;
import java.time.temporal.TemporalField;
import java.time.temporal.WeekFields;
import java.util.Objects;
public class WeekOfYearBucket imp... | Java | apps/stats/src/main/java/uk/co/ticklethepanda/carto/apps/stats/aggregator/buckets/WeekOfYearBucket.java | TickleThePanda/location-history | mit | 1,388 | 55 | codeparrot/github-code |
c8548c99f5111a4f4c94833b4d79c5816bf4a3b95b750903fc8d678b15fecd5c | #include "mat2.hpp"
#include <iostream>
#include <math.h>
Mat2::Mat2() :
a{1},
b{0},
c{0},
d{1}
{}
Mat2::Mat2(float a1, float a2, float b1, float b2) :
a{a1},
b{a2},
c{b1},
d{b2}
{}
/////////////////////////////////////////////////////////
Mat2& Mat2::operator *=( Mat2 const & m )
{
float i = a * m.a + b * m.c;
f... | C++ | source/mat2.cpp | annachiu7/programmiersprachen-aufgabenblatt-3 | mit | 1,649 | 94 | codeparrot/github-code |
539b820973c5fefcd28f9ec0fd55d2731992a095e35aef4a6c1f5ba037500e4e | <!doctype html>
<head>
<meta charset="UTF-8">
<script src="../../web-component-tester/browser.js"></script>
<script src='../../webcomponentsjs/webcomponents-lite.js'></script>
<link rel="import" href="../../test-fixture/test-fixture.html">
<link rel="import" href="../../iron-test-helpers/mock-interactions.h... | HTML | src/People/wwwroot/sys/vaadin-combo-box/test/vaadin-combo-box-light.html | StarcounterSamples/People | mit | 5,215 | 152 | codeparrot/github-code |
987b3065972fd5f723ecedc8f8c069c74da060291b0c25e367f42ca5bf5e1fdc | /**
* @module gmf.controllers.AbstractDesktopController
*/
import gmfControllersAbstractAppController from 'gmf/controllers/AbstractAppController.js';
import gmfContextualdataModule from 'gmf/contextualdata/module.js';
import gmfDrawingModule from 'gmf/drawing/module.js';
import gmfEditingModule from 'gmf/editing/mod... | JavaScript | geoportal/geoportailv3_geoportal/static-ngeo/ngeo/contribs/gmf/src/controllers/AbstractDesktopController.js | Geoportail-Luxembourg/geoportailv3 | mit | 6,884 | 259 | codeparrot/github-code |
029cc52152e525b139f15099e7cd30e90787cde6e6abee63fa6a6fe7855fd788 | package edu.yale.yalepublic;
import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
impo... | Java | src/edu/yale/yalepublic/PhotoList.java | YaleSTC/YalePublic-android | mit | 1,720 | 62 | codeparrot/github-code |
fda7f80207b4218dea0f007615efbb92d01992f0abec5edf373420027fc5fda2 | package org.hamcrest.reflection;
import org.hamcrest.Description;
import org.hamcrest.TypeSafeDiagnosingMatcher;
import java.lang.reflect.Constructor;
import java.lang.reflect.Modifier;
import java.util.Arrays;
import java.util.List;
import static java.util.stream.Collectors.toList;
@SuppressWarnings("unchecked")
p... | Java | matcher-extensions/src/main/java/org/hamcrest/reflection/PrivateConstructorMatcher.java | fhtw-swp-tutorium/java-swp-test-tool | mit | 1,243 | 40 | codeparrot/github-code |
3d01134b5ec8d9a8601d9e3e92b6c1e259ab778ee2ff0bffcad9d680781524ec | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
int a[2000];
scanf("%d", &n);
while(n != 0) {
int lo, hi, mid;
for (int i=0; i<n; i++) {
scanf("%d", &a[i]);
}
sort(a, a+n);
int counter = 0;
for (int i = 0; i < n-2; ++i)
for (int j = i+1; j < n-1; ++j) {
lo = j+1;
hi... | C++ | spoj/NOTATRI.cpp | babhishek21/oj-sols | mit | 607 | 46 | codeparrot/github-code |
433768d4b689d3665321ecfaca7b4b763da27cac62e2f63826520aa1db5b9137 | package org.innovateuk.ifs.project.documents.builder;
import org.innovateuk.ifs.BaseBuilder;
import org.innovateuk.ifs.competitionsetup.domain.CompetitionDocument;
import org.innovateuk.ifs.file.domain.FileEntry;
import org.innovateuk.ifs.project.core.domain.Project;
import org.innovateuk.ifs.project.document.resource... | Java | ifs-data-layer/ifs-data-service/src/test/java/org/innovateuk/ifs/project/documents/builder/ProjectDocumentBuilder.java | InnovateUKGitHub/innovation-funding-service | mit | 2,205 | 61 | codeparrot/github-code |
12525ac0454bffa7104da0d9437a18516feec77fe6f09d354569319612f61004 | ---
redirect_from: /docs/1.0.22/interfaces/view.viewsynclistener.html
---
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ViewSyncListener | @uirouter/angularjs</title>
<meta name="description" content="">
<meta name="viewport"... | HTML | _ng1_docs/1.0.22/interfaces/view.viewsynclistener.html | ui-router/ui-router.github.io | mit | 14,451 | 303 | codeparrot/github-code |
89412c405d1f0c9f85231569d1b233079d9faaf6c0ebca2df3dd7ad784670b72 | package main
import (
"flag"
"fmt"
"net/http"
"os"
"os/signal"
"sync"
"syscall"
"time"
stdprometheus "github.com/prometheus/client_golang/prometheus"
"golang.org/x/net/context"
"github.com/go-kit/kit/log"
"github.com/go-kit/kit/metrics"
kitprometheus "github.com/go-kit/kit/metrics/prometheus"
"github.... | GO | examples/shipping/main.go | st3v/kit | mit | 6,028 | 204 | codeparrot/github-code |
2631eb33494a4c2d120bf0666883dbbd7161959c3a15445b3d614512683b552b | package com.valmaraz.mvp;
/**
* Created by Víctor Almaraz on 16/04/2016.
* http://www.valmaraz.com
*/
public class Log {
public static void i(String tag, String string) {
if (Environment.showLog) {
android.util.Log.i(tag, string);
}
}
public static void e(String tag, String... | Java | app/src/main/java/com/valmaraz/mvp/Log.java | vAlmaraz/mvp-android | mit | 1,005 | 43 | codeparrot/github-code |
00c065a68187cbb7812bc66bfce05aac3da6488dab84a32e242d86364eea87e5 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="My Personal Website">
<meta name="author" content="Daniel Hanson">
<link href='http://fonts.google... | HTML | blog/t6-oop-concepts.html | hanieldanson/hanieldanson.github.io | mit | 6,191 | 132 | codeparrot/github-code |
896923e3531d16e3cdfa95cda2eb98218257805e00f01b644fb3ec681a60003d | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Xml;
using System.Xml.Serialization;
using log4net;
using POESKillTree.Model;
using POESKillTree.Model.Items;
using POESKillTree.Model.Items.Mods;
using POESKillTree.Utils;
using Attac... | C# | WPFSKillTree/SkillTreeFiles/ItemDB.cs | MLanghof/PoESkillTree | mit | 71,980 | 1,639 | codeparrot/github-code |
f320dc22d590f03faed00c07d8736106f56db5fe6ccd44629e81e2ef480e38df | // Copyright (c) 2011-2016 The Oakcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qvalidatedlineedit.h"
#include "oakcoinaddressvalidator.h"
#include "guiconstants.h"
QValidatedLineEdit::QValidat... | C++ | src/qt/qvalidatedlineedit.cpp | stratton-oakcoin/oakcoin | mit | 2,525 | 124 | codeparrot/github-code |
5b8b20999751c4b8dbc7c306e664bd2293ebb9387f79a947838fb2fefb89c5b8 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Db_helper
*
* @codeCoverageIgnore
*/
class Db_helper {
// Database field data types
public $primary_key = array(
'type' => 'MEDIUMINT',
'constraint' => '8',
'unsigned' => TRUE,
'auto_increment' ... | PHP | application/helpers/db_helper.php | nguyentrongnghia777/core_codeigniter | mit | 1,886 | 81 | codeparrot/github-code |
788fee021cc114bc35e1c2ea25cb353e3183045a0048b3428322d7a273faefb7 | /* $NetBSD: filecomplete.c,v 1.43 2016/04/11 00:50:13 christos Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Jaromir Dolecek.
*
* Redistribution and use in source and binary forms, with or wit... | C | deps/libedit-20160903-3.1/src/filecomplete.c | hydratim/opennsl-man | mit | 15,137 | 572 | codeparrot/github-code |
08d46e4fe5e78855714fd998e05411d9ffaf0d7f36361f48786a408aebff779d | (function (window, document, history, undefined) {
// Aliases for query selector functions.
var $ = document.querySelector.bind(document)
var $$ = document.querySelectorAll.bind(document)
// Specify a function to execute when the DOM is fully loaded.
function ready (cb) {
if (document.attachEvent ? docu... | JavaScript | assets/code.js | joakim/iota.link | mit | 5,590 | 214 | codeparrot/github-code |
b10113d604b12d578eee666b74f89bdc3d15e7bca951cf11afdceb4c44c21bd0 | // ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ===========================... | C# | backend/src/Squidex.Domain.Apps.Entities/Assets/DomainObject/AssetsBulkUpdateCommandMiddleware.cs | Squidex/squidex | mit | 7,786 | 222 | codeparrot/github-code |
86c3b1968b51a489bed43b31760791d68d5333663ba0f71aa81eaa5f9625361f | #!/opt/miniconda/envs/thesis/bin/python
#!/usr/bin/env python2
"""
Run code, analyis or build documents related to this repository
Usage:
run.py paper [--rerun=RR] [--view] [--viewer=PDF]
run.py thesis [--rerun=RR] [--view] [--viewer=PDF]
run.py notebook [--port=P]
Options:
--view Compile and then op... | Python | run.py | Cadair/Thesis | mit | 2,086 | 59 | codeparrot/github-code |
d8597f50779a53009ad2e5f83397759555a6b13c3683b2a1e23a85236e7a0250 | <?php
/* TwigBundle:Exception:logs.html.twig */
class __TwigTemplate_34836182143cb6f69014c40632e2b17242ef9d26c42dd2c6801403c5b4482136 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | PHP | app/cache/dev/twig/34/83/6182143cb6f69014c40632e2b17242ef9d26c42dd2c6801403c5b4482136.php | RonaldKlaus/authentication_bundle | mit | 2,969 | 65 | codeparrot/github-code |
77b5fb1450d8ea5c8ba24c88c17500bc7b9c29979b18123909810c62e3b7df35 | import os
import platform
import subprocess
import cat_service
from apps.general import headers
def main():
headers.print_header('LOLCAT FACTORY')
# look for a directory if not there create it
dir_path = get_or_create_output_folder()
n_cats = get_number_cats()
# contact the lol cat api, get binar... | Python | apps/06_lolcat_factory/you_try/program.py | egancatriona1/python-jumpstart | mit | 1,553 | 58 | codeparrot/github-code |
44169c85bd30c3b3e28078f00e24777cc888fdde07be3de1d120dc807c54cf7f | package ru.fitgraph.engine.vkapi.elements;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
/**
* Class represent answer which contain array of users info objects (such is returned from users.get method),
* @{link VkUserInfo}.
*
* May be serializ... | Java | src/main/java/ru/fitgraph/engine/vkapi/elements/VkUsersGetResponse.java | melges-morgen/fitgraph | mit | 704 | 34 | codeparrot/github-code |
47d27715112563f719717f724d78bd6301a9fa8b3f5c88dc0ed0d6ad0e9cd36c | package org.meltwater.java.dataStructures;
public class BST {
public static Node root;
public BST() {
this.root = null;
}
public void add(int id){
Node newNode = new Node(id);
if(root==null){
root = newNode;
return;
}
Node current = root;
Node parent = null;
while(true){
parent = curren... | Java | src/org/meltwater/java/dataStructures/BST.java | henrino3/Data-Structures-and-Algorithms | mit | 2,564 | 155 | codeparrot/github-code |
bf6100118421186cd8c8dc8f1dc39b43f7fd0753e244f0d580652eceb43d194d | /*
* CX_WeightWidget.h
*
* Created on: Jul 5, 2013
* Author: joost
*/
#ifndef CX_WEIGHTWIDGET_H_
#define CX_WEIGHTWIDGET_H_
#include <QGroupBox>
#include <QAction>
#include <QDoubleSpinBox>
#include "CX_WeightSliderWidget.h"
#include "CE_Node.h"
#include "CE_Edge.h"
class QPushButton;
class QHBoxLayout;... | C | cppn-x/include/CX_WeightWidget.h | Evolving-AI-Lab/cppnx | mit | 2,805 | 125 | codeparrot/github-code |
7a625b4785808a75fdd4d7408bf4a4e481c1ce5b00edbe2e1b7a459a6caa5603 |
require 'httparty'
module Lti2Tp
class RegistrationsController < InheritedResources::Base
protect_from_forgery :except => :create
include Lti2Commons
include MessageSupport
include Signer
def create
# this signals initial POST from TC
tool = params[:tool]
if tool.present?
... | Ruby | lti2_tp/app/controllers/lti2_tp/registrations_controller.rb | vitalsource/LTI2-Reference | mit | 7,773 | 209 | codeparrot/github-code |
1579f70ba02be7df911f6b08acf31a288694e781e0c06c308e18547b469ebac9 | #ifndef OBJECT3D_H
#define OBJECT3D_H
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <QObject>
#include <vector>
#include <memory>
class Object3D : public QObject
{
Q_OBJECT
public:
Object3D(QObject *parent=nullptr);
~Object3D();
std::vect... | C | Tools/previz/previz/object3d.h | sky3/RadianceViewerPhotogrammetry | mit | 909 | 47 | codeparrot/github-code |
3c3220f3d0401790ca43767ae6542a832e26f7efa277200f086bffdf15f66cd4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json.Utilities;
using System.Globalization;
namespace Newtonsoft.Json
{
/// <summary>
/// Instructs the <see cref="JsonSerializer"/> to use the specified <see cref="JsonConverter"/> when serializing the member o... | C# | server/Newtonsoft.Json/JsonConverterAttribute.cs | jabbo/Jabbo | mit | 1,506 | 51 | codeparrot/github-code |
fd5ef531ceb543980802074241d31b63f1d9d4d2e593abb524e32d775c4444d1 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
function human_filesize($bytes, $decimals = 2) {
$sz = 'BKMGTP';
$factor = floor((strlen($bytes) - 1) / 3);
return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . " " . @$sz[$factor] . "B";
}
function rrmdir($dir) {
$slash="/";
... | PHP | application/helpers/custom_helper.php | swdmnd/profil-dosen | mit | 2,246 | 85 | codeparrot/github-code |
7733483ca61d694ef707dc0c9b9cd14ca14c72d508d60e0c9de7b20c41cd052e | (function () {
'use strict';
angular
.module('projects.admin.routes')
.config(routeConfig);
routeConfig.$inject = ['$stateProvider'];
function routeConfig($stateProvider) {
$stateProvider
.state('admin.projects', {
abstract: true,
url: '/projects',
template: '<ui-vi... | JavaScript | client/projects/projects-admin.routes.js | simplyspoke/archiproject | mit | 1,611 | 66 | codeparrot/github-code |
335f79365ac2bde1e045be356c584ddaa5bec9b78f73038a188accb0a717881b | function GetLastCreatedDir
{
[CmdletBinding()]
Param
(
[Parameter(Mandatory=$true)]
[string]$Directory
)
if(!(Test-Path $Directory))
{
return $null
}
$lastCreatedDir = Get-ChildItem -Path $Directory | Where-Object {$_.PSIsContainer} | Sort-Object CreationTime -Desc... | PowerShell | Sitecore.Deployment/Private/CommonFunctions.ps1 | RosenPetrov/sitecore-deployment-powershell | mit | 6,142 | 176 | codeparrot/github-code |
01c434b81694daa2bbd7669f08bfb635b50d4639a7fce17fe1178e29c3e61ffd | // Copyright (c) 2016 Nathan Ploskey
// All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy... | C | src/ecsalt/ComponentStore.h | nploskey/ecsalt | mit | 1,957 | 56 | codeparrot/github-code |
29e4678ece5d9a8362f64c8cc5e530741c74911b950005200bce33681b188704 | using UnityEngine;
using System.Collections;
public class CameraRunnerScript : MonoBehaviour {
public Transform player;
private int count = 0;
void Update () {
transform.position = new Vector3 (player.position.x + 6, 0, -10);
}
private void OnPostRender() {
count++;
if (count > 100) {
Texture... | C# | Assets/Scripts/CameraRunnerScript.cs | Enslev/experiments-ai | mit | 703 | 39 | codeparrot/github-code |
0e06a5e14de901a35d87a3b89db9a61f04ac7b835785c907780690336d778fa6 | import java.util.ArrayDeque;
/*
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3].
The largest rectangle is shown in the shaded ar... | Java | src/LargestRectangleInHistogram.java | kingdaa/Leetcode_Java | mit | 907 | 33 | codeparrot/github-code |
29ffa12bd0d95e3d991786b98af02a0a5370cb5a7622d1e22219a415e27cb876 | from django.shortcuts import render
from .models import Temas, Biblioteca
from django.shortcuts import get_object_or_404
from django.db.models import Q
# Create your views here.
def index(request,template='biblioteca/index.html',slug=None):
temas = Temas.objects.all()
ultimas_guias = Biblioteca.objects.filter(tipo_d... | Python | biblioteca/views.py | shiminasai/plataforma_fadcanic | mit | 1,157 | 35 | codeparrot/github-code |
e30873cb16d193e1d91556374893d4aeeffccdd545b337c776226866fb7ebf80 | import { Arr, Fun, Result } from '@ephox/katamari';
import { SugarElement } from '@ephox/sugar';
import { SimpleGenerators } from '../api/Generators';
import * as Structs from '../api/Structs';
import * as MergingOperations from '../operate/MergingOperations';
import * as LockedColumnUtils from '../util/LockedColumnUt... | TypeScript | modules/snooker/src/main/ts/ephox/snooker/model/TableMerge.ts | tinymce/tinymce | mit | 9,270 | 185 | codeparrot/github-code |
840ddc61e332c5f1b104c9f0ecde3f2bdc6f077f35c9ca4d03b63696998eee6c | <?php
namespace amb\libtest\Utilities;
class MultiCommand
{
private $commands = array();
public function addCommand($cmd, &$response = null)
{
$this->commands[] = array(
'cmd' => $cmd,
'response' => $response
);
}
public function getCommands()
{
... | PHP | Utilities/MultiCommand.php | andyboxer/libtest | mit | 926 | 43 | codeparrot/github-code |
d5e996a556a56d1ca644cb015581ea97f9834ef988b53e25e2d5fbe393ba547e | # coding=utf-8
# 1. generate velocity and force nodes of sphere using MATLAB,
# 2. for each force node, get b, solve surrounding velocity boundary condition (pipe and cover, named boundary velocity) using formula from Liron's paper, save .mat file
# 3. read .mat file, for each boundary velocity, solve associated bounda... | Python | ecoli_in_pipe/tail_U.py | pcmagic/stokes_flow | mit | 9,601 | 250 | codeparrot/github-code |
f8859de2adb95c0aece34d82943f82ed69cb1188683b1409c6f089dc6abd3a5a | // imports
import { Model, Schema } from 'model-json-js'
import { parse } from '../util'
// "private" properties
const URL = Symbol('Actor URL template')
export const MODEL = Symbol('Model schema')
/**
* <p>Class that implements a basic Actor instance in the <a href="https://en.wikipedia.org/wiki/Actor_model">Actor... | JavaScript | src/Actor/BaseActor.js | aeilers/js-cqrs-es | mit | 6,259 | 136 | codeparrot/github-code |
dd635456ecf41a2fdce92b9feeeb1e07cedf8f6a59ede5429e5719cbda14f54b | 1>2# : ^
'''
@echo off
setlocal enabledelayedexpansion
set BUILD_DIR=%~dp0
set BUILD_DIR=%BUILD_DIR:~0,-1%
REM Since this "thing" always returns with trailing slash, remove it
call %~dp0env.bat
set TMP_DIR=%BUILD_DIR%\tmp
set PYTHON_INSTALL=%VIP_SRC_DIR%\python-2.7.10.amd64.msi
set LESSMSI=%DRYRUN%%BUILD_DIR%\util... | Batchfile | external/bin_Windows_NT_AMD64/build.bat | andyneff/voxel-globe | mit | 12,567 | 311 | codeparrot/github-code |
0535112f7da89762339346ecdcc1171a0ca7d2c38bfd66d522f3f7e1d2b0860a | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2013 - Raw Material Software Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL v3
... | C++ | JuceLibraryCode/modules/juce_data_structures/values/juce_ValueTree.cpp | JordanTHarris/VAStateVariableFilter | mit | 35,568 | 1,138 | codeparrot/github-code |
d3959d7ae5930f39d2b7f5beacc5654eea51075707f95a58c4a74381336fccf0 | import { Injectable } from '@angular/core';
import { HttpResponse } from '@angular/common/http';
import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot, Routes } from '@angular/router';
import { UserRouteAccessService } from '../../core';
import { of } from 'rxjs';
import { map } from 'rxjs/operators';
import {... | TypeScript | src/main/webapp/app/entities/quiz-exercise/quiz-exercise.route.ts | ls1intum/ArTEMiS | mit | 4,720 | 129 | codeparrot/github-code |
d936fef15f5ffa00cd9cbd84124a2853b2ae322d869235e78872787dd8f3aac3 | var gulp = require('gulp');
var mocha = require('gulp-mocha');
var gutil = require('gulp-util');
var sourceHeader =
"/*\n" +
" * This file is part of legalese.js 0.1.0." +
" *\n" +
" * Copyright (c) 2014 Flávio Lisbôa\n" +
" *\n" +
" * This software may be modified and distributed under the terms\n" +
" * of the MIT ... | JavaScript | gulpfile.js | flisboac/legalese.js | mit | 890 | 50 | codeparrot/github-code |
dc58c6b37af67b9fdf2b04243484e33f9dfc7404f1323d51b7e9dbbe6eef1a3a | package net.tokensmith.otter.controller.translator;
import helper.FixtureFactory;
import helper.entity.model.DummySession;
import helper.entity.model.DummyUser;
import net.tokensmith.otter.controller.entity.request.Request;
import net.tokensmith.otter.dispatch.translator.RequestTranslator;
import net.tokensmith.otter.... | Java | otter/src/test/java/net/tokensmith/otter/controller/translator/RequestTranslatorTest.java | RootServices/otter | mit | 3,989 | 86 | codeparrot/github-code |
a14dad1f6377c14456127cd6efdfbd10ada6458d6d302b04fe218b92063e26c6 | from django import forms
from django.contrib.auth import get_user_model
from django.utils.translation import gettext_lazy as _
from froide.account.forms import user_extra_registry
from froide.foirequest.auth import can_read_foirequest
from froide.helper.spam import SpamProtectionMixin
from .models import FoiRequestFo... | Python | froide/foirequestfollower/forms.py | stefanw/froide | mit | 1,957 | 56 | codeparrot/github-code |
19ef1d167b4099a6cfb6b0f482c62d9447471e7b60509a13db60c67ca40a3204 | <?php
namespace Lawoole\Snowflake;
use Lawoole\Contracts\Snowflake\Snowflake as SnowflakeContract;
/**
* 00000000000000000000000000000000 | 00000 | 00000 | 00000000000 | 00000000000
* -------- Time in second -------- | - M - | - R - | - Process - | --- Inc ---
*/
class Snowflake implements SnowflakeContract
{
... | PHP | src/Snowflake/Snowflake.php | lawoole/framework | mit | 2,798 | 142 | codeparrot/github-code |
83cd9f631160b82e8454b1ae3815b28fe4f55f7205d2487b9dd5b5569003d745 | /**
* Copyright (c) 2008, 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 source code must retain the above copyright
* notice, ... | C++ | src/rppanda/gui/onscreen_image.cpp | bluekyu/render_pipeline_cpp | mit | 4,383 | 125 | codeparrot/github-code |
f6847b852527b0f33bad58e44275185e327217c2a4f41dacaa2064593ef63613 | /***************************************************************/
/*** Psyco equivalent of tupleobject.h ***/
/***************************************************************/
#ifndef _PSY_TUPLEOBJECT_H
#define _PSY_TUPLEOBJECT_H
#include "pobject.h"
#include "pabstract.h"
#define TUPLE_o... | C | ni/Objects/ptupleobject.h | tonysimpson/Ni | mit | 1,582 | 44 | codeparrot/github-code |
ade1d681297356ee1a206b24dbdd7d0b9800e118e6c5fe9aeb7d4af1f6473df3 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>HEXO搭建个人博客</title>
<meta name="description" content=" 经过各种找资料,踩过各种坑,终于使用 hexo 搭建个人博客初步完成了,域名目前用得时 github ... | HTML | _site/2015/08/HEXO搭建个人博客/index.html | deepindo/deepindo.github.io | mit | 16,917 | 496 | codeparrot/github-code |
4de74778f54a136b2f9965a92dce5ebce02504733230bee343995b54f5761201 | #include <FractalPCH.h>
#include <scene\Scene.h>
#include <scene\objects\GameObject.h>
namespace fractal
{
namespace fscene
{
Scene::Scene (const FString& name) :
FObject(name)
{
// empty
}
Scene::~Scene ()
{
// empty
}
bool Scene::Init ()
{
for (GameObject* obj : this->m_objects)
{
... | C++ | FractalX/src/scene/Scene.cpp | talislincoln/FractalX | mit | 1,695 | 97 | codeparrot/github-code |
77626adacd9db0ed05d42eab663bf5be3cfd418dd5c8b236a4f980419358e04f | @extends('admin::admin.index')
@section('topmenu')
<div class="header-module-controls">
@include('admin::common.topmenu.list', ['routePrefix'=>$routePrefix])
@if (isset($entities))
<a class="btn btn-primary" href="{!! route($routePrefix.'create', ['parent'=>@$entities[0]->id]) !!}">
... | PHP | app/Modules/Tree/Resources/Views/admin/index.blade.php | akhan-weltkind/larawelt2 | mit | 2,909 | 71 | codeparrot/github-code |
386bd9a4ae3e68c6047802a16317c6397df5ac14dccd65667aaf1f88f4c5631a | import { EventEmitter } from '@angular/core';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { ConfirmModalComponent } from './confirm-modal.component';
import { Modal } from './modal.model';
describe('ConfirmModalComponent', () ... | TypeScript | client/src/app/shared/confirm-modal/confirm-modal.component.spec.ts | hachi-eiji/sandbox-todo-app | mit | 3,053 | 93 | codeparrot/github-code |
6c6e47be8195bdfee35230fe78f7a3d3f300745c3ccb613ee1018a2949be79f9 | // View logic and helper functions for the main view
var dirtySettings = {
following: {
dirty: true,
endpoint: '/feed'
},
subreddits: {
dirty: true,
endpoint: '/subreddits'
},
settings: {
dirty: true,
endpoint: '/settings'
}
};
// Name of users that are being follo... | JavaScript | public/js/app.js | copperwall/twiddit | mit | 10,107 | 328 | codeparrot/github-code |
d4190433c758df14021e2f265ce9230df23d8de19ede3fd184f9a1523c344c70 | {% load staticfiles otree_tags %}
<style type="text/css">
h4.panel-sub-heading {
margin-top: 20px;
}
ul {
list-style-type: circle;
padding-left: 20px;
}
</style>
<div class="well well-lg" style="padding-top:3px; padding-bottom:5px; margin-top:20px;">
<h3 class="panel-heading">
Instruction... | HTML | mini_ultimatum/templates/mini_ultimatum/Instructions.html | benarito/BusaraOtree | mit | 3,296 | 81 | codeparrot/github-code |
d2d6c1b0a1e9f5cedded0fb90caa79140075dc54f504727fcc98b2b2dda302f5 | // write1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <jpeglib.h>
#include <stdexcept>
#include <vector>
void exit_handle(j_common_ptr cinfo){
char msg[JMSG_LENGTH_MAX];
cinfo->err->format_message(cinfo, msg);
throw std::runtime_error(msg);
}
int ... | C++ | LibJpeg/demo/write1/write1.cpp | sim9108/SDKS | mit | 1,518 | 77 | codeparrot/github-code |
16211f4d119e74c475ceef40d07f6e8e228197abacec0d39ae494027aa68ba0a | // A taskfile should export an object with a 'settings' key and a 'tasks' key
module.exports = {
settings: {
// Enter information from the Google Developer Console here
clientId: 'yourappid.apps.googleusercontent.com',
clientSecret: 'yourclientsecret',
redirectUri: 'urn:ietf:wg:oauth:2.0:oob',
// ... | JavaScript | taskfile.sample.js | gondek/google-calendar-mailer | mit | 3,702 | 91 | codeparrot/github-code |
a90632f96e6a091e6bde4b5f596e33748d0d465fa9a4f3b3fd49192eb84a4575 | 'use strict';
module.exports = [
'$q',
'$log',
'$http',
'authService',
function($q, $log, $http, authService) {
$log.debug('Child Service');
let service = {};
service.children = [];
service.createChild = (child) => {
$log.debug('service.createChild');
return authService.getToken... | JavaScript | app/service/child-service.js | G4-Final-Project/PAWS-ibilities-frontend | mit | 3,206 | 121 | codeparrot/github-code |
3079cd93454de3f40d2dd4ad134dcfe643606d47c9730828b7db03ba9b4687c8 | <?php
class Jenispemasukan extends CI_Model {
public function __construct()
{
// Call the CI_Model constructor
parent::__construct();
$this->load->database();
}
public function insert($nama){
$array = array(
'name'=>$nama
);
$query = $this->d... | PHP | application/models/Jenispemasukan.php | mariamarghareta/kredit | mit | 1,613 | 63 | codeparrot/github-code |
60f50206e0ab6fcf410e39d0d9ab6963e8001486aa693b7635053d66479b478d | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 Nels D. "Chip" Pearson (aka CmdrZin)
*
* 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 limitati... | C | progTimer/ProgTimer/mod_comms.c | CmdrZin/chips_avr_examples | mit | 6,638 | 313 | codeparrot/github-code |
22cd3fee7e92ae7113393fde81c3ff844b72e274eee7983d9f9ffcfd0174a17d | 'use strict';
/**
* @const
* @type {number}
*/
var HEIGHT = 300;
/**
* @const
* @type {number}
*/
var WIDTH = 700;
/**
* ID уровней.
* @enum {number}
*/
var Level = {
'INTRO': 0,
'MOVE_LEFT': 1,
'MOVE_RIGHT': 2,
'LEVITATE': 3,
'HIT_THE_MARK': 4
};
/**
* Порядок прохождения уровней.
* @type {Arr... | JavaScript | src/game.js | kaineer/try-travis | mit | 23,767 | 875 | codeparrot/github-code |
c0388fae5811d0c2a3d69af97422ad6fae9017f97e7c210bafc627ec5f5d2a19 | <?php
/**
* Created by PhpStorm.
* User: daniel
* Date: 2/23/15
* Time: 2:19 PM
*/
namespace DABSquared\PushNotificationsBundle\Job;
use BCC\ResqueBundle\ContainerAwareJob;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
class PushNotificationJob extends ContainerAwa... | PHP | Job/PushNotificationJob.php | DABSquared/DABSquaredPushNotificationsBundle | mit | 1,240 | 44 | codeparrot/github-code |
7ce7ead070dc6fa7e8c9d87403aae5c86f4463112d5fd848b070df0ff5df5213 | "use strict";
var AbstractToken = require('../tokens/AbstractToken');
var TokenTypes = require('../constants/TokenTypes');
class KeywordToken extends AbstractToken {
constructor(
name
) {
super();
this.name = name;
}
getType() {
return TokenTypes.KEYWORD;
}
toString() {
return `KEYW... | JavaScript | src/js/tokens/KeywordToken.js | pcottle/SandboxSQL | mit | 591 | 37 | codeparrot/github-code |
42c3da92abdc5ec74bb0d17bdf6069ceb3533c9902ddca8b9ab17b8a1aa24a0a |
class ProductoAPagar (
private val nombre: String,
private val precio: Float,
private val cantidad: Int
){
def subtotal (): Double ={
return precio * cantidad
}
}
class Productos extends Iterable [ProductoAPagar] {
private val productosAPagar = new Array[ProductoAPagar](50)
private var cantidadProductos =... | Scala | Nota-Iterable.scala | diana170309/poo1-1 | mit | 1,465 | 71 | codeparrot/github-code |
7ffb87ee2c38989347c269805f6f3e21105b3fd388b2f20d77eff6f02fd481de | using System;
using System.Windows;
using System.Windows.Data;
using System.Windows.Media.Imaging;
namespace Traffix.Converters
{
public class ReverseBooleanToVisibilityConverter : IValueConverter
{
public ReverseBooleanToVisibilityConverter()
{
}
#region public
pu... | C# | Traffix/Converters/ReverseBooleanToVisibilityConverter.cs | jsmug/Traffix | mit | 1,093 | 56 | codeparrot/github-code |
1c7cc790f5e93178479fcf3db2a43e78bbd5534da36af2d86c3f972daee7e7c6 | /***************************************************************
* Name: LauncherMain.cpp
* Purpose: Code for Application Frame
* Author: ()
* Created: 2012-08-30
* Copyright: ()
* License:
**************************************************************/
#include "LauncherMain.h"
#include "md5.h"
#... | C++ | Launcher/source/LauncherMain.cpp | isonil/mmorpg | mit | 11,850 | 360 | codeparrot/github-code |
4d0f7d6b79a72878589804c5fcf341933d10ccefb2feeee867c51dced678e6d0 | <?php
namespace Podlove\Modules\Logging;
use Monolog\Logger;
use Podlove\Model;
use Podlove\Log;
use Podlove\Settings\Dashboard;
class Logging extends \Podlove\Modules\Base {
protected $module_name = 'Logging';
protected $module_description = 'View podlove related logs in dashboard. (writes logs to database)';
... | PHP | lib/modules/logging/logging.php | wp-plugins/podlove-podcasting-plugin-for-wordpress | mit | 4,131 | 135 | codeparrot/github-code |
5a7015ef357e312f0ad03c594d98985365f8b9c992ec4a323127a765268073cb | /*
* Copyright 2016 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | C | Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/rtc_base/numerics/safe_compare.h | koobonil/Boss2D | mit | 6,726 | 177 | codeparrot/github-code |
07483eefdecbdb72b2c0f74d7f2619009401a4d46c13439d4d13c57869a5010d | from django import template
# from django.contrib.admin.util import lookup_field
# from django.core.exceptions import ObjectDoesNotExist
# from django.core.urlresolvers import NoReverseMatch, reverse
# from django.db.models import ForeignKey
# from django.template.defaulttags import NowNode
# from django.utils.safestri... | Python | content/templatetags/content_tags.py | skylifewww/pangolin_new | mit | 4,762 | 181 | codeparrot/github-code |
c102943092dfcaeb7b16fce169b49218d1c8efe9329f064ceb0e53f0b5e3fd57 | /*
* PWMx.c
*
* Created on: 18 de ago de 2016
* Author: gustavo
*/
#include "BRTOS.h"
#include "device.h"
static size_t PWM_Set(OS_Device_Control_t *dev, uint32_t request, uint32_t value){
size_t ret = 0;
return ret;
}
static size_t PWM_Get(OS_Device_Control_t *dev, uint32_t request){
uint32_t ret = ... | C | platforms/eclipse_mingw_win32/src/drivers/PWMx.c | brtos/simulador | mit | 757 | 42 | codeparrot/github-code |
9934c5bcd4d795803027f8e0bbcba4e31f0437c0beed6937196b07e960f3f03d | using System.ComponentModel;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using VARP;
public class UiMenuLineBase : UiObject, IOnKeyDown
{
[Header("UiMenuLineBase")]
public Vector2 childAnchor;
private Vector2 childAnchorOnCanves;
/// <summary>
/// When we open ... | C# | Assets/DMenu/Unity/UiMenuLineBase.cs | hww/VARP | mit | 1,111 | 50 | codeparrot/github-code |
4cb7eeb19a6f94533d3eb46ed9fc8973f73f9e9a50cd75eda940ba20c1fd0b30 | <?php
namespace alkemann\h2l;
use alkemann\h2l\util\Http;
use Closure;
/**
* Class Router
*
* @package alkemann\h2l
*/
class Router implements interfaces\Router
{
/**
* Defines which character is used by regex dynamic routes
* @var string
*/
public static string $DELIMITER = '|';
/**
... | PHP | src/Router.php | alkemann/h2l | mit | 5,430 | 187 | codeparrot/github-code |
ea84c1b0c3c716f2e7ce3c4fab4c547af846e2db422f36fbf3a2f4d485eef434 | /*
* Copyright (c) 2016, Globo.com (https://github.com/globocom)
*
* License: MIT
*/
import React, {Component} from "react";
import PropTypes from "prop-types";
import {EditorState, RichUtils} from "draft-js";
import classNames from "classnames";
import ToolbarItem from "./ToolbarItem";
import {getSelectionCoords}... | JavaScript | src/components/Toolbar.js | YesElf/megadraft | mit | 8,679 | 305 | codeparrot/github-code |
79bd80983fd03edf4b3324fc09a96f8d9592acd8214eaf1115ed0a94d4d68b15 | package nl.fhict.happynews.android.activity;
import android.app.FragmentManager;
import android.app.NotificationManager;
import android.app.SearchManager;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.SearchView;
import androi... | Java | android/src/main/java/nl/fhict/happynews/android/activity/MainActivity.java | BakkerTom/happy-news | mit | 4,010 | 119 | codeparrot/github-code |
f30176d6c6b49a070b28b3196eaf8b0504dbe21684c50ccc2f697c36472b24f1 | <?php namespace App\Http\Controllers;
use App\Auth\Constants;
use App\Middleware\AcceptMiddleware;
use App\Middleware\AuthenticationRequiredMiddleware;
use App\Middleware\ParseAsJsonMiddleware;
use App\Models\Activity;
use App\Models\ActivityLink;
use App\Models\Family;
use App\Models\User;
use Doctrine\Common\Persist... | PHP | app/Http/Controllers/ActivityController.php | colinjeanne/learning-site | mit | 11,561 | 409 | codeparrot/github-code |
ffb080d44dc1f41185542eb61ce6a14bab52e8b2a73b1a09c96876a0353c340d | 'use strict';
import game from './game.js';
import canvas from './canvas.js';
export default {
/**
* Bind click event on canvas
*/
init() {
var canvasElem = canvas.getCanvas();
if (canvasElem) {
canvasElem.addEventListener('click', this.onClick);
canvasElem.addEventListener('mousemo... | JavaScript | js/mouse.js | yodairish/tik-tak-toe | mit | 1,009 | 56 | codeparrot/github-code |
43c6d68d6bab98137051b2fc192447bc7df92369f189cb24c6d157b1c7d22d48 | <?php
/**
* Turns a URI into an named array
*
* EG: uriToArray(['controller', 'action', 'id'], 'post/edit/1')
* returns ['controller' => 'post', 'action' => 'edit', 'id' => '1']
*
* Names without values return null and unmapped values return as 'unmapped_1, unmapped_2' etc.
*
... | PHP | functions/uriToArray.php | Seanmcn/php-toolbox | mit | 1,290 | 35 | codeparrot/github-code |
44c50585e799d2292d8d4a1e73a366106744205cb2ac1e732d04f8897a6e267b | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VineScript.Binding;
using VineScript.Core;
namespace VineScript.Lib
{
public class Sequence
{
[VineBinding]
public static void Add(ref VineVar array, VineVar items)
{
if (!array.IsAr... | C# | VineScript/Core/Lib/Sequence.cs | julsam/VineScript | mit | 5,995 | 181 | codeparrot/github-code |
03e8210695a7ee6fdbc00d09abf87afc46245f04d1fadc3de23029e3f5f00519 | # Copyright (c) 2014 - 2016 townhallpinball.org
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | Python | pin/lib/score.py | town-hall-pinball/project-omega | mit | 4,429 | 119 | codeparrot/github-code |
8783312cc0d7b2882a78dca4d7d89eef92b1c757bd8a891fed37abc7cd5f2ec6 | package server;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.handler.AbstractHandler;
import dbConnectors.MYSQLConnector;
/**
* I... | Java | TheStartupJavaServer/src/server/HttpRequestHandler.java | williamFalcon/TheStartupJavaServer | mit | 1,383 | 72 | codeparrot/github-code |
5528180038724bd6f40ffe1f9a928a0b57c657f18c5e25bcdb08cbc1a7dff131 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Teegi: a Tangible EEG Interface</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Frey, J and Gervais, R">
<meta name="apple-mobile-web-app-capab... | HTML | index.html | RenaudGervais/UIST2014-teegi-presentation | mit | 14,435 | 457 | codeparrot/github-code |
8e122aefce79534715bd527629d156adb1846c3c8b67d70b2519587fac69737e | /*
* Copyright (C) 2004 Konrad Eisele (eiselekd@web.de), Gaisler Research
*/
#ifndef _LEON3_AMBA_H__
#define _LEON3_AMBA_H__
/*
* AMBA Plag & Play Bus Driver Macros
*
* Macros used for AMBA Plug & Play bus scanning
*
* COPYRIGHT (c) 2004.
* Gaisler Research
*
* The license and distribution terms for t... | C | snapgear_linux/linux-2.6.21.1/include/asm-sparc/ambapp.h | impedimentToProgress/UCI-BlueChip | mit | 7,432 | 307 | codeparrot/github-code |
c17c991b4a895a5f113a71465c3ed405e9a8ee27e91bc3c52e92231fbedc3f03 | import io
import csv
import requests
import datetime
import time
from bs4 import BeautifulSoup
TRAIN_FILE = "train.csv"
DEFAULT_INTERVAL = 1800
TRAIN_FILE_HEAD = ["Insult", "Date", "Comment"]
def writeCsv(fname, text, delimiter = ","):
prev_data = list()
try:
fil... | Python | collector.py | crystal150/CS350 | mit | 17,514 | 330 | codeparrot/github-code |
01e7046bea1b78a491e0371bf6ceb4d2f576a0815ca17d45ededfc46d7a97f5a | -- *************************************************************************************************************************************************************************
-- Lua script for managing ID-locks (www.idlock.no/www.idlock.se) with TellStick ZNet Lite. Author Johan Stålnacke (johan@steelneck.net)
-- This ... | Lua | zwave/IDlock/IDLockControl_1_0.lua | telldus/tellstick-lua-examples | mit | 13,270 | 389 | codeparrot/github-code |
9ac5e21e606a2301957812df5edb5c269ff86611ec8dbde512653c14fd997f6b | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using Caliburn.Micro;
using Microsoft.Phone.Shell;
using MundlTransit.WP8.Data.Reference;
using MundlTransit.WP8.Resources;
using MundlTransit.WP8.Services;
... | C# | Source/MundlTransit.WP8/ViewModels/StationInfo/DepartureViewModel.cs | christophwille/viennarealtime | mit | 2,819 | 91 | codeparrot/github-code |
741b0f314003fd215e59041809b3e4db8665fe0e91a8ad8f9f0a1a95388d2599 | from __future__ import print_function
import boto3
import sys
import time
import botocore.exceptions
class Runner(object):
def __init__(self, template, stack_name, params=[], iam_capability=False, session=None):
self.stack_name = stack_name
self.iam_capability = iam_capability
self.params =... | Python | troposphere_sugar/runner.py | enriclluelles/troposphere_sugar | mit | 2,590 | 84 | codeparrot/github-code |
aa718edacced3a934e29258b1ad16a0fc412d6716d52bed06dd79ada49298ef0 | /** @jsx h */
import { h, render } from 'preact';
import cx from 'classnames';
import RefinementList from '../../components/RefinementList/RefinementList';
import type {
HierarchicalMenuItem,
HierarchicalMenuConnectorParams,
HierarchicalMenuRenderState,
HierarchicalMenuWidgetDescription,
} from '../../connecto... | TypeScript | src/widgets/hierarchical-menu/hierarchical-menu.tsx | algolia/instantsearch.js | mit | 10,019 | 373 | codeparrot/github-code |
8fbd8308b6cd731fa04e961c79e155d9a156e8107670fb9e84a5383b281b4579 | #include <stdio.h>
#include <WinSock2.h>
#define PORT 3000 //server°¡ »ç¿ëÇÒ ÀÓÀÇÀÇ Æ÷Æ® ¹øÈ£¸¦ ÁöÁ¤
#define MAX_DATA 1000 //ÁÖ°í¹ÞÀ» ¼ö ÀÖ´Â µ¥ÀÌÅ͹öÆÛÀÇ ÃÖ´ë ¿ë·®À» ÀÓÀÇ·Î ÁöÁ¤
int main(int argc, char * argv[]){
WSADATA wsaData; //À©µµ¿ì ¼ÒÄÏÀÇ Ãʱâȸ¦ À§ÇÑ À©¼Óµ¥ÀÌÅÍ ±¸Á¶Ã¼ º¯¼ö¼±¾ð
SOCKET serverSocket, accept... | C | echo_server/echo_server/echo_server.c | LeeInJae/2014_3_network | mit | 2,968 | 74 | codeparrot/github-code |
2bd6f57a201f683885fb21e721de2097d11fc0ccb38c4adfd77b3e639dfc7e05 | $(document).ready(function() {
var currentIndex = 1;
var sectionAnchors = ['profile', 'about-me', 'qualifications', 'career', 'education', 'projects'];
var sectionNames = ['', 'About Me', 'Qualifications', 'Career', 'Education', 'Projects']
var loadedProgressBars = false;
$('#fullpage').fullpage({
anchors: ... | JavaScript | scripts/script.js | AjayAujla/Portfolio | mit | 1,564 | 55 | codeparrot/github-code |
ab8c9ce4b3551d20abfcd87fbd31ba24fe8969f52fff1f7ddcc965fd11013e00 | package ca.blarg.gdx.assets.textureatlas;
import ca.blarg.gdx.assets.AssetLoadingException;
import ca.blarg.gdx.assets.AssetLoadingUtils;
import ca.blarg.gdx.graphics.atlas.CustomGridTextureAtlas;
import ca.blarg.gdx.graphics.atlas.TextureAtlas;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.file... | Java | src/main/java/ca/blarg/gdx/assets/textureatlas/TextureAtlasJsonLoader.java | gered/gdx-toolbox | mit | 2,315 | 57 | codeparrot/github-code |
d2eeff4fd1a8597dac444f279133c0d7cd65c3d4542d57c9d9db885489065713 | using Core.Interfaces;
using Core.Model;
using Moq;
using NUnit.Framework;
using Ui.Console.Command;
using Ui.Console.Provider;
namespace Ui.Console.Test.Provider
{
[TestFixture]
public class KeyCommandProviderTest
{
private KeyCommandProvider provider;
[SetUp]
public void SetupKey... | C# | Ui.Console.Test/Provider/KeyCommandProviderTest.cs | MikaelSvenn/Certifier | mit | 2,306 | 87 | codeparrot/github-code |
486e6fca611cb0803d5ecc7fde7dbf8918bb1f88dd83028d527db164fca85fec | /**
* Created by sqchen on 12/2/14.
*/
// 这是一棵组织架构树
// 使用方法
// var orgTree = require('hrtx2.comp.OrgTree');
// 1. 最简单的初始化方式
// var tree = new orgTree(); // 这样就可以了。
// $('...').html(tree.render())// tree.render()就是返回的html片段
// tree.on('onCreateSuccess', function() {}); // 还可以监听事件,详细看代码吧
// 2. 自定义参数方式
// var tree = n... | JavaScript | src/comp/OrgTree.js | webfrontzhifei/school_stytem | mit | 3,390 | 101 | codeparrot/github-code |
d8155044a6c5c05f793b6fcc237f156927de75243c7c5bc92e0786186f70e8bd | <TS language="uz@Cyrl" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Right-click to edit address or label</source>
<translation>Манзил ёки ёрлиқни таҳрирлаш учун икки марта босинг</translation>
</message>
<message>
<source>Create a new address</source>
... | TypeScript | src/qt/locale/bitcoin_uz@Cyrl.ts | hexxcointakeover/hexxcoin | mit | 42,785 | 1,290 | codeparrot/github-code |
53dc425fe63365b100b67db9bf7057707c6c2286bd2da7e086e88336060a1402 | /*global define*/
define(
['dojo/_base/declare',
'dojo/_base/lang',
'dojo/_base/array',
'dojo/_base/html',
'dojo/on',
'dijit/_WidgetBase',
'dijit/_TemplatedMixin',
'dijit/_WidgetsInTemplateMixin',
'jimu/BaseWidgetSetting',
'jimu/dijit/Message',
'jimu/dijit/ServiceURLInput',
... | JavaScript | setting/DynamicLayerEdit.js | daFiter/localLayer_filter | mit | 8,922 | 310 | codeparrot/github-code |
7f800fe49825f482f29eee0b167c17506ecf9b7ffd67ba4e1abd0146246d9f79 | <!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/html; charset=utf-8" />
<title>WebIM</title>
<meta name="description" content="WebIM 高性... | HTML | views/no2chat.html | LoginQin/NoChat | mit | 14,125 | 380 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.