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 |
|---|---|---|---|---|---|
/*
How would you design a stack which, in addition to push and pop, also has a function min
which returns the minimum element? Push, pop and min should all operate in O(1) time.
*/
#include <stdio.h>
#include <map>
using namespace std;
#define N 500
typedef struct Stack
{
int top;
int min;
int value[N];
m... | pgxiaolianzi/cracking-the-code-interview | 3_2.cpp | C++ | gpl-2.0 | 1,447 |
/**
* MaNGOS is a full featured server for World of Warcraft, supporting
* the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8
*
* Copyright (C) 2005-2022 MaNGOS <https://getmangos.eu>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Publ... | mangostwo/server | src/game/WorldHandlers/NPCHandler.cpp | C++ | gpl-2.0 | 30,883 |
<?php
/* TwigBundle:Exception:exception_full.html.twig */
class __TwigTemplate_12d6106874fca48a5e6b4ba3ab89b6fc520d1b724c37c5efb25ee5ce99e9e8da extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("Twig... | fjbatresv/REMIS | app/cache/dev/twig/12/d6/106874fca48a5e6b4ba3ab89b6fc520d1b724c37c5efb25ee5ce99e9e8da.php | PHP | gpl-2.0 | 2,475 |
local assets=
{
Asset("ANIM", "anim/gold_nugget.zip"),
}
local function shine(inst)
inst.task = nil
inst.AnimState:PlayAnimation("sparkle")
inst.AnimState:PushAnimation("idle")
inst.task = inst:DoTaskInTime(4+math.random()*5, function() shine(inst) end)
end
local function fn(Sim)
local inst = ... | czfshine/Don-t-Starve | data/DLC0001/scripts/prefabs/goldnugget.lua | Lua | gpl-2.0 | 1,111 |
module.exports = {
dist: {
options: {
plugin_slug: 'simple-user-adding',
svn_user: 'wearerequired',
build_dir: 'release/svn/',
assets_dir: 'assets/'
}
}
};
| wearerequired/simple-user-adding | grunt/wp_deploy.js | JavaScript | gpl-2.0 | 180 |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2008 VIA Technologies, Inc.
* (Written by Aaron Lwe <[email protected]> for VIA)
*
* 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... | latelee/coreboot | src/mainboard/via/epia-cn/romstage.c | C | gpl-2.0 | 2,336 |
<?php
class ezxpdfpreview
{
function ezxpdfpreview()
{
$this->Operators = array( 'pdfpreview' );
}
/*!
\return an array with the template operator name.
*/
function operatorList()
{
return $this->Operators;
}
/*!
\return true to tell the template engine t... | xrowgmbh/pdfpreview | classes/ezxpdfpreview.php | PHP | gpl-2.0 | 2,967 |
return {
amazons_woodcutter = {},
}
| widelands/widelands | data/tribes/workers/amazons/woodcutter/register.lua | Lua | gpl-2.0 | 39 |
<?php
/*
* Copyright (C) 2015 andi
*
* 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 distr... | inbaz/ers | module/ErsBase/src/ErsBase/View/Helper/Session.php | PHP | gpl-2.0 | 1,154 |
/*******************************************************************************
* This file is part of OpenNMS(R).
*
* Copyright (C) 2018-2020 The OpenNMS Group, Inc.
* OpenNMS(R) is Copyright (C) 1999-2020 The OpenNMS Group, Inc.
*
* OpenNMS(R) is a registered trademark of The OpenNMS Group, Inc.
*
* OpenNMS(... | jeffgdotorg/opennms | features/kafka/producer/src/main/java/org/opennms/features/kafka/producer/OpennmsKafkaProducer.java | Java | gpl-2.0 | 28,520 |
/*
* This file Copyright (C) Mnemosyne LLC
*
* This file is licensed by the GPL version 2. Works owned by the
* Transmission project are granted a special exemption to clause 2 (b)
* so that the bulk of its code can remain under the MIT license.
* This exemption does not extend to derived works not owned by
* th... | cfpp2p/Transmission-basin | gtk/util.h | C | gpl-2.0 | 4,153 |
/**
* The routes worker process
*
* This worker process gets the app routes by running the application dynamically
* on the server, then stores the publicly exposed routes in an intermediate format
* (just the url paths) in Redis.
* From there, the paths are used by the live app for serving /sitemap.xml and ... | localnerve/wpspa | server/workers/routes/lib/index.js | JavaScript | gpl-2.0 | 2,589 |
/*
* Vulcan Build Manager
* Copyright (C) 2005-2012 Chris Eldredge
*
* 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 vers... | chriseldredge/vulcan | plugins/vulcan-subversion/source/main/java/net/sourceforge/vulcan/subversion/SubversionRepositoryAdaptor.java | Java | gpl-2.0 | 23,349 |
.CODE
__exec_payload PROC x:QWORD
mov rax, x
call QWORD PTR[rax]
ret
__exec_payload ENDP
END
| kost/scexec | scexec/__exec_payload.asm | Assembly | gpl-2.0 | 111 |
/* dia -- an diagram creation/manipulation program
* Copyright (C) 1998 Alexander Larsson
*
* dia_svg.c -- Refactoring by Hans Breuer from :
*
* Custom Objects -- objects defined in XML rather than C.
* Copyright (C) 1999 James Henstridge.
*
* This program is free software; you can redistribute it and/or modif... | GNOME/dia | lib/dia_svg.c | C | gpl-2.0 | 53,495 |
/*
* Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | maiklos-mirrors/jfx78 | modules/graphics/src/main/native-glass/gtk/glass_window.h | C | gpl-2.0 | 14,351 |
#region Using directives
using System;
using System.Collections;
using System.Data;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.MD.Runtime.Implement;
#endregion
namespace DocumentTypeRef
{ public partial class DocumentTypeRefModel
{
//初始化UIMODEL之后的方法
public override void AfterInitModel()
... | amazingbow/yonyou | 金龙/XMJL_Code/XMJLUI/Model/DocumentTypeRefModelExtend.cs | C# | gpl-2.0 | 650 |
<?php
//------------------------------------------------------------------------------------------------------------------
// SKY HIGH CMS - Sky High Software Custom Content Management System - http://www.skyhighsoftware.com
// Copyright (C) 2008 - 2010 Sky High Software. All Rights Reserved.
// Permission to use and... | Since84/AGD-Site | paymentportal/admin/page_edit_91.php | PHP | gpl-2.0 | 2,602 |
<?php
/**
* The template for displaying Comments.
*
* The area of the page that contains both current comments
* and the comment form. The actual display of comments is
* handled by a callback to hoshin_comment which is
* located in the functions.php file.
*
* @package WordPress
* @subpackage Twenty_Ten
* @s... | artzstudio/hoshinbudo.com | wp-content/themes/hoshin/comments.php | PHP | gpl-2.0 | 3,028 |
/* $Id: capi.h,v 1.1.1.1 2010/03/11 21:10:39 kris Exp $
*
* CAPI 2.0 Interface for Linux
*
* Copyright 1997 by Carsten Paeth ([email protected])
*
* This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference.
*
*/
#ifndef __... | fgoncalves/Modified-TS7500-Kernel | include/linux/capi.h | C | gpl-2.0 | 3,089 |
/* This program was written with lots of love under the GPL by Jonathan
* Blandford <[email protected]>
*/
#include <config.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
#include <gdk/gdkx.h>
#include <X11/Xatom.h>
#include <glib/gi18n.h>
#include <gdk/gdkkeysyms.h>
#if GTK_CHECK_... | City-busz/mate-control-center | capplets/keybindings/mate-keybinding-properties.c | C | gpl-2.0 | 58,766 |
jQuery('#bootstrapslider').carousel({
interval: bootstrapslider_script_vars.interval,
pause: bootstrapslider_script_vars.pause,
wrap: bootstrapslider_script_vars.wrap
});
| bassjobsen/twitter-bootstrap-slider | js/bootstrapslider.js | JavaScript | gpl-2.0 | 177 |
/******************************************************************************
*
* Copyright (C) 1997-2013 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
* granted. No representations ar... | bo0ts/doxygen-fixes | src/xmlgen.cpp | C++ | gpl-2.0 | 62,426 |
<?php
/**
* @package hubzero-cms
* @copyright Copyright (c) 2005-2020 The Regents of the University of California.
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Components\Events\Api;
use Hubzero\Component\Router\Base;
/**
* Routing class for the component
*/
class Router extends Base
{... | hubzero/hubzero-cms | core/components/com_events/api/router.php | PHP | gpl-2.0 | 1,353 |
@echo off
SETLOCAL
REM http://dev.exiv2.org/projects/exiv2/repository/
SET EXIV2_COMMIT=3364
REM http://sourceforge.net/p/libjpeg-turbo/code/
SET LIBJPEG_COMMIT=1093
rem error 1406
rem https://github.com/madler/zlib/commits
SET ZLIB_COMMIT_LONG=50893291621658f355bc5b4d450a8d06a563053d
rem https://g... | stoneyang/LuminanceHDR | build/msvc/build.cmd | Batchfile | gpl-2.0 | 30,612 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_23) on Tue Nov 10 20:55:20 CET 2015 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Class org.slf4j.profiler.... | tuskiomi/redditBot | REdefine/lib/slf4j-1.7.13/site/testapidocs/org/slf4j/profiler/class-use/SortAndPruneComposites.html | HTML | gpl-2.0 | 6,093 |
//
// (c) Copyright 2013 DESY, Eugen Wintersberger <[email protected]>
//
// This file is part of pninexus.
//
// pninexus 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 Li... | pni-libraries/libpniio | test/arrays/mdarray_test.cpp | C++ | gpl-2.0 | 9,878 |
/**
* Setup (required for Joomla! 3)
*/
if(typeof(akeeba) == 'undefined') {
var akeeba = {};
}
if(typeof(akeeba.jQuery) == 'undefined') {
akeeba.jQuery = jQuery.noConflict();
}
akeeba.jQuery(document).ready(function($){
function atsAssignmentClick()
{
var parent = akeeba.jQuery(this).parent('td');
var id... | SirPiter/folk | www/media/com_ats/js/tickets.js | JavaScript | gpl-2.0 | 3,563 |
/*
* BackFS Filesystem Cache
* Copyright (c) 2010-2014 William R. Fraser
*/
#define _XOPEN_SOURCE 500 // for pread()
#include "fscache.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/st... | ninoles/backfs | fscache.c | C | gpl-2.0 | 35,045 |
/*
* Intel 3000/3010 Memory Controller kernel module
* Copyright (C) 2007 Akamai Technologies, Inc.
* Shamelessly copied from:
* Intel D82875P Memory Controller kernel module
* (C) 2003 Linux Networx (http://lnxi.com)
*
* This file may be distributed under the terms of the
* GNU General Public License... | jeffegg/beaglebone | drivers/edac/i3000_edac.c | C | gpl-2.0 | 14,324 |
/***********************************************************************************
* *
* Voreen - The Volume Rendering Engine *
* ... | gnorasi/gnorasi | Gnorasi/modules/itk_generated/processors/itk_MathematicalMorphology/closingbyreconstructionimagefilter.h | C | gpl-2.0 | 3,591 |
# Based partially on (wongsyrone/hbl0307106015) versions
include $(TOPDIR)/rules.mk
PKG_NAME:=samba
PKG_VERSION:=4.12.3
PKG_RELEASE:=5
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= \
https://ftp.gwdg.de/pub/samba/stable/ \
https://ftp.heanet.ie/mirrors/ftp.samba.org/stable/ \
https://ftp.riken.... | eduardoabinader/packages | net/samba4/Makefile | Makefile | gpl-2.0 | 15,559 |
<?php
namespace Requests\Exception\HTTP;
/**
* Exception for 505 HTTP Version Not Supported responses
*
* @package Requests
*/
/**
* Exception for 505 HTTP Version Not Supported responses
*
* @package Requests
*/
class _505 extends \Requests\Exception\HTTP
{
/**
* HTTP status code
*
* @va... | CMS-RuDi/CMS-RuDi | includes/libs/Requests/Exception/HTTP/505.php | PHP | gpl-2.0 | 486 |
<?php
namespace webfilesframework\core\datasystem\file\system\dropbox;
use webfilesframework\core\datasystem\file\system\MFile;
/**
* description
*
* @author Sebastian Monzel < [email protected] >
* @since 0.1.7
*/
class MDropboxFile extends MFile
{
protected $dropboxAccount;
... | sebastianmonzel/webfiles-framework-php | source/core/datasystem/file/system/dropbox/MDropboxFile.php | PHP | gpl-2.0 | 2,375 |
\documentclass[../../../../testPlan.tex]{subfiles}
\begin{document}
\section{Integration Testing Strategy}
The strategy that we want to follow is the Bottom-Up Strategy. This kind of approach consists in testing the low level components first and then the level just above, until you reach the top level components.... | SimoneDeola/CremonaDeola | source/testPlan/latex/chapters/integrationStrategy/sections/integrationTestingStrategy/integrationTestingStrategy.tex | TeX | gpl-2.0 | 441 |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\SettingsWorkingDays */
$this->title = 'Update Settings Working Days: ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Settings Working Days', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->i... | mig0s/athena | backend/views/settings-working-days/update.php | PHP | gpl-2.0 | 579 |
/*
Copyright (C) 2014, 2015 by Yu Gong
*/
#ifndef JULIA_R_H
#define JULIA_R_H
#ifdef __cplusplus
extern "C" {
#endif
#include <R.h>
#include <julia.h>
//Convert R Type To Julia,which not contain NA
SEXP R_Julia(SEXP Var, SEXP VarNam);
//Convert R Type To Julia,which contain NA
SEXP R_Julia_NA(SEXP Var, SEXP VarNam);... | mmaechler/RJulia | src/R_Julia.h | C | gpl-2.0 | 529 |
/*
* Template Name: Unify - Responsive Bootstrap Template
* Description: Business, Corporate, Portfolio, E-commerce, Blog and One Page Template.
* Version: 1.8
* Author: @htmlstream
* Website: http://htmlstream.com
*/
/*Reset Styles
------------------------------------*/
* {
border-radius: 0 !import... | neeravbm/unify | Unify-v1.8/HTML/One-Page/assets/css/old-app.css | CSS | gpl-2.0 | 68,076 |
cmd_drivers/base/dd.o := arm-eabi-gcc -Wp,-MD,drivers/base/.dd.o.d -nostdinc -isystem /home/tim/ICS/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/include -I/home/tim/Downloads/mitchtaydev-Thrive-Shiva-Kernel-ee65d90/linux-2.6/arch/arm/include -Iinclude -include include/generated/autoconf.h... | timmytim/honeybutter_kernel | drivers/base/.dd.o.cmd | Batchfile | gpl-2.0 | 24,002 |
package openra.server;
import openra.core.Unit;
public class UnitAnimEvent extends ActionEvent
{
private Unit un;
private UnitAnimEvent scheduled;
public UnitAnimEvent(int p, Unit un) {
super(p);
//logger->debug("UAE cons: this:%p un:%p\n",this,un);
this.un = un;
//un.referTo();
... | damiencarol/openredalert | java/src/openra/server/UnitAnimEvent.java | Java | gpl-2.0 | 965 |
# snake
mini snake en SDL
Le but de ce repo est de proposer un algorithme simple pour comprendre une manière de faire un snake, l'utilisation de la librairie graphique SDL n'étant là que pour la mise en place du cadre du jeu.
Ce tutoriel se veut se concentrer en particulier sur comment faire facilement bouger le ver,... | elekmad/snake | README.md | Markdown | gpl-2.0 | 441 |
/**
* Copyright (C) 2013, Moss Computing Inc.
*
* This file is part of simpledeb.
*
* simpledeb 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, or (at your option)
* any later version... | mosscode/simpledeb | core/src/main/java/com/moss/simpledeb/core/action/LaunchScriptAction.java | Java | gpl-2.0 | 4,990 |
/*µü´úÆ÷ģʽ
*
* ±éÀú¼¯ºÏµÄÖ°Ôð·ÖÀë³öÀ´£»
*/
/**°×Ïä¾ÛºÏ+Íâµü´ú×Ó*/
public interface Iterator
{
public Object first();
public Object next();
//µÃµ½µ±Ç°¶ÔÏó
public Object currentItem();
//ÊÇ·ñµ½Á˽áβ
public boolean isDone();
}
//ÕýÐòµü´úÆ÷
public class ConcreteIterator imple... | creary/company | document/设计模式/3行为型/3迭代器.java | Java | gpl-2.0 | 2,882 |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2007-2008 coresystems GmbH
* 2012 secunet Security Networks AG
*
* 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 Found... | lkundrak/coreboot | src/northbridge/intel/i965/chip.h | C | gpl-2.0 | 1,106 |
/* $Id$ */
/** @file
* VMM - Raw-mode Context.
*/
/*
* Copyright (C) 2006-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* Gen... | fintler/vbox | src/VBox/VMM/VMMRC/VMMRC.cpp | C++ | gpl-2.0 | 11,065 |
package yuka.detectors;
import yuka.containers.News;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.HashMap;
import java.util.Map;
/**
* Created by imyuka on 18/08/2016.
... | imyuka/AFL | AFL/src/main/java/yuka/detectors/FigureDetector.java | Java | gpl-2.0 | 2,274 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<!-- Mirrored from www.photobookmart.com.my/wp-content/themes/choices/framework/php/avia_shortcodes/tinymce/js/?C=M;O=A by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 02 Jul 2014 12:07:04 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" ... | dvchinh/HTQLNHCS | Layout/www.photobookmart.com.my/wp-content/themes/choices/framework/php/avia_shortcodes/tinymce/js/indexf8a0.html | HTML | gpl-2.0 | 2,570 |
# Copyright 2014-2017 Red Hat, Inc.
#
# 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... | EdDev/vdsm | lib/vdsm/v2v.py | Python | gpl-2.0 | 48,122 |
/*****************************************************************************\
* $Id: fillfile.c 77 2006-02-15 01:00:42Z garlick $
*****************************************************************************
* Copyright (C) 2001-2008 The Regents of the University of California.
* Produced at Lawrence Livermore... | tjohansen14/diskscrub | src/fillfile.c | C | gpl-2.0 | 8,230 |
<?php
/**
* @file
* Template page for a promotion item.
*/
?>
<h2>
<a href="<?php print $item_url ?>"><?php print $title ?></a>
</h2>
<p><?php print t('Valid till'); ?> <?php print $cashingPeriodEnd ?> <?php print ($unlimited ? t('unlimited') : $unitsLeft . ' ' . t('x in stock')); ?></p>
<?php if (!empty($pic... | westtoer/intranet.westtoer.be | modules/culturefeed/culturefeed_userpoints_ui/theme/culturefeed-userpoints-ui-promotions-page-item.tpl.php | PHP | gpl-2.0 | 482 |
using System;
namespace Server.Items
{
public class ArachnidDoom : BaseInstrument
{
[Constructable]
public ArachnidDoom()
: base(0x0EB3)
{
RandomInstrument();
this.Hue = 1944;
this.Weight = 4;
this.Slayer = SlayerName.Arachnid... | tbewley10310/Land-of-Archon | Scripts/Services/CleanUpBritannia/Items/ArachnidDoom.cs | C# | gpl-2.0 | 1,190 |
<?php
/**
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Andreas Gohr <[email protected]>
*/
// must be run within Dokuwiki
if(!defined('DOKU_INC')) die();
/**
* Class syntax_plugin_data_entry
*/
class syntax_plugin_data_entry extends DokuWiki_Syntax_Plugin {
/**
* @var he... | tsolucio/coreBOSDocumentation | lib/plugins/data/syntax/entry.php | PHP | gpl-2.0 | 17,100 |
.node-article .content a {
color: blue;
text-decoration: underline;
}
.node-article .content .field-type-email a {
color: #333333;
text-decoration: none;
}
@media only screen and (max-width: 720px) {
#block-block-40 {
visibility: hidden;
display: none;
}
#google_ads_iframe_/678... | etype-services/cni-theme | sites/beachesleader.com/local.css | CSS | gpl-2.0 | 532 |
/* packet-laplink.c
* Routines for laplink dissection
* Copyright 2003, Brad Hards <[email protected]>
*
* $Id: packet-laplink.c 42632 2012-05-15 19:23:35Z wmeier $
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <[email protected]>
* Copyright 1998 Gerald Combs
*
* This program is free softwa... | Abhi9k/wireshark-dissector | epan/dissectors/packet-laplink.c | C | gpl-2.0 | 7,776 |
/*****************************************************************************
Copyright (c) 2005, 2014, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2012, Facebook Inc.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as pub... | laurynas-biveinis/webscalesql-5.6 | storage/innobase/page/page0zip.cc | C++ | gpl-2.0 | 146,875 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pe.edu.upeu.modelo;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import javax.... | AngieChambi/ProFinal | WebSgeUPeU/src/java/pe/edu/upeu/modelo/ConfPeriodo.java | Java | gpl-2.0 | 8,395 |
package com.atlach.trafficdataloader;
import java.util.ArrayList;
/* Short Desc: Storage object for Trip info */
/* Trip Info > Trips > Routes */
public class TripInfo {
private int tripCount = 0;
public ArrayList<Trip> trips = null;
public String date;
public String origin;
public String destination;
... | linusmotu/Viaje | ViajeUi/src/com/atlach/trafficdataloader/TripInfo.java | Java | gpl-2.0 | 2,363 |
package org.adastraeducation.liquiz.equation;
import java.util.*;
import java.util.regex.*;
import org.adastraeducation.liquiz.*;
/**
* Present equations with random variables.
* It has two ways to parse the equations in string[]. One is in infix, and the other is in the RPN.
* @author Yingzhu Wang
*
*/
public ... | hydrodog/LiquiZ | LiquiZ/src/org/adastraeducation/liquiz/equation/Equation.java | Java | gpl-2.0 | 4,219 |
package com.github.luksdlt92;
import java.util.ArrayList;
/*
* DoubleJumpReload plugin
* Made by luksdlt92 and Abdalion
*/
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
import com.github.luksdlt92.commands.DoubleJumpCommand;
import com.github.luksdlt92.listeners.JumpListener;
pub... | luksdlt92/doublejumpreload | DoubleJumpReload/src/main/java/com/github/luksdlt92/DoubleJumpReload.java | Java | gpl-2.0 | 871 |
package org.vidogram.messenger.g.a;
import java.io.ByteArrayOutputStream;
public class j extends ByteArrayOutputStream
{
private final b a;
public j(b paramb, int paramInt)
{
this.a = paramb;
this.buf = this.a.a(Math.max(paramInt, 256));
}
private void a(int paramInt)
{
if (this.count + para... | Robert0Trebor/robert | TMessagesProj/src/main/java/org/vidogram/messenger/g/a/j.java | Java | gpl-2.0 | 1,439 |
using UnityEngine;
using System.Collections;
/*
* Item to handle movements of rigibodies
*/
public class RigibodyMoveItem : MoveItem {
public enum Type {
ENEMY_SHIP_TYPE_1,
LASER_RED,
LASER_BLUE
};
public static RigibodyMoveItem create(Type type)
{
switch (type)
{
case Type.ENE... | adriwankenobi/space | Assets/Scripts/Level/Non Playable/Movement/Rigibody/RigibodyMoveItem.cs | C# | gpl-2.0 | 620 |
#ifndef __EDIV_QGRAPHICS_H_
#define __EDIV_QGRAPHICS_H_
#include "export.h"
/* Flags de modos de video */
#define _FULLSCREEN 0x01
typedef struct {
byte* buffer; // invisible buffer
byte* colormap; // 256 * VID_GRADES size
byte* alphamap; // 256 * 256 translucency map
in... | vroman/edivc | dlls/src/qgraphics/qgraphics.h | C | gpl-2.0 | 434 |
package it.polito.nexa.pc;
import com.hp.hpl.jena.rdf.model.Model;
import com.hp.hpl.jena.rdf.model.Statement;
import java.util.List;
/**
* Created by giuseppe on 19/05/15.
*/
public interface TriplesAdder {
public Model addTriples(Model model, List<Statement> statementList);
}
| giuseppefutia/rdf-public-contracts | src/main/java/it/polito/nexa/pc/TriplesAdder.java | Java | gpl-2.0 | 290 |
/**
* @file mqueue.h
*
* This file contains the definitions related to POSIX Message Queues.
*/
/*
* COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www... | yangxi/omap4m3 | cpukit/posix/include/mqueue.h | C | gpl-2.0 | 3,161 |
/* shades of grey */
/*@g1 : #5A6568;*/
/* b&w */
/* color specific to a player */
/*@id-color: #78BDE7;*/
/* fonts */
/* variable heights */
/*@player-controls-height:20px;*/
/* transistions */
.ez-trans {
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in... | erasme/griotte | w/static/css/style.css | CSS | gpl-2.0 | 11,557 |
<!DOCTYPE html>
<html lang="en-US">
<!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml_img_border_css by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:23:38 GMT -->
<head>
<title>Tryit Editor v2.3</title>
<meta id="viewport" name='viewport'>
<script>
(function() {
if ( navigator.user... | platinhom/ManualHom | Coding/W3School/W3Schools_Offline_2015/www.w3schools.com/tags/tryit0da5.html | HTML | gpl-2.0 | 5,065 |
using UnityEngine;
using System.Collections;
public class ButtonNextImage : MonoBehaviour {
public GameObject nextImage;
public bool lastImage;
public string nextScene = "";
void OnMouseDown()
{
if(lastImage)
{
Application.LoadLevel(nextScene);
return;
}
gameObject.SetActive (false);
nextImag... | aindong/RobberGame | Assets/Scripts/Helpers/ButtonNextImage.cs | C# | gpl-2.0 | 347 |
/**
* Created by LPAC006013 on 23/11/14.
*/
/*
* wiring Super fish to menu
*/
var sfvar = jQuery('div.menu');
var phoneSize = 600;
jQuery(document).ready(function($) {
//if screen size is bigger than phone's screen (Tablet,Desktop)
if($(document).width() >= phoneSize) {
// enable superfish
... | dejanmarkovic/topcat-final | js/global.js | JavaScript | gpl-2.0 | 994 |
<?php
/**
* Multisite upgrade administration panel.
*
* @package WordPress
* @subpackage Multisite
* @since 3.0.0
*/
/** Load WordPress Administration Bootstrap */
require_once(dirname(__FILE__) . '/admin.php');
if (!is_multisite())
wp_die(__('Multisite support is not enabled.'));
require_once(ABSPATH . WP... | JeremyCarlsten/WordpressWork | wp-admin/network/upgrade.php | PHP | gpl-2.0 | 4,987 |
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://machines.plannedobsolescence.net/51-2008" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>intro to digital media studies - symbiosis</title>
<link>http://machines.plannedobsolescence.net/51-2008/taxonomy/term/120/0</link>
<descr... | kfitz/machines | 51-2008/taxonomy/term/120/0/feed/index.html | HTML | gpl-2.0 | 1,706 |
<html>
<head>
<link rel="stylesheet" href="../extjs/resources/css/ext-all.css" type="text/css" />
<script type="text/javascript" src="../extjs/ext-all.js"></script>
<script type="text/javascript" src="sample.js"></script>
</head>
<body>
</body>
</html>
| xhrist14n/sencha_extjs_samples | 01_sample/sample.html | HTML | gpl-2.0 | 269 |
#!/usr/bin/ruby -w
class T_002aac < Test
def description
return "mkvmerge / audio only / in(AAC)"
end
def run
merge("data/simple/v.aac", 1)
return hash_tmp
end
end
| nmaier/mkvtoolnix | tests/test-002aac.rb | Ruby | gpl-2.0 | 186 |
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
//
// file: rbbirb.cpp
//
// Copyright (C) 2002-2011, International Business Machines Corporation and others.
// All Rights Reserved.
//
// This file contains the RBBIRuleBuilder class implementation. T... | teamfx/openjfx-8u-dev-rt | modules/web/src/main/native/Source/ThirdParty/icu/source/common/rbbirb.cpp | C++ | gpl-2.0 | 9,976 |
/* Discovery of auto-inc and auto-dec instructions.
Copyright (C) 2006-2015 Free Software Foundation, Inc.
Contributed by Kenneth Zadeck <[email protected]>
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as publis... | kito-cheng/gcc | gcc/auto-inc-dec.c | C | gpl-2.0 | 44,162 |
/*
Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009 Mark Aylett <[email protected]>
This file is part of Aug written by Mark Aylett.
Aug is released under the GPL with the additional exemption that compiling,
linking, and/or using OpenSSL is allowed.
Aug is free software; you can redistribute it and/or... | marayl/aug | src/c/augutil/pwd.h | C | gpl-2.0 | 1,396 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Monroe puts in 24, Knicks defeat the Pistons 121 to 115</title>
<link rel="stylesheet" type="text/css" href="../css/style.css">
</head>
<body>
<h1>Monroe puts in 24, Knicks defeat the Pistons 121 to 115</h1>
</br>
<h2 style="color:gr... | jacobbustamante/NBANLPRecap | web/2014_season/2015022708.html | HTML | gpl-2.0 | 1,900 |
<div class="clear left">
<div class="full-page-span33 home-island">
<div class="img-island isle1">
<h3>Isle Title 1</h3>
<p class="tl"> Mei duis denique nostrum et, in pro choro</p>
</div>
<div>
<p>Lorem ipsum Mei duis denique nostrum et, in pro choro consul, eam deterruisset ... | johnjlocke/rush-mechanical-theme | rush-mechanical/home-fw.php | PHP | gpl-2.0 | 2,288 |
/*
* Copyright (C) 2003-2011 The Music Player Daemon Project
* http://www.musicpd.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 2 of the License, or
* (at your opti... | andrewrk/mpd | src/pcm_volume.c | C | gpl-2.0 | 4,334 |
<?php
/*
$Id$
osCmax e-Commerce
http://www.oscmax.com
Copyright 2000 - 2011 osCmax
Released under the GNU General Public License
*/
define('HEADING_TITLE', 'Chèques cadeaux envoyés');
define('TABLE_HEADING_SENDERS_NAME', 'Nom de l\'expéditeur');
define('TABLE_HEADING_VOUCHER_VA... | osCmax/oscmax2 | catalog/admin/includes/languages/french/gv_sent.php | PHP | gpl-2.0 | 1,035 |
# icprot
Web application for displaying phylogeny and results of onekp.com data analysis
| ozacas/icprot | README.md | Markdown | gpl-2.0 | 89 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="/benchmark/js/jquery.min.js"></script>
<script type="text/javascript" src="/benchmark/js/js.cookie.js"></script>
<title>Be... | h3xstream/Benchmark | src/main/webapp/sqli-02/BenchmarkTest01209.html | HTML | gpl-2.0 | 2,428 |
/*
* Copyright (C) 2008 by NXP Semiconductors
* All rights reserved.
*
* @Author: Kevin Wells
* @Descr: LPC3250 SLC NAND controller interface support functions
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify... | diverger/uboot-lpc32xx | drivers/mtd/nand/lpc32xx_nand.c | C | gpl-2.0 | 11,991 |
# ganada
| bwyoon/ganada | README.md | Markdown | gpl-2.0 | 9 |
/*
* Copyright (C) 2005-2013 MaNGOS <http://getmangos.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; either version 2 of the License, or
* (at your option) any later version.
*
... | blueboy/portalone | src/game/SpellAuras.cpp | C++ | gpl-2.0 | 309,536 |
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 2.8
# The generator used is:
SET(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")
# The top level Makefile was generated from the following files:
SET(CMAKE_MAKEFILE_DEPENDS
"CMakeCache.txt"
"/home/guillaume/tf-cadence/gnuradio... | guillaumeWBres/zynq7-sdr | gnuradio/fpga-src/build_cross/CMakeFiles/Makefile.cmake | CMake | gpl-2.0 | 4,368 |
<?php
/*
*
* Copyright 2001-2012 Thomas Belliard, Laurent Delineau, Edouard Hue, Eric Lebrun
*
* This file is part of GEPI.
*
* GEPI 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 vers... | prunkdump/gepi | saisie/commentaires_types.php | PHP | gpl-2.0 | 38,738 |
# Makefile.in generated by automake 1.13.3 from Makefile.am.
# Makefile. Generated from Makefile.in by configure.
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without mod... | Distrotech/libtool | Makefile | Makefile | gpl-2.0 | 119,331 |
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n, p_i;
cin >> n;
double total = 0.0;
for (size_t i = 0; i < n; i++) {
cin >> p_i;
total += p_i;
}
cout << setprecision(12) << fixed << (total / n) << endl;
}
| emanuelsaringan/codeforces | Drinks/main.cc | C++ | gpl-2.0 | 314 |
<?php
/**
* @package SP Page Builder
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2016 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
//no direct accees
defined ('_JEXEC') or die ('restricted access');
class SppagebuilderAddonTab extends Spp... | hoangyen201201/TrienLamOnline | components/com_sppagebuilder/addons/tab/site.php | PHP | gpl-2.0 | 3,318 |
/*
Copyright (C) 1997-2001 Id Software, Inc.
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 th... | lambda/wxQuake2 | game/g_trigger.c | C | gpl-2.0 | 17,071 |
#include "capwap.h"
#include "capwap_element.h"
/********************************************************************
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| ... | alagoutte/smartcapwap | src/common/capwap_element_80211_updatestationqos.c | C | gpl-2.0 | 3,276 |
/*
* This file is part of Libav.
*
* Libav is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* Libav is distributed in... | DDTChen/CookieVLC | vlc/contrib/android/ffmpeg/libavfilter/asrc_anullsrc.c | C | gpl-2.0 | 1,481 |
var ajaxManager = (function() {
$jq = jQuery.noConflict();
var requests = [];
return {
addReq: function(opt) {
requests.push(opt);
},
removeReq: function(opt) {
if($jq.inArray(opt, requests) > -1) {
requests.splice($jq.inArray(opt, requests), 1);
}
},
run: function... | rbredow/allyzabbacart | js/cart66-library.js | JavaScript | gpl-2.0 | 10,666 |
<?php
session_start();
ob_start();
include ('connect.php');
if(($_SESSION['LOGIN'] == "NO") or (!$_SESSION['LOGIN'])) header('Location: index.php');
function cssifysize($img) {
$dimensions = getimagesize($img);
$dimensions = str_replace("=\"", ":", $dimensions['3']);
$dimensions = str_replace("\"", "px;"... | somalitaekwondo/site | newsletter/image_folder.php | PHP | gpl-2.0 | 2,323 |
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <errno.h>
#include <iostream>
#include "ftfilemapper.h"
//#define DEBUG_FILEMAPPER
ftFileMapper::ftFileMapper(uint64_t file_size,uint32_t chunk_size)
: _file_size(file_size),_chunk_size(chunk_size)
{
int nb_chunks = (int)(file_size / (uint64_t)chu... | RedCraig/retroshare | libretroshare/src/ft/ftfilemapper.cc | C++ | gpl-2.0 | 9,367 |
# Endpoints for user to control the home.
from datetime import datetime
from flask import Blueprint, jsonify, request
from services import elements_services, home_services
home_api = Blueprint('/home_api', __name__)
elements_services = elements_services.ElementsServices()
home_services = home_services.HomeServices()... | igrlas/CentralHub | CHPackage/src/centralhub/server/home_endpoints.py | Python | gpl-2.0 | 1,856 |
#include "stdafx.h"
#include "Utilities/Log.h"
#include "Utilities/File.h"
#include "git-version.h"
#include "rpcs3/Ini.h"
#include "Emu/Memory/Memory.h"
#include "Emu/System.h"
#include "Emu/GameInfo.h"
#include "Emu/SysCalls/ModuleManager.h"
#include "Emu/Cell/PPUThread.h"
#include "Emu/Cell/SPUThread.h"
#include "E... | thatguyehler/rpcs3 | rpcs3/Emu/System.cpp | C++ | gpl-2.0 | 11,861 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
<meta name="keywords" content="TEMU, dynamic analysis, binary analysis, dynamic
taint analysis"/>
<meta name="description" content="C/C++/OCaml Source Code Documentation f... | huydhn/Detector | docs/doxygen/html/xed2-ia32_2include_2xed-encoder-hl_8h-source.html | HTML | gpl-2.0 | 95,085 |
BoardConnetServer
=================
server application that run on embedded linux based development boards ( Begalbone Bone, Beagleboard, Altera SocKit, Xilinx ZedBoard ) connects to android app
| sandeshghimire/BoardConnetServer | README.md | Markdown | gpl-2.0 | 198 |
<!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>Luayats: src/src/bssrc.h Source File</title>
<link href="tabs.css" rel=... | hleuwer/luayats | doc/cpp/html/bssrc_8h_source.html | HTML | gpl-2.0 | 9,719 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.