code
stringlengths
4
1.01M
language
stringclasses
2 values
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
# -*- coding: utf-8 -*- """ Created on Wed Jul 6 22:58:00 2016 @author: Diogo """ # -*- coding: utf-8 -*- """ Created on Sun Jun 26 19:08:00 2016 @author: Diogo """ def ImportGames(): games = list() user_games = dict() with open('C:\\Users\\Diogo\\Documents\\Monografia FIA\\UserGamesCleansed.tx...
Java
<?php /****************************************************************************** * * Subrion - open source content management system * Copyright (C) 2017 Intelliants, LLC <https://intelliants.com> * * This file is part of Subrion. * * Subrion is free software: you can redistribute it and/or modify * it und...
Java
<?php /** * \PHPCompatibility\Sniffs\LanguageConstructs\NewEmptyNonVariableSniff. * * PHP version 5.5 * * @category PHP * @package PHPCompatibility * @author Juliette Reinders Folmer <phpcompatibility_nospam@adviesenzo.nl> */ namespace PHPCompatibility\Sniffs\LanguageConstructs; use PHPCompatibility\Sniff;...
Java
/* ============================================================================ Name : lcd_scroll_text.c Author : Kiran N <niekiran@gmail.com > Version : 1.0 Copyright : Your copyright notice Description : This application prints pre-stored strings on a LCD panel with shifting/scrolling effect ...
Java
%include lhs2TeX.fmt \usepackage{ stmaryrd } %format <?> = "~\lightning~"
Java
*{ font-family: 'Raleway', sans-serif; } body{ background: #d6d6d6; color: #333; margin: 0; font-family: 'Raleway', sans-serif; } #masterContainer{ width: 100vw; height: 100vh; padding: 0; margin: 0; display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; ...
Java
// Copyright (c) 2012-2014 Lotaris SA // // This file is part of ROX Center. // // ROX Center 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...
Java
@charset "utf-8"; html{ background: FloralWhite; /*background:#40A0DA; Ivory PowderBlue Lavender Azure Honeydew*/ } body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,form,fieldset,input,textarea,p,blockquote,th,td{ margin:0 auto; padding:0; } table{ border-collapse:collapse; border-spacing:0; } a{ text-decoration:none; } a...
Java
package com.glory.model; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; @Entity public class Log { @Id @GeneratedValue private Long id; private Long transactionId; private String message; public Log() { } public Log(Long id, Long t...
Java
Imports Microsoft.VisualBasic Imports System ' ' * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. ' * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. ' * ' * ' * ' * ' * ' * ' * ' * ' * ' * ' * ' * ' * ' * ' * ' * ' * ' * ' * ' * ' Namespace java.lang.invoke ''' <su...
Java
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background-color: #222; } ::-webkit-scrollbar-thumb { background-color: #ddd; } .no-select { user-select: none; -webkit-user-select: none; } html, body { height: 100%; margin: 0; overflow: hidden; font-family: var( --gsui-font ); back...
Java
<?php /** * @copyright &copy; 2005-2022 PHPBoost * @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL-3.0 * @author Julien BRISWALTER <j1.seth@phpboost.com> * @version PHPBoost 6.0 - last update: 2021 12 05 * @since PHPBoost 3.0 - 2013 04 29 * @contributor Arnaud GENET <elenwii...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Entidades { public class Class1 { } }
Java
package l2s.gameserver.network.l2.s2c; import java.util.ArrayList; import java.util.Collections; import java.util.List; import l2s.commons.lang.ArrayUtils; import l2s.gameserver.model.Player; import l2s.gameserver.model.items.ItemInfo; import l2s.gameserver.model.items.ItemInstance; import l2s.gameserver.model.items....
Java
# -*- coding: utf-8 -*- from django.contrib import admin from models import FileMapping # Register your models here. admin.site.register(FileMapping)
Java
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Aviso de Privacidad</title> ...
Java
<?php /** * BwPostman Newsletter Component * * BwPostman form field Text templates class. * * @version %%version_number%% * @package BwPostman-Admin * @author Karl Klostermann * @copyright (C) %%copyright_year%% Boldt Webservice <forum@boldt-webservice.de> * @support https://www.boldt-webservice.de/en/forum-e...
Java
#ifndef __BACKTRACE_H__ #define __BACKTRACE_H__ #include <stdint.h> void __backtrace(uintptr_t rbp, uintptr_t stack_begin, uintptr_t stack_end); uintptr_t stack_begin(void); uintptr_t stack_end(void); void backtrace(void); #endif /*__BACKTRACE_H__*/
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="ro"> <head> <!-- Generated by javadoc (version 1.7.0_80) on Mon Jun 20 18:37:10 EEST 2016 --> <title>SimplePrintPart (JasperReports 6.3.0 API)</title> <meta name="date" content="2016-06-20...
Java
/* Copyright (C) 2018 Magnus Lång and Tuan Phong Ngo * This benchmark is part of SWSC */ #include <assert.h> #include <stdint.h> #include <stdatomic.h> #include <pthread.h> atomic_int vars[3]; atomic_int atom_0_r3_2; atomic_int atom_1_r1_1; void *t0(void *arg){ label_1:; atomic_store_explicit(&vars[0], 2, memo...
Java
<?php namespace App\Model\Table; use App\Model\Entity\Guest; use Cake\ORM\Query; use Cake\ORM\RulesChecker; use Cake\ORM\Table; use Cake\Validation\Validator; /** * Guests Model * * @property \Cake\ORM\Association\BelongsTo $Matchteams * @property \Cake\ORM\Association\BelongsToMany $Hosts */ class GuestsTable e...
Java
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle 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. // //...
Java
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Richard Benson In Memory</title> <link rel="stylesheet" hre...
Java
"use strict"; /* Copyright (C) 2013-2017 Bryan Hughes <bryan@nebri.us> Aquarium Control 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. Aqu...
Java
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Controls; namespace Chess { public abstract class Screen : UserControl { public ScreenControl parentWindow; public ScreenControl ParentWindow { get { return parentWindow; } } pr...
Java
package com.habitrpg.android.habitica.ui.activities; import android.content.DialogInterface; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Color; import android.net.Uri; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.desi...
Java
<?php namespace hemio\html; /** * The <code>figure</code> element represents a unit of content, optionally with * a caption, that is self-contained, that is typically referenced as a single * unit from the main flow of the document, and that can be moved away from the * main flow of the document without affecting...
Java
/* * Copyright (C) 2010-2019 The ESPResSo project * Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009,2010 * Max-Planck-Institute for Polymer Research, Theory Group * * This file is part of ESPResSo. * * ESPResSo is free software: you can redistribute it and/or modify * it under the terms of the GNU Gener...
Java
/** * Copyright (C) 2010-2016 Structr GmbH * * This file is part of Structr <http://structr.org>. * * Structr 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 y...
Java
package com.risevision.gcslogs.delete; import com.risevision.gcslogs.auth.MockCredentialProvider; import java.util.logging.Logger; import java.util.Map; import java.util.HashMap; import org.junit.*; import static org.junit.Assert.*; import static org.hamcrest.CoreMatchers.*; import static com.risevision.gcslogs.Build...
Java
package org.maxgamer.rs.model.skill.prayer; import java.util.LinkedList; /** * @author netherfoam, alva */ public enum PrayerGroup { //Standard prayer book /** All prayers that boost defense */ DEFENSE(PrayerType.THICK_SKIN, PrayerType.ROCK_SKIN, PrayerType.STEEL_SKIN, PrayerType.CHIVALRY, PrayerType.PIETY, Pray...
Java
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Colorinator</title> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=410"> <!-- jQuery --> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquer...
Java
import ast import json import arrow import elasticsearch from bson import ObjectId from flask import request from eve.utils import config from eve.io.base import DataLayer try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse def parse_date(date_str): """Parse elastic...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Thu Nov 22 16:43:24 EST 2007 --> <TITLE> Xalan-Java 2.7.1: Uses of Interface org.apache.xml.serializer.ExtendedLexicalHandler </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" ...
Java
ProjectTop := /Volumes/Polaris/polymake include ${ProjectTop}/support/extension.make
Java
=head1 NAME EPrints::Plugin::Screen::Search =cut package EPrints::Plugin::Screen::Search; use EPrints::Plugin::Screen::AbstractSearch; @ISA = ( 'EPrints::Plugin::Screen::AbstractSearch' ); use strict; sub new { my( $class, %params ) = @_; my $self = $class->SUPER::new(%params); $self->{appears} = []; push ...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>PHP MySQL Database Interface: UnknownDatabaseException Klassenreferenz</title> <link href="../../tabs.css" rel="stylesheet" type="text/css"> <link href="../../doxygen.css...
Java
/* * ASpark * Copyright (C) 2015 Nikolay Platov * * This program 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 3 of the License, or * (at your option) any later version. ...
Java
package controller; import java.io.IOException; import java.sql.Time; import java.util.Calendar; import java.util.List; import java.util.TimeZone; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import ...
Java
#ifndef __PLATFORM_H_ #define __PLATFORM_H_ #define STDOUT_IS_PS7_UART #define UART_DEVICE_ID 0 #include "xil_io.h" #include "xtmrctr.h" #include "assert.h" /* Write to memory location or register */ #define X_mWriteReg(BASE_ADDRESS, RegOffset, data) \ *(unsigned volatile int *)(BASE_ADDRESS + RegOffset) ...
Java
<!DOCTYPE html> <!-- Copyright (C) 2017 ss 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 in the ...
Java
import platform import glob from .io import DxlIO, Dxl320IO, DxlError from .error import BaseErrorHandler from .controller import BaseDxlController from .motor import DxlMXMotor, DxlAXRXMotor, DxlXL320Motor from ..robot import Robot def _get_available_ports(): """ Tries to find the available usb2serial port on ...
Java
/* ----------------------------------------------------------------------------- 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....
Java
<?php // This file is part of VPL for Moodle - http://vpl.dis.ulpgc.es/ // // VPL for Moodle 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 ...
Java
package org.runnerup.notification; import android.annotation.TargetApi; import android.app.Notification; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.os.Build; import android.support.v4.app.NotificationCompat; import org.runnerup.R; import org.runneru...
Java
<!DOCTYPE html> <html xml:lang="en-GB" lang="en-GB" xmlns="http://www.w3.org/1999/xhtml"> <head lang="en-GB"> <title>Ross Gammon’s Family Tree - Events</title> <meta charset="UTF-8" /> <meta name ="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" /> <meta name ="apple-mo...
Java
package pl.idedyk.japanese.dictionary.web.html; import java.util.List; public class Ul extends HtmlElementCommon { public Ul() { super(); } public Ul(String clazz) { super(clazz); } public Ul(String clazz, String style) { super(clazz, style); } @Override protected String getTagName() { retu...
Java
<?php /* checklinks.class.php ver.1.1 ** Author: Jason Henry www.yourarcadescript.com ** Please keep authorship info intact ** Nov. 26, 2011 ** ** Class is used to validate that a link exists on a given web page ** Usage example: ** include("checklinks.class.php"); ** $checklink = new checkLink; ** ...
Java
"use strict"; function HelpTutorial() { let _getText = function() { return "HelpTutorial_Base"; }; this.getName = function(){ return "HelpTutorial_Base"; }; this.getImageId = function(){ return "button_help"; }; this.getText = _getText; } function HelpTutorialBuilding(name, image) { this.getName = function(...
Java
/* Dylan Secreast * dsecrea2@uoregon.edu * CIS 415 Project 0 * This is my own work except for the base * code that was provided by Prof. Sventek */ #ifndef _DATE_H_INCLUDED_ #define _DATE_H_INCLUDED_ typedef struct date Date; /* * date_create creates a Date structure from `datestr` * `datestr' is...
Java
/** * @file test-mus-got.cpp * @brief Test code for God of Thunder files. * * Copyright (C) 2010-2015 Adam Nielsen <malvineous@shikadi.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 Found...
Java
#include <fstream> #include <algorithm> #include "anime_db.hpp" #include "trim.hpp" bool anime_database::dump_anime_db(const astd::filesystem::path& db_path, const anime_database& db) { bool result = false; std::ofstream stream{ db_path.c_str(), std::ios::out | std::ios::trunc }; if (stream) ...
Java
public class Main { public static void main(String[] args) { ProdutoContext manga = new ProdutoContext(); System.out.println("Quantia: " + manga.getQuantia()); manga.fazerCompra(5); manga.reestocar(5); manga.fazerCompra(5); manga.reestocar(15); System.out.println("Quantia: " + manga.getQuantia()); ma...
Java
using CatalokoService.Helpers.DTO; using CatalokoService.Helpers.FacebookAuth; using CatalokoService.Models; using System; using System.Web.Mvc; namespace CatalokoService.Controllers { public class HomeController : Controller { CatalokoEntities bd = new CatalokoEntities(); public Action...
Java
var Util = require( 'findhit-util' ); // ----------------------------------------------------------------------------- // Data handles wizard data into session function Data ( route ) { var session = route.req[ route.router.options.reqSessionKey ]; // If there isn't a `wiz` object on session, just add it ...
Java
using System; namespace RadarrAPI { public class ErrorViewModel { public string RequestId { get; set; } public bool ShowRequestId => !string.IsNullOrEmpty(RequestId); } }
Java
/** Copyright (C) 2012 Delcyon, 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 3 of the License, or (at your option) any later version. This program is distributed in the hope ...
Java
<html> <head> <title>datypus</title> <link rel="stylesheet" type="text/css" href="/css/datystyle.css"> <body> <div class="chart"></div> <script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> <script type="text/javascript"> var data = [4, 8, 15, ...
Java
/* * 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...
Java
/* * This file is part of *** M y C o R e *** * See http://www.mycore.de/ for details. * * MyCoRe 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)...
Java
<ion-header> <ion-navbar> <ion-title>Login</ion-title> </ion-navbar> </ion-header> <ion-content padding> <!-- Shows error message is socket is not connected. --> <ion-item no-lines *ngIf="!loginManager.loginAvailable()"> <ion-label style="color: #ea6153"> Login service unavailable as cannot conn...
Java
#include <iostream> using namespace std; int main() { int n, x, y; cin >> n; int a[n]; for (int i = 0; i < n; ++i) { cin >> a[i]; } x = a[1] - a[0]; y = a[2] - a[0]; for (int i = 2; i < n; ++i) { x = max(a[i] - a[i - 1], x); y = min(a[i] - a[i - 2], y); } cout << max(x, y); }
Java
<?php namespace PrivCode; defined('ROOT_DIR') or die('Forbidden'); /** * Base Model Class * * @package Priv Code * @subpackage Libraries * @category Libraries * @author Supian M * @link http://www.priv-code.com */ use PrivCode\Database\Database; class BaseModel extends Database { public function __con...
Java
/* * 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 com.power.text.Run; import static com.power.text.dialogs.WebSearch.squerry; import java.awt.Desktop; import java.awt....
Java
/** * */ package org.jbpt.pm.bpmn; import org.jbpt.pm.IDataNode; /** * Interface class for BPMN Document. * * @author Cindy F�hnrich */ public interface IDocument extends IDataNode { /** * Marks this Document as list. */ public void markAsList(); /** * Unmarks this Document as list. */ public ...
Java
#include <QtGui/QApplication> #include "xmlparser.h" #include "myfiledialog.h" #include <iostream> #include <QMessageBox> using namespace std; int main(int argc, char *argv[]) { QApplication a(argc, argv);/* MainWindow w; w.show();*/ MyFileDialog my;//Create dialog QString name...
Java
// // SuperTuxKart - a fun racing game with go-kart // Copyright (C) 2004-2005 Steve Baker <sjbaker1@airmail.net> // Copyright (C) 2006 Joerg Henrichs, Steve Baker // // 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 ...
Java
// ArduinoJson - arduinojson.org // Copyright Benoit Blanchon 2014-2019 // MIT License #pragma once #include "../Array/ArrayShortcuts.hpp" #include "../Object/ObjectShortcuts.hpp" namespace ARDUINOJSON_NAMESPACE { template <typename TVariant> class VariantShortcuts : public ObjectShortcuts<TVariant>, ...
Java
// Mantid Repository : https://github.com/mantidproject/mantid // // Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, // NScD Oak Ridge National Laboratory, European Spallation Source // & Institut Laue - Langevin // SPDX - License - Identifier: GPL - 3.0 + #ifndef VTKPEAKMARKERFACTORY_TEST_H_ #d...
Java
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace SimpleDownload { public partial class Downloader : Form { public Downloader() { Initiali...
Java
/** * 表示データ作成用テンプレート(patTemplate) * * LICENSE: This source file is licensed under the terms of the GNU General Public License. * * @package Magic3 Framework * @author 平田直毅(Naoki Hirata) <naoki@aplo.co.jp> * @copyright Copyright 2006-2014 Magic3 Project. * @license http://www.gnu.org/copyleft/...
Java
reopen ====== The Repo+Open Project Framework Manifest license ------- [GNU GENERAL PUBLIC LICENSE Version 3](http://www.gnu.org/licenses/gpl-3.0-standalone.html)
Java
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Ca...
Java
<?php /* * Micrositio-Phoenix v1.0 Software para gestion de la planeación operativa. * PHP v5 * Autor: Prof. Jesus Antonio Peyrano Luna <antonio.peyrano@live.com.mx> * Nota aclaratoria: Este programa se distribuye bajo los terminos y disposiciones * definidos en la GPL v3.0, debidamente incluidos en el repositorio...
Java
from numpy import sqrt from pacal.standard_distr import NormalDistr, ChiSquareDistr from pacal.distr import Distr, SumDistr, DivDistr, InvDistr from pacal.distr import sqrt as distr_sqrt class NoncentralTDistr(DivDistr): def __init__(self, df = 2, mu = 0): d1 = NormalDistr(mu, 1) d2 = distr_sqrt(C...
Java
IWitness.ErrorsView = Ember.View.extend({ classNames: ["error-bubble"], classNameBindings: ["isError"], isError: function() { return !!this.get("error"); }.property("error") });
Java
/* * Copyright 2008-2013, ETH Zürich, Samuel Welten, Michael Kuhn, Tobias Langner, * Sandro Affentranger, Lukas Bossard, Michael Grob, Rahul Jain, * Dominic Langenegger, Sonia Mayor Alonso, Roger Odermatt, Tobias Schlueter, * Yannick Stucki, Sebastian Wendland, Samuel Zehnder, Samuel Zihlmann, * Samuel Zw...
Java
<?php // This file is part of Moodle - http://moodle.org/ // // Moodle 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. // // Moodle ...
Java
/* * Copyright (C) 2011 Klaus Reimer <k@ailis.de> * See LICENSE.md for licensing information. */ package de.ailis.microblinks.l.lctrl.shell; import gnu.getopt.Getopt; import gnu.getopt.LongOpt; import java.util.Arrays; import de.ailis.microblinks.l.lctrl.resources.Resources; /** * Base class for all CLI progra...
Java
/************************************************************************ ** ** @file vistoolspline.cpp ** @author Roman Telezhynskyi <dismine(at)gmail.com> ** @date 18 8, 2014 ** ** @brief ** @copyright ** This source code is part of the Valentina project, a pattern making ** program, whose allow c...
Java
<?php /** Copyright 2012-2014-2013 Nick Korbel This file is part of Booked Scheduler. Booked Scheduler 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 lat...
Java
#include <stdlib.h> #include <stdio.h> #include "array_heap.h" int array_init(array* arr, int size) { arr->data = realloc(NULL, sizeof(void*) * size); if (0 == (size_t)arr->data) { return -1; } arr->length = size; arr->index = 0; return 0; } int array_push(array* arr, void* data) { ((size_t*)arr->d...
Java
### Bienvenida Hora de inicio: 09:12 a.m. El Lic. Eduardo Holguín da la bienvenida y le concede la palabra al Arq. Rafael Pérez Fernández. ### Introducción El Arq. Rafael Pérez Fernández expone los objetivos del Plan Estratégico Metropolitano. Introducción por Lic. Rodrigo González Morales: Explicación de los res...
Java
from ert.cwrap import CWrapper, BaseCClass from ert.enkf import ENKF_LIB from ert.util import StringList class SummaryKeyMatcher(BaseCClass): def __init__(self): c_ptr = SummaryKeyMatcher.cNamespace().alloc() super(SummaryKeyMatcher, self).__init__(c_ptr) def addSummaryKey(self, key): ...
Java
<?php /** * @module wysiwyg Admin * @version see info.php of this module * @authors Dietrich Roland Pehlke * @copyright 2010-2011 Dietrich Roland Pehlke * @license GNU General Public License * @license terms see info.php of this module * @platform see info.php of this module * @requirements PHP 5.2.x an...
Java
#include <cmath> #include <iostream> #include <fstream> #include <cstdlib> #include "params.h" #include "pdg_name.h" #include "parameters.h" #include "LeptonMass.h" //#include "jednostki.h" #include "grv94_bodek.h" #include "dis_cr_sec.h" #include "fragmentation.h" #include "vect.h" #include "charge.h" #include "event1...
Java
package example; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.junit.Test; import com.piedra.excel.annotation.ExcelExport; import com.piedra.excel.util.ExcelExportor; ...
Java
/*************************************************************************** * Project file: NPlugins - NCore - BasicHttpClient.java * * Full Class name: fr.ribesg.com.mojang.api.http.BasicHttpClient * * * * ...
Java
/* Fomalhaut Copyright (C) 2014 mtgto 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 in th...
Java
#!/usr/bin/env node /*jshint -W100*/ 'use strict'; /** * ニコニコ動画ログインサンプル * * 以下のusernameとpasswordを書き換えてから実行してください */ var username = 'hogehoge'; var password = 'fugafuga'; var client = require('../index'); console.info('ニコニコTOPページにアクセスします'); client.fetch('http://nicovideo.jp/') .then(function (result) { consol...
Java
// Copyright (c) 2018 - 2020, Marcin Drob // Kainote 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. // Kainote is distribut...
Java
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_66) on Sat Nov 28 10:51:55 EST 2015 --> <title>VariableQuantumIndexWriter (MG4J (big) 5.4.1)</title> <meta name="date" content="2015-11-28"> <l...
Java
#!/usr/bin/python # coding: utf8 import os import subprocess from '{% if cookiecutter.namespace %}{{ cookiecutter.namespace }}.{{ cookiecutter.project_slug }}{% else %}{{ cookiecutter.project_slug }}{% endif %}'.commands.base import BaseCommand from '{% if cookiecutter.namespace %}{{ cookiecutter.namespace }}.{{ cooki...
Java
<a href tabindex="-1" ng-attr-title="{{match.label}}"> <span ng-bind-html="match.label.artist | uibTypeaheadHighlight:query"></span> <br> <small ng-bind-html="match.label.title | uibTypeaheadHighlight:query"></small> </a>
Java
package Eac.event; import Eac.Eac; import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.gameevent.PlayerEvent; import net.minecraft.item.ItemStack; public class EacOnItemPickup extends Eac { @SubscribeEvent public void EacOnItemPickup(PlayerEvent.ItemPickupEvent e) { if (...
Java
class PasswordResetsController < ApplicationController def new end def create @user = User.find_by_email(params[:email]) if @user @user.deliver_reset_password_instructions! redirect_to root_path, notice: 'Instructions have been sent to your email.' else flash.now[:alert] = "Sorry bu...
Java
/* * Copyright 2011 Mect s.r.l * * This file is part of FarosPLC. * * FarosPLC 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....
Java
// // DetailViewController.h // ScrollView+PaperFold+PageControl // // Created by Jun Seki on 13/06/2014. // Copyright (c) 2014 Poq Studio. All rights reserved. // #import <UIKit/UIKit.h> #import "PaperFoldView.h" #import "SwipeView.h" @interface DetailViewController : UIViewController <UISplitViewControllerDeleg...
Java
/* * This file is part of gap. * * gap is free software: you can redistribute it and/or modify * under the terms of the GNU General Public License as published by * Free Software Foundation, either version 3 of the License, or * your option) any later version. * * gap is distributed in the hope that it will be ...
Java