code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 3 942 | language stringclasses 30
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
#include "InputModels/SimpleGaussianModel.h"
#include "Keyboard.h"
#include "Polygon.h"
#include "math.h"
#include <cctype>
#include <boost/random.hpp>
#include <boost/random/normal_distribution.hpp>
using namespace std;
SimpleGaussianModel::SimpleGaussianModel(double xscale, double yscale, double corr) {
ysigm... | sangaline/dodona | core/src/InputModels/SimpleGaussianModel.cpp | C++ | gpl-3.0 | 4,337 |
#!/usr/bin/env node
// Special Pythagorean triplet
var SUM = 1000;
var triplet = get_pythagorean_triplet_by_sum(SUM);
console.log(triplet[0] * triplet[1] * triplet[2]);
function get_pythagorean_triplet_by_sum(s) {
var s2 = Math.floor(SUM / 2);
var mlimit = Math.ceil(Math.sqrt(s2)) - 1;
for (var m = 2; ... | iansealy/projecteuler | optimal/9.js | JavaScript | gpl-3.0 | 1,296 |
#include "Reseaux/RequetePartie/RequetePartie.hpp"
RequetePartie::RequetePartie(int tailleRequete, int numeroRequete)
: Requete(tailleRequete, 0)
{
numeroRequete = numeroRequete << 3;
data[0] = numeroRequete;
} | Aredhele/FreakyMonsters | client/src/Reseaux/RequetePartie/RequetePartie.cpp | C++ | gpl-3.0 | 215 |
<?php
use Phinx\Migration\AbstractMigration;
class NullableInvitationFrom extends AbstractMigration
{
/**
* Migrate Up.
*/
public function up()
{
$this->execute("ALTER TABLE invitations MODIFY sent_by INT(10) UNSIGNED DEFAULT NULL COMMENT 'The player who sent the invitation'");
}
... | allejo/bzion | migrations/20160212221926_nullable_invitation_from.php | PHP | gpl-3.0 | 396 |
ifeq ($(SRCDIR)x,x)
SRCDIR = $(CURDIR)/../../..
BUILDDIR = $(SRCDIR)
endif
SUBDIR = converter/ppm/ppmtompeg
VPATH=.:$(SRCDIR)/$(SUBDIR)
include $(BUILDDIR)/config.mk
ifeq ($(JPEGLIB),NONE)
# 'nojpeg' is a module that implements all the jpeg access routines as
# error messages that tell you we don't have jpeg ... | fritsche/curso-cuda | labs/netpbm/converter/ppm/ppmtompeg/Makefile | Makefile | gpl-3.0 | 4,089 |
import ChatMessage from "phasecore/messagetypes/chatmessage";
interface DeepHistoryNewer {
discID: number;
messages: ChatMessage[];
newestID: number;
}
export default DeepHistoryNewer;
| popstarfreas/PhaseClient | app/node_modules/phasecore/messagetypes/deephistorynewer.ts | TypeScript | gpl-3.0 | 199 |
/*
* Copyright (C) 2013 Nivis LLC.
* Email: opensource@nivis.com
* Website: http://www.nivis.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* Redis... | irares/WirelessHart-Field-Device | source_files/WirelessHart/ApplicationLayer/Model/DataLinkLayerCommands.h | C | gpl-3.0 | 18,118 |
<div class="col-md-12">
<div class="row">
<div class="col-md-6">
<h1><?php echo L('sensor_LIST'); ?></h1>
</div>
</div>
<div class="row">
<?php if($this->session()->getUserLevel() == 3) : ?>
<div class="col-md-4 text-left">
<a href="javascript:void(0)" id="sensors_rescan" class="btn btn-primary">
<... | scratchduino/sdlab-frontend | app/views/sensors/view.all.tpl.php | PHP | gpl-3.0 | 2,954 |
# Copyright 2014-2020 by Christopher C. Little.
# This file is part of Abydos.
#
# Abydos is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versio... | chrislit/abydos | tests/distance/test_distance_ncd_bwtrle.py | Python | gpl-3.0 | 2,159 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<!-- Material used from: HTML 4.01 specs: http://www.w3.org/TR/html401/ -->
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Hacking on clang</title>
<link type="text... | Bootz/multicore-opimization | llvm/tools/clang/www/hacking.html | HTML | gpl-3.0 | 13,107 |
# -*- coding: utf-8 -*-
# This file is part of BBFlux (BackBox XFCE -> FluxBox Menu Automatic Update Daemon).
#
# Copyright(c) 2010-2011 Simone Margaritelli
# evilsocket@gmail.com - evilsocket@backbox.org
# http://www.evilsocket.net
# http://www.backbox.org
#
# This file may be licensed under the terms of of the
# GNU ... | evilsocket/BBFlux | parsers/IconParser.py | Python | gpl-3.0 | 2,214 |
// Events
document.onkeypress = function (e) {
e = e || window.event;
var key = e.key;
return keymap[key]();
};
// Mouse events
document.onmousemove = function (e) {
e = e || window.event;
lfo.frequency.value = e.clientX;
main_osc.frequency.value = e.clientY / 10;
changeBackgroundColor(lfo... | ruckert/web_audio_experiments | synth007/events.js | JavaScript | gpl-3.0 | 534 |
import { Menu } from 'electron'
import menuActions from './actions'
import deviceItems from './devices'
import folderItems from './folders'
import { getDevicesWithConnections } from '../reducers/devices'
import { getFoldersWithStatus } from '../reducers/folders'
import { name, version } from '../../../package.json'
... | JodusNodus/syncthing-tray | app/main/menu/index.js | JavaScript | gpl-3.0 | 1,367 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test thorns.waves module.
"""
from __future__ import division, absolute_import, print_function
__author__ = "Marek Rudnicki"
import numpy as np
from numpy.testing import assert_equal
import thorns.waves as wv
def test_electrical_pulse_charge():
durations = ... | timtammittee/thorns | tests/test_waves.py | Python | gpl-3.0 | 1,056 |
<!--
#%L
UCoin Java Client :: Web
%%
Copyright (C) 2014 - 2015 EIS
%%
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later ... | E-IS/ucoinj | ucoinj-ui-wicket/src/main/java/io/ucoin/ucoinj/web/pages/registry/CurrencyRegistryPage.html | HTML | gpl-3.0 | 1,721 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc (1.8.0_144) on Sat Oct 14 12:47:35 CST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Class bio.rehunt.re... | yuhuei/REHUNT | REHUNT_v1.2_doc/bio/rehunt/rebase/class-use/REBASE.html | HTML | gpl-3.0 | 4,265 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Liliana Rodrigues</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="Description" lang="en" content="Haukna Metadata (2):... | sidtechnical/ALTwitter | pages/LilianaMEP.html | HTML | gpl-3.0 | 64,619 |
<html>
<head>
<meta name="generator" content="Bluefish 2.2.2" >
<meta name="generator" content="Bluefish 2.2.2" >
<meta name="generator" content="Bluefish 2.2.2" >
<meta name="generator" content="Bluefish 2.2.2" >
<link rel="STYLESHEET" href="main.css" type="text/css">
<title>Centeroid</title>
</head>
<bo... | biomathman/cellerator | cellzilla/html/Centeroid.html | HTML | gpl-3.0 | 3,080 |
# -*- coding: utf-8 -*-
# Copyright (C) 2005 Osmo Salomaa
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This pr... | otsaloma/gaupol | gaupol/dialogs/test/test_position_transform.py | Python | gpl-3.0 | 1,527 |
package com.kinztech.os.network.codec.game.decode;
import com.kinztech.os.game.node.entity.player.Player;
import com.kinztech.os.network.protocol.PacketDefinition;
import com.kinztech.os.utilities.RSBuffer;
/**
* Created by Allen Kinzalow on 5/25/2015.
*/
public interface DecodedPacket {
void decode(Player pla... | kinztechcom/OSRS-Server | src/com/kinztech/os/network/codec/game/decode/DecodedPacket.java | Java | gpl-3.0 | 382 |
import odoo.tests
@odoo.tests.common.at_install(False)
@odoo.tests.common.post_install(True)
class TestUi(odoo.tests.HttpCase):
def test_admin(self):
self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('event_buy_tickets', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.event_buy_tickets", ... | ChawalitK/odoo | addons/website_event_sale/tests/test_ui.py | Python | gpl-3.0 | 731 |
<?php
$lang["config_address"] = "Company Address";
$lang["config_address_required"] = "Company address is a required field";
$lang["config_backup_button"] = "Backup";
$lang["config_backup_database"] = "Backup Database";
$lang["config_barcode_company"] = "Company Name";
$lang["config_barcode_configuration"] = "Barcode... | fwahyudi17/ofiskita | pos/application/language/en/config_lang.php | PHP | gpl-3.0 | 8,009 |
#ifndef CONVERT_H
#define CONVERT_H
#include "types.h"
void convert(int32_t value, uint8_t *string, uint8_t base);
void int_to_binary_string(int64_t value, uint8_t *buffer);
void int_to_hex_string(int64_t value, uint8_t *buffer);
void int_to_dec_string(int32_t value, uint8_t *buffer);
#endif | dvigal/sparta | include/convert.h | C | gpl-3.0 | 298 |
/*
* -- High Performance Computing Linpack Benchmark (HPL-GPU)
* HPL-GPU - 2.0 - 2015
*
* David Rohr
* Matthias Kretz
* Matthias Bach
* Goethe Universität, Frankfurt am Main
* Frankfurt Institute for Advanced Studies
* (C) Copyright 2010 All Rights Reserved
*
* Antoine P. Pet... | davidrohr/hpl-gpu | include/hpl_ptest.h | C | gpl-3.0 | 5,676 |
/******************************************************************************
* The MIT License
*
* Copyright (c) 2011 LeafLabs, LLC.
*
* 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 Softwar... | AtDinesh/Arduino_progs | Arduino_STM32/STM32F1/variants/nucleo_f103rb/board.cpp | C++ | gpl-3.0 | 11,487 |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... | hgrall/merite | src/communication/v0/typeScript/build/tchat/commun/chat.js | JavaScript | gpl-3.0 | 4,687 |
'use strict';
var CONFIGURATOR = {
'releaseDate': 1456739663000, // 2016.02.29 - new Date().getTime() or "date +%s"000
'firmwareVersionEmbedded': [3, 8, 8], // version of firmware that ships with the app, dont forget to also update initialize_configuration_objects switch !
'firmwareVersionLiv... | remspoor/openLRSng-configurator | js/data_storage.js | JavaScript | gpl-3.0 | 6,310 |
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
require 'msf/core/payload/transport_config'
require 'msf/core/handler/reverse_http'
require 'msf/core/payload/windows/x64/meterpreter_loader'
require 'msf/base/ses... | cSploit/android.MSF | modules/payloads/singles/windows/x64/meterpreter_reverse_http.rb | Ruby | gpl-3.0 | 2,014 |
/* jshint node: true */
module.exports = function(grunt) {
"use strict";
var theme = grunt.option( 'theme', 'blue' );
var out = 'blue';
var lessFiles = [
'base',
'autocomplete_tagging',
'embed_item',
'iphone',
'masthead',
'library',
'trackster',
'circster',
'jstree'
];... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/static/style/Gruntfile.js | JavaScript | gpl-3.0 | 2,103 |
package pl.llp.aircasting.screens.common.base;
import android.app.ProgressDialog;
/**
* Created by IntelliJ IDEA.
* User: obrok
* Date: 1/16/12
* Time: 12:03 PM
*/
public interface ActivityWithProgress {
public static final int SPINNER_DIALOG = 6355;
public ProgressDialog showProgressDialog(int progress... | HabitatMap/AirCastingAndroidClient | src/main/java/pl/llp/aircasting/screens/common/base/ActivityWithProgress.java | Java | gpl-3.0 | 394 |
/**
* This file is part of MythTV Android Frontend
*
* MythTV Android Frontend is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*... | MythTV-Clients/MythTV-Android-Frontend | src/org/mythtv/client/ui/preferences/PlaybackProfileEditor.java | Java | gpl-3.0 | 9,195 |
/*
* Son of Mars
*
* Copyright (c) 2015-2016, Team Son of Mars
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.... | DeadPixelsSociety/SonOfMars | src/local/Hud.cc | C++ | gpl-3.0 | 4,307 |
#!/usr/bin/python
#
# Copyright 2016 Red Hat | Ansible
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['prev... | Lujeni/ansible | lib/ansible/modules/cloud/docker/docker_container.py | Python | gpl-3.0 | 143,393 |
/*
* WebSocketMessage.cpp
*
* Created on: Sep 10, 2015
* Author: lion
*/
#include "object.h"
#include "ifs/io.h"
#include "WebSocketMessage.h"
#include "Buffer.h"
#include "MemoryStream.h"
namespace fibjs {
result_t WebSocketMessage_base::_new(int32_t type, bool masked, int32_t maxSize,
obj_ptr<WebSoc... | ngot/nightly-test | fibjs/src/websocket/WebSocketMessage.cpp | C++ | gpl-3.0 | 14,485 |
# This file is part of GxSubOS.
# Copyright (C) 2014 Christopher Kyle Horton <christhehorton@gmail.com>
# GxSubOS is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your... | WarriorIng64/GxSubOS | indicatortray.py | Python | gpl-3.0 | 4,871 |
package com.glue.feed.youtube;
import java.io.IOException;
import java.io.InputStream;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.Properties;
import java.util.TimeZone;
import org.slf4j.Logger;
import o... | pgillet/Glue | glue-feed/src/main/java/com/glue/feed/youtube/YoutubeRequester.java | Java | gpl-3.0 | 6,629 |
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity.EntityFramework;
using System.Security.Claims;
using Microsoft.AspNet.Identity;
namespace LanAdeptData.Model
{
public class User : IdentityUser
{
[Requ... | ADEPT-Informatique/LanAdept | LanAdeptData/Model/Users/User.cs | C# | gpl-3.0 | 1,133 |
package to.oa.qha98.ballisticCalculator.test;
import static org.junit.Assert.*;
import org.bukkit.util.Vector;
import org.junit.Test;
public class VectorDefaultConstructorTest {
@Test
public void test() {
Vector v=new Vector();
assertEquals(0d, v.length(), 0.0000001d);
}
}
| qha98/BallisticCalculator | BalisticCalculator/BallisticCalculator/to/oa/qha98/ballisticCalculator/test/VectorDefaultConstructorTest.java | Java | gpl-3.0 | 298 |
<?php
use Phalcon\Di\FactoryDefault;
error_reporting(E_ALL);
define('APP_PATH', realpath('..'));
try {
/**
* The FactoryDefault Dependency Injector automatically register the right services providing a full stack framework
*/
$di = new FactoryDefault();
/**
* Read services
*/
in... | acidopal/crud_phalcon | public/index.php | PHP | gpl-3.0 | 740 |
# Audidash
Audidash is a project I started in 2017 to connect the instrument cluster of a 1998 Audi A4 to my PC. The various indicators and gauges correspond to stats of my machine. For instance, the speed gauge correllates to my words per minute of typing, and the RPM gauge corresponds to my mousing rate. The left an... | evangreen/hardware | audidash/README.md | Markdown | gpl-3.0 | 6,462 |
# Copyright (C) 2015-2016 Daniel Sel
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed i... | tumi8/sKnock | server/version.py | Python | gpl-3.0 | 1,225 |
<?php
namespace Tests\Feature;
use stdClass;
use Tests\TestCase;
use App\Models\Submission;
use App\Events\SubmissionCreated;
use App\Events\SubmissionUpdated;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Event;
use App\Core\Connect\ConnectorsRepository;
use App\Core\Connect\Connectors\SubmissionsC... | swiftmade/ssas-core | tests/Feature/OpenRosaTest.php | PHP | gpl-3.0 | 4,413 |
#include <stdbool.h>
#include "stm32f10x.h"
#define SYSCLK_FREQ_72MHz 72000000
uint32_t SystemCoreClock = SYSCLK_FREQ_72MHz; /*!< System Clock Frequency (Core Clock) */
__I uint8_t AHBPrescTable[16] = { 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9 };
uint32_t hse_value = 8000000;
void SystemInit(void)
{
/... | chris-penny/cleanflight | lib/main/CMSIS/CM3/DeviceSupport/ST/STM32F10x/system_stm32f10x.c | C | gpl-3.0 | 6,130 |
/**
* Nomic
* Copyright (C) 2017 David Jolly
*
* Nomic is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Nomic is distribute... | majestic53/nomic-alpha | src/uuid/manager_type.h | C | gpl-3.0 | 2,282 |
////////////////////////////////////////////////////////////////////
//
//
// Part of this source file is taken from Virtual Choreographer
// http://virchor.sourceforge.net/
//
// File pg-draw.cpp
//
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the ... | yukao/Porphyrograph | LYM-sources/SourcesBerfore18/Porphyrograph-geneMuse-src/pg-draw.cpp | C++ | gpl-3.0 | 147,112 |
/*
ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
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 requi... | oliverlee/ChibiOS | demos/STM32/CMSIS-STM32F407-DISCOVERY/chconf.h | C | gpl-3.0 | 17,081 |
{-
Copyright : Copyright (C) 2014-2015 Synchrotron Soleil
License : GPL3+
Maintainer : picca@synchrotron-soleil.fr
Stability : Experimental
Portability: GHC only?
-}
module Hkl.Source
( ki ) where
import Prelude hiding ((/))
import Numeric.LinearAlgebra (Vector, fromList)
import Nume... | klauer/hkl | contrib/Hkl/Source.hs | Haskell | gpl-3.0 | 589 |
import { Component, OnInit, Inject } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
@Component({
selector: 'app-remove-quantity',
templateUrl: './remove-quantity.component.html',
styleUrls: ['./remove-quantity.component.css']
})
export class RemoveQuantityComponent imple... | sumnercreations/ceilings | src/app/quantity/remove-quantity/remove-quantity.component.ts | TypeScript | gpl-3.0 | 598 |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid comm... | geminy/aidear | oss/qt/qt-everywhere-opensource-src-5.9.0/qtandroidextras/tests/auto/qandroidjniobject/tst_qandroidjniobject.cpp | C++ | gpl-3.0 | 43,144 |
// ***********************************************************************************************
// * *
// * createMenu.cpp - creates application menus *
// * ... | rsieger/PanXML | trunk/Sources/ApplicationCreateMenu.cpp | C++ | gpl-3.0 | 7,803 |
package l2s.gameserver.network.l2.s2c;
import l2s.gameserver.model.Creature;
/**
* 0000: 3f 2a 89 00 4c 01 00 00 00 0a 15 00 00 66 fe 00 ?*..L........f..
* 0010: 00 7c f1 ff ff .|...
*
* format dd ddd
*/
public class ChangeWaitTypePacket extends L2GameServerPacket
{
priv... | pantelis60/L2Scripts_Underground | gameserver/src/main/java/l2s/gameserver/network/l2/s2c/ChangeWaitTypePacket.java | Java | gpl-3.0 | 890 |
/*
---
Copyright 2017 David Doyaguez Sanchez (daviddoyaguez@gmail.com)
---
This file is part of LibRDT.
LibRDT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(... | ddoyaguez/librdt | inc/hashtable.h | C | gpl-3.0 | 746 |
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | TcM1911/clinote | write_test.go | GO | gpl-3.0 | 4,176 |
CREATE TABLE "public"."employee"(
"ssn" varchar(255) ,
"name" varchar(255) ,
"company" varchar(255),
"vid" varchar(255)
) WITHOUT OIDS;
CREATE TABLE "public"."vehicle"(
"vid" varchar(255) ,
"carplate" varchar(255)
) WITHOUT OIDS;
-- ----------------------------
-- Records
-- ---------------------... | dbunibas/spicy | spicyEngine/misc/resources/egds/05doubleJoin/doubleJoin-source-instance.sql | SQL | gpl-3.0 | 701 |
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8">
<title>{{title}}</title>
<meta name="description" content="{{description}}">
<meta name="keywords" content="教程,前端,前端教程,在线教程,{{keywords}}">
<meta name="author" content="Meathill, meathill@gmail.com">
<meta name="thumbnail" content="{{thu... | meathill-lecture/about-me | slides/index.html | HTML | gpl-3.0 | 1,737 |
#ifndef SVM_H
#define SVM_H
#include <boost/foreach.hpp>
#include <stdio.h>
#include "Util.h"
#include "Typedefs.h"
class Svm {
public:
virtual void train(const std::vector<PidMat>&,const std::vector<int>&) = 0;
virtual float predict(const PidMat& feature) = 0;
virtual void save(std::string) = 0;
... | jmenashe/person-reidentification | reidentifier/include/Svm.h | C | gpl-3.0 | 366 |
#region Copyright & License Information
/*
* Copyright 2007-2014 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see COP... | 166MMX/OpenRA | OpenRA.Mods.RA/AI/HackyAI.cs | C# | gpl-3.0 | 30,524 |
#!/usr/bin/env python
# coding=utf-8
# Copyright (C) 2014 by Serge Poltavski #
# serge.poltavski@gmail.com #
# #
# This program is free software; you can redistribute... | uliss/pddoc | pddoc/pdpainter.py | Python | gpl-3.0 | 2,655 |
package main
import (
"io/ioutil"
"log"
"os"
"strconv"
"time"
"github.com/openlab-aux/golableuchtung"
serial "github.com/huin/goserial"
)
func main() {
if len(os.Args) != 5 {
log.Fatal("invalid number of arguments")
}
leucht := lableuchtung.LabLeucht{}
c := &serial.Config{
Name: "/dev/ttyACM0",
... | openlab-aux/golableuchtung | serialcli/leucht.go | GO | gpl-3.0 | 784 |
/**
* slibc — Yet another C library
* Copyright © 2015, 2016 Mattias Andrée (maandree@member.fsf.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... | maandree/slibc | src/string/str/strtok.c | C | gpl-3.0 | 1,692 |
<?
/**
* @license http://www.mailcleaner.net/open/licence_en.html Mailcleaner Public License
* @package mailcleaner
* @author Olivier Diserens
* @copyright 2006, Olivier Diserens
*/
/**
* needs some defaults
*/
require_once ("system/SystemConfig.php");
class Pie {
/**
* file name
* @var string
*... | MailCleaner/MailCleaner | www/classes/view/graphics/Pie.php | PHP | gpl-3.0 | 4,573 |
# SSH proxy forward and remote shell
__author__ = "Frederico Martins"
__license__ = "GPLv3"
__version__ = 1
from getpass import getpass
from paramiko import AutoAddPolicy, SSHClient, ssh_exception
class SSH(object):
proxy = None
def __init__(self, host, user, password=None, port=22):
self.host = ... | flippym/toolbox | ssh-streaming.py | Python | gpl-3.0 | 1,573 |
# MiscellaneousParts | enabrintain/MiscellaneousParts | README.md | Markdown | gpl-3.0 | 20 |
<?php
// Define queries inside of the reports array.
// !! IMPORTANT: Make sure queries do not have a semicolon ';' at the end so the pagination will work.
$reports = array();
$reports['default'] = "SELECT username,full_name,email,date_created,active,login_date from users";
| PyrousNET/TorchFramework | reports/users.php | PHP | gpl-3.0 | 276 |
import os, json, random
from utils import *
import collections
class FileDataBaseException(Exception): pass
def update_dict_recursively(d, u):
for k, v in u.iteritems():
if isinstance(v, collections.Mapping):
r = update_dict_recursively(d.get(k, {}), v)
d[k] = r
else:
... | makseq/testarium | testarium/filedb.py | Python | gpl-3.0 | 6,170 |
package lejos.utility;
import lejos.hardware.LCD;
/**
* This class has been developed to use it in case of you have
* to tests leJOS programs and you need to show in NXT Display data
* but you don't need to design a User Interface.
*
* This class is very useful to debug algorithms in your NXT brick.
* ... | SnakeSVx/ev3 | Lejos/src/main/java/lejos/utility/DebugMessages.java | Java | gpl-3.0 | 2,602 |
body{
background-color: #151212;
color: #FFFFFF;
}
.contato-frase{
font-family: 'GOTHAM-LIGHT';
letter-spacing: 3px;
margin-top: 50px;
padding: 0 90px;
text-align: justify;
}
#form_contato label{
font-family: 'GOTHAM-LIGHT';
}
#lnk_enviar{
font-family: 'GOTHAM-LIGHT';
color: #bebebe;
width: 13%... | grglucastr/matheus | css/contato.css | CSS | gpl-3.0 | 392 |
<?php
/**
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @link https://github.com/bderidder/ldm-guild-website
*/
namespace LaDanse\RestBundle\Controller\GameData;
use LaDanse\RestBundle\Common\AbstractRestController;
use LaDanse\RestBundle\Common\JsonResponse;
use LaDanse\RestB... | bderidder/ldm-guild-website | src/LaDanse/RestBundle/Controller/GameData/RealmResource.php | PHP | gpl-3.0 | 1,963 |
#pragma once
#include "../Game/Enumeration.h"
namespace ToD
{
namespace Components
{
////////////////////////////////////////////////////////////
/// \brief Declares supported game component types.
///
////////////////////////////////////////////////////////////
class GameComponentType :
public Enumera... | AndreasLang1204/TowerOfDoom | src/Engine/Components/GameComponentType.h | C | gpl-3.0 | 3,835 |
/*
* rtinfod is the daemon monitoring rtinfo remote clients
* Copyright (C) 2012 DANIEL Maxime <root@maxux.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the L... | maxux/rtinfo | rtinfod/rtinfod_network.c | C | gpl-3.0 | 3,168 |
# Copyright (c) Geoffrey Lentner 2015. All Rights Reserved.
# See LICENSE file (GPLv3)
# KernelSmoother/Source/Makefile
# Makefile for building the KernelSmoother source (otherwise, just add the
# KernelSmoother.hh and KernelSmoother.cc files to your project as you like).
ccflags = -std=c++11 -fopenmp
inc = .
# ... | gLENTNER/KernelFit | Source/Makefile | Makefile | gpl-3.0 | 1,329 |
"use strict";
var path = require("path");
var fs = require("fs");
var sourceMap = require('source-map');
var sourceMaps = {};
var coffeeMaps = {};
var registered = false;
function registerErrorHandler() {
if (registered) return;
registered = true;
function mungeStackFrame(frame) {
if (frame.isNative()) return;
... | phun-ky/heritage | node_modules/neo4j/node_modules/streamline/lib/compiler/underscored.js | JavaScript | gpl-3.0 | 7,491 |
RSpec.describe Admission::Status do
def privilege context
@fake_privilege_klass ||= Struct.new(:context, :inherited)
@fake_privilege_klass.new context
end
describe '#new' do
it 'sets privileges to nil' do
instance = Admission::Status.new :person, nil, :rules, :arbiter
expect(instance).t... | doooby/admission | spec/unit/status_spec.rb | Ruby | gpl-3.0 | 2,166 |
<?php
class ControllerSettingSetting extends Controller {
private $error = array();
public function index() {
$this->load->language('setting/setting');
$this->document->setTitle($this->language->get('heading_title'));
$this->load->model('setting/setting');
if (($this->request->server['REQ... | dinoweb/lead_store | local/admin/controller/setting/setting.php | PHP | gpl-3.0 | 47,643 |
package com.wordpress.marleneknoche.sea.logic;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.*;
import java.util.HashMap;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
public class NucleobaseCounterTest {
private NucleobaseCounter nucleobaseCounter;
private s... | Sanguinik/sea | src/test/java/com/wordpress/marleneknoche/sea/logic/NucleobaseCounterTest.java | Java | gpl-3.0 | 1,956 |
package com.gavinflood.edumate;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
import android.app.Activity;
import android.app.Dialog;
import android.app.ListActivity;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android... | gavinflud/edumate | src/com/gavinflood/edumate/Assignments.java | Java | gpl-3.0 | 15,858 |
<!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"/>
<title>Kyoto Tycoon: kyototycoon Namespace Reference</title>
<link href="tabs.... | g2p/kyototycoon | doc/api/namespacekyototycoon.html | HTML | gpl-3.0 | 71,825 |
/*
* SkyTube
* Copyright (C) 2018 Ramon Mifsud
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation (version 3 of the License).
*
* This program is distributed in the hope that it will be u... | ram-on/SkyTube | app/src/main/java/free/rm/skytube/businessobjects/YouTube/POJOs/YouTubeAPI.java | Java | gpl-3.0 | 2,605 |
package nl.knaw.huygens.tei;
/*
* #%L
* VisiTEI
* =======
* Copyright (C) 2011 - 2017 Huygens ING
* =======
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* Li... | HuygensING/visitei | src/main/java/nl/knaw/huygens/tei/Entities.java | Java | gpl-3.0 | 1,302 |
package org.hofapps.tinyplanet;
import android.content.Context;
import android.util.AttributeSet;
/**
* Created by fabian on 02.11.2015.
*/
public class RangeSeekBar extends android.support.v7.widget.AppCompatSeekBar {
private static final int ARRAY_MIN_POS = 0;
private static final int ARRAY_MAX_POS = 1;... | hollaus/TinyPlanetMaker | app/src/main/java/org/hofapps/tinyplanet/RangeSeekBar.java | Java | gpl-3.0 | 1,322 |
class CheckPoint extends MasterBlock {
constructor(heading, x, y, moving, rotating) {
super("img/blocks/ellenorzo.png", heading, x, y, moving, rotating)
this._hit = false
}
get_newDir(dir) {
this._hit = true
return [dir]
}
hitStatus() {
return this._hit
... | Sch-Tomi/light-breaker | dev_js/blocks/checkpoint.js | JavaScript | gpl-3.0 | 326 |
# docker container for apache2php7
small docker container using supervisord to test-run php apps. no db link yet.
## usage
to build:
`docker build -t ymmer/apache2php7:1.0 .`
to run:
`docker run -p 8000:80 -m 512m --name="myApp" -d ymmer/apache2php7:1.0`
restart apache:
`supervisorctl restart apache2`
| ymmer/docker_apache-php | README.md | Markdown | gpl-3.0 | 312 |
class ColophonController < ApplicationController
def chapter
@chapters = Chapter.order("title ASC").all
end
def who
@all_chapters = Chapter.order("title ASC").all
end
def how
end
def funding
end
def highlights
end
def community
@social = Social.where('start_time > ?',Time.now).first
@gi... | goodfornothing/goodfornothing | app/controllers/colophon_controller.rb | Ruby | gpl-3.0 | 3,394 |
require 'package'
class A2png < Package
description 'Converts plain ASCII text into PNG bitmap images.'
homepage 'https://sourceforge.net/projects/a2png/'
version '0.1.5-1'
compatibility 'all'
source_url 'https://sourceforge.net/projects/a2png/files/a2png/0.1.5/a2png-0.1.5.tar.bz2'
source_sha256 'd3ae1c771... | cstrouse/chromebrew | packages/a2png.rb | Ruby | gpl-3.0 | 1,586 |
"use strict";
var validMoment = require('../helpers/is-valid-moment-object');
module.exports = function (value, dateFormat) {
if (!validMoment(value)) return value;
return value.format(dateFormat);
}; | matfish2/vue-tables-2 | compiled/filters/format-date.js | JavaScript | gpl-3.0 | 206 |
<!--
Automatically generated HTML file from DocOnce source
(https://github.com/hplgit/doconce/)
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" />
<meta name="description" content="Ch.1: Computing with f... | map0logo/saisho | slides/formulas/html/._formulas-plain006.html | HTML | gpl-3.0 | 9,419 |
<?php
// Load the plugin files and fire a startup action
require_once(dirname(__FILE__) . "/plugins.php");
startup();
require_once(dirname(__FILE__) . "/config.php");
_load_language_file("/index.inc");
/**
*
* Login page, self posts to become management page
*
* @author Patrick Lockley
* @version 1.0
* @cop... | sdc/xerte | index.php | PHP | gpl-3.0 | 11,968 |
using Hurricane.Music.Playlist;
using Hurricane.Music.Track;
namespace Hurricane.Music.Data
{
public class TrackPlaylistPair
{
public PlayableBase Track { get; set; }
public IPlaylist Playlist { get; set; }
public TrackPlaylistPair(PlayableBase track, IPlaylist playlist)
{
... | Alkalinee/Hurricane | Hurricane/Music/Data/TrackPlaylistPair.cs | C# | gpl-3.0 | 397 |
/*
* Copyright (C) 2013 Mamadou DIOP
* Copyright (C) 2013 Doubango Telecom <http://www.doubango.org>
* License: GPLv3
* This file is part of the open source SIP TelePresence system <https://code.google.com/p/telepresence/>
*/
#include "opentelepresence/OTMixerMgr.h"
#include "opentelepresence/OTMixerMgrAudio.h"
... | Fossa/teleprescence | source/OTMixerMgr.cc | C++ | gpl-3.0 | 3,445 |
* {
overflow-wrap: break-word;
}
h1, h2 {
text-align: center;
font-weight: bold;
margin: 5% 0;
}
h3, h4, h5, h6 {
text-align: center;
font-weight: bold;
margin: 4% 0 8% 0;
}
ol, ul {
padding-left: 3em;
padding-bottom: 0.4em;
}
ul.level1 > li {
padding-bottom: 0.4em;
list-style-type: square;
}
ul.l... | toshiya44/simple-sample-epub | Stylesheets/toc-style.css | CSS | gpl-3.0 | 737 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2017 Stephane Caron <stephane.caron@normalesup.org>
#
# This file is part of fip-walkgen
# <https://github.com/stephane-caron/fip-walkgen>.
#
# fip-walkgen is free software: you can redistribute it and/or modify it under
# the terms of the GNU General... | stephane-caron/dynamic-walking | wpg/com_control/__init__.py | Python | gpl-3.0 | 1,231 |
Imports P3D.Legacy.Core
Imports P3D.Legacy.Core.Pokemon
Imports P3D.Legacy.Core.Screens
Namespace BattleSystem.Moves.Normal
Public Class Protect
Inherits Attack
Public Sub New()
'#Definitions
Me.Type = New Element(Element.Types.Normal)
Me.ID = 182
... | P3D-Legacy/P3D-Legacy-CSharp | 2.5DHero/2.5DHero/Pokemon/Attacks/Normal/Protect.vb | Visual Basic | gpl-3.0 | 3,489 |
package org.sapia.corus.client.services.deployer.dist;
import static org.sapia.corus.client.services.deployer.dist.ConfigAssertions.attributeNotNullOrEmpty;
import java.io.File;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import ja... | sapia-oss/corus | modules/client/src/main/java/org/sapia/corus/client/services/deployer/dist/BaseJavaStarter.java | Java | gpl-3.0 | 10,837 |
#!/bin/bash
java -jar c:/my/local/repos/chair/droidmate/dev/droidmate/projects/core/src/main/resources/apktool.jar decode --no-src --force $1 | konrad-jamrozik/droidmate | dev/droidmate/scripts/decode_apk.sh | Shell | gpl-3.0 | 142 |
package org.voyanttools.trombone.tool.corpus;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.util.List;
import org.junit.Test;
import org.voyanttools.trombone.model.DocumentToken;
import org.voyanttools.trombone.storage.Storage;
import ... | sgsinclair/trombone | src/test/java/org/voyanttools/trombone/tool/corpus/DocumentTokensTest.java | Java | gpl-3.0 | 3,879 |
package com.example.solomon;
import android.annotation.SuppressLint;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import com.estimote.mustard.rx_goodness.rx_requirements_wizard.Requirement;
import com... | beia/beialand | projects/solomon/Android/Solomon/app/src/main/java/com/example/solomon/MainActivity.java | Java | gpl-3.0 | 13,065 |
/*
** Taiga
** Copyright (C) 2010-2014, Eren Okka
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** This pr... | halfa/taiga | src/ui/dlg/dlg_about.cpp | C++ | gpl-3.0 | 6,076 |
<?php
define('a1cms', 'energy', true);
define('akina', 'photohost', true);
define('root', substr(dirname( __FILE__ ), 0, -14));
if (!$_COOKIE['PHPSESSID'] or preg_match('/^[a-z0-9]{26}$/', $_COOKIE['PHPSESSID']))//если куки нет совсем или идентификатор нормальный
session_start();
include_once root.'sys/config.p... | sal3/a1cms | plugins/images/index.php | PHP | gpl-3.0 | 2,918 |
#include "main.h"
#include "backlight.h"
#include "timer.h"
#include "tui.h"
#include "lcd.h"
#include "lib.h"
#include "buttons.h"
#include "dallas.h"
#include "rtc.h"
#include "adc.h"
#include "i2c.h"
#include "i2c-uart.h"
#include "cron.h"
// I2C UART test menu start
const unsigned char tui_um_s2[] PROGMEM = "INIT... | urjaman/carlcdp | tui-other.c | C | gpl-3.0 | 12,204 |
<!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... | Hao-Xu/Omega | docs/html/classtask_manager.html | HTML | gpl-3.0 | 6,667 |