answer stringlengths 15 1.25M |
|---|
CREATE TABLE IF NOT EXISTS passport.bot (
id UUID NOT NULL DEFAULT gen_random_uuid(),
passport_id UUID REFERENCES passport.user (id) ON UPDATE CASCADE ON DELETE CASCADE,
updated_at TIMESTAMP NOT NULL DEFAULT current_timestamp,
created_at TIMESTAMP DEFAULT current_timestamp,
activated BOOLEAN NOT NULL DEFAULT false,
ema... |
:global {
.Select {
position: relative;
}
.Select,
.Select div,
.Select input,
.Select span {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.Select.is-disabled > .Select-control {
background-color: #f9f9f9;
}
.Select.is-disabled > .Select-... |
#ifndef QMODBUSCLIENT_H
#define QMODBUSCLIENT_H
#include <QtCore/qobject.h>
#include <QtSerialBus/qmodbusdataunit.h>
#include <QtSerialBus/qmodbusdevice.h>
#include <QtSerialBus/qmodbuspdu.h>
#include <QtSerialBus/qmodbusreply.h>
QT_BEGIN_NAMESPACE
class <API key>;
class Q_SERIALBUS_EXPORT QModbusClient : public QModbu... |
<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"DTD/xhtml1-transitional.dtd">
<html xmlns="http:
<head>
<title>lxml.etree.LxmlRegistryError</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script type="text/javascript" src="epydo... |
<?php
// namespace Tests\AppBundle\Controller;
// use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
// class <API key> extends WebTestCase
// public function testIndex()
// $client = static::createClient();
// $crawler = $client->request('GET', '/');
// $this->assertEquals(200, $client->g... |
<?php
/**
* Modul pro konverzi textu
*
* @category Module
* @package Module
* @author onovy <onovy@nomi.cz>
*/
// Security
if (!defined('ONOVY_PHP_LIB')) die;
define('MODULE_I2HTML',1);
/**
* Konverze textu na HTML
*
* @param $input - vstupni text
* @param $typo - provadet typografickou upravu? tr... |
#include <QApplication>
#include "qtreversimenudialog.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
ribi::reversi::QtReversiMenuDialog w;
w.show();
return a.exec();
} |
<?php
namespace Code\Base\Paradigm\Helpers;
use Jarvis;
/**
* String utilities
*
* String related functions, particularly around token substitution
*
* PHP version 7.2+
*
* @category Utility
* @package Framework
* @author Rick Myers rick@enicity.com
* @since File available since Release 1.0.0
*... |
package abd.p1.model;
import java.util.Date;
import javax.persistence.*;
@Entity
public class MensajeAmistad extends Mensaje{
@Column
private boolean aceptado;
public MensajeAmistad(){
super();
}
public MensajeAmistad(Usuario usu, Usuario amigo){
super(usu, amigo);
aceptado =... |
<!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"/>
<title>GNU Radio 3.6.1 C++ API: gri_add_const_ss.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.... |
# CHIP-8_Emulator
An emulator for the CHIP-8 VM |
package com.mucommander.ui.action.impl;
import com.mucommander.ui.action.<API key>;
import com.mucommander.ui.action.ActionCategory;
import com.mucommander.ui.action.ActionDescriptor;
import com.mucommander.ui.action.MuAction;
import com.mucommander.ui.main.MainFrame;
import com.mucommander.ui.main.table.views.TableVie... |
#ifndef <API key>
#define <API key>
#ifndef SHAREMIND_INTERNAL_
#error including an internal header!
#endif
#include <sharemind/comma.h>
#include <sharemind/extern_c.h>
#include <sharemind/recursive_locks.h>
#include <sharemind/refs.h>
#include <sharemind/tag.h>
#include <stdbool.h>
#include "facilitymap.h"
#include "l... |
#pragma once
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN
#endif
#include "targetver.h"
#define <API key>
#define _AFX_ALL_WARNINGS
#include <afxwin.h>
#include <afxext.h>
#include <afxdisp.h>
#ifndef _AFX_NO_OLE_SUPPORT
#include <afxdtctl.h>
#endif
#ifndef <API key>
#include <afxcmn.h>
#endif // <API key>
#include <afxco... |
<?php
require_once 'presets.php';
$config = new \Ufocms\Frontend\Config();
$db = new \Ufocms\Frontend\Db($debug);
$xsm = new \Ufocms\Frontend\XmlSitemap($config, $db, $debug);
header('Content-type: text/html; charset=utf-8');
$xsm->generate(); |
# encoding: utf-8
module Gis::Model::Base::Status
def state_select
[["","enabled"],["","disabled"]]
end
def state_show
select = state_select
select.each{|a| return a[0] if a[1] == state}
return nil
end
def user_kind_select
[["",1],["",2]]
end
def user_kind_show
select = user_kind_s... |
#include <stdint.h>
#include <sched.h>
#include <kernel.h>
#include <kernel_intern.h>
#include <clist.h>
#include <bitarithm.h>
//#define ENABLE_DEBUG
#include <debug.h>
volatile int num_tasks = 0;
volatile unsigned int <API key>;
volatile tcb_t *sched_threads[MAXTHREADS];
volatile tcb_t *active_thread;
volatile int th... |
#include <linux/kernel.h>
#include <linux/param.h>
#include <linux/init.h>
#include <linux/io.h>
#include <asm/machdep.h>
#include <asm/coldfire.h>
#include <asm/mcfsim.h>
#include <asm/mcfclk.h>
DEFINE_CLK(pll, "pll.0", MCF_CLK);
DEFINE_CLK(sys, "sys.0", MCF_BUSCLK);
DEFINE_CLK(mcftmr0, "mcftmr.0", MCF_BUSCLK);
DEFINE... |
#include "../../tag.h"
#include "../../util.h"
using namespace gloox;
#include <stdio.h>
#include <locale.h>
#include <string>
#include <cstdio> // [s]print[f]
int main( int /*argc*/, char** /*argv*/ )
{
int fail = 0;
std::string name;
Tag *t = new Tag( "toe" ); t->addAttribute( "foo", "bar" );
Tag *u = new Tag... |
// This file is part of Luola2.
// Luola2 is free software: you can redistribute it and/or modify
// (at your option) any later version.
// Luola2 is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#ifndef THREADPOOL_H
#define THREADPOOL_H
#include <queue... |
/* C <> Pascal string conversion macros from SNIPPETS 'C' library
C <> Pascal string copy macros by Damien Guard
Convert a string:
Pas2C(string) to convert string from Pascal to C (ie. after READING)
C2Pas(string) to convert string to Pascal from C (ie. before WRITING)
Copy a string:
cpyPas2C(destinat... |
use anyhow::Result;
mod common;
use common::cache::*;
use common::common_args::*;
use common::fixture::*;
use common::input_arg::*;
use common::output_option::*;
use common::process::*;
use common::program::*;
use common::target::*;
use common::test_dir::*;
const USAGE: &str = concat!(
"cache_restore ",
include... |
#!/bin/bash
set -e
bold() {
printf "\033[1m%s\033[0m\n" "$*"
}
dim() {
printf "\033[2m%s\033[0m\n" "$*"
}
delete_gcda_files() {
bold "Deleting .gcda files . . .";
printf "\033[2m";
find . -name '*.gcda' -delete -print | sed -e 's:./::'
printf "\033[0m";
}
if [ -x "$(command -v ccache)" ]; then
bold "u... |
using System;
namespace Server.Items
{
public class DaemonBloods : Item
{
public override int LabelNumber { get { return 1023965; } } // Daemon Blood
public override bool ForceShowProperties { get { return ObjectPropertyList.Enabled; } }
[Constructable]
public DaemonBloods()
... |
# RCSId: $Id: RegViewBdCfg.pm,v 1.9 2009/12/14 10:58:18 lutscher Exp $
# Revision : $Revision: 1.9 $
# Related Files : Reg.pm
# Author(s) : Thorsten Lutscher
# Project : MIX
# Creation Date : 25.03.2009
# Contents : Module for creating command files for chip backdoor
# ... |
namespace Maticsoft.ZipLib.Tar
{
using System;
using System.IO;
public class TarBuffer
{
private int blockFactor = 20;
public const int BlockSize = 0x200;
private int currentBlockIndex;
private int currentRecordIndex;
public const int DefaultBlockFactor = 20;
... |
package classifiers;
import java.io.File;
import java.io.PrintWriter;
import Utils.Utilities;
import stats.Statistics;
import tablInEx.Table;
import weka.classifiers.misc.<API key>;
import weka.core.Attribute;
import weka.core.DenseInstance;
import weka.core.FastVector;
import weka.core.Instance;
import weka.core.Insta... |
package es.task.switcher.model.entities;
import com.mobandme.ada.Entity;
import com.mobandme.ada.annotations.Table;
import com.mobandme.ada.annotations.TableField;
@Table(name = "Category")
public class Category extends Entity{
@TableField(name = "name", datatype = DATATYPE_STRING, maxLength = 100)
public Strin... |
#include <CoreGraphics/CGAffineTransform.h>
#include <math.h>
#include <string.h>
#include <dropins/countof.h>
////////////////////////////////////////////////////////////////// CGAffineTransform
const CGAffineTransform <API key>={1,0,0,1,0,0};
CGAffineTransform <API key>(CGFloat tx,CGFloat ty) {
CGAffineTransform ... |
import re
import sys
import whoisSrvDict
import whoispy_sock
import parser_branch
OK = '\033[92m'
FAIL = '\033[91m'
ENDC = '\033[0m'
def query(domainName):
rawMsg = ""
tldName = ""
whoisSrvAddr = ""
regex = re.compile('.+\..+')
match = regex.search(domainName)
if not match:
# Invalid dom... |
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.05.02 at 06:10:56 PM NZST
package mapContents;
import java.math.BigInteger;
import javax... |
#include "../../pyKey.h"
#pragma hdrstop
#include "pyHeekGame.h"
#include "pfGameMgr/pfGameMgr.h"
// Base Heek game client class
pyHeekGame::pyHeekGame(): pyGameCli() {}
pyHeekGame::pyHeekGame(pfGameCli* client): pyGameCli(client)
{
if (client && (client->GetGameTypeId() != kGameTypeId_Heek))
gameClient = n... |
package org.cgiar.ccafs.marlo.data.model;
// Generated Jun 20, 2018 1:50:25 PM by Hibernate Tools 3.4.0.CR1
import org.cgiar.ccafs.marlo.data.IAuditLog;
import com.google.gson.annotations.Expose;
/**
* <API key> generated by hbm2java
*/
public class <API key> extends <API key> implements java.io.Serializable, IAuditL... |
layout: aqueduct-script
permalink: /<API key>/ssg/aqueduct/bash/fix/
name: <API key>
title: Set Permissions on the /var/log/httpd/ Directory
ident: CCE-27150-2
severity: low
rule_id: <API key>
<pre>
#!/bin/bash -u
set -e
# This software was developed by Tresys Technology LLC
# with U.S. Government sponsorship.
# This l... |
Full-Stack (Website, Database, UI, Front-end, Back-end) Test and Tutorials |
package com.mrlolethan.butteredpd.effects.particles;
import com.watabou.noosa.particles.Emitter;
import com.watabou.noosa.particles.Emitter.Factory;
import com.watabou.noosa.particles.PixelParticle;
import com.watabou.utils.Random;
public class SmokeParticle extends PixelParticle {
public static final Factory FACTO... |
from vectores_oo import Vector
x = input('vector U componente X= ')
y = input('vector U componente X= ')
U = Vector(x,y)
m = input('vector V magnitud= ')
a = input('vector V angulo= ')
V = Vector(m=m, a=a)
E = input('Escalar= ')
print "U=%s" % U
print "V=%s" % V
print 'UxE=%s' % U.x_escalar(E)
print 'VxE=%s' % V.x_esca... |
<?php
include( "config.php" );
//Borramos todo lo de la tabla de calificaciones.
$sql = " TRUNCATE TABLE tb_calificaciones; ";
$conexion = mysqli_connect( $servidor, $usuario, $clave, $bd );
$resultado = $conexion->query( $sql );
$sql .= " ALTER TABLE tb_calificaciones AUTO_INCREMENT = 1; ";
... |
pref('devcache.debug', false);
pref('devcache.enabled', true);
pref('devcache.patterns', ''); |
#include "cwEdgeTile.h"
//Qt includes
#include <QDebug>
cwEdgeTile::cwEdgeTile()
{
}
void cwEdgeTile::generate() {
generateVertex();
generateIndexes();
}
void cwEdgeTile::generateIndexes() {
QVector<unsigned int> tempIndexes;
//Create all the geometry for normal geometry
int numVertices = <API key>... |
#!/usr/bin/env python
# Unix SMB/CIFS implementation.
# Based on the original in EJS:
# 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... |
# ccm_r
R repository for the "Cali Come Mejor" project.
# What would I find here?
In this repository, you can have access to a set of functions, scripts and routines for extracting and processing information about
food consumption in Cali. All the data come from the DANE's (Colombian National Administrative Department ... |
<!DOCTYPE html>
<html lang="en-US">
<!--* Generated from PreTeXt source *-->
<!--* on 2021-03-10T19:26:11-08:00 *-->
<!--* A recent stable commit (2020-08-09): *-->
<!--* <SHA1-like> *-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="robots" content="n... |
// MessageEventArgs.cs
// Authors:
// Alan McGovern alan.mcgovern@gmail.com
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// permit persons to whom the Sof... |
package com.ftninformatika.bisis.opac.search;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
/**
* @author badf00d21 15.8.19.
*/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class Sort {
private SortType type;
private Boolean as... |
'use strict';
const nodemailer = require('nodemailer');
var jsonfile = require('jsonfile')
var file = './server/config/mailSettings.json';
var fs = require('fs');
var transporter;
//var passwords = require('../config/passwords');
var scriviFileDummy = function() {
var settaggi = {
host: 'smtp.example.org',
... |
# Flowgraphs for DVB-S2 Multimedia Beacon Demos
These are GNU Radio Companion flowgraphs used to demonstrate prototype
DVB-S2 multimedia beacons.
The parameters used, unless noted otherwise:
- 5,000,000 symbols per second
- 16APSK modulation
- rate 9/10 coding
- pilots on
That produces a nominal bit rate of 17,413,400 ... |
#include "stdafx.h"
#include "FDMCustomized.h"
#include "Dlg_Banner.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CDlg_Banner::CDlg_Banner(CWnd* pParent )
: CDialog(CDlg_Banner::IDD, pParent)
{
//{{AFX_DATA_INIT(CDlg_Banner)
m_strFile = _T("");
m_strU... |
package jbse.tree;
public final class <API key> extends <API key> {
private static final String WRONG_ID = "XNEWARRAY_Wrong";
private static final int HASH_CODE = 2;
<API key>(boolean isConcrete) {
super(isConcrete, (isConcrete ? 1 : HASH_CODE));
}
@Override
public boolean ok() {
... |
#ifndef OPTPARSE_H
#define OPTPARSE_H
#ifndef OPTPARSE_API
# define OPTPARSE_API
#endif
struct optparse {
char **argv;
int permute;
int optind;
int optopt;
char *optarg;
char errmsg[64];
int subopt;
};
enum optparse_argtype {
OPTPARSE_NONE,
OPTPARSE_REQUIRED,
OPTPARSE_OPTIONAL
}... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml... |
<?php
$class = '';
if(isset($params['class'])){
$class = $params['class'];
}
if(empty($params['title'])){
return;
}
?>
<div class="ossn-widget <?php echo $class;?>">
<div class="widget-heading"><?php echo $params['title'];?></div>
<div class="widget-contents">
<?php echo $params['contents... |
#include "Sub.h"
// manual_init - initialise manual controller
bool Sub::manual_init()
{
// set target altitude to zero for reporting
pos_control.set_alt_target(0);
// attitude hold inputs become thrust inputs in manual mode
// set to neutral to prevent chaotic behavior (esp. roll/pitch)
<API key>()... |
<?php
class <API key> extends Controller {
public function index() {
$this->language->load('product/search');
$this->load->model('catalog/category');
$this->load->model('catalog/product');
if (isset($this->request->get['limit']) && ((int)$this->request->get['limit'] < 1)) {
... |
// This file is part of OVITO (Open Visualization Tool).
// OVITO is free software; you can redistribute it and/or modify
// (at your option) any later version.
// OVITO is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#include <plugins/particles/P... |
#ifndef XIA_COMMON_H
#define XIA_COMMON_H
#include <string.h>
#include <math.h>
/** Constants **/
/** Typedefs **/
typedef unsigned char byte_t;
typedef unsigned char boolean_t;
typedef unsigned short parameter_t;
typedef unsigned short flag_t;
/** MACROS **/
#define TRUE_ (1 == 1)
#define FALSE_ (1 == 0)
#define UN... |
package org.medankulinar.mgr.downloader;
/**
* This class establishes a connection and downloads the data for each entry in
* its todo list one after another.
*/
public interface DownloadManager {
/**
* Possible state of this Manager
*/
enum <API key> {
OnLine, //manage downlad request
... |
package de.voidnode.trading4j.<API key>;
import java.time.Instant;
import java.util.Optional;
import de.voidnode.trading4j.api.Broker;
import de.voidnode.trading4j.api.ExpertAdvisor;
import de.voidnode.trading4j.api.Failed;
import de.voidnode.trading4j.api.OrderEventListener;
import de.voidnode.trading4j.domain.marketd... |
// Generated from /mnt/hdd/Programming/Projects/Groovy/intellidots/src/main/antlr/R.g4 by ANTLR 4.2.2
package ua.edu.hneu.ast.parsers;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.tree.*;
import java.util.List;
@SuppressWarnings({"all... |
Relevant Articles:
- [Guide to Selenium with JUnit / TestNG](http:
- [Testing with Selenium/WebDriver and the Page Object Pattern](http: |
package com.preferanser.webtest;
import com.preferanser.shared.domain.Card;
import com.preferanser.webtest.requirements.Application;
import net.thucydides.core.annotations.Story;
import org.junit.Test;
import static com.preferanser.shared.domain.TableLocation.*;
@Story(Application.Table.Cards.Presence.class)
public cla... |
package jchess.game;
import jchess.eventbus.events.*;
import net.engio.mbassy.listener.Handler;
@SuppressWarnings("UnusedDeclaration")
public interface IOSystem {
@Handler
void handleSelectEvent(SelectEvent selectEvent);
@Handler
void <API key>(UpdateBoardEvent updateBoardEvent);
@Handler
void <... |
#Makefile criado por Lucas Alexandre Soares, adaptado por Rafael Augusto Monteiro
# Project name
NAME=Sensor
# Directories
INCDIR=include
# LIBDIR=lib
BLDDIR=build
SRCDIR=src
OBJDIR=$(SRCDIR)/obj
DEBUGGER=
DBGFLAGS=-v --leak-check=full --show-leak-kinds=all --read-var-info=yes --track-origins=yes
# Search for source fi... |
<h1>Root-Checker</h1>
<a href="https:
<p>This application will not root your device but serves as a tool to verify your root access. When you run the application if you get a check mark this means you have root access and if you get an 'X' you do not. I can not guarantee that the application will be 100% accurate.
I ha... |
# cvDetect : Simple OpenCV Image/Webcam Detections for R
Simple R package for OpenCV face/hand/finger detection demo, with the help of [ROpenCVLite](https://github.com/swarm-lab/ROpenCVLite) and Rcpp packages. Currently Windows only.
(Also check http://steve-chen.tw/?p=737 (Traditional Chinese page) )
 any later version.
# Myelin is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
import ctypes
from type import Type
# get libra... |
package pl.edu.agh.idziak.asw.common;
import com.google.common.base.Preconditions;
public class Pair<X, Y> {
private final X one;
private final Y two;
Pair(X one, Y two) {
this.one = Preconditions.checkNotNull(one);
this.two = Preconditions.checkNotNull(two);
}
public static <X, Y> P... |
from chiplotle.geometry.shapes.path import path
from chiplotle.geometry.transforms.<API key> \
import <API key>
def line_displaced(start_coord, end_coord, displacements):
'''Returns a Path defined as a line spanning points `start_coord` and
`end_coord`, displaced by scalars `displacements`.
The number o... |
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include <platform.h>
#include "system.h"
#include "gpio.h"
#include "sensors/sensors.h" // FIXME dependency into the main code
#include "sensor.h"
#include "accgyro.h"
#include "adc.h"
#include "adc_impl.h"
void adcInit(drv_adc_config_t *init)
{
ADC_Init... |
@import url("https://fonts.googleapis.com/css?family=Poppins");
@import url("https://fonts.googleapis.com/css?family=Lato:300,400,700");
@font-face {
font-family: 'ARBONNIE';
src: url("../fonts/ARBONNIE.ttf") format("truetype"); }
.<API key> {
display: flex; }
.<API key> > * {
flex: 1 1 auto; }
.addictiv-ro... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="pt">
<head>
<!-- Generated by javadoc (1.8.0_102) on Mon May 01 18:30:53 BRT 2017 -->
<title>o3smeasures.popup.actions Class Hierarchy</title>
<meta name="date" content="2017-05-01">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"... |
"use strict";
var os = require("os");
var fs = require('fs');
var settings = require("../config.js").settings;
exports.module = function() {
this.onCommand_help = function(nick, command) {
var chan = this.channel;
fs.readFile('./package.json', 'utf-8', function(err, data) {
if (!err) {
... |
import unittest
from bolt.discord.permissions import Permission
class TestPermission(unittest.TestCase):
def <API key>(self):
expected = ['MANAGE_WEBHOOKS', 'USE_EXTERNAL_EMOJIS']
permission = Permission(['MANAGE_WEBHOOKS', 'USE_EXTERNAL_EMOJIS'])
actual = permission.to_list()
self.a... |
#ifndef FLOATINPUTITEM_H
#define FLOATINPUTITEM_H
#include "AShaderInputItem.h"
class FloatInputItem : public AShaderInputItem
{
public:
FloatInputItem(const std::string& name);
~FloatInputItem();
public:
GLfloat getValue() const;
void setValue(GLfloat value);
public:
virtual void load();
virtu... |
<?php
//id208816
$alipay_config['partner'] = 'Your Infomation';
$alipay_config['key'] = 'Your Infomation';
//.pen
$alipay_config['private_key_path'] = dirname(__FILE__) . '/../key/rsa_private_key.pem';
//.pen
$alipay_config['ali_public_key_path']= dirname(__FILE__) . '/../key/alipay_public_key.pem'... |
import requests
import hashlib
import json
import random
import sys
class ApiItemAmount(object):
def __new__(self, item_type, amount):
return {"type": item_type, "amount": amount}
class SagaAPI(object):
secret = ""
episodeLengths = {}
apiUrl = ""
clientApi = ""
unlockLevelItemId = -1
... |
package com.bytezone.diskbrowser.visicalc;
class Asin extends ValueFunction
{
Asin (Cell cell, String text)
{
super (cell, text);
assert text.startsWith ("@ASIN(") : text;
}
@Override
public double calculateValue ()
{
return Math.asin (source.getDouble ());
}
} |
package com.harium.keel.filter.selection.skin;
import com.harium.keel.core.helper.ColorHelper;
import com.harium.keel.core.strategy.SelectionStrategy;
import com.harium.keel.filter.selection.<API key>;
/**
* Based on: Nusirwan Anwar bin Abdul Rahman, Kit Chong Wei and John See
* RGB-H-CbCr Skin Colour Model for Human... |
#!/usr/bin/python3
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
from sklearn.cluster import KMeans
from sklearn import datasets
from PIL import Image, ImageChops
from scipy.spatial.distance import cdist
import matplotlib.pyplot as plt
from random impor... |
robocode-gp
========
A homebrewed genetic programming application for evolving Robocode robots.
Video: http:
This project evolves java source code using genetic programming.
A copy of Robocode (free) is required for this application to work.
Robocode: http://robocode.sourceforge.net/
You'll need to update the file path... |
package com.mkulesh.micromath.properties;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.os.Parcel;
import android.os.Parcelable;
import com.mkulesh.micromath.formula.FormulaList;
import com.mkulesh.micromath.math.AxisTypeConverter;
import com.mkulesh.micromath.plus.R;
import org.x... |
from math import sqrt
from collections import defaultdict, Counter
from fractions import Fraction
def reverse_erathos(n):
d = defaultdict(set)
for i in range(2, n + 1):
if i not in d:
j = 2 * i
while j <= n:
d[j].add(i)
j += i
return d
def toti... |
# This file is part of eos.
# eos is free software: you can redistribute it and/or modify
# (at your option) any later version.
# eos is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
from sqlalchemy import Column, String, Integer, Boolean, ForeignKey, Ta... |
package net.epsilony.mf.model.search.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
/**
* @author Man YUAN <epsilonyuan@gmail.com>
*
*/
@Configuration
@Import({
SearcherBaseConfig.class,
<API key>.class,
<API key>.cla... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
<API key>: scrape_index
- scrapekit</title>
<meta name="description" content="">
<link... |
using System.Collections.Generic;
using CacheUtils.TranscriptCache.Comparers;
using ErrorHandling.Exceptions;
using VariantAnnotation.Interface.AnnotatedPositions;
namespace CacheUtils.Commands.GFF
{
public static class InternalGenes
{
public static IDictionary<IGene, int> CreateDictionary(IGene[] genes... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_131) on Mon May 29 22:14:24 CST 2017 -->
<title>Uses of Package org.cripac.isee.vpe</title>
<meta name="date" content="2017-05-29">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" ... |
<!DOCTYPE html>
<html>
<head>
<title>jQuery DOM</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
</head>
<body>
<div>
<h2>Movies to watch</h2>
<ul id="movieList">
<li id="movie1">Snowden</li>
<li id="movie2">Assassin's Creed</li>
<l... |
#ifndef _SUNLINSOL_SPFGMR_H
#define _SUNLINSOL_SPFGMR_H
#include <sundials/<API key>.h>
#include <sundials/sundials_matrix.h>
#include <sundials/sundials_nvector.h>
#ifdef __cplusplus /* wrapper to enable C++ usage */
extern "C" {
#endif
/* Default SPFGMR solver parameters */
#define <API key> 5
#define <API key> ... |
package org.cleverframe.sys.controller;
import org.cleverframe.common.controller.BaseController;
import org.cleverframe.common.mapper.BeanMapper;
import org.cleverframe.common.persistence.Page;
import org.cleverframe.common.vo.response.AjaxMessage;
import org.cleverframe.sys.SysBeanNames;
import org.cleverframe.sys.Sys... |
use printspool_machine::components::ControllerConfig;
use super::*;
use crate::gcode_parser::parse_gcode;
pub fn send_serial(
effects: &mut Vec<Effect>,
gcode_line: GCodeLine,
context: &mut Context,
is_polling: bool,
) {
// Allow for a byte of spacing between receiving and sending over the serial po... |
#!/usr/bin/perl -w
use strict;
use warnings;
(@ARGV > 1) or die "Need at least 2 integers, $!";
my $gcd = pop @ARGV;
my $lcm = $gcd;
while (my $value = pop @ARGV) {
$gcd = gcd($gcd, $value);
$lcm = $lcm * $value / gcd($lcm, $value);
}
print "GCD is $gcd\n";
print "LCM is $lcm\n";
sub gcd {
my ($u, $v) = @_;
my ... |
/* eslint-env node */
import { JSDOM } from 'jsdom';
const html = `<body>
<div id="test_player" data-vimeo-id="2"></div>
<div class="multiple">
<iframe class="two" src="https://player.vimeo.com/video/2"></iframe>
<iframe class="one" src="https://player.vimeo.com/video/76979871"></iframe>
</d... |
Vue.component('snackbar', require('./components/material/snackbar.vue'));
Vue.component('show-snackbar', require('./components/material/show-snackbar.vue')); |
insert into we_menu (WE_MENU_IDX, WE_MENU_NAME, WE_MENU_ORDER_IDX, WE_MENU_PARENT_IDX, WE_MENU_DEPTH, WE_MENU_URL, WE_USE_YN, WE_MENU_TYPE, WE_ACCESS_LEVEL, WE_MENU_GROUP) values('1','Wiki','1','0','1','','Y','S','0',NULL);
insert into we_menu (WE_MENU_IDX, WE_MENU_NAME, WE_MENU_ORDER_IDX, WE_MENU_PARENT_IDX, WE_MENU_D... |
package com.technode.terrafirmastuff.core.proxy;
import com.bioxx.tfc.api.Tools.ChiselManager;
import com.technode.terrafirmastuff.handler.ServerTickHandler;
import com.technode.terrafirmastuff.tileentity.TEOilLampMod;
import com.technode.terrafirmastuff.tools.ChiselMode_Chiseled;
import com.technode.terrafirmastuff.to... |
require 'test_helper'
class GroupPolicyTest < ActiveSupport::TestCase
def test_scope
end
def test_create
end
def test_show
end
def test_update
end
def test_destroy
end
end |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.