answer stringlengths 15 1.25M |
|---|
#ifndef __DEREF_H__
#define __DEREF_H__
/* TLS: Bao changed these derefs to handle attributed variables, since
* a reference chain can, in principle, have a chain of var pointers
* followed by a chain of attv pointers, ending in a free variable.
* Actually, the code here is somewhat more general, and allows more
... |
// 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
;
(function ($) {
$.booleanEditor = {
defaults: {
rules: [],... |
Gumbe is music content webapp that provide Sierra Leone to quickly access Salone music online. This app is build on # SoundRedux
In an effort to learn es6 and [redux](https:
See it in action at http://soundredux.io
Uses [normalizr](https://github.com/gaearon/normalizr)
1. `npm install`
2. `npm run start`
3. visit `http... |
from flask import json
from unittest.mock import patch, Mock
from urbansearch.gathering.indices_selector import IndicesSelector
from urbansearch.server.main import Server
from urbansearch.server import classify_documents
from urbansearch.server.classify_documents import _join_workers
from urbansearch.workers import Wor... |
#ifndef OM_CAMERA_H
#define OM_CAMERA_H
#include <inttypes.h>
// default pin assignments (nanomoco)
#define OM_DEFSHUTTER1 9 // Trigger 1 pin
#define OM_DEFSHUTTER2 8 // Trigger 2 pin
#define OM_DEFFOCUS1 11 // Focus 1 pin
#define OM_DEFFOCUS2 10 // Focus 2 pin
// callback... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.Composition;
using System.Diagnostics;
using System.Linq;
using dnSpy.Contracts.Debugger;
using dnSpy.Contracts.Debugger.Breakpoints.Code;
using dnSpy.Contracts.Debugger.Code;
using dnSpy.Debugger.Impl;
nam... |
#-*- coding:utf-8 -*-
from findbilibili import *
#funtion name [checkinfo]
#param array
#return string
def checkinfo2(content):
content[1] = content[1].decode('gbk')
key = content[1].encode('utf-8')
if key == '':
return ''
result = animation(key)
return result
#funtion name [animation]
#para... |
# umte
# "uber minimal text editor"
A lightweight python gtk3 text editor.

## Features
* Basic text editor functionality
* Syntax highlighting
* Line numbers
* (in progress)Terminal bottom-window
## Requirements
* *Python 3.1 or higher*
* Gtk3 shtuff |
<?
// If the form told us to generate a route or if this was a pending entry, re-generate a route.
if ($data[$key] == "generate" || (isset($edit_id) && !is_numeric($edit_id))) {
if ($options["not_unique"]) {
$value = $cms->urlify(strip_tags($data[$options["source"]]));
} else {
... |
package qa.AnswerFormation;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Queue;
import qa.IQuestion;
import qa.Utility;
/**
* @author Deepak
*
*/
public class AnswerGenerator implements IAnswerGenerator {
/**
*
* @param <API key>
*/
public Answe... |
#pragma once
#include <libide-foundry.h>
G_BEGIN_DECLS
#define <API key> (<API key>())
<API key> (GbpFlatpakRunner, gbp_flatpak_runner, GBP, FLATPAK_RUNNER, IdeRunner)
GbpFlatpakRunner *<API key> (IdeContext *context,
const gchar *build_path,
... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_25) on Wed Feb 01 21:06:23 MST 2012 -->
<TITLE>
API Help
</TITLE>
<META NAME="date" CONTENT="2012-02-01">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function window... |
#ifndef MININIM_BRICKS_H
#define MININIM_BRICKS_H
/* dungeon vga */
#define DV_BRICKS_00 "data/bricks/dv-00.png"
#define DV_BRICKS_01 "data/bricks/dv-01.png"
#define DV_BRICKS_02 "data/bricks/dv-02.png"
#define DV_BRICKS_03 "data/bricks/dv-03.png"
/* palace vga */
#define PV_BRICKS_00 "data/bricks/pv-00.png"
#define PV... |
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
__author__ = """Co-Pierre Georg (co-pierre.georg@uct.ac.za)"""
import sys
from src.paralleltools import Parallel
# conftools.py is a simple module to manage .xml configuration files
if __name__ == '__main__':
"""
VARIABLES
"""
args = sys.argv
config_... |
layout: default
{{> h2 text='Clickdummy'}}
{{> h3 text='Lucom Formularmanager'}}
<ul>
<li>
<a href="site/referenzformular.html" title="Referenzformular">Referenzformular</a>
</li>
<li>
<a href="test.html" title="Testseite">Test</a>
</li>
</ul> |
// File__Duplicate - Duplication of some formats
// This library is free software: you can redistribute it and/or modify it
// any later version.
// This library is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// Duplication helper for some specific for... |
(function(){function w(a){for(var f=0,p=0,n=0,q,d=a.$.rows.length;n<d;n++){q=a.$.rows[n];for(var e=f=0,b,c=q.cells.length;e<c;e++)b=q.cells[e],f+=b.colSpan;f>p&&(p=f)}return p}function t(a){return function(){var f=this.getValue(),f=!!(CKEDITOR.dialog.validate.integer().call(this,f)&&0<f);f||(alert(a),this.select());ret... |
package com.wisecityllc.cookedapp.fragments;
import android.app.Activity;
import android.support.v4.app.Fragment;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import android.widget.ProgressB... |
#include "keysgeneratorwidget.h"
#include "<API key>.h"
#include "../Global/keygenerator.h"
#include "../Global/keyvalidator.h"
#include <QMessageBox>
KeysGeneratorWidget::KeysGeneratorWidget(QWidget *parent) :
QWidget(parent), ui(new Ui::KeysGeneratorWidget)
{
ui->setupUi(this);
model = new QSqlTableModel;... |
#define CONFIDENCE_LEVEL 68.0 // 68% confidence level used throughout
// 2D ellipse
typedef struct {
double az1, len1; // semi-minor axis km
double len2; // semi-major axis km
} Ellipse2D;
#define DELTA_CHI_SQR_68_2 2.30 // value for 68% conf (see Num Rec, 2nd ed, sec 15.6, table)
// 3D ellipsoid
typed... |
<?php
require "funciones.php";
CopiarArchivo($_REQUEST["txtRuta"]);
?> |
package org.aslab.om.metacontrol.action;
import java.util.HashSet;
import java.util.Set;
import org.aslab.om.ecl.action.Action;
import org.aslab.om.ecl.action.ActionFeedback;
import org.aslab.om.ecl.action.ActionResult;
import org.aslab.om.metacontrol.value.CompGoalAtomTracker;
/**
* <!-- begin-UML-doc -->
* <!-- end... |
$(function() {
$("#childGrid").jqGrid(
{
url : "TBCcnsizePrm.html?getGridData",datatype : "json",mtype : "GET",colNames : [ 'Conn Id',getLocalMessage('water.connsize.frmDt'), getLocalMessage('water.connsize.toDt'), getLocalMessage('water.connsize.frm'),getLocalMessage('water.connsize.to'... |
// Copyleft 2005 Chris Korda
// This program is free software; you can redistribute it and/or modify it
/*
chris korda
revision history:
rev date comments
00 22apr05 initial version
01 07jul05 keep dialog within screen
02 23nov07 supp... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class WaterItem : BaseItem {
// Use this for initialization
public override void Start()
{
base.Start();
BulletSpeed = .1f;
ItemSprite = gameObject.GetComponent<SpriteRenderer>().sprite;
Nam... |
package net.ballmerlabs.scatterbrain.network.wifidirect;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import net.ballmerlabs.scatterbrain.network.GlobalNet;
@SuppressWarnings({"FieldCanBeLocal", "DefaultFileTemplate"})
class WifiDirectLooper extends Thread {
private Handler handle... |
// <auto-generated>
// ReSharper disable <API key>
// ReSharper disable <API key>
// ReSharper disable InconsistentNaming
// ReSharper disable <API key>
// ReSharper disable <API key>
// ReSharper disable <API key>
// ReSharper disable <API key>
// ReSharper disable UseNameofExpression
// <API key> = 4.6
#pragma warnin... |
/**
* @file Map places of interest
* @author Tom Jenkins tom@itsravenous.com
*/
module.exports = {
castle: {
title: 'Rowton Castle',
lat: 52.708739,
lng: -2.9228567,
icon: 'pin_castle.png',
main: true,
description: 'Where it all happens! Rowton Castle is a small ca... |
var <API key> =
[
[ "angle", "<API key>.html#<API key>", null ],
[ "buttons", "<API key>.html#<API key>", null ],
[ "distance", "<API key>.html#<API key>", null ],
[ "ir", "<API key>.html#<API key>", null ]
]; |
/* The standard CSS for doxygen 1.8.11 */
body, table, div, p, dl {
font: 400 14px/22px Roboto,sans-serif;
}
/* @group Heading Levels */
h1.groupheader {
font-size: 150%;
}
.title {
font: 400 14px/28px Roboto,sans-serif;
font-size: 150%;
font-weight: bold;
margin: 10px 2px;
}
h2.groupheader {
... |
#ifndef LAZYLISTVIEW_H
#define LAZYLISTVIEW_H
#include <QQuickItem>
#include <QQmlComponent>
#include <QScopedPointer>
#include <QSharedPointer>
class QQuickFlickable;
class ItemPool;
class LazyListView : public QQuickItem
{
Q_OBJECT
Q_PROPERTY(int orientation READ getOrientation WRITE setOrientation NOTIFY ori... |
package com.geeksville.aws
import com.amazonaws.auth.AWSCredentials
import com.typesafe.config.ConfigFactory
import grizzled.slf4j.Logging
/**
* Provides AWS credentials from a Typesafe style config db
*
* @param baseKey - we look for AWS keys underneed this root entry
*/
class ConfigCredentials(baseKey: String) ex... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_11) on Mon Jun 16 17:35:51 PDT 2014 -->
<title>DTDConstants (Java Platform SE 8 )</title>
<meta name="date" content="2014-06-16">
<meta name="keywords" content="javax.swing.text.html.parser.DTDConstants interface">
<meta ... |
/** @file
* Base64 encoding and decoding.
*/
#include <cassert>
#include <memory>
#include "src/common/base64.h"
#include "src/common/ustring.h"
#include "src/common/error.h"
#include "src/common/readstream.h"
#include "src/common/memreadstream.h"
#include "src/common/memwritestream.h"
namespace Common {
static cons... |
// include/sys/ioctl.h
//
// Portions of this software may have been derived from OpenBSD or other sources,
//
//
// Author(s): gthomas
// Contributors: gthomas
// Purpose:
// Description:
//
/* $OpenBSD: ioctl.h,v 1.3 1996/03/03 12:11:50 niklas Exp $ */
/* $NetBSD: ioctl.h,v 1.20 1996/01/30 18:21:47 t... |
using LightDirector.Domain;
namespace LightDirector
{
public interface IEffectView<T> where T : EffectBase
{
}
} |
package com.xxl.job.database.meta;
import com.xxl.job.database.dboperate.DBManager;
/**
* mysql
*
*/
public class MySQLDatabaseMeta extends DatabaseMeta {
public MySQLDatabaseMeta() {
this.dbType = DBManager.MYSQL_DB;
}
} |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<!-- Incluimos los archivos Javascript externos -->
<script src='jquery.js'></script>
<script src='amazingslider.js'></script>
<script src='initslider-1.js'></script>
<style>
a{
font-famil... |
<?php
namespace Volantus\FlightBase\Src\General\MSP;
use Volantus\MSPProtocol\Src\Protocol\Response\Response;
/**
* Class MSPResponseMessage
*
* @package Volantus\FlightBase\Src\General\MSP
*/
class MSPResponseMessage
{
/**
* @var string
*/
private $id;
/**
* @var Response
*/
pri... |
:: This sets up the bare windows7 system
:: with my basic preferences
:: Installed drivers
:: Installed chrome
:: Installed dropbox
:: Dropbox
"https://github.com/Erotemic/local/archive/master.zip"
set HOME=%USERPROFILE%
set APP_PATH=%HOME%\local\apps
set PATH=%APP_PATH%;%PATH%
:: Install Drivers
:: Install WGET
:: htt... |
#include "if_expression.h"
#include <glog/logging.h>
#include "../internal/compilation.h"
#include "../public/value.h"
namespace afc {
namespace vm {
namespace {
class IfExpression : public Expression {
public:
IfExpression(std::shared_ptr<Expression> cond,
std::shared_ptr<Expression> true_case,
... |
<!DOCTYPE HTML PUBLIC "-
<!-- NewPage -->
<html lang="de">
<head>
<!-- Generated by javadoc (version 1.7.0_80) on Sat Dec 19 22:20:05 CET 2015 -->
<title><API key> (Genji Scrum Tool & Issue Tracking API Documentation 5.0.1)</title>
<meta name="date" content="2015-12-19">
<link rel="stylesheet" type="text/css" href=... |
using System;
using System.Diagnostics;
using EasyRemote.Spec;
namespace EasyRemote.Impl.Extension
{
public static class PathExt
{
<summary>
Get path for program
</summary>
<param name="program">Program</param>
<returns>Full path</returns>
public static string Get... |
// Sound file format definition -- A. Amiruddin -- 25/12/2016
// REVISION HISTORY
// None
// 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 PART... |
# This program is free software; you can redistribute it and/or
# published by the Free Software Foundation.
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# along with this program; if not, contact SUSE LLC.
# To contact SUSE about thi... |
# This file is part of ProbeDock.
# ProbeDock is free software: you can redistribute it and/or modify
# (at your option) any later version.
# ProbeDock is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
class TestPayloadPolicy < ApplicationPolicy
def ind... |
import net.sf.javabdd.*;
/**
* @author John Whaley
*/
public class NQueens {
static BDDFactory B;
static boolean TRACE;
static int N; /* Size of the chess board */
static BDD[][] X; /* BDD variable array */
static BDD queen; /* N-queen problem expressed as a BDD */
static BDD solution; /* One ... |
using CP77.CR2W.Reflection;
using FastMember;
using static CP77.CR2W.Types.Enums;
namespace CP77.CR2W.Types
{
[REDMeta]
public class ItemCompareBuilder : IScriptable
{
[Ordinal(0)] [RED("item1")] public InventoryItemData Item1 { get; set; }
[Ordinal(1)] [RED("item2")] public InventoryItemDat... |
<?php
namespace controllers\bases;
abstract class HttpBase extends UriMethodBase {
/**
* @var array
*/
protected $params;
function __construct() {
$uriSections = \Request::getInstance()->getUriSections();
$paramsUri = array_slice($uriSections, <API key>);
//This is not a ma... |
<?php
$return_value = 0;
if(isset($_FILES['photo']))
{
$target_dir = "../../upload/news/doc/";
require "../config.php";
$total_files = sizeof($_FILES['photo']['name']);
$resp = '';
for($i = 0; $i < $total_files; $i++)
{
$tmp_name = $_FILES['phot... |
package it.unimi.di.big.mg4j.query;
import it.unimi.di.big.mg4j.document.Document;
import it.unimi.di.big.mg4j.document.DocumentCollection;
import it.unimi.di.big.mg4j.document.DocumentFactory;
import it.unimi.di.big.mg4j.document.DocumentFactory.FieldType;
import it.unimi.dsi.fastutil.objects.ObjectArrayList;
import j... |
# noinspection <API key>
import wx
import gui.globalEvents as GE
import gui.mainFrame
from gui.contextMenu import ContextMenuSingle
from service.fit import Fit
class AmmoToDmgPattern(ContextMenuSingle):
visibilitySetting = 'ammoPattern'
def __init__(self):
self.mainFrame = gui.mainFrame.MainFrame.getIns... |
package net.adanicx.cyancraft.client.model;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.adanicx.cyancraft.client.OpenGLHelper;
import net.adanicx.cyancraft.entities.EntityArmorStand;
@SideOn... |
<?php include 'common_header.php'; ?>
<!-- Settings View Title -->
<h3><?php e($title); ?></h3>
<!-- Pasephrase Reset Form -->
<form id="<API key>" class="rounded" action="<?php u('/settings/accounts/reset'); ?>" method="post" accept-charset="UTF-8" enctype="multipart/form-data">
<fieldset>
<?php $alias = $... |
"""import portalocker
with portalocker.Lock('text.txt', timeout=5) as fh:
fh.write("Sono in testLoxk2.py")
"""
from lockfile import LockFile
lock = LockFile('text.txt')
with lock:
print lock.path, 'is locked.'
with open('text.txt', "a") as file:
file.write("Sono in testLock2.py") |
package ctlmc.bddgraph
import ctlmc.spec._
import ctlmc._
class GraphFactorySpec extends UnitSpec {
test("Creation") {
val factory = new GraphFactory()
}
}
class GraphSpec extends UnitSpec {
val factory = new GraphFactory()
factory.setParameters(Array(
("v1", (Array("F", "T").zipWithInde... |
# This module is for compatibility only. All functions are defined elsewhere.
__all__ = ['rand', 'tril', 'trapz', 'hanning', 'rot90', 'triu', 'diff', 'angle',
'roots', 'ptp', 'kaiser', 'randn', 'cumprod', 'diag', 'msort',
'LinearAlgebra', 'RandomArray', 'prod', 'std', 'hamming', 'flipud',
... |
<?php
$NAME='<API key> malware_signature- ID 2369';
$TAGCLEAR='WSOsetcookie(md5(@?$_SERVER[[\'"]HTTP_HOST[\'"]])';
$TAGBASE64='<API key>==';
$TAGHEX='57534f736574636f6f6b6965286d643528403f245f5345525645525b5b5c27225d485454505f484f53545b5c27225d5d29';
$TAGHEXPHP='';
$TAGURI='WSOsetcookie%28md5%28%40%3F%24_SERVER%5B%5B%5... |
#include "config.h"
#include "hardware.h"
#include "data.h"
#include "instruction.h"
#include "rung.h"
#include "plclib.h"
#include "project.h"
int project_task(plc_t p)
{
BYTE one, two, three;
one = resolve(p, BOOL_DI, 1);
two = fe(p, BOOL_DI, 2);
three = re(p, BOOL_DI, 3);
/* contact(p,BOOL_DQ,1,... |
#include <vgStableHeaders.h>
#include "vgentry/vgSound3DEntry.h"
#include <vgUIController/vgPropertyPage.h>
#include <vgUIController/vgUIController.h>
#include <vgKernel/vgkVec3.h>
#include <vgMesh/vgmMeshManager.h>
//#include <vgMath/vgfVector3.h>
#include <vgKernel/vgkSelectManager.h>
PropertiesParam vgSound3DEntry::... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>CommandManager xref</title>
<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
</head>
<body>
<div id="overview"><a href="../../../../../apidocs/fspotcloud/server/mode... |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<title>Natural Europe Pathways <?php echo isset($title) ? ' | ' . strip_formatting($title) : ''; ?></title>
<!-- Meta -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Pathway test!" />
<meta name="Keywords" con... |
!function(namespace) {
'use strict';
function Modal(elem, params) {
this.$element = jQuery(elem);
this.params = params || {};
this.cssReadyElement = this.params.cssReadyElement || 'JS-Modal-ready';
this.cssActiveElement = this.params.cssActiveElement || 'JS-Modal-active';
this.__construct();
}... |
#include "hero/HookshotState.h"
#include "hero/FreeState.h"
#include "hero/HeroSprites.h"
#include "entities/MapEntities.h"
#include "entities/Hookshot.h"
/**
* @brief Constructor.
* @param hero the hero controlled by this state
*/
Hero::HookshotState::HookshotState(Hero &hero):
State(hero),
hookshot(NULL) {
}
/... |
<!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.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BlenderFDS: blenderfd... |
# Written by Tomaz Solc, tomaz.solc@ijs.si
# This work has been partially funded by the European Community through the
# 7th Framework Programme project CREW (FP7-ICT-2009-258301).
# This program is free software: you can redistribute it and/or modify it
# any later version.
# This program is distributed in the hope th... |
body, html{
margin: 0;
background: #fff;
}
h1{
font-size: 4em;
text-align: center;
font-family: sans-serif;
vertical-align: middle;
}
p{
font-size: 2em;
font-family: serif;
color: green;
text-align: center;
vertical-align: middle;
}
#only_section{
vertical-align: middle;
} |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <dirent.h>
#include <fcntl.h>
#include <assert.h>
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <bcm2835.h>
#include <unistd.h>
#include <iostream>
//#define BCM2708_PERI_BASE ... |
# PickAMovie
This app gets movies from moviedb, using their API. For this to work you must insert your API key in the NetworkUtils class. |
// This file is part of BOINC.
// BOINC is free software; you can redistribute it and/or modify it
// as published by the Free Software Foundation,
// BOINC is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// The BOINC API and runtime system.
// Notes:
// 1) Thr... |
"""add graphql ACL to users
Revision ID: 2d4882d39dbb
Revises: c4d0e9ec46a9
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '2d4882d39dbb'
down_revision = 'dc2848563b53'
POLICY_NAME = '<API key>'
ACL_TEMPLATES = ['dird.graphql.me']
policy_table = sa.sql.table(
... |
#include "VCL.h"
#include "Unit1.h"
#include "GridMap.h"
#include "defines.h"
#include "matrix_utils.h"
#include "bat_run.h"
#include "LoadData.h"
#include <cstdio>
#include <ctime>
#include <cstring>
#include <cmath>
// special LSM mode with "-1 distance" = no aggregation of spots, just statistics per unit
bool LSM_mi... |
/* vim: set ts=8 sw=4 sts=4 et: */
#include "rtpsniff.h"
#include <assert.h>
#include <sys/time.h>
#include <pthread.h>
#include <signal.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>
/* Settings */
#ifndef INTERVAL_SECONDS
# define INTERVAL_SECONDS 10 /* wake the storage engine every N seconds */
#endif... |
<?php
session_start();
include_once 'inc/vcode.inc.php';
$_SESSION['vcode']=vcode(100,40,30,4);
?> |
#!/bin/bash
version=$1
out=${2:-"copyq-${version}.tar.gz"}
version_file="src/common/version.cpp"
set -e
die () {
echo "ERROR: $*"
exit 1
}
grep -q '^# v'"$version"'$' "CHANGES.md" ||
die "CHANGES file doesn't contain changes for given version!"
grep -q '"'"$version"'"' "$version_file" ||
die "String for... |
package com.openkm.servlet;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.openkm.util.FormatUtil;
import org.apache.commons.io.IOUtils;
imp... |
package mysqlgoutils
import (
"testing"
)
func <API key>(t *testing.T) {
assertSplit := func(addr, expectHost string, expectPort int, expectSchema string, expectErr bool) {
host, port, schema, err := <API key>(addr)
if host != expectHost {
t.Errorf... |
# 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
try:
from setuptools import setup
from setuptools import find_packages
ex... |
#ifndef <API key>
#define <API key>
#define <API key> GENETIC_BASE + 2
#define <API key> "GeneticDistribution"
#define GENETIC_STDDEV_ID GENETIC_BASE + 3
#define GENETIC_STDDEV_NAME "GeneticStdDev"
#define GENETIC_INTERVAL_ID GENETIC_BASE + 4
#define <API ke... |
<?php
/** <API key> */
require_once 'Zend/View/Helper/Placeholder/Container/Standalone.php';
class <API key> extends <API key>
{
/**#@+
* Script type contants
* @const string
*/
const FILE = 'FILE';
const SCRIPT = 'SCRIPT';
/**
* Registry key for placeholder
* @var string
*... |
function onStepIn(cid, item, pos)
if <API key>(cid,10001) == 1 and <API key>(cid,10002) == 1 and <API key>(cid,10003) == 1 and <API key>(cid,10004) == 1 and <API key>(cid,10005) == 1 and <API key>(cid,10006) == 1 and <API key>(cid,10007) == 1 and <API key>(cid,10008) == 1 then
<API key>(cid,83422,1)... |
<?php
namespace Minsal\ModeloBundle\DependencyInjection;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;
class <API key> extends Extension
{
/**
... |
# Name
Aswin M Guptha
Academics
BTech CSE from [Amrita University](https:
Projects
[My Projects](https:
Links to my projects
Profile Link
[GitHub](https://github.com/aswinmguptha)
[GitLab](https://gitlab.com/aswinmguptha)
[Twitter](https://twitter.com/aswinmguptha) |
#include "get_user_input.h"
#include <QTextCodec>
GetUserInput::GetUserInput(QObject *parent) :
Action(parent)
{
init();
}
GetUserInput::GetUserInput(const QVariantMap& data, QObject *parent):
Action(data, parent)
{
init();
loadInternal(data);
}
void GetUserInput::init()
{
setType(GameObjectMeta... |
#include<stdio.h>
#include<big_integer.h>
#include<string.h>
#include<time.h>
#include"gen_lib.h"
int main(int argc,char** argv)
{
if(argc<3)
{
printf("usage %s <length> <num> \n",argv[0]);
exit(-1);
}
FILE* bash=fopen("bash.dat","w+");
FILE* python=fopen("py.dat","w+");
int leng... |
Imports System.Globalization
Imports P3D.Legacy.Core.Screens
Namespace ScriptVersion2
Partial Class ScriptComparer
'
'Contains the <environment> constructs.
'
Private Shared Function DoEnvironment(ByVal subClass As String) As Object
Dim command As String = <API key>(subCl... |
#include "buildconfiguration.h"
#include "<API key>.h"
#include "buildinfo.h"
#include "buildsteplist.h"
#include "kit.h"
#include "kitinformation.h"
#include "kitmanager.h"
#include "project.h"
#include "projectexplorer.h"
#include "<API key>.h"
#include "<API key>.h"
#include "projecttree.h"
#include "target.h"
#incl... |
package com.example.heregpsloc;
import java.security.SecureRandom;
import java.math.BigInteger;
public final class <API key> {
private SecureRandom random = new SecureRandom();
public String nextSessionId() {
return new BigInteger(130, random).toString(32);
}
} |
using System;
using System.IO;
using System.Net;
using System.Security.Cryptography;
using DeanCCCore.Core._2ch.Jane;
using DeanCCCore.Core.Utility;
namespace DeanCCCore.Core
{
[Serializable]
public class ZipFileHeader : ImageHeader
{
public ZipFileHeader()
{
}
public ZipFile... |
// ResInsight is free software: you can redistribute it and/or modify
// (at your option) any later version.
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// FITNESS FOR A PARTICULAR PURPOSE.
// for more details.
#include "RivGridPartMgr.h"
#include "RiaApplication.h"
#include "R... |
ALTER TABLE Tag ADD (version INT DEFAULT '0' NOT NULL); |
# Manage yum repos
## in any.yaml
repos::default:
gpgcheck: 0
enabled: 1
mirrorlist_expire: 7200
failovermethod: priority
repos::list:
name1:
descr: name-1
mirrorlist: 'http://url/?release=$releasever&arch=$basearch&repo=os&infra=$infra'
priority: 50
name2:
descr: name-2
mirrorlist: ... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Database Error</title>
<style type="text/css">
::selection{ background-color: #E13300; color: white; }
::moz-selection{ background-color: #E13300; color: white; }
::webkit-s... |
<!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.11"/>
<title>GLFW: Globals</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type... |
#include "paneldamageskind.h"
#include "ui_paneldamageskind.h"
#include "damageskind.h"
#include "common.h"
#include "rpm.h"
// CONSTRUCTOR / DESTRUCTOR / GET / SET
PanelDamagesKind::PanelDamagesKind(QWidget *parent) :
QWidget(parent),
ui(new Ui::PanelDamagesKind)
{
ui->setupUi(this);
}
PanelDamagesKind::~... |
#! /bin/sh
dirs="$*"
if test _"$dirs" = _
then dirs="."
fi
for dir in $dirs
do
if test -d $dir
then
aclocal=""
autoconf=" && autoconf"
autoheader=""
automake=""
if test -f $dir/Makefile.am
then
aclocal=" && aclocal -I build-aux"
automake=" && automake --copy --add-missing... |
require 'memoist'
module ClaimsReporting::Health
module PatientExtension
extend ActiveSupport::Concern
included do
extend Memoist
has_many :medical_claims, class_name: 'ClaimsReporting::MedicalClaim', foreign_key: :member_id, primary_key: :medicaid_id
def <API key>(qa, denied: false) # ruboc... |
<?php
/* PHP-NUKE: Advanced Content Management System */
/* This is the language module with all the system messages */
/* If you made a translation go to the my website and send to me */
/* the translated file. Please keep the original text order by modules, */
/* and... |
package com.hackatoncivico.rankingpolitico;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v4.util.LogWriter;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
i... |
#ifndef <API key>
#define <API key>
#include <stdint.h>
#include <stdio.h>
#include "iterator.h"
#include "options.h"
namespace leveldb {
// Update Makefile if you change these
static const int kMajorVersion = 1;
static const int kMinorVersion = 19;
struct Options;
struct ReadOptions;
struct WriteOptions;
class WriteBa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.