repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
AndyHuntDesign/andyhuntdesign
wp-content/plugins/nextend-smart-slider2-full/plugins/nextendslidergenerator/instagram/tagsearch/generator.php
2932
<?php nextendimportsmartslider2('nextend.smartslider.generator_abstract'); class NextendGeneratorInstagram_TagSearch extends NextendGeneratorAbstract { function NextendGeneratorInstagram_TagSearch($data) { parent::__construct($data); $this->_variables = array( 'title' => NextendText::...
gpl-2.0
widelands/widelands
data/campaigns/emp01.wmf/scripting/mission_thread.lua
3640
function mission_thread() sleep(1000) -- Initial messages local sea = wl.Game().map:get_field(50,25) local ship = p1:place_ship(sea) p1:hide_fields(sea:region(6), "permanent") scroll_to_field(sea,0) campaign_message_box(diary_page_1) sleep(200) -- Show the sea reveal_concentric(p1, sea,...
gpl-2.0
gdassori/BitcoinAVM
base_app/views.py
7524
# Bitcoin AVM, an open source Django base Bitcoin ATM # https://github.com/mn3monic/BitcoinAVM import scripts, json, sys, time #from django.views.decorators.csrf import csrf_exempt from django.shortcuts import render, redirect from django.http import HttpResponse, HttpResponseServerError from datetime import datetime ...
gpl-2.0
temnoregg/qore
lib/QoreRemoveOperatorNode.cpp
2717
/* QoreRemoveOperatorNode.cpp Qore Programming Language Copyright (C) 2003 - 2015 David Nichols 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 witho...
gpl-2.0
gsnarawat/mywp
wp-content/plugins/Signup/admin/signup-admin.php
693
<?php require_once('/../myplugin.php'); require('D:/xampp/htdocs/new/wp-load.php'); add_action( 'admin_menu', 'register_my_custom_menu_page' ); function register_my_custom_menu_page(){ add_menu_page( 'custom menu title', 'Myplugin', 'manage_options', 'custompage', 'my_custom_menu_page'); } function my_...
gpl-2.0
Jacy-Wang/MyLeetCode
Triangle120.java
1250
public class Solution { public int minimumTotal(List<List<Integer>> triangle) { int n = triangle.size(); int[] prevMin = new int[n]; int[] curMin = new int[n]; prevMin[0] = triangle.get(0).get(0); findMin(triangle, n, 1, prevMin, curMin); int minimum = Integer.MAX_VAL...
gpl-2.0
smarr/Truffle
compiler/src/org.graalvm.compiler.replacements/src/org/graalvm/compiler/replacements/nodes/FusedMultiplyAddNode.java
5585
/* * Copyright (c) 2019, 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 Softwa...
gpl-2.0
hackathon-2014/awesomesauce-repo
backend/config/routes.rb
2076
Rails.application.routes.draw do devise_for :users, :controllers => { omniauth_callbacks: 'omniauth_callbacks' } # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". # You can have the root of your site routed with "root" r...
gpl-2.0
scerbo/Signature-Site
wp-content/plugins/simple-real-estate-pack-4/includes/srp-AffordabilityResult.php
6658
<?php $output = false; if($_GET['type'] == 'affordability'){ // Get Posted Values $mo_gross_income = $_GET['mo_gross_income']; $mo_debt_expences = $_GET['mo_debt_expences']; $down_payment = $_GET['down_payment']; $annual_interest_rate = $_GET['interest_rate']; $front_end_ratio_payment = $mo_gross_income...
gpl-2.0
hostianer/HostiBootstrap
Themes/Frontend/HostiBootstrap/frontend/_public/src/js/shopware/jquery.shipping-payment.js
1740
;(function($) { 'use strict'; $.plugin('shippingPayment', { defaults: { formSelector: '#shippingPaymentForm', radioSelector: 'input.auto_submit[type=radio]', submitSelector: 'input[type=submit]' }, /** * Plugin constructor. */ ...
gpl-2.0
evertonts/delivery
db/migrate/20140927023940_create_routes.rb
275
class CreateRoutes < ActiveRecord::Migration def change create_table :routes do |t| t.string :source, limit: 16 t.string :destination, limit: 16 t.decimal :distance, scale: 3, precision: 10 t.references :map t.timestamps end end end
gpl-2.0
joshuacoddingyou/php
core/classes/utils/datavalidator/usstate.php
4411
<?php /* Copyright [2011, 2012, 2013] da Universidade Federal de Juiz de Fora * Este arquivo é parte do programa Framework Maestro. * O Framework Maestro é um software livre; você pode redistribuí-lo e/ou * modificá-lo dentro dos termos da Licença Pública Geral GNU como publicada * pela Fundação do Software Livre...
gpl-2.0
Onirik79/aaritmud
src/mob.py
33924
# -*- coding: utf-8 -*- """ Modulo per la gestione generica dei Mob, base anche della classe Player. """ #= IMPORT ====================================================================== import math import random from src.affect import is_affected from src.behaviour import BehaviourUpdaterSuperclass from src....
gpl-2.0
rabbitvcs/rabbitvcs
rabbitvcs/ui/settings.py
15360
from __future__ import absolute_import # # This is an extension to the Nautilus file manager to allow better # integration with the Subversion source control system. # # Copyright (C) 2006-2008 by Jason Field <jason@jasonfield.com> # Copyright (C) 2007-2008 by Bruce van der Kooij <brucevdkooij@gmail.com> # Copyright (C...
gpl-2.0
benoitjupille/gestion_garderie
class/eleve.class.php
773
<?php class eleve{ private $id; private $nom; private $prenom; private $date_naissance; private $classe; public function get_date(){ return date_format(date_create($this->date_naissance), 'd/m/Y'); } // Hydrate depuis un array associatif public function hydrate($_donnees){ foreach ($_donn...
gpl-2.0
akudryav/cms
v/themes/lang/twig_cache/cc/99/42738d6ac514ba48f35b27bedee27939ef0929cf58ffef256d83d1f0059e.php
1189
<?php /* v_login.php */ class __TwigTemplate_cc9942738d6ac514ba48f35b27bedee27939ef0929cf58ffef256d83d1f0059e extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } pro...
gpl-2.0
stbd/walvomo-server
src/DatabaseSession.hpp
3343
#ifndef DATABASE_SESSION_HPP_ #define DATABASE_SESSION_HPP_ #include "Globals.hpp" #include <stddef.h> namespace W { static const unsigned NUMBER_OF_DB_WRITE_RETIRES = 5; class DatabaseSession { public: DatabaseSession() {}; virtual ~DatabaseSession(void) {}; virtual void connectToDatabase() = 0; v...
gpl-2.0
mxr1027/Xinrui-Ma
wp-content/themes/bizway/category.php
2331
<?php /** * The template for displaying Category pages. * */ ?> <?php get_header(); ?> <!--Start Page Heading --> <div class="page-heading-container"> <div class="container_24"> <div class="grid_24"> <div class="page-heading"> <h1 class="page-title"><a href="#"><?php printf(...
gpl-2.0
CristinaVidal/programas-c-ris
44_ordinal_fichero/ordinal.cpp
2264
#include <stdio.h> #include <stdlib.h> #include <strings.h> #include <ctype.h> #include <unistd.h> #define MAXLETRAS 100 #define MAXCARACTERES 4 #define MAXNUMERO 1000 typedef struct Datos{ char numeroCardinal[MAXCARACTERES]; char numeroOrdinal[MAXLETRAS]; }Tablero; int main(int argc, const char **argv){ ...
gpl-2.0
lanusau/aquarium
lib/aquarium/tags/plsql.rb
802
module Aquarium module Tags # IF table class Plsql < Aquarium::Tag register_tag :plsql def initialize(parameters,file_name,change_collection) @change_collection = change_collection end # Parse tag information from current position in the specified file def parse(file) ...
gpl-2.0
jeremygeltman/ThinkThinly
wp-content/themes/nerocity/functions.php
700
<?php include get_template_directory() . '/fw/main.php'; add_image_size( 'list-thumbnail' , 720 , 360 , true ); add_image_size( 'grid-thumbnail' , 555 , 440 , true ); add_action( 'after_setup_theme', array( 'myThemes' , 'setup' ) ); add_action( 'widgets_init' , array( 'myThemes' , 'reg_sid...
gpl-2.0
Aventine/ktac
client/classes/KtacMesh.js
4555
function KtacMesh(actor, mesh) { this.className = "KtacMesh"; this.actor = actor; this.location = new KtacLocation(); this.locationOffset = new THREE.Vector3(0,0,0); this.scale = null; this.facingLongitudeOffset = 0; // in degrees, clockwise this.mesh = mesh; //this.graphicsJson = null; this.animat...
gpl-2.0
bwallace722/SignMeUp2.0
src/main/java/edu/brown/cs/signMeUpBeta/onhours/Hours.java
4634
package edu.brown.cs.signMeUpBeta.onhours; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Comparator; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.PriorityQueue; import java.util.concurrent.C...
gpl-2.0
egbot/Symbiota
api/vendor/zircote/swagger-php/Examples/using-traits/TrickyProduct.php
291
<?php namespace UsingTraits; use UsingTraits\Blink as TheBlink; /** * @OA\Schema(title="TrickyProduct model") * ) */ class TrickyProduct extends SimpleProduct { use TheBlink; /** * The trick. * * @OA\Property(example="recite poem") */ public $trick; }
gpl-2.0
aarontc/kde-workspace
kwin/tabbox/tabboxhandler.cpp
15116
/******************************************************************** KWin - the KDE window manager This file is part of the KDE project. Copyright (C) 2009 Martin Gräßlin <mgraesslin@kde.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License a...
gpl-2.0
kindprojects/workstation
ProfileCut/ImportService/Repository/Fb/RepCollection.cs
2245
 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using FirebirdSql.Data.FirebirdClient; namespace ImportService.Repository.Fb { internal class RepCollection { public int? Get(FbConnection conn, FbTransaction trans, int objectId, s...
gpl-2.0
ivankliuk/cheat-sheets
python/iterators_and_generators.py
1281
__doc__ = """Iterator interface in Python """ class Iter(object): def __init__(self, lst_obj): self.list_obj = list(lst_obj) def __iter__(self): return self def next(self): try: return self.list_obj.pop(0) except IndexError: raise StopIteration c...
gpl-2.0
kunj1988/Magento2
app/code/Magento/Review/Ui/DataProvider/Product/Form/Modifier/Review.php
4413
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Review\Ui\DataProvider\Product\Form\Modifier; /** * Class Review */ use Magento\Catalog\Model\Locator\LocatorInterface; use Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\AbstractModifier;...
gpl-2.0
AlexeyPopovUA/Learning-ExtJS-6-Classes
ext/packages/charts/classic/overrides/AbstractChart.js
1173
/** * @class Ext.chart.overrides.AbstractChart */ Ext.define('Ext.chart.overrides.AbstractChart', { override: 'Ext.chart.AbstractChart', updateLegend: function (legend, oldLegend) { var dock; this.callParent([legend, oldLegend]); if (legend) { dock = legend.docked; ...
gpl-2.0
carmark/vbox
src/VBox/Runtime/common/crypto/spc-core.cpp
3198
/* $Id: spc-core.cpp 56290 2015-06-09 14:01:31Z vboxsync $ */ /** @file * IPRT - Crypto - Microsoft SPC / Authenticode, Core APIs. */ /* * Copyright (C) 2006-2015 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free sof...
gpl-2.0
russom-woldezghi/bmcg
wp-content/themes/tblog/admin/theme-options.php
4919
<?php add_action('init','of_options'); if (!function_exists('of_options')) { function of_options(){ //Access the WordPress Categories via an Array $of_categories = array(); $of_categories_obj = get_categories('hide_empty=0'); foreach ($of_categories_obj as $of_cat) { $of_categories[$of_cat->cat_ID] = $of_cat-...
gpl-2.0
flyingghost/KeepKeepClean
src/main/java/proguard/classfile/attribute/annotation/visitor/AnnotatedClassVisitor.java
1909
/* * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * * Copyright (c) 2002-2015 Eric Lafortune @ GuardSquare * * 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 F...
gpl-2.0
WopsS/SA-MP-Plus
Source/SharedLib/Settings/Settings.cpp
1609
#include <SharedLib.hpp> #include <Singleton/Singleton.hpp> Settings::Settings() { Add("logtimeformat", "[%H:%M:%S]"); } void Settings::Add(const std::string& Key, const std::string& Value) { // If the setting's key doesn't exists add it with the value, otherwise replace the value. if (m_settings.find(Key) == m_se...
gpl-2.0
A-Metaphysical-Drama/BloodyCore
src/server/game/Spells/SpellMgr.cpp
162963
/* * Copyright (C) 2008-2011 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2005-2009 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 ver...
gpl-2.0
wconsumer/wconsumer
tests/Unit/Service/LinkedinTest.php
545
<?php namespace Drupal\wconsumer\Tests\Unit\Service; use Drupal\wconsumer\Authentication\Oauth2\Oauth2; use Drupal\wconsumer\Service\Linkedin; class LinkedinTest extends AbstractServiceTest { public function testAuthentication() { $linkedin = $this->service(); $this->assertInstanceOf(Oauth2::getClass(), ...
gpl-2.0
vicarius123/100
administrator/components/com_catering/controllers/reserves.php
2335
<?php /** * @version CVS: 1.0.0 * @package Com_Catering * @author Cristopher Chong <chris@none.ru> * @copyright 2017 nOne * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access. defined('_JEXEC') or die; jimport('joomla.application.component.controlleradmi...
gpl-2.0
admrbsn/Opolis-Theme
search.php
1140
<?php /** * The template for displaying search results pages * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result * * @package Opolis */ get_header(); ?> <section id="primary" class="content-area"> <main id="main" class="site-main"> <?php if ( have_posts() ) : ?> ...
gpl-2.0
abhinavjain241/acousticbrainz-server
db/stats.py
10177
"""Module for working with statistics on data stored in AcousticBrainz. Values are stored in `statistics` table and are referenced by <name, timestamp> pair. """ import db import db.cache import db.exceptions import datetime import pytz import calendar import six from sqlalchemy import text STATS_CACHE_TIMEOUT = 60 ...
gpl-2.0
Ikerlb/calendario_proyecto3
db/migrate/20151206230745_add_permission_level_to_users.rb
144
class AddPermissionLevelToUsers < ActiveRecord::Migration def change add_column :users, :permission_level, :integer, default: 1 end end
gpl-2.0
Nils-TUD/Escape
source/drivers/common/ext2/inode.cc
8645
/** * $Id$ * Copyright (C) 2008 - 2014 Nils Asmussen * * 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...
gpl-2.0
dpinney/omf
omf/models/transmission.py
8569
''' The transmission model pre-alpha release. Requirements: GNU octave Tested on Linux and macOS. ''' import json, os, shutil, subprocess, math, platform, base64 from os.path import join as pJoin import matplotlib if platform.system() == 'Darwin': matplotlib.use('TkAgg') else: matplotlib.use('Agg') from matplotlib ...
gpl-2.0
toandevitviet/vpan
administrator/components/com_djcatalog2/models/field.php
6235
<?php /** * @version $Id: field.php 191 2013-11-03 07:15:27Z michal $ * @package DJ-Catalog2 * @copyright Copyright (C) 2012 DJ-Extensions.com LTD, All rights reserved. * @license http://www.gnu.org/licenses GNU/GPL * @author url: http://dj-extensions.com * @author email contact@dj-extensions.com * @developer Mi...
gpl-2.0
ericbarns/WP-e-Commerce
wpsc-components/theme-engine-v2/mvc/controllers/register.php
3588
<?php class WPSC_Controller_Register extends WPSC_Controller { public function __construct() { if ( is_user_logged_in() ) { wp_redirect( wpsc_get_store_url() ); exit; } parent::__construct(); $this->title = wpsc_get_register_title(); } public function index() { if ( isset( $_POST['action'] ) && $_...
gpl-2.0
TheTypoMaster/Scaper
openjdk/corba/src/share/classes/com/sun/corba/se/impl/protocol/giopmsgheaders/TargetAddressHelper.java
6596
/* * Copyright 2000-2003 Sun Microsystems, Inc. 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 Software Fou...
gpl-2.0
HyperloopTeam/FullOpenMDAO
cantera-2.0.2/test_problems/surfkin/surfdemo.cpp
1149
/* * Sample program that solves an implicit problem for surface * site fractions. */ #include <iostream> #include "cantera/IdealGasMix.h" #include "cantera/Interface.h" using namespace Cantera; using namespace std; int main() { try { IdealGasMix gas("gri30.xml", "gri30"); gas.setState_TPX(1...
gpl-2.0
lasyan3/TrinityCore
src/server/scripts/EasternKingdoms/ZulGurub/boss_hazzarah.cpp
4175
/* * Copyright (C) 2008-2018 TrinityCore <https://www.trinitycore.org/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.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...
gpl-2.0
GudkovS/joomla2.5.14
administrator/components/com_unitehcarousel/views/items/tmpl/default.php
570
<?php /** * @package Unite Horizontal Carousel for Joomla 1.7-2.5 * @author UniteCMS.net * @copyright (C) 2012 Unite CMS, All Rights Reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html **/ defined('_JEXEC') or die('Restricted access'); ?> <?php $numSliders = count($this->arrSl...
gpl-2.0
ramonrdm/agendador
agenda/forms.py
44691
# -*- coding: utf-8 -*- from agenda.models import * from django.contrib import messages from django.conf import settings from django.contrib.auth.forms import UserChangeForm from django.core.exceptions import PermissionDenied from django import forms from django.contrib.admin import widgets import datetime from dateti...
gpl-2.0
vanilla/vanilla
packages/vanilla-dom-utils/src/events.test.ts
4216
/** * @copyright 2009-2019 Vanilla Forums Inc. * @license GPL-2.0-only */ import { expect } from "chai"; import sinon from "sinon"; import { delegateEvent, removeAllDelegatedEvents, removeDelegatedEvent } from "./index"; describe("delegateEvent()", () => { beforeEach(() => { removeAllDelegatedEvents();...
gpl-2.0
CoderHam/Machine_Learning_Projects
random_forest/hemant_randForest.py
1805
#!/usr/bin/python import matplotlib.pyplot as plt from prep_terrain_data import makeTerrainData from class_vis import prettyPicture from time import time features_train, labels_train, features_test, labels_test = makeTerrainData() ### the training data (features_train, labels_train) have both "fast" and "slow" poin...
gpl-2.0
cathral/mintra-homepage
wp-content/plugins/stella-free/js/bloginfo-tabs.js
1877
/* * Usage: Everywhere */ jQuery(document).ready(function($) { if( bloginfo_langs != null ){ var bloginfo_vars = $.parseJSON(bloginfo_langs); } if( $('#blogname').length ) { $('form table.form-table').before('<div id="bloginfo-tabs"></div>'); $('#bloginfo-tabs').prepend('<div class="tabs-nav"><u...
gpl-2.0
ProTip/metricus
plugins/SitesFilter/SitesFilter.cs
6326
using System; using System.IO; using System.Reflection; using System.Collections.Generic; using ServiceStack.Text; using Microsoft.Web.Administration; using System.Text.RegularExpressions; using System.Linq; namespace Metricus.Plugin { public class SitesFilter : FilterPlugin, IFilterPlugin { private S...
gpl-2.0
NatLibFi/NDL-VuFind2
module/Finna/src/Finna/View/Helper/Root/OpenUrlFactory.php
3492
<?php /** * OpenUrl helper factory. * * PHP version 7 * * Copyright (C) Villanova University 2018. * Copyright (C) The National Library of Finland 2018. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, * as published by ...
gpl-2.0
Kirshan/ALiveCoreRC2
src/server/game/Spells/Spell.cpp
309687
/* * Copyright (C) 2008-2011 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2005-2009 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 ver...
gpl-2.0
kunik-ru/UCT
src/main/java/ru/kunik/uct/horner/HornerCalculator.java
6608
package ru.kunik.uct.horner; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import org.apache.commons.lang.math.Fraction; import ru.kunik.uct.gui.HornerGUI; import ru.kunik.uct.util.Filters; public class HornerCalculator implements Runnable { privat...
gpl-2.0
taconaut/pms-mlx
core/src/main/java/net/pms/medialibrary/commons/dataobjects/comboboxitems/ScreeResolutionCBItem.java
2280
/* * PS3 Media Server, for streaming any medias to your PS3. * Copyright (C) 2012 Ph.Waeber * * 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 2 * of the License only. * * This ...
gpl-2.0
artbeatads/messermeister_ab_rackservers
plugins/content/sigplus/engines/captions.boxplus.caption.php
3001
<?php /** * @file * @brief sigplus Image Gallery Plus boxplus mouse-over caption engine * @author Levente Hunyadi * @version 1.4.2 * @remarks Copyright (C) 2009-2011 Levente Hunyadi * @remarks Licensed under GNU/GPLv3, see http://www.gnu.org/licenses/gpl-3.0.html * @see http://hunyadi.info.hu/projects/sigp...
gpl-2.0
liberator44/kindle-publish
kernel/classes/packagecreators/ezcontentobject/ezcontentobjectpackagecreator.php
12893
<?php // // Definition of eZContentObjectPackageCreator class // // Created on: <09-Mar-2004 12:39:59 kk> // // ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ## // SOFTWARE NAME: eZ Publish // SOFTWARE RELEASE: 4.4.0 // COPYRIGHT NOTICE: Copyright (C) 1999-2010 eZ Systems AS // SOFTWARE LICENSE: GNU General Public Li...
gpl-2.0
gecgooden/gamepad
gamepad.cpp
2200
/*********************************************************************** * mcp3008SpiTest.cpp. Sample program that tests the mcp3008Spi class. * an mcp3008Spi class object (a2d) is created. the a2d object is instantiated * using the overloaded constructor. which opens the spidev0.0 device with * SPI_MODE_0 (MODE 0)...
gpl-2.0
cladjidane/D-mo-HTML5-CSS3
administrator/components/com_jce/classes/installer.php
32374
<?php /** * @version $Id: installer.php 255 2011-06-29 18:10:57Z happy_noodle_boy $ * @package JCE * @copyright Copyright © 2009-2011 Ryan Demmer. All rights reserved. * @copyright Copyright © 2005 - 2007 Open Source Matters. All rights reserved. * @license GNU/GPL 2 or later * This version may have been mo...
gpl-2.0
legoktm/wikihow-src
extensions/wikihow/editfinder/EditFinder.php
1180
<?php if ( ! defined( 'MEDIAWIKI' ) ) die(); $wgExtensionCredits['specialpage'][] = array( 'name' => 'EditFinder', 'author' => 'Scott Cushman', 'description' => 'Tool for experienced users to edit articles that need it.', ); $wgSpecialPages['EditFinder'] = 'EditFinder'; $wgAutoloadClasses['EditFind...
gpl-2.0
joebushi/joomla
administrator/components/com_banners/controller.php
1342
<?php /** * @version $Id$ * @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // No direct access defined('_JEXEC') or die; jimport('joomla.application.component.controller'); /** * Banners master di...
gpl-2.0
jamer/slow
src/slowers/unix.hpp
313
#ifndef SRC_SLOWERS_UNIX_HPP_ #define SRC_SLOWERS_UNIX_HPP_ #include <signal.h> #include <stdio.h> #include "src/slower.hpp" class UnixSlower : public Slower { public: UnixSlower(int pid); ~UnixSlower() = default; void _pause(); void _resume(); private: pid_t pid; }; #endif // SRC_SLOWERS_UNIX_HPP_
gpl-2.0
jcsky/solveissue
db/migrate/20151230145454_create_districts.rb
202
class CreateDistricts < ActiveRecord::Migration def change create_table(:districts, id: :uuid) do |t| t.string :name t.uuid :city_id, index: true t.timestamps end end end
gpl-2.0
refugeehackathon/interpreteer-backend
interpreteer/wsgi.py
2361
""" WSGI config for interpreteer project. This module contains the WSGI application used by Django's development server and any production WSGI deployments. It should expose a module-level variable named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover this application via the ``WSGI_APPLICATI...
gpl-2.0
iqbalsublime/NullPointer
src/main/java/com/sublime/np/entity/Comment.java
1331
package com.sublime.np.entity; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.validation.constraints.Size; @Entity publ...
gpl-2.0
edii/dimai
wp-content/themes/Grimag/framework/functions/classes/class-envato-protected-api.php
9805
<?php /** * Envato Protected API * * Wrapper class for the Envato marketplace protected API methods specific * to the Envato WordPress Toolkit plugin. * * @package WordPress * @subpackage Envato WordPress Toolkit * @author Derek Herman <derek@envato.com> * @since 1.0 */ class Envato_Protecte...
gpl-2.0
xuyuan/spark-spl-release
lib/kerosin/sceneserver/sphere.cpp
1408
/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id$ This program is free software; you can redistribute it and/or modify it und...
gpl-2.0
tbaumeist/CommonGraph
src/main/java/com/tbaumeist/common/utils/DistanceTools.java
598
package com.tbaumeist.common.utils; public class DistanceTools { public static double getDistance(double a, double b) { if (a > b) return Math.min(a - b, 1.0 - a + b); return Math.min(b - a, 1.0 - b + a); } public static double calcMidPt(double locA, double locB) { // ...
gpl-2.0
wazuh/wazuh-kibana-app
public/components/overview/compliance-table/components/subrequirements/subrequirements.tsx
10020
/* * Wazuh app - Mitre alerts components * Copyright (C) 2015-2021 Wazuh, 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...
gpl-2.0
VasilyNemkov/percona-xtrabackup
storage/innobase/rem/rem0cmp.cc
39162
/***************************************************************************** Copyright (c) 1994, 2012, Oracle and/or its affiliates. All Rights Reserved. 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 Founda...
gpl-2.0
Martchus/qtutilities
settingsdialog/qtsettings.cpp
15943
#include "./qtsettings.h" #include "./optioncategory.h" #include "./optioncategoryfiltermodel.h" #include "./optioncategorymodel.h" #include "./optionpage.h" #include "../paletteeditor/paletteeditor.h" #include "../widgets/clearlineedit.h" #include "../resources/resources.h" #include "ui_qtappearanceoptionpage.h" #...
gpl-2.0
JeremiasE/KFormula
krita/sdk/templates/filefilter/APPNAMELC_import.cc
2124
#include "%{APPNAMELC}_import.h" #include <kgenericfactory.h> #include <KoFilterChain.h> #include <kis_doc2.h> #include <kis_image.h> #include "%{APPNAMELC}_converter.h" typedef KGenericFactory<%{APPNAME}Import> ImportFactory; K_EXPORT_COMPONENT_FACTORY(libkrita%{APPNAMELC}import, ImportFactory("kofficefilters")) ...
gpl-2.0
ec429/zak-lang
codegen.py
21162
#!/usr/bin/python import sys, pprint, string import ast_build as AST, tacifier, allocator TAC = tacifier.TACifier REG = allocator.Register LIT = allocator.Literal RTL = allocator.Allocator Flag = allocator.Flag class GenError(Exception): pass class Generator(object): def __init__(self, rtl, name, opts, w_opts): ...
gpl-2.0
tommythorn/yari
shared/cacao-related/phoneme_feature/cldc/src/vm/share/runtime/WTKProfiler.hpp
2725
/* * * * Copyright 1990-2006 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER * * This program 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 ...
gpl-2.0
dolphin19303/PhotoBox
DPPhotoSDK/src/winterwell/jtwitter/InternalUtils.java
18307
package winterwell.jtwitter; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.Reader; import java.io.UnsupportedEncodingException; import java.lang.reflect.Field; import java.lang.reflect.Method; import ...
gpl-2.0
EnigmaTeam/EnigmaBot
plugins/anime.lua
359
function run(msg, matches) local url = http.request('https://konachan.com/post.json?limit=300') local js = json:decode(url) local random = math.random (100) local sticker = js[random].jpeg_url local file = download_to_file(sticker,'sticker.png') send_photo(get_receiver(msg), file, ok_cb, false) end return { patterns =...
gpl-2.0
thiagoamm-agr/sods
admin/tipos_solicitacao/index.php
26466
<?php // Cadastro de Tipos de Solicitação. // Model @include $_SERVER['DOCUMENT_ROOT'] . '/sods/app/models/TipoSolicitacao.php'; // Controller @include $_SERVER['DOCUMENT_ROOT'] . '/sods/app/controllers/TiposSolicitacoesController.php'; $controller = new TiposSolicitacoesController()...
gpl-2.0
ludovicdigitalcube/Syntec
sites/all/themes/Syntec/theme-settings.php
449
<?php /** * @file * Theme settings file for the {{ THEME NAME }} theme. */ require_once dirname(__FILE__) . '/template.php'; /** * Implements hook_form_FORM_alter(). */ function Syntec_form_system_theme_settings_alter(&$form, $form_state) { // You can use this hook to append your own theme settings to the the...
gpl-2.0
pzingg/saugus_elgg
units/admin/admin_users_panel.php
746
<?php // Users panel // $parameter = a row from the elgg.users database if (isset($parameter)) { $run_result .= templates_draw(array( 'context' => 'adminTable', 'name' => "<p>" . $parameter->username . "</p>", ...
gpl-2.0
devernay/openfx-misc
Anaglyph/Anaglyph.cpp
18379
/* ***** BEGIN LICENSE BLOCK ***** * This file is part of openfx-misc <https://github.com/devernay/openfx-misc>, * Copyright (C) 2013-2018 INRIA * * openfx-misc 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 Founda...
gpl-2.0
dropndotltd/relaunch
wp-content/themes/affluent/includes/layout/layout_comments.php
1488
<?php //Generates the comments layout function cpotheme_layout_comments($comment, $args, $depth){ $GLOBALS['comment'] = $comment; //Normal Comments switch($comment->comment_type): case '': ?> <li class="comment" id="comment-<?php comment_ID(); ?>"> <div class="comment-avatar"> <?php ech...
gpl-2.0
openfoodfoundation/openfoodnetwork-wp
wp-content/plugins/theblog-shortcodes/shortcodes/google-adsense-responsive.php
3335
<?php /* GOOGLE ADSENSE RESPONSIVE ADS */ if(!function_exists('cactus_echo_responsive_ad')){ function cactus_echo_responsive_ad($publisher_id,$ad_slot_id){ $idx = rand(0,1000); ?> <div id="google-ads-<?php echo $idx;?>"></div> <script type="text/javascript"> /* Calculate the width o...
gpl-2.0
haidarafif0809/qwooxcqmkozzxce
cek_stok_konversi_penjualan.php
730
<?php session_start(); include 'db.php'; $satuan_konversi = $_POST['satuan_konversi']; $jumlah_barang = $_POST['jumlah_barang']; $kode_barang = $_POST['kode_barang']; $id_produk = $_POST['id_produk']; $queryy = $db->query("SELECT SUM(sisa) AS total_sisa FROM hpp_masuk WHERE kode_barang = '$kode_barang' "); $...
gpl-2.0
pablolima/ElectronicMedicalPrescriptions
Receituario/Ajuda.xaml.cs
557
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; ...
gpl-2.0
JimMackin/SuiteCRM-Build-Maker
scripts/suite_install/AdvancedOpenPortal.php
394
<?php function update_aop() { updateScheduler(); } function updateScheduler(){ require_once('modules/Schedulers/Scheduler.php'); $scheduler = new Scheduler(); $schedulers = $scheduler->get_full_list('','job = "function::pollMonitoredInboxesCustomAOP"'); foreach($schedulers as $scheduler){ $scheduler->job...
gpl-2.0
TestLinkOpenSourceTRMS/testlink-code
lib/functions/oauth_providers/github.php
3554
<?php /** * TestLink Open Source Project - http://testlink.sourceforge.net/ * This script is distributed under the GNU General Public License 2 or later. * * @filesource github.php * * Github OAUTH API (authentication) * * @internal revisions * @since 1.9.17 * */ // Get token function oauth_get_token($au...
gpl-2.0
mywebclass/cidrupal
sites/all/modules/wconsumer/lib/Drupal/wconsumer/Rest/Authentication/HttpAuth/HttpAuth.php
3159
<?php /** * HTTP Authentication * * @package wconsumer * @subpackage request */ namespace Drupal\wconsumer\Rest\Authentication\HttpAuth; use Drupal\wconsumer\Rest\Authentication as AuthencationBase, Drupal\wconsumer\Common\AuthInterface, Guzzle\Plugin\CurlAuth\CurlAuthPlugin as GuzzleHttpAuth, Drupal\wconsu...
gpl-2.0
bbinet/GoIoT
apps/cloud/cloudapi.lua
1353
local http = require 'socket.http' local ltn12 = require 'ltn12' local url = require 'socket.url' local pp = require 'shared.util.PrettyPrint' local cjson = require 'cjson.safe' local KEY = nil local URL = nil local function api(method, obj, path) assert(path) print(URL..'/'..path) local u = url.parse(URL..'/'..p...
gpl-2.0
marcoargenti/Cleaner
src/main/java/schema/information_schema/tables/SessionStatus.java
2855
/** * This class is generated by jOOQ */ package schema.information_schema.tables; /** * This class is generated by jOOQ. */ @javax.annotation.Generated( value = { "http://www.jooq.org", "jOOQ version:3.5.4" }, comments = "This class is generated by jOOQ" ) @java.lang.SuppressWarnings({ "all", "unchecked", ...
gpl-2.0
mohammadhamad/mhh
repos/base-hw/src/base/pager.cc
2976
/* * \brief Pager implementations that are specific for the HW-core * \author Martin Stein * \date 2012-03-29 */ /* * Copyright (C) 2012-2013 Genode Labs GmbH * * This file is part of the Genode OS framework, which is distributed * under the terms of the GNU General Public License version 2. */ /* Genode ...
gpl-2.0
mmtsweng/remembrancer_pi
src/remembrancer_pi.cpp
11203
#include "wx/wxprec.h" #include "wx/timer.h" #include "wx/fileconf.h" #ifndef WX_PRECOMP #include "wx/wx.h" #endif //precompiled headers #include <wx/aui/aui.h> #include "time.h" #include "remembrancer_pi.h" #include "dialogDefinitions.h" #include "icons.h" // the class factories, used to create and destroy instan...
gpl-2.0
AssociazionePrometeo/gianomanager
app/Policies/UserPolicy.php
185
<?php namespace App\Policies; use Illuminate\Auth\Access\HandlesAuthorization; class UserPolicy extends ModelPolicy { protected $model = 'user'; use HandlesAuthorization; }
gpl-2.0
hpfem/hermes3d
src/solver/amesos.cpp
3159
// This file is part of Hermes3D // // Copyright (c) 2009 hp-FEM group at the University of Nevada, Reno (UNR). // Email: hpfem-group@unr.edu, home page: http://hpfem.org/. // // Hermes3D is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published // by t...
gpl-2.0
wp-plugins/fs-social-comments
includes/class-fs-social-comments-deactivator.php
665
<?php /** * Fired during plugin deactivation * * @link http://www.lifeisfood.it/ * @since 1.0.0 * * @package Fs_Social_Comments * @subpackage Fs_Social_Comments/includes */ /** * Fired during plugin deactivation. * * This class defines all code necessary to run during the plugin's deactivatio...
gpl-2.0
asandroq/virtuality
src/virtuality/luascriptapi.cpp
1574
/* * * The Virtuality Renderer * Copyright (C) 2001 Alex Sandro Queiroz e Silva * * 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) a...
gpl-2.0
help3r/civcraft-1
civcraft/src/com/avrgaming/civcraft/threading/tasks/PlayerLoginAsyncTask.java
11403
/************************************************************************* * * AVRGAMING LLC * __________________ * * [2013] AVRGAMING LLC * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of AVRGAMING LLC and its suppliers, * if any. The intellectual an...
gpl-2.0
icteidon/RQ
administrator/components/com_advancedmodules/views/module/tmpl/edit_assignment.php
4463
<?php /** * @package Advanced Module Manager * @version 3.1.0 * * @author Peter van Westen <peter@nonumber.nl> * @link http://www.nonumber.nl * @copyright Copyright © 2012 NoNumber All Rights Reserved * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ /** * @package Joomla.Administrato...
gpl-2.0
dhardy/openmalaria
model/Transmission/NonVector.cpp
7376
/* This file is part of OpenMalaria. Copyright (C) 2005-2009 Swiss Tropical Institute and Liverpool School Of Tropical Medicine OpenMalaria 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...
gpl-2.0
wshearn/openshift-quickstart-modx
php/core/model/modx/mysql/modresourcegroupresource.map.inc.php
1861
<?php /** * @package modx * @subpackage mysql */ $xpdo_meta_map['modResourceGroupResource']= array ( 'package' => 'modx', 'version' => '1.1', 'table' => 'document_groups', 'extends' => 'xPDOSimpleObject', 'fields' => array ( 'document_group' => 0, 'document' => 0, ), 'fieldMeta' => array ...
gpl-2.0