answer stringlengths 15 1.25M |
|---|
#!/bin/bash
JSON_HISTORY=120
JSON_UPDATE=/tmp/ps4-wake-$(date '+%s').json
JSON_LOG=/tmp/ps4-wake.log
rm -f /tmp/ps4-wake-*.json
ps4-wake -vP -H ps4.lan -j 2>/dev/null > $JSON_UPDATE
[ $? -ne 0 ] && exit $?
HASH_NEW=$(cat $JSON_UPDATE | sed -e 's/^.*"fingerprint":"\([0-9a-f]*\)".*$/\1/')
if [ -f $JSON_LOG ]; then
HA... |
package service;
import java.util.List;
import java.util.Map;
import util.DataBaseUtils;
public class ArticleService {
/**
*
* @param categoryId
* @param start
* @param end
*/
public List<Map<String,Object>> <API key>(Integer categoryId,Integer start,Integer end){
String sql = "... |
package com.naryx.tagfusion.cfm.xml.ws.dynws;
import java.io.Serializable;
/**
* Value object to hold operation and parameter information for web service
* Stubs.
*/
public class StubInfo implements Serializable {
private static final long serialVersionUID = 1L;
protected StubInfo.Operation[] operations = nu... |
<?php
namespace Embera\Provider;
use Embera\Url;
class Ludus extends ProviderAdapter implements ProviderInterface
{
/** inline {@inheritdoc} */
protected $endpoint = 'https://app.ludus.one/oembed?format=json';
/** inline {@inheritdoc} */
protected static $hosts = [
'app.ludus.one'
];
/**... |
#ifndef MMSE_SENIA_IU_H_
#define MMSE_SENIA_IU_H_
#include "SENIA.h"
#include "IU.h"
void MMSE_SENIA_IU(gsl_vector_complex *preceived, gsl_matrix_complex *pH,
double snr, double pav, int M, int k, int L, gsl_vector_complex *psymOut);
void MMSE_SENIA_IU(gsl_vector_complex *preceived, gsl_matrix_complex *pH,
... |
package net.infernalized.infernalutils.client.gui;
import cpw.mods.fml.client.IModGuiFactory;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiScreen;
import java.util.Set;
public class GuiFactory implements IModGuiFactory {
@Override
public void initialize(Minecraft minecraftInstance) ... |
#!/usr/bin/python
import numpy as np
mdir = "mesh3d/"
fname = "out_p6-p4-p8"
print "input mesh data file"
f1 = open(mdir+fname+".mesh", 'r')
for line in f1:
if line.startswith("Vertices"): break
pcount = int(f1.next())
xyz = np.empty((pcount, 3), dtype=np.float)
for t in range(pcount):
xyz[t] = map(float,f1.next().... |
package org.obiba.opal.web.gwt.app.client.administration.presenter;
import org.obiba.opal.web.gwt.rest.client.authorization.HasAuthorization;
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
/**
* Fire this event to have all administration presenters authorize themselves an... |
using System.Threading.Tasks;
namespace JumbleRef.Core.Services
{
public interface <API key>
{
Task<string> PromptForText(string title, string message, string initialValue, string acceptText, string cancelText = null);
Task<bool> PromptYesNo(string title, string message, string acceptText, strin... |
package com.autentia.tnt.businessobject;
public enum InventaryType {
PC, LAPTOP, BOOK, KEY, CARD, CAR
} |
\makeatletter
\def\PY@reset{\let\PY@it=\relax \let\PY@bf=\relax%
\let\PY@ul=\relax \let\PY@tc=\relax%
\let\PY@bc=\relax \let\PY@ff=\relax}
\def\PY@tok#1{\csname PY@tok@#1\endcsname}
\def\PY@toks#1+{\ifx\relax#1\empty\else%
\PY@tok{#1}\expandafter\PY@toks\fi}
\def\PY@do#1{\PY@bc{\PY@tc{\PY@ul{%
\PY@it{\P... |
USE [BDQuality]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[<API key>](
@pCadena VARCHAR(500))
RETURNS numeric(38,0)
AS
BEGIN
DECLARE @vPivote numeric(38,0)=2;
DECLARE @vLongitudCadena numeric(38,0);
DECLARE @vCantidadTotal numeric(38,0)=0;
DECLARE @i n... |
package fr.guiguilechat.jcelechat.model.jcesi.compiler.compiled.responses;
public class <API key> {
/**
* The constellation this solar system is in
*/
public int constellation_id;
/**
* name string
*/
public String name;
/**
* planets array
*/
public <API key>[] pla... |
#ifndef DECOMPRESSOR_HPP
#define DECOMPRESSOR_HPP
#include <unordered_map>
#include <queue>
// #include <memory>
#include <iostream>
#include <fstream>
#include <cassert>
#include <queue>
// #include "InputBuffer.hpp"
#include "OffsetsStream.hpp"
#include "EditsStream.hpp"
#include "ClipStream.hpp"
#include "ReadIDStre... |
# GeoCoon - GIS data analysis library based on Pandas and Shapely
# This program is free software: you can redistribute it and/or modify
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
from shapely.ge... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Ext JS Layout Examples</title>
<!-- Ext -->
<script type="text/javascript" src="../../../shared/pre-define.js"></scri... |
import csv
import decimal
import os
import datetime
from stocker.common.events import EventStreamNew, EventStockOpen, EventStockClose
from stocker.common.orders import OrderBuy, OrderSell
from stocker.common.utils import Stream
class CompanyProcessor(object):
def __init__(self, dirname, company_id):
self.di... |
package sw13.executorNegative;
import java.util.concurrent.Callable;
/**
*
* @author Steve Ineichen
*/
public class WorkerCallable implements Callable {
final private Worker worker;
public WorkerCallable(Worker worker) {
this.worker = worker;
}
@Override
public Integer call() throws <API ... |
package com.gmail.altakey.ray;
import android.app.Activity;
import android.os.Bundle;
import android.os.Parcelable;
import android.net.Uri;
import android.content.Intent;
import android.widget.Toast;
import android.util.Log;
import android.net.http.AndroidHttpClient;
import org.apache.http.client.methods.HttpPost;
impo... |
package br.edu.utfpr.cm.pi.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;... |
// by Edgar Jakumeit
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using de.unika.ipd.grGen.libGr;
using de.unika.ipd.grGen.lgsp;
namespace de.unika.ipd.grGen.lgsp
{
<summary>
A class for building the interpretation plan data structure from a scheduled search plan
... |
<?php defined('SYSPATH') or die('No direct script access allowed.');
abstract class Image_Base
{
public $source_image_path = '';
public $new_image_path = '';
public $create_thumb = true;
public $thumb_prfx = '_tmb_';
/*
* Whether to maintain aspect ratio when resizing or use hard values
* @va... |
using System;
using Org.BouncyCastle.Asn1.Pkcs;
namespace Org.BouncyCastle.Asn1.Smime
{
public class SmimeCapability
: Asn1Encodable
{
/**
* general preferences
*/
public static readonly DerObjectIdentifier PreferSignedData = <API key>.PreferSignedData;
public s... |
#ifndef __NTFS_H__
#define __NTFS_H__
#include <windows.h>
#include <math.h>
#include "list.h"
#include "drive.h"
#include "efs.h"
#pragma pack(push, 1)
typedef struct <API key>
{
WORD BytesPerSector;
BYTE SectorsPerCluster;
BYTE Reserved1[7];
BYTE Type;
BYTE Reserved2[2];
WORD SectorsPerT... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace <API key>
{
public class Garaje:Propiedades
{
string abierto;
string bodega;
public string Abierto
{
get
{
return abierto;
}
... |
package com.github.cypher.gui.root.roomcollection;
import com.airhacks.afterburner.views.FXMLView;
public class RoomCollectionView extends FXMLView {
} |
<?php
namespace reservas\Http\Controllers\Auth;
use reservas\User;
use reservas\Rol;
use Validator;
use reservas\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\<API key>;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Input;
use Illuminate\Suppor... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html xmlns="http:
<head>
<title>ActionDispatch::Http::Cache::Response</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="../../../../css/r... |
// Created : 04.03.2010
// Author : Armen Abroyan
#ifndef <API key>
#define <API key>
#include <xray/render/base/common_types.h>
#include <xray/render/base/visual.h>
#include "<API key>.h"
#include <xray/<API key>.h>
namespace xray {
namespace render {
// forward declarations
class blender_terrain_N... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ptConfigurator
{
public partial class frmConnect : Form
{
int iProgressCounter = 0;
public frmConnect()
{
... |
#ifndef UTILS_H_
#define UTILS_H_
#define COS120 -0.5
#define SIN120 0.8660254037844386
#define SQR(x) ((x) * (x))
#define SCALAR(x, y) ((x)[0]*(y)[0] + (x)[1]*(y)[1] + (x)[2]*(y)[2])
#define <API key>(m, v, result) {\
(result)[0] = (m)[0][0]*(v)[0] + (m)[0][1]*(v)[1] + (m)[0][2]*(v)[2];\
(result)[1] = (m)[1][0... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>VirtualDressroom: Référence de la classe JagoanFisika.MainMenu</title>
<link href="../../tab... |
package Aula_4.Carro;
import java.awt.Graphics2D;
public class RodaAros extends Roda {
int n;
public RodaAros(int n, int raio, int xi, int yi) {
super(raio, xi, yi, 0);
this.n = n;
}
/*public RodaAros(int xi, int yi) {
super(17, xi, yi, 0);
n = 8;
raio = 17;
}... |
module Util where
import Data.Acid (Update)
import Data.Aeson.Encode.Pretty
import Data.IxSet (empty)
import Data.Text (pack, unpack, Text)
import Data.Text.IO (hPutStr)
import qualified Data.Text.IO as TIO
import Happstack.Server (toResponse, Response)
import System.Directory (removeFile)
import System.IO (hClose)
imp... |
import { PushRequest } from './../protocol/push/PushRequest';
import { <API key> } from './../protocol/push/<API key>';
import { PushRequestObject } from './../protocol/push/PushRequestObject';
import { PushResponse } from './../protocol/push/PushResponse';
import { <API key> } from './../protocol/push/<API key>';
impo... |
const _ = require('lodash');
const RequireFromString = require('require-from-string');
module.exports = {
/**
* This function is used to initiate entity loader process. If there is any functionalities, required to be executed on entity loading.
* defined it that with Promise way
* @param {*} options
... |
#ifndef __TIMER_H__
#define __TIMER_H__
void timer_init(void);
extern uint16_t cnt_control,cnt_imu,cnt_report;
extern uint8_t led_fleg;
#endif |
#! /usr/bin/python
import sys
sys.path.append('../')
from toolbox.hreaders import token_readers as reader
from toolbox.hreducers import list_reducer as reducer
SOLO_FACTURA = False
def reduction(x,y):
v1 = x.split(',')
v2 = y.split(',')
r = x if int(v1[1])>=int(v2[1]) else y
return r
_reader = reader.To... |
<h1>String Functions</h1>
<p><span>This is a group of functions intended for working with data of the <a href="/basis/types/stringconst">string</a> type.</span></p>
<div style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 8px 17px 7px 17px;">
<table cellpadding="5" border="1" style="border:... |
#include "<API key>.H"
#include "geometricOneField.H"
#include "<API key>.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam
{
namespace fv
{
<API key>(<API key>, 0);
<API key>
(
option,
<API key>,
dictionary
);
}
}
// * * * * * * * ... |
package com.amagi82.kerbalspaceapp;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.<API key>;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util... |
package alexiil.mods.load.json.subtypes;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import net.minecraft.util.ResourceLocation;
import alexiil.mods.load.baked.func.BakedFunction;
import alexiil.mods.load.baked.func.FunctionBaker;
import alexiil.mods.load.baked.insn.BakedInstruction;
impo... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_33) on Fri Aug 03 11:43:00 PDT 2012 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Class com.hp.hpl.jena.sparql.algebra.optimize.<API key> (Apache Jena ARQ)
</TITLE>
<META NAME="date" CONTE... |
package adams.flow.sink;
import adams.core.io.PlaceholderFile;
import adams.core.option.<API key>;
import adams.env.Environment;
import adams.flow.AbstractFlowTest;
import adams.flow.control.Flow;
import adams.flow.core.AbstractActor;
import adams.flow.core.Actor;
import adams.flow.execution.NullListener;
import adams.... |
<?php
require_once dirname(__FILE__).'/init.tests.php';
require_once ISOSCELES_PATH.'libs/config.inc.php';
class LoaderTest extends <API key> {
public function setUp() {
parent::setUp();
}
public function tearDown() {
parent::tearDown();
}
public function <API key>() {
$loade... |
#include "privatestorage.h"
#include <definitions/namespaces.h>
#include <definitions/stanzahandlerorders.h>
#include <utils/options.h>
#include <utils/stanza.h>
#include <utils/logger.h>
#define <API key> 30000
#define <API key> "/message/x[@xmlns='" <API key> "']"
PrivateStorage::PrivateStorage()
{
FXmppStr... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_111) on Thu Dec 01 14:02:05 UTC 2016 -->
<title>RosterItemProvider (Openfire 4.0.4 Javadoc)</title>
<meta name="date" content="2016-12-01">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="S... |
<?php
/**
* Mobile class
*
* @author Arnia (dev@karybu.org)
*/
class MobileInstance
{
/**
* Whether mobile or not mobile mode
* @var bool
*/
var $ismobile = null;
/**
* Get current mobile mode
*
* @return bool If mobile mode returns true or false
*/
function isFrom... |
import React from 'react';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { Card, Typography } from 'antd';
const { Paragraph } = Typography;
export default (props: any): React.ReactNode => {
return (
<PageHeaderWrapper {...props} title="">
<Card>
<Typography>
<Paragra... |
<?php
return array (
'Show Exact Online invoice' => 'Afficher la facture Exact Online',
'Ordered by' => 'Commander par',
'Invoiced to' => 'Facturé à',
'Order date' => 'Date de commande',
'Payment condition' => 'Condition de paiement',
'Your reference' => 'Vos références',
'Status' => 'Statut',
'Remarks'... |
const
{series} = require("gulp"),
bump = require("./gulp_modules/task-bump"),
bump_minor = require("./gulp_modules/task-bump-minor"),
bump_major = require("./gulp_modules/task-bump-major"),
readme = require("./gulp_modules/task-readme"),
replace_version = require("./gulp_modules/<API key>"),
... |
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'/>
<title>{% block title %}{{ config.PROJECT_NAME }}{% endblock %}</title>
<link rel="shortcut icon" type="image/png" href="{{ url_for('static', filename='img/coffee-256.png') }}">
<!-- Apple Web app -->
<link rel="apple-touch-icon" href="{{ url_for... |
#include "KeySignatureEvent.h"
KeySignatureEvent::KeySignatureEvent(int channel, int tonality, bool minor, MidiTrack *track) : MidiEvent(channel, track){
_tonality = tonality;
_minor = minor;
}
KeySignatureEvent::KeySignatureEvent(const KeySignatureEvent &other) : MidiEvent(other){
_tonality = other._tonali... |
<?php
// Moodle is free software: you can redistribute it and/or modify
// (at your option) any later version.
// Moodle is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
defined('MOODLE_INTERNAL') || die();
$version = 2015102800.00; // YYY... |
<?php
/*
Functions to generate simple cases of Exclusive Canonical XML - Callable function is C14NGeneral()
i.e.: $canonical = C14NGeneral($domelement, TRUE);
*/
/* helper function */
function sortAndAddAttrs($element, $arAtts) {
$newAtts = array();
foreach ($arAtts AS $attnode) {
$newAtts[$attnode... |
<?php
/**
* Changes: 23.10.2004: Anpassung an neues DB-Schema (WM)
*/
require_once('../../config/vilesci.config.inc.php');
require_once('../../include/basis_db.class.php');
if (!$db = new basis_db())
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
require... |
from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, Table, TableStyle, PageBreak
from reportlab.lib.styles import getSampleStyleSheet
from reportlab.rl_config import defaultPageSize
from reportlab.lib.units import cm
import operator
import os
import ConfigParser
import string
config = ConfigParser.Conf... |
package unagoclient.partner;
import unagoclient.Global;
import unagoclient.gui.*;
import javax.swing.*;
/**
* Displays a send dialog, when the partner presses "Send" in the GoFrame. The
* message is appended to the PartnerFrame.
*/
public class PartnerSendQuestion extends CloseDialog {
private static final long ... |
#!/usr/bin/perl -w
# Asynchronous boolean circuit consisting in a square grid of NxN AND gates.
# The inputs of every gate are the outputs of the its north and west gates.
# The initial state of all signals is low except for the signals at the
# top and left boundaries of the grid, which are non-deterministally simulat... |
#ifndef <API key>
#define <API key>
#include <tuple>
#include "MantidKernel/IndexSet.h"
#include "MantidAPI/Algorithm.h"
#include "MantidAPI/MatrixWorkspace_fwd.h"
#include "MantidAlgorithms/DllConfig.h"
namespace Mantid {
namespace DataObjects {
class EventWorkspace;
}
namespace Algorithms {
class <API key> SpectrumAl... |
package com.baeldung.reflect;
public class Person {
private String fullName;
public Person(String fullName) {
this.fullName = fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
public String getFullName() {
return fullName;
}
} |
# This program is free software: you can redistribute it and/or modify
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
import struct
import re
import time
import logging
from chirp import chirp_common... |
puts "Bem-vindo ao Jogo da Advinhação"
puts "Qual o seu nome?"
nome = gets
puts ("\n\n\n")
puts "Neste jogo você tem de advinhar qual o número escolhido entre 0 e 100.
A cada número escolhido vou lhe dar dicas para que você saiba se está perto de acertar."
puts ("\n\n\n")
puts "Vamos começar, " + nome
puts "Escolhendo ... |
// The LLVM Compiler Infrastructure
// This file is distributed under the University of Illinois Open Source
// This file defines the ASTContext interface.
#ifndef <API key>
#define <API key>
#include "clang/Basic/AddressSpaces.h"
#include "clang/Basic/IdentifierTable.h"
#include "clang/Basic/LangO... |
package com.winthier.linkportal;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public final class LinkPortalPlugin extends JavaPlugin {
private final LinkPortalListener listener = new LinkPortalListener(this);
priva... |
var createFakeModel = function () { return sinon.createStubInstance(Backbone.Model); };
var <API key> = function () { return sinon.createStubInstance(Backbone.Collection); };
requireMock.requireWithStubs(
{
'models/SearchParamsModel': sinon.stub().returns(createFakeModel()),
'collections/<API key>': sinon.stu... |
<?php
session_start();
require_once "config.php";
if(@$_SESSION['logged_in'] == false)
{
header('Location: index.php'); // if not logged in
exit();
}
include_once "./theme/header.php";
?>
<main>
<h1>Panel główny</h1>
<p>Użytkownik: <?php echo $_SESSI... |
<p ng-message="maxlength">Занадто довге поле.</p>
<p ng-message="required">Це поле є обов'язковим.</p>
<p ng-message="email">Некоректна електронна пошта.</p>
<p ng-message="pattern">Некоректні дані.</p>
<p ng-message="availableEmail">Користувач із такою електронною поштою вже зареєстрований.</p>
<p ng-message="availabl... |
#include <grub/dl.h>
#include <grub/misc.h>
#include <grub/term.h>
#include <grub/env.h>
#include <grub/extcmd.h>
#include <grub/i18n.h>
GRUB_MOD_LICENSE ("GPLv3+");
static const struct grub_arg_option options[] =
{
{0, 'n', 0, N_("grub_getkey_noblock"), 0, 0},
{0, 0, 0, 0, 0, 0}
};
static grub_err_t
grub_c... |
using System.IO;
using System.Runtime.Serialization;
using WolvenKit.CR2W.Reflection;
using FastMember;
using static WolvenKit.CR2W.Types.Enums;
namespace WolvenKit.CR2W.Types
{
[DataContract(Namespace = "")]
[REDMeta]
public class <API key> : <API key>
{
[Ordinal(1)] [RED("engineValueType")] ... |
import java.io.File;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperExportManager;
import net.sf.jasperreports.engine.JasperFillManager;
import net.sf.jasperreports.engine.JasperPrin... |
package de.codefu.android.rss.updateservice;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import de.codefu.android.rss.<API key>;
import de.codefu.android.rs... |

Paker is a Minecraft modpack manager for the Command Line.
Paker will maintain your ... |
<?php
class TestDefaultValues extends <API key>
{
public function testDefaultValue()
{
echo "Testing default configuration values" . PHP_EOL;
echo "Checking enabled by default" . PHP_EOL;
$this->assertEquals(1, reset(Mage::getConfig()->getNode("default/gigya_global/gigya_global_conf/enab... |
#! /usr/bin/env python
# I found this file inside Super Mario Bros python
import pygame
class EzMenu:
def __init__(self, *options):
self.options = options
self.x = 0
self.y = 0
self.font = pygame.font.Font(None, 32)
self.option = 0
self.width = 1
self.color = ... |
#if defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32)
#define UNICODE
#endif
/* XXX This is a nasty hack; should put everything necessary in this package */
#include "HsBase.h"
#include "Rts.h"
#include "runProcess.h"
#if !(defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32))
#include "execvpe.h"
//... |
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// to whom the Software is furnished to do so, subject to the following conditions:
// substantial portions of the Software.
// INCLUDING ... |
import os
from django.core.wsgi import <API key>
os.environ.setdefault("<API key>", "GoodDog.settings")
application = <API key>() |
#! /usr/bin/env python
"""Keywords (from "graminit.c")
This file is automatically generated; please don't muck it up!
To update the symbols in this file, 'cd' to the top directory of
the python source tree after building the interpreter and run:
python Lib/keyword.py
"""
__all__ = ["iskeyword", "kwlist"]
kwlist = [... |
package freeWarOnTerror.cards;
import static freeWarOnTerror.Game.getCurrentPlayer;
import static freeWarOnTerror.Game.getMuslimCountries;
import static freeWarOnTerror.Game.getUS;
import freeWarOnTerror.MuslimCountry;
import freeWarOnTerror.abClasses.Card;
import freeWarOnTerror.helpers.CardLookup;
/**
*
* @author E... |
function date(pub_date){
var date = new Date( Date.parse(pub_date+' UTC'));
return date.toLocaleString();
} |
#ifndef LASTFM_WS_H
#define LASTFM_WS_H
#include "playlist.h"
#include "protocol.h"
#include "vgl-server.h"
#include <glib.h>
G_BEGIN_DECLS
typedef enum {
LASTFM_OK,
LASTFM_NOT_FOUND = 25,
<API key> = 28
} LastfmErrorCode;
/* Opaque type that represents a Last.fm Web Services session */
typedef ... |
<div id="search" class="portfolio-search">
<div class="container">
<div class="row">
<div class="col-md-7">
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle languag... |
<?php
defined( 'ABSPATH' ) || exit;
define( '<API key>', true ); |
"""Calculate exact solutions for the zero dimensional LLG as given by
[Mallinson2000]
"""
from __future__ import division
from __future__ import absolute_import
from math import sin, cos, tan, log, atan2, acos, pi, sqrt
import scipy as sp
import matplotlib.pyplot as plt
import functools as ft
import simpleode.core.util... |
class Sbs:
def __init__(self, sbsFilename, sbc_filename, newSbsFilename):
import xml.etree.ElementTree as ET
import Sbc
self.mySbc = Sbc.Sbc(sbc_filename)
self.sbsTree = ET.parse(sbsFilename)
self.sbsRoot = self.sbsTree.getroot()
self.XSI_TYPE = "{http:
self.n... |
Luwrain.addCommand("suspend", function(){
if (!Luwrain.popups.confirmDefaultYes(Luwrain.i18n.static.<API key>, Luwrain.i18n.static.<API key>))
return;
Luwrain.os.suspend();
}); |
package com.pixelutilitys.commands;
import com.pixelmonmod.pixelmon.Pixelmon;
import com.pixelmonmod.pixelmon.enums.EnumGui;
import net.minecraft.command.CommandBase;
import net.minecraft.command.ICommandSender;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.<API key>;
public class Pokecheck... |
void talk(void)
{
say("`%'Please be careful when using this machine.' - the ancient ones.", ¤t_sprite);
} |
package org.sufficientlysecure.keychain.ui;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.Messenger;
import android.support.v4.app.Fragment;
import android.support.v4.view.MotionEventCompat;
import android.support.v7.widget.LinearLayoutManager;
import android.support.... |
# A template for APSync process based modules
from multiprocessing import Process, Event
import threading
import time
import signal, select
import traceback
import setproctitle
from APSyncFramework.utils.common_utils import PeriodicEvent
from APSyncFramework.utils.json_utils import ping, <API key>
from APSyncFramework.... |
# -*- coding: utf-8 -*-
# Dioptas - GUI program for fast processing of 2D X-ray diffraction data
# This program is free software: you can redistribute it and/or modify
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PU... |
#include <jni.h>
#include <photon/photon.h>
#include <string.h>
#include "jni_photon.h"
#include "<API key>.h"
#include "API/DataDefinition.h"
jfieldID g_idDataDefHandle;
jfieldID g_idDataDefDataDef;
jfieldID g_idDataDefType;
jfieldID <API key>;
jfieldID g_idDataDefName;
/*
* Class: <API key>
* Method: initIDs... |
package tv.phantombot.event.discord.channel;
import discord4j.core.object.entity.User;
public class <API key> extends DiscordChannelEvent {
/**
* Class constructor.
*
* @param {IUser} user
*/
public <API key>(User user) {
super(user);
}
} |
module StandOff.DomTypeDefs where
import StandOff.LineOffsets
import qualified StandOff.TextRange as TR
import StandOff.MarkupTree
type AttrName = String
type AttrVal = String
data Attribute = Attribute (AttrName, AttrVal) deriving (Show)
data XML = Element { name :: String
, attributes :: [Attri... |
{% extends "admin/base/base_add.html" %}
{% block form %}
<form role="form" method="post" class="form form-horizontal" id="form-admin-add" enctype="multipart/form-data">
<div class="row cl">
<div class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>{{ form.language_id.label }}</div>
... |
namespace WOT.Stats
{
partial class ctxScreens
{
<summary>
Required designer variable.
</summary>
private System.ComponentModel.IContainer components = null;
<summary>
Clean up any resources being used.
</summary>
<param name="disposing">true if ma... |
.fa-egg:before {
content: url('../images/lay.png');
}
.radio_academic {
margin-left: 100px;
}
.border {
border: 1px solid #b6b6b6;
padding: 5px;
border-radius: 5px;
margin: 5px;
}
.h-divider{
margin: auto;
margin-top:15px;
margin-bottom:15px;
height:1px;
width:100%;
borde... |
package com.minecolonies.inventory;
import com.minecolonies.colony.buildings.Building;
import com.minecolonies.colony.materials.MaterialStore;
import com.minecolonies.colony.materials.MaterialSystem;
import com.minecolonies.tileentities.<API key>;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.Ite... |
# 7.33 Examples #
using GSL
using Printf
#The following example demonstrates the use of the error handling form of the special functions, in this case to compute the Bessel function J_0(5.0),
x = 5.0
expected = -0.<API key>
result = sf_bessel_J0_e(x)
println("status = ", strerror(0))
@printf("J0(5.0) = %.18f\n +/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.