answer stringlengths 15 1.25M |
|---|
## Introduction
HockeySDK lets the user decide wether to send a crash report or lets the developer send crash reports automatically without user interaction. In addition it is possible to attach more data like logs, a binary, or the users name, email or a user ID if this is already known.
Starting with HockeySDK versio... |
// Name : Tarray.h
// Author : Trevor Fisher
// Version : 0.2
// Description : Tarray (Terrific Array) is a generic template to handle
// an array of any class.
#ifndef TARRAY_H
#define TARRAY_H
#include <iostream>
#include <string>
using namespace std;
//Template class to hold functions f... |
package net.shadowmage.ancientwarfare.automation.container;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraftforge.common.util.Constants;
import net... |
package server.maps;
import java.rmi.RemoteException;
import java.util.List;
import client.MapleCharacter;
import java.util.ArrayList;
import net.world.remote.<API key>;
import server.TimerManager;
import tools.MaplePacketCreator;
/*
* MapleTVEffect
* @author MrXotic
*/
public class MapleTVEffect {
private List<... |
//RPG game
//v0.36
//Rules of the program
//Variables are lowercase.
//Functios start with upper case per word
//Known Bugs
//Hp doesnt raise after you talk with the inn keeper.
//doom doesnt kill you.
//Always glanceing blow.
//To-Do
//Finish Atk formula
//equip items
//working backpack
//map borders
//working enemies... |
/**
* \file middleware/portutils.c
* \brief Various functions for ports management.
*/
#if defined (<API key>) || defined (<API key>)
#include <types.h>
#include <libc.h>
#include <core/time.h>
#include <middleware/port.h>
#include <middleware/queue.h>
extern pok_port_t pok_ports[POK_CONFIG_NB_PORTS];
exte... |
from django.apps import AppConfig
class CirculoConfig(AppConfig):
name = 'circulo' |
{% load staticfiles i18n %}
<!doctype html>
<html lang="{{ LANGUAGE_CODE }}">
<head>
<!-- Page meta -->
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% block meta %}
... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="ro">
<head>
<!-- Generated by javadoc (version 1.7.0_80) on Mon Jun 20 18:37:22 EEST 2016 -->
<title>Uses of Class net.sf.jasperreports.repo.PersistenceUtil (JasperReports 6.3.0 API)</title>
<meta name="date" content="2016-06-20">
<link rel="stylesheet" type="text/c... |
#include "mk20dx128.h"
#include "core_pins.h"
#include "HardwareSerial.h"
// UART0 and UART1 are clocked by F_CPU, UART2 is clocked by F_BUS
// UART0 has 8 byte fifo, UART1 and UART2 have 1 byte buffer
#define TX_BUFFER_SIZE 40
static volatile uint8_t tx_buffer[TX_BUFFER_SIZE];
static volatile uint8_t tx_buffer_head = ... |
#ifndef <API key>
#define <API key>
#include "basesimpleexact.h"
namespace kmeans{
template <typename TInt, typename TFloat>
class <API key> : public kmeans::<API key><TInt, TFloat>{
private:
TInt nperbatch;
public:
TInt get_nperbatch(){
return this->nperbatch;
}
temp... |
#include "ARPrivatePCH.h"
#include "ARTarget.h"
#include "FileManagerGeneric.h"
// Fix WinBase.h override
#undef UpdateResource
#define UpdateResource UpdateResource
<API key>(LogARToolKits, Log, All);
AARTarget::AARTarget()
{
//create components
targetPivot = <API key><USceneComponent>("Target Pivot");
tar... |
# Generated by Django 2.2 on 2019-06-20 09:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('scoping', '0294_titlevecmodel'),
]
operations = [
migrations.AddField(
model_name='doc',
name='tslug',
field=mo... |
// RUN: %clang_cc1 -fsyntax-only -fopenmp -x c++ -std=c++11 -fexceptions -fcxx-exceptions -verify %s
class S {
int a;
S() : a(0) {}
public:
S(int v) : a(v) {}
S(const S &s) : a(s.a) {}
};
static int sii;
#pragma omp threadprivate(sii)
static int globalii;
int <API key>() {
const int N = 100;
float a[N], b[N... |
#ifndef <API key>
#define <API key>
#include <QtCore/QObject>
#include <QtCore/QPointer>
#include "Artist.h"
#include "Typedefs.h"
#include "PlaylistInterface.h"
#include "DllMacro.h"
namespace Tomahawk
{
class DLLEXPORT <API key> : public Tomahawk::PlaylistInterface
{
Q_OBJECT
public:
<API key>( Tomahawk::Artist* ... |
package de.slub.urn;
/**
* An Exception which is thrown if a URN or any part of a URN cannot be parsed due to violations of the URN syntax.
* <p>
* It supports three different syntax errors and stores a reference to the RFC that has been violated.
*
* @author Ralf Claussnitzer
*/
public class URNSyntaxError exten... |
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> : CStorySceneEvent
{
[Ordinal(1)] [RED("propId")] ... |
body {
width: 600px;
background-image: url("/images/football2.jpg");
padding:30px;
font-size: 9pt;
font-family: fixedsys, LucidaTerminal, monospace;
color: #FFFFFF;
text-align: left;
overflow:auto;
border: 5px solid #FFFFFF;
margin-left:200px;
margin-top:50px;
margin-bottom:50px;
}
h1 {margin-bottom:-10px;margin-top:-... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_29) on Sat Mar 17 18:04:43 MSK 2012 -->
<TITLE>
Count (POI API Documentation)
</TITLE>
<META NAME="date" CONTENT="2012-03-17">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
<SCRIPT ... |
// The LLVM Compiler Infrastructure
// This file is distributed under the University of Illinois Open Source
// This file contains the entry points for global functions defined in the LLVM
// Shakti back-end.
#ifndef <API key>
#define <API key>
#include "llvm/Support/CodeGen.h"
#include "llvm/Target... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("HTTP/1.1 200 OK\n") ;
printf("Content-type: text/plain\n") ;
printf("\r\n") ;
printf("CGI work !\n") ;
return EXIT_SUCCESS ;
} |
# This Python file uses the following encoding: utf-8
"""autogenerated by genpy from tf2_msgs/FrameGraphRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class FrameGraphRequest(genpy.Message):
_md5sum = "<API key>"
_type = "tf2_msgs/FrameGra... |
#ifndef UI_MAINWINDOW_H
#define UI_MAINWINDOW_H
#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QFrame>
#include <QtGui/QGridLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QMainWindow>
#include <QtGui/QMenuBar>... |
#ifdef HAVE_OPENSSL
#include <openssl/md5.h>
#elif !defined(_MD5_H)
#define _MD5_H
/* Any 32-bit or wider unsigned integer data type will do */
typedef unsigned int MD5_u32plus;
typedef struct {
MD5_u32plus lo, hi;
MD5_u32plus a, b, c, d;
unsigned char buffer[64];
MD5_u32plus block[16];
} MD5_CTX;
exter... |
function parseCategory(aCategory, aFunction)
{
if(document.location.host == '' || document.location.host == 'localhost' )
var url = 'test.html';
else
var url = <API key>(aCategory);
$.ajax({
type: "GET",
url: url,
dataType:'html',
... |
# coding: utf-8
class EditorController < <API key>
before_filter :authenticate_user!
def index
if params.has_key? 'order'
order = params[:order]
else
order = 'name'
end
if params.has_key? 'show'
show = params[:show]
else
show = 10
end
@texts = case params[:display... |
/**
* Valere Versnip Design
*
* @project MultiSensor_bsp
* @file lum_tsl2561.h
* @author TimB
* @date 21-mei-2016
* @brief Header file for lum_tsl2561.c
*
*/
#ifndef DEF_lum_tsl2561_H
#define DEF_lum_tsl2561_H
#include "../low_level_drivers/lowleveldrivers.h"
#define LUM_TSL2561_VISIBLE 2 ... |
#include "file_utils.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <dirent.h>
#include <errno.h>
#include <string.h>
#include "logging.h"
using ::baidu::common::INFO;
using ::baidu::common::WARNING;
namespace el {
bool Mkdir(const std::string& path) {
const int dir_mo... |
import re
CJDNS_IP_REGEX = re.compile(r'^fc[0-9a-f]{2}(:[0-9a-f]{4}){7}$', re.IGNORECASE)
class Node(object):
def __init__(self, ip, version=None, label=None):
if not valid_cjdns_ip(ip):
raise ValueError('Invalid IP address')
if not valid_version(version):
raise ValueError('I... |
package com.consideredhamster.<API key>.levels.traps;
import com.consideredhamster.<API key>.actors.Actor;
import com.consideredhamster.<API key>.actors.Char;
import com.watabou.noosa.audio.Sample;
import com.consideredhamster.<API key>.visuals.Assets;
import com.consideredhamster.<API key>.Dungeon;
import com.consider... |
Ext.define('User', {
extend: 'Ext.data.Model',
fields: [
{name: 'name', type: 'string',
convert: function(value,record) {
return record.get('name')+' the barbarian');
}
},
{name: 'age', type: 'int'},
{name: 'phone', type: 'string'},
... |
#include "i915_reg.h"
#include "i915_context.h"
#include "i915_debug.h"
#include "i915_batch.h"
#include "util/u_debug.h"
static void
PRINTF(
struct debug_stream *stream,
const char *fmt,
)
{
va_list args;
va_start( args, fmt );
debug_vprintf( fmt, args );
va_end( a... |
module FizzBuzz where
import Control.Monad (mapM_)
fizzbuzz :: (Show a, Integral a) => a -> String
fizzbuzz n = if null s then (show n) else s
where
s = (if (n `mod` 3) == 0 then "Fizz" else "") ++ (if (n `mod` 5) == 0 then "Buzz" else "")
main :: IO ()
main = mapM_ putStrLn $ map fizzbuzz [1..100] |
<!doctype html>
<html>
<head>
<title>Firmware Builder</title>
<meta charset="utf-8" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="./ui/css/bootstrapfirm.min.css" rel="stylesheet">
<link href="./ui/fontAwesome/c... |
package org.hl7.v3;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>DataTypePointInTimeJava
*
* <p>
* <p>
* <pre>
* <simpleType name="DataTypePointInTime">
* <restriction base="{urn:hl7-org:v3}cs">
* <enumeration value="TS"/>
* </restriction>
* ... |
/* [lnZ,wA,pst]=<API key>(Q,H,iEnd)
*
* M.L. 2013-05-24
*
*/
#include <math.h>
#include <stdio.h>
#include "mex.h"
#include "matrix.h"
/* Input Arguments */
#define Q_IN prhs[0]
#define H_IN prhs[1]
#define IEND_IN prhs[2]
/* output arguments */
#define LNZ_OUT plhs[0]
#define WA_OUT p... |
<h1>Profile</h1>
<img [src]="auth.user.picture">
<h2>{{auth.user.nickname}}</h2>
<span>{{auth.user.email}}</span> |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const path = require("path");
const cordova_config_1 = require("../utils/cordova-config");
function LabAppView(req, res) {
return res.sendFile('index.html', {
root: path.join(__dirname, '..', '..', 'lab')
});
}
exports.LabAppVi... |
<?php
/**
* Override to accomodate a value type of 'ZURMO_MODEL_NAME'. This would represent a model 'name' attribute value
* that can be used as a unique identifier to map to existing models. An example is when importing a contact, and
* the account name is provided. If the name is found, then the co... |
angular.module('CareFull', ['ui.router','rzModule']); |
// This file is part of "RapportFraStedet".
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
namespace RapportFraStedet.Models
{
public class RoleModel
{
[Required]
[DataType(DataType.Text)]
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# 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 gettext
_ = gettext.gettext
f... |
@import url(http://fonts.googleapis.com/css?family=Oswald);
@import url(http://fonts.googleapis.com/css?family=Muli:300);
h1
{
font-family: 'Oswald', sans-serif;
font-size: 30px;
text-transform: uppercase;
color: #FFF;
}
/* Centres the page (this could be container)*/
.body {
display:block;
margin:-10px
wid... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
#include "ns3/uinteger.h"
#include "ns3/names.h"
#include "tracker-helper.h"
namespace ns3 {
TrackerHelper::TrackerHelper ()
{
m_factory.SetTypeId (Tracker::GetTypeId ());
SetAttribute ("Port", UintegerValue (9));
SetAttribute ("RemoteAddress... |
{"exchanges":[{"info":[{"onclick":null,"link":"mailto:info@mix-it.net","value":"info@mix-it.net Monica Arensi, General Secretary"},{"onclick":null,"link":null,"value":"39 02 409 15701"},{"onclick":null,"link":"mailto:info@mix-it.net","value":"info@mix-it.net"},{"onclick":"window.open(this.href,'ix-new-window');return f... |
<?php use_helper('DateForm') ?>
<?php echo select_time_tag("turno[hora_inicio]", $turno->getHoraInicio(), array('include_second' => false, '12hour_time' => true));?> |
#include "<API key>.h"
//(*InternalHeaders(<API key>)
#include <wx/font.h>
#include <wx/intl.h>
#include <wx/string.h>
/*! \brief Run the dialogue.
*
* \param aItems wxArrayString&
* \return bool
*
*/
bool <API key>::Execute(wxArrayString &aItems)
{
int i, n;
int ... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import ModalsContainer from '../containers/ModalsContainer'
import { bytesToSize } from '../common'
const Store = window.require('electron-store')
import './ViewSwitcher.css'
class PersonalFiles extends Component {
constructor(props) {
su... |
package com.bukkit.gemo.FalseBook.Cart.utils;
import net.minecraft.server.v1_6_R3.Container;
import net.minecraft.server.v1_6_R3.EntityHuman;
import net.minecraft.server.v1_6_R3.InventoryCrafting;
import net.minecraft.server.v1_6_R3.ItemStack;
public class FBInventory extends InventoryCrafting {
private ItemStack[] ... |
package com.github.bordertech.wcomponents;
import com.github.bordertech.wcomponents.util.Util;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* WVideo is used to display video content on the client.
*
* @a... |
/**
* @file
* Generic MIB tree structures.
*
* @todo namespace prefixes
*/
#ifndef <API key>
#define <API key>
#include "lwip/apps/snmp_opts.h"
#if LWIP_SNMP /* don't build if not configured for use in lwipopts.h */
#include "lwip/ip_addr.h"
#include "lwip/err.h"
#ifdef __cplusplus
extern "C" {
#endif
/* basic ASN... |
#ifndef UI_ZLPROJET_H
#define UI_ZLPROJET_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QButtonGroup>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QMenu>
... |
package com.liferay.micro.maintainance.configuration;
import aQute.bnd.annotation.metatype.Meta;
/**
* @author Rimi Saadou
* @author Laszlo Hudak
*/
@Meta.OCD(
id = "com.liferay.micro.maintainance.configuration.<API key>"
)
public interface <API key> {
@Meta.AD(deflt = "14", required = false)
public int ... |
import numpy as np
import matplotlib.pyplot as plt
import spm1d
#(0) Load dataset:
dataset = spm1d.data.mv1d.cca.Dorn2012()
y,x = dataset.get_data() #A:slow, B:fast
#(1) Conduct non-parametric test:
np.random.seed(0)
alpha = 0.05
two_tailed = False
snpm = spm1d.stats.nonparam.cca(y, x)
snpmi ... |
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Question.order'
db.add_column(u'survey_question', 'order',
self.gf('djang... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_22) on Fri Apr 19 18:20:47 CEST 2013 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
RequestDirector (HttpComponents Client 4.2.5 API)
</TITLE>
<META NAME="keywords" CONTENT="org.apache.http.client.... |
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class home
Inherits System.Windows.Forms.Form
'Form remplace la méthode Dispose pour nettoyer la liste des composants.
<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
... |
package me.ccrama.redditslide.Activities;
import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import java.net.<API key>;
import java.net.URL;
import me.ccrama.redditslide.SettingValues;
public class MakeExternal extends Activity {
@Override
public void onCreate(Bundl... |
#include<bits/stdc++.h>
using namespace std;
#define pii pair<int,int>
#define pip pair<int,pii>
#define ff first
#define ss second
#define FOR(i,n) for(int i=0; i<(int)n ;i++)
#define REP(i,a,n) for(int i=a;i<(int)n;i++)
#define pb push_back
#define mp make_pair
typedef long lon... |
<!DOCTYPE html>
<html>
<head>
<link href="css/modest.css" rel="stylesheet" type="text/css"/>
<title>Bastion User Guide (0.2-SNAPSHOT)</title>
</head>
<body> |
#include <QDebug>
#include <pulse/glib-mainloop.h>
#include <pulse/volume.h>
#include "pulseaudiomixer.h"
#include "client.h"
struct Sink
{
Sink() : index(0), volume{}, muted(false) {}
uint32_t index;
pa_cvolume volume;
bool muted;
};
PulseAudioMixer::PulseAudioMixer(Mixer *m)
: Backend()... |
#!/bin/bash
if [ -z "$1" ]
then
echo "Please give us APIKEY in argument"
exit 1
fi |
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /aria_examples/codetalks/widgets/toolbar/CreatePage.html was not found on this server.</p>
</body></html> |
#!/usr/bin/env python
# Gnuradio Python Flow Graph
# Title: Clock offset corrector
# Generated: Wed Nov 19 08:38:40 2014
from gnuradio import blocks
from gnuradio import filter
from gnuradio import gr
from gnuradio.filter import firdes
import grgsm
import math
class <API key>(gr.hier_block2):
def __init__(self, fc=... |
// @(#)dp_rules.c
// @author Bruno Quoitin (bruno.quoitin@uclouvain.be)
// @date 13/11/2002
// $Id: dp_rules.c,v 1.23 2009-08-04 06:06:10 bqu Exp $
// C-BGP, BGP Routing Solver
// This program is free software; you can redistribute it and/or modify
// (at your option) any later version.
// This program is distributed i... |
<?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
namespace format_theunittest\output\course_format;
use renderable;
use templatable;... |
//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
package configure_test
import (
. "github.com/dhrapson/resembleio/configure"
... |
#define <API key>
#include <glm/gtc/noise.hpp>
#include <glm/gtc/type_precision.hpp>
#include <glm/gtx/raw_data.hpp>
int test_simplex()
{
int Error = 0;
glm::u8vec4 const PixelSimplex2D(glm::byte(glm::abs(glm::simplex(glm::vec2(0.f, 0.f))) * 255.f));
glm::u8vec4 const PixelSimplex3D(glm::byte(glm::abs(glm::... |
package br.org.otus.laboratory.project.builder;
import java.util.ArrayList;
import java.util.List;
import org.bson.Document;
import org.bson.conversions.Bson;
import com.google.gson.GsonBuilder;
public class <API key> {
private ArrayList<Bson> pipeline;
public <API key>() {
this.pipeline = new ArrayList<>();
... |
<?php
class <API key> extends <API key>
{
public function _construct()
{
// Note that the saleproducts_id refers to the key field in your database table.
$this->_init('saleproducts/saleproducts', 'saleproducts_id');
}
} |
#include <string.h>
#include "XEMOutputControler.h"
#include "XEMUtil.h"
// Constructor
XEMOutputControler::XEMOutputControler(){
int64_t i;
_output = NULL;
_nbOutputFiles = maxNbOutputFiles;
for (i=0; i<_nbOutputFiles; i++){
_tabOutputTypes[i] = (XEMOutputType) i;
}
createEmptyFiles();
}
// Constructor... |
package org.ankus.core.repository;
/**
* Persistence Object CRUD Repository.
*
* @author Edward KIM
* @since 0.3
*/
public interface <API key><D, P> {
/**
* .
*
* @param object
* @param
* @param runcase
* @return
*/
int insert(D object);
/**
* .
*
... |
#include "culling.h"
#include "renderer.h"
Culling::Culling (void)
{
}
Culling::~Culling (void)
{
}
void Culling::Frame (void)
{
projmat = mvmat = glm::mat4 (1.0f);
culled = 0;
}
void Culling::SetProjMatrix (const glm::mat4 &mat)
{
projmat = mat;
r->geometry.SetProjMatrix (mat);
}
const glm::mat4 &Culli... |
#include "Function.h"
#include "Entry.h"
namespace instance {
auto Function::lookupParameter(NameView name) const -> OptParameterView {
auto r = parameterScope[name];
if (!r.single()) return {};
return &r.frontValue().get(meta::type<Parameter>);
}
} // namespace instance |
package scheduler
import (
"fmt"
"github.com/jonaz/astrotime"
"os/exec"
"strconv"
"time"
)
func isSunset(latitude float64, longitude float64) bool {
t := astrotime.NextSunset(time.Now(), latitude, longitude)
// tzname, _ := t.Zone()
// fmt.Println(tzname)
// fmt.Printf("The next sunr... |
package greymerk.roguelike.dungeon.settings;
import java.util.Collection;
import java.util.Random;
import greymerk.roguelike.config.RogueConfig;
import greymerk.roguelike.util.WeightedChoice;
import greymerk.roguelike.util.WeightedRandomizer;
import greymerk.roguelike.worldgen.Coord;
import greymerk.roguelike.worldgen.... |
package de.uni_koeln.spinfo.textengineering.ir.eval;
import java.util.ArrayList;
import java.util.List;
import de.uni_koeln.spinfo.textengineering.ir.basic.Work;
import de.uni_koeln.spinfo.textengineering.ir.boole.PositionalIndex;
import de.uni_koeln.spinfo.textengineering.ir.preprocess.Preprocessor;
/*
* Erstellung e... |
// -*- C++ -*- generated by wxGlade 0.6.5 on Sun Sep 23 22:52:41 2012
#include "<API key>.h"
// begin wxGlade: ::extracode
// end wxGlade
#include "wx/wxcommon.h"
<API key>::<API key>(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long style):
wxDialog(parent, id, title, po... |
import { check } from "meteor/check";
import processDoc from "./processDoc";
/**
* getDoc
* fetch repo profile from github and store in RepoData collection
* @param {Object} doc - mongo style selector for the doc
* @returns {undefined} returns
*/
function getDoc(options) {
check(options, Object);
// get re... |
class Car {
constructor(posx, posy, width, height, lifeTime, color) {
this.x = posx;
this.y = posy;
this.lifeTime = lifeTime;
this.color = color;
this.width = width;
this.height = height;
this.im = new Image();
this.im.src = carSprite.src;
}
dr... |
<html>
<head>
<title>Vanilla</title>
<script src="lib/jquery-1.8.3.min.js"></script>
<script src="lib/URI.js"></script>
<script src="js/main.js"></script>
<script src="js/cookies.js"></script>
<script src="js/background.js"></script>
</head>
<body>
</body>
</html> |
package ahmad.aghazadeh.<API key>.logic;
import android.databinding.BindingAdapter;
import android.databinding.BindingConversion;
import android.graphics.Bitmap;
import android.graphics.Typeface;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.os.Build;
import a... |
# Load config.
source ./config.defaults.sh
if [ -f "./config.sh" ]; then
source ./config.sh
else
echo "You have no config.sh. Copy config.defaults.sh to config.sh, change the passwords and try again." && exit 1;
fi
[ "$(docker ps | grep phpmyadmin)" ] && docker stop phpmyadmin
[ "$(docker ps -a | grep phpmyadmin)" ... |
require 'rails/generators/named_base'
require 'rails/generators/resource_helpers'
module Rails
module Generators
class JbuilderGenerator < NamedBase
include Rails::Generators::ResourceHelpers
source_root File.expand_path('../templates', __FILE__)
argument :attributes, type: :array, default: [], ... |
<?php
define('<API key>', 'United States Postal Service');
define('<API key>', 'United States Postal Service<br><br>You will need to have registered an account with USPS at http:
define('<API key>', 'Parcel Post');
define('<API key>', 'Priority Mail');
define('<API key>', 'Express Mail');
define('<API key>', 'An error ... |
#!/bin/bash
FILES=$(find . -type f -name '*.md')
for file in $FILES
do
filename="${file%.*}"
pandoc $file -f markdown -t html5 -c assets/css/github.css -s -o $filename.html
done |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Dat.V1.Dto.Bom.Exceptions
{
public class TransportException : BomException
{
public TransportException() : base() { }
public TransportException(string message) : base(mes... |
#include<bits/stdc++.h>
using namespace std;
int main()
{
freopen("in.txt","r",stdin);
int tc,n;
int A[1000],B[1000];
scanf("%d",&tc);
while(tc
{
scanf("%d",&n);
int sum=0;
for(int i=0;i<n;i++)
{
scanf("%d",&A[i]);
int j=i;
B[i]... |
var _engine_core_8h =
[
[ "EngineCore", "<API key>.html", "<API key>" ],
[ "<API key>", "_engine_core_8h.html#<API key>", null ]
]; |
(function () {
'use strict';
angular.module('ph.account')
.directive("<API key>", ['$q', '$http', function ($q, $http) {
return {
restrict: "A",
require: "ngModel",
link: function (scope, element, attributes, ngModel) {
ngModel.$asyncValidators.isUnique = function (modelV... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
<form class="form-... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *fp;
char ch, filename[50];
int c = 0, n = 0;
printf("Please enter the name of the file you wish to open.\n");
fgets(filename, 50, stdin);
fp = fopen("Hello.txt", "r"); // Opens file in read mode
if(fp == NULL)
{
perror("Er... |
package com.ingenitor.blockenvy.proxy;
import cpw.mods.fml.common.event.<API key>;
/**
* @author ingenitor
*
*/
public abstract class CommonProxy implements IProxy {
} |
function drawBall() {
ctx.beginPath();
ctx.arc(x, y, ballRadius, 0, Math.PI*2);
ctx.fillStyle = color;
ctx.strokeStyle = "#FF0000";
ctx.stroke();
ctx.fill();
ctx.closePath();
} |
package com.gustavomaciel.enterprise;
import com.badlogic.gdx.utils.Array;
import com.gustavomaciel.enterprise.CollisionGroups.CollisionGroup;
public class CollisionResolver {
public static void checkAndResolve(Array<Entity> entities) {
for(int i = 0, s = entities.size; i < s; ++i) {
Entity firs... |
<?php defined("_LIVE_NEXUS") or die ("<h1>Direct access to this file is DENIED!</h1>");
// Dependancies
$container = $app->getContainer();
// Monolog Logger
$container['logger'] = function($c) {
$logger = new \Monolog\Logger('my_logger');
$file_handler = new \Monolog\Handler\StreamHandler("../logs/app.log");
$log... |
#ifndef _rationalrose_h
#define _rationalrose_h
#include "rose_redefines.h"
class <API key>: public COleDispatchDriver
{
IStream* pStream;
public:
<API key>() {pStream=NULL;}
<API key>(LPDISPATCH pDispatch) : COleDispatchDriver(pDispatch) {pStream=NULL;}
<API key>(const <API key>& dispatchSrc) : COleDispatchDri... |
#include "qcom_common.h"
#include "threadx/tx_api.h"
#include "qcom_cli.h"
#include "threadxdmn_api.h"
#include <aj_target.h>
#include "aj_status.h"
#include "aj_wifi_ctrl.h"
TX_THREAD host_thread;
#ifdef REV74_TEST_ENV4
#define BYTE_POOL_SIZE (2*1024 + 128 )
#define <API key> (2 * 1024 ) /* small stack for pseudo-Ho... |
// Decompiled with JetBrains decompiler
// Type: System.Xml.Serialization.<API key>
// Assembly: System.Xml, Version=4.0.0.0, Culture=neutral, PublicKey<API key>
// MVID: <API key>
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.Xml.dll
using System;
using System.Collections;
using System.Glo... |
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
#include "TempDirectory.h"
#include "ResourceFinder.h"
#include "system/System.h"
#include "Exceptions.h"
#include <QDir>
#include <QFile>
#include <QMutexLocker>
#include <QSettings>
#include <iostream>
#include <cassert>
#include <unistd.h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.