answer stringlengths 15 1.25M |
|---|
<!DOCTYPE html>
<html lang="zh-cn">
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=GB2312" /><!-- /Added by HTTrack -->
<head>
<meta charset="utf-8" />
<meta name="robots" content="all" />
<meta name="author" content="w3school.com.cn" />
<link rel="stylesheet" type="text/css" href="... |
#!/bin/bash
BACKUPLOCATION=/home/db-back
MUSER="root"
MPASS="pass"
MHOST="localhost"
mkdir -p $BACKUPLOCATION
innobackupex --defaults-file=/etc/my.cnf --throttle=10 --user=$MUSER --password=$MPASS --compress --parallel=4 $BACKUPLOCATION > /tmp/backupdb_log 2>&1
#older then 3 day
for DEL in `find $BACKUPLOCATION -mindep... |
#ifndef FILEDIALOG_H
#define FILEDIALOG_H
#include <QDialog>
namespace Ui {
class FileDialog;
}
class FileDialog : public QDialog
{
Q_OBJECT
public:
explicit FileDialog(QWidget *parent = 0);
explicit FileDialog(QString str, QWidget *parent = 0);
~FileDialog();
bool hasAccepted;
QString address()... |
<?php
namespace Wikibase\Test;
use Wikibase\SqlIdGenerator;
/**
* @covers Wikibase\SqlIdGenerator
*
* @group Wikibase
* @group WikibaseStore
* @group WikibaseRepo
* @group Database
*
* @group medium
*
* @licence GNU GPL v2+
* @author Katie Filbert < aude.wiki@gmail.com >
*/
class SqlIdGeneratorTest extends ... |
package grupp07.model;
import java.util.ArrayList;
import javafx.scene.paint.Color;
import javafx.util.Pair;
/**
*
* @author gast
*/
public abstract class Player {
private String name;
private Color playerColor;
/** This function should return the wished next move for player.
*
* @return a tupl... |
<?php
// {{{ requires
require_once("../require.php");
require_once(CLASS_EX_PATH . "page_extends/admin/ownersstore/<API key>.php");
// {{{ generate page
$objPage = new <API key>();
$objPage->init();
$objPage->process();
<API key>(array($objPage, "destroy"));
?> |
/** @file io/xmlparser.cc xml parsing class used in xmlreader.cc */
// created: Tue May 25 10:29:42 2004
// This file is part of GroovX.
// GroovX is free software; you can redistribute it and/or modify it
// (at your option) any later version.
// GroovX is distributed in the hope that it will be useful, but
// MERCHAN... |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http:
<head>
<title>Qt 4.3: A standard ActiveX and the "simple" ActiveQt widget</title>
<link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>... |
package org.wordpress.android.ui.notifications;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.<API key>;
import org.wordpress.android.push.GCMMessageService;
/*
* Clears the notification map when a user dismisses a notification
*... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
namespace Zen.Massage.Site
{
public static class ClaimsHelpers
{
private static readonly string AdminClaim = "http://schemas.zenmassage.com/claims/administrator";
privat... |
__author__ = 'dako'
class SessionHelper:
def __init__(self, app):
self.app = app
def login(self, username, password):
wd = self.app.wd
self.app.open_home_page()
wd.<API key>("user").click()
wd.<API key>("user").clear()
wd.<API key>("user").send_keys(username)
... |
local questSystemOld = Action()
function questSystemOld.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.uid <= 100 or item.uid >= 41560 then
return false
end
local itemType = ItemType(item.uid)
if itemType:getId() == 0 then
return false
end
local itemWeigh... |
package com.nowgroup.scspro.service.cat;
import com.nowgroup.scspro.dto.cat.Storage;
import com.nowgroup.scspro.dto.geo.State;
import com.nowgroup.scspro.service.BaseService;
public interface StorageService extends BaseService<Storage> {
State getStateInStorage(int id);
} |
<?php
First we check that form variables have been initialised
if (!isset($form->name)) {
$form->name = '';
}
if (!isset($form->description)) {
$form->description = "";
}
if (!isset($form->format)) {
$form->format = "";
}
?>
<form name="form" method="post" action="mod.php">
<center>
... |
<div class="<API key>{key} <API key>" {displaynone}>
<p>
{defaultinput}
</p>
{prepopulates}
</div> |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Computer_Drafter.Models
{
class MotherboardModel : PartModel
{
private List<string> amdChipsets;
private List<string> intelChipsets;
private string selChipset;
... |
<?php
define('<API key>', '4.5');
define('<API key>', '2');
define('EXTENSIONS_DIR', str_replace('/', DIRECTORY_SEPARATOR, WP_CONTENT_DIR . '/plugins/<API key>/Classes/Extension/'));
define('<API key>', 10485760); //10 MB
define('MINUMUM_PHP_VERSION', '5.2.16');
define('<API key>', 300); //5 mins to allow for socket ti... |
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/cpufreq.h>
#include <linux/cpu.h>
#include <linux/jiffies.h>
#include <linux/kernel_stat.h>
#include <linux/mutex.h>
#include <linux/hrtimer.h>
#include <linux/tick.h>
#include <linux/ktime.h>
#include <linux/sched.h>
#include <... |
@charset "UTF-8";
@media all
{
#nav_main {
width:100%;
float:left;
color: #fff;
background: #1f1e2e url("images/sliding_doorI/nav_rund/bg.gif") repeat-x bottom;
}
#nav_main ul {
white-space: nowrap;
line-height: 1em;
margin:0;
padding:0 0 0 50px;
list-style:none;
}
#nav_main li {
float:left;
backg... |
// This program is free software: you can redistribute it and/or modify
// the Free Software Foundation, version 2.0 or later versions.
// This program is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// A copy of the GPL 2.0 should have been included w... |
<?php
class <API key> {
var $code = '<API key>';
var $group = 'footer_scripts';
var $title;
var $description;
var $sort_order;
var $enabled = false;
function <API key>() {
$this->title = <API key>;
$this->description = <API key>;
if ( defined('<API key>') ) {
$thi... |
#include <stdint.h>
#include <stdio.h>
#include <inttypes.h>
#include <stdarg.h>
#include <errno.h>
#include <sys/queue.h>
#include <stdlib.h>
#include <getopt.h>
#include <string.h>
#include <rte_common.h>
#include <rte_malloc.h>
#include <rte_memory.h>
#include <rte_memzone.h>
#include <rte_eal.h>
#include <rte_atomi... |
//BE NAME DOOST
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <set>
#include <iostream>
using namespace std;
int main()
{
string a,b;
cin>>a>>b;
set <char> d;
for(int i=0;i<a.size();i++)
d.insert(a[i]);
int B=0,C=0;
for(int i=0;i<b... |
package org.owasp.benchmark.testcode;
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;
@WebServlet("/BenchmarkTest11613")
publ... |
package server.thread.<API key>;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.net.Socket;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.HashMap;
import server.serverMain.serverMain;
import server.thread.syste... |
<?php
/**
* Description of class-fscf-util
* Utility class sets default variables, wp actions, and sanitize functions
* Functions are called statically, so no need to instantiate the class
* @authors Mike Challis and Ken Carlson
*/
class FSCF_Util {
static $global_defaults, $form_defaults, $field_defaults;
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from time import gmtime, strftime
import ephem
import wx.calendar
# Test
# here = ephem.Observer()
# here.lat = '-17.576166667'
# here.lon = '-149.618575000'
class App(wx.App):
def OnInit(self):
self.frame = MyFrame("Lunacy", (50, 60), (640, 220))
self.f... |
// <API key>.cs
// Atsushi Enomoto <atsushi@ximian.com>
// Atsushi Enomoto <atsushi@xamarin.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,
// permi... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <stropts.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <linux/netdevice.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <unistd.h>
#include <types.h>
#include <mm.h>
#include <hl.h>
#include <misc.h>
#incl... |
#include<cstdio>
#include<cstring>
#include<algorithm>
#define maxn 1010
using namespace std;
struct node {
int len, weight;
bool vis;
node(int len = 0, int weight = 0, bool vis = false) :len(len), weight(weight), vis(vis){}
}num[maxn];
int sum;
bool cmp(node a, node b)
{
if (a.len == b.len)
ret... |
#!/bin/sh
DIR_PROTECT="arch/arm/cpu/armv7/sc8810 arch/arm/cpu/arm926ejs/sc8800g arch/arm/cpu/arm926ejs/sc8800x property nand_fdl nand_spl"
PRODUCTS="sc8810_openphone sp8810 sp8805ga sp6810a openphone native_openphone 788"
argu=$1
if [ -z $argu ]; then
argu="clean"
elif [ $argu != "clean" ] && [ $argu != "restore" ]; th... |
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <pwd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include "test.h"
#include "usctest.h"
char *TCID = "creat04";
int TST_TOTAL = 2;
void setup(void);
void cleanup(void);
#define FMODE 0444
#define DMODE 00700
int exp_enos[]... |
#include "dihedral_opls.h"
#include <cmath>
#include "atom.h"
#include "comm.h"
#include "neighbor.h"
#include "force.h"
#include "update.h"
#include "memory.h"
#include "error.h"
using namespace LAMMPS_NS;
#define TOLERANCE 0.05
#define SMALL 0.001
#define SMALLER 0.00001
DihedralOPLS::DihedralOPLS(LAMMPS *lmp) ... |
okmodels
=====
Code for the model agency website I made some time ago... |
var Class = {
create: function() {
return function() { //vararg
this.initialize.apply(this, arguments);
}
}
};
Color = Class.create();
Color.prototype = {
red: 0, green: 0, blue: 0,
initialize: function(r,g,b) {
this.red = r;
this.green = g;
this.blue = b;
}
}
function bench(... |
@file
@author antonmx <antonmx@synchrotron.org.au>
@date Thu Sep 11 18:57:51 2008
@brief Processes the RC of the analyzer and prepares data function
to be used in the EDEI process.
#include "../common/common.h"
#include "../common/edei.h"
using namespace std;
\CLARGS
struct clargs {
Path command; ///<... |
#!/usr/bin/perl
# <API key>.pl
# Aufbau der Neuerwerbungslisten fuer ein Institut. Dabei Zugriff
# auf Sybase-DBMS via DBD::Proxy fuer <API key> und
# lokal auf zugehoerige bibliogr. Daten via OpenBib::Record::Title
# Dieses Programm ist freie Software. Sie koennen es unter
# Free Software Foundation herausgegebe... |
package com.oracle.graal.nodes.java;
import com.oracle.graal.api.meta.*;
import com.oracle.graal.nodes.*;
import com.oracle.graal.nodes.spi.*;
import com.oracle.graal.nodes.type.*;
/**
* The {@code StoreIndexedNode} represents a write to an array element.
*/
public final class StoreIndexedNode extends AccessIndexedNo... |
#include "wifi.h"
#include "core.h"
#include "usb.h"
#include "base.h"
#include "ps.h"
#include "rtl8192c/fw_common.h"
#include <linux/export.h>
#include <linux/module.h>
MODULE_AUTHOR("lizhaoming <chaoming_li@realsil.com.cn>");
MODULE_AUTHOR("Realtek WlanFAE <wlanfae@realtek.com>");
MODULE_AUTHOR("Larry Finger ... |
#include <linux/wait.h>
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/jiffies.h>
#include <linux/err.h>
#include "kgsl.h"
#include "kgsl_cffdump.h"
#include "kgsl_sharedmem.h"
#include "adreno.h"
#include "adreno_ringbuffer.h"
#include "adreno_trace.h"
#include "kgsl_sharedmem.h"
#define CMDQUEUE_NE... |
package net.demo.model;
import javax.persistence.*;
@Entity
@Table(name = "USER_ROLE")
public class UserRole {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
private String username;
private String role;
@OneToOne(cascade = CascadeType.ALL)
@JoinColumn(name = "username")
private... |
button,
.button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
background: #6F9395;
border: 1px solid #6F9395;
color: #fefefe;
border-radius: 3px;
letter-spacing: normal;
box-shadow: 0 -3px rgba(0, 0, 0, 0.15) inset, 0 -4px rgba(255, 255, 255, 0.1) inset;
}
button:hover,... |
#pragma once
#include <map>
#include <vector>
#include <string>
#include "S9sGlobal"
#include "S9sString"
#include "S9sVector"
template <typename Key, typename T>
class S9sMap : public std::map<Key, T>
{
public:
bool contains(const Key &key) const;
S9sVector<Key> keys() const;
#if 0
static S... |
#include "SerialComm.h"
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <string>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
namespace dvs {
SerialComm::SerialComm(char* devic... |
#include <fstream>
#include "qgshttptransaction.h"
#include "qgslogger.h"
#include "qgsconfig.h"
#include <QApplication>
#include <QUrl>
#include <QSettings>
#include <QTimer>
static int HTTP_PORT_DEFAULT = 80;
//XXX Set the connection name when creating the provider instance
//XXX in qgswmsprovider. When creating a Qg... |
package gof.behaviour.mediator;
public class Colleague1 extends Colleague {
public Colleague1(Mediator m){
super(m);
}
@Override
public void action() {
System.out.println("Colleague1");
}
} |
#ifndef <API key>
#define <API key>
#include "engines/grim/costume/component.h"
namespace Grim {
class Model;
class AnimManager;
class ModelComponent : public Component {
public:
ModelComponent(Component *parent, int parentID, const char *filename, Component *prevComponent, tag32 tag);
~ModelComponent();
vo... |
# Revision = $Rev: 20 $
from pluginInterfaces import PluginFit, Parameter,leastsqFit
import numpy as np
class <API key>(PluginFit):
def __init__(self):
pass
def fit(self,array,errarray,param,xmin=0,xmax=0, fitAxes=[]):
"""return the data that is needed for plotting the fitting result"""
""... |
package org.globalgamejam.maze.tweens;
import aurelienribon.tweenengine.TweenAccessor;
import com.badlogic.gdx.graphics.g2d.Sprite;
public class SpriteTween implements TweenAccessor<Sprite> {
public static final int BOUNCE = 1;
public static final int ALPHA = 2;
public static final int ROTATION = 3;
@Ov... |
// Use of this source code is governed by a BSD-style
package norm
import (
"strings"
"testing"
)
type PositionTest struct {
input string
pos int
buffer string // expected contents of reorderBuffer, if applicable
}
type positionFunc func(rb *reorderBuffer, s string) int
func runPosTests(t *testi... |
<?php namespace RainLab\GoogleAnalytics;
/**
* The plugin.php file (called the plugin initialization script) defines the plugin information class.
*/
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'Google Analytics',
... |
#include "pessoa_cpp.hpp"
Pessoa::Pessoa() {
}
Pessoa::Pessoa(QString nome, int idade, float altura) {
this->setNome(nome);
this->idade = idade;
this->altura = altura;
}
Pessoa::~Pessoa() {
qDebug() << "Deletando a pessoa " << this;
}
void Pessoa::setNome(QString nome) {
this->nome = nome + "Foi!";
... |
<?php
// no direct access
defined('_JEXEC') or die;
/**
* Get a collection of categories
*/
class <API key> extends JFormField {
/*
* Category name
*
* @access protected
* @var string
*/
protected $type = 'fgroup';
/**
* fetch Element
*/
protected function ... |
/* local apic based NMI watchdog for various CPUs.
This file also handles reservation of performance counters for coordination
with other users (like oprofile).
Note that these events normally don't tick when the CPU idles. This means
the frequency varies with CPU load.
Original code for K7/P6 written by... |
<?php
// Setup a 'default' cache configuration for use in the application.
Cache::config('default', array('engine' => 'File'));
/**
* The settings below can be used to set additional paths to models, views and controllers.
*
* App::build(array(
* 'Model' => array('/path/to/models/', '/next/p... |
#include <config.h>
#ifdef HAVE_STDIO_H
# include <stdio.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_ASSERT_H
# include <assert.h>
#endif
#include <tx.h>
#include <liblixamonkey.h>
/* this case test is used to test TX_CHAINED transactions */
int main(int argc, char *argv[])
{
char *pgm = ... |
<?php
/*
* @package Montser Platform
*/
get_header( ); ?>
<h2></h2>
<section class="contents" id="">
<div class="container">
<h3 class="twelvecol col last">
<span class="hl1"></span>
<span class="hl2"><span>1</span></span>
<span class="hl3"></s... |
#ifndef WLAN_QCT_WDI_I_H
#define WLAN_QCT_WDI_I_H
#include "wlan_qct_pal_type.h"
#include "wlan_qct_pal_api.h"
#include "wlan_qct_pal_list.h"
#include "wlan_qct_pal_sync.h"
#include "wlan_qct_pal_timer.h"
#include "wlan_qct_wdi_cts.h"
#include "wlan_qct_wdi_bd.h"
#include "wlan_hal_msg.h"
#include "wlan_status_code.h"
... |
.clearer {
font-size:1px;
}
body, table, td, th, li {
font-family:Arial, Verdana, Helvetica, sans-serif;
font-size:100%;
/*letter-spacing:0.02em;*/
}
/*
* Apparently (at least in 2005, when this was added) Vietnamese test, on Windows
* computers, would only show up in Arial. Specify that here, with a !importa... |
<?php
/**
* Shortcode attributes
* @var $atts
* @var $style
* @var $faq_cat
* Shortcode class
* @var $this <API key>
*/
$output = '';
$atts = <API key>( $this->getShortcode(), $atts );
extract( $atts );
$output = '<div class="">';
if($faq_cat == 0){
$args = array(
'tax... |
package sellpotato.sellpotato.Model;
/**
* @author Freddy
* @version 1.0
* @created 08-ene-2015 19:29:24
*/
public class IGoogleApiMaps {
public IGoogleApiMaps(){
}
public void finalize() throws Throwable {
}
public void DibujarRuta(){
}
public double <API key>(){
return 0;
}... |
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
#include <linux/cache.h>
#include <linux/profile.h>
#include <linux/errno.h>
#include <linux/mm.h>
#include <linux/err.h>
#include <linux/cpu.h>
#include <linux/sm... |
// IT lang variables
tinyMCE.addToLang('',{
bold_desc : 'Grassetto (Ctrl+B)',
italic_desc : 'Corsivo (Ctrl+I)',
underline_desc : 'Sottolineato (Ctrl+U)',
striketrough_desc : 'Barrato',
justifyleft_desc : 'Allinea a sinistra',
justifycenter_desc : 'Allinea al centro',
justifyright_desc : 'Allinea a destra',
justifyfull_... |
package org.abhishek.fileanalytics.lifecycle;
public interface Destroyable {
void destroy();
boolean destroyed();
} |
"use strict";
var assert = require("assert"),
Promise = require("promise"),
_ = require("underscore"),
configController = require('../controllers/configController.js');
describe('configController', function() {
it('init should load the config file', function(done) {
configController.init(function(err) {
... |
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/cpufreq.h>
#include <linux/cpu.h>
#include <linux/jiffies.h>
#include <linux/kernel_stat.h>
#include <linux/mutex.h>
#include <linux/hrtimer.h>
#include <linux/tick.h>
#include <linux/ktime.h>
#include <linux/sched.h>
/*
* dbs ... |
(function ($) {
Drupal.viewsSlideshow = Drupal.viewsSlideshow || {};
/**
* Views Slideshow Controls
*/
Drupal.<API key> = Drupal.<API key> || {};
/**
* Implement the play hook for controls.
*/
Drupal.<API key>.play = function (options) {
// Route the control call to the correct control type.
... |
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
""" sha1Hash_test.py
Unit tests for sha1.py
"""
from crypto.hash.sha1Hash import SHA1
import unittest
import struct
assert struct.calcsize('!IIIII') == 20, '5 integers should be 20 bytes'
class <API key>(unittest.TestCase):
""" SHA-1 tests from FIPS180-1 Appe... |
<?
session_start();
include "../config.php";
include "../includes/database.php";
include "hw_filemgr_class.php";
$path="../upload/0001/94598031";
$std_id=$_GET['account'];
echo $_SESSION['std_id'];
if($hw_id!="")
$_SESSION['hw_id']=$hw_id;
else $hw_id=$_SESSION['hw_id'];
... |
<?php
$output = '';
$links = '';
if ($node->nid) {
$children_list = <API key>($node->nid);
//echo '<pre>';
//var_dump($node);
//echo '</pre>';
//exit;
if ($prev = book_prev($node->book)) {
// Previous page
<API key>(array('rel' => 'prev', 'href' => url($prev['href'])));
$links .= l(t('< ... |
#ifndef GEANY_FILETYPES_H
#define GEANY_FILETYPES_H 1
G_BEGIN_DECLS
#include "Scintilla.h"
#include "ScintillaWidget.h"
#ifdef GEANY_PRIVATE
#include "build.h"
#endif
/* Do not change the order, only append. */
typedef enum
{
<API key> = 0, /* first filetype is always None & must be 0 */
GEANY_FILETYPES_PHP,... |
(function($){
$.fn.liveFilter = function(inputEl, filterEl, options){
var defaults = {
filterChildSelector: null,
filter: function(el, val){
return $(el).text().toUpperCase().indexOf(val.toUpperCase()) >= 0;
},
before: function(){},
... |
#! /bin/bash
nohup ./webrun.py > ~/server.err 2>&1 & |
<!DOCTYPE html>
<html ng-app="myApp">
<head lang="zh_CN" xmlns="http:
<meta charset="UTF-8">
<title><%=titles%></title>
</head>
<body>
<% include angular_head%>
<div ng-controller="myCon">
<div class="container-fluid">
<div class="row">
<div class="col-xs-10">
<!--<d... |
#!/usr/bin/perl
# This software is provided 'as-is', without any express or implied
# warranties including the implied warranties of satisfactory quality,
# fitness for purpose or non infringement. In no event will ARM be
# liable for any damages arising from the use of this software.
# any purpose, and to redistribu... |
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include "geekcode.h"
#include "lines.h"
#include "parse.h"
const char *parse_errors[] = {
"Success",
"Trailing text in data",
"Missing alias",
"Missing dependant",
"Syntax error",
"Unexpected EOF",
"File error",
};
/*
* Parses the c... |
#!C:\Users\SeanSaito\Dev\aviato\flask\Scripts\python.exe
# <API key>: 'kartograph.py==0.6.8','console_scripts','kartograph'
__requires__ = 'kartograph.py==0.6.8'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('kartograph.py==0.6.8', 'console_scrip... |
# This file is part of Infoshopkeeper.
# Infoshopkeeper is free software; you can redistribute it and/or
# published by the Free Software Foundation; either version 2 of the
# Infoshopkeeper is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# along wi... |
package com.test.JUnit;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
public class CalculatorTest {
private static Calculator calculator = new Calculator();
@Before
public void setUp() throws Exception {
calculator.clear();
}
@Te... |
#include "otpch.h"
#include "pugicast.h"
#include "items.h"
#include "commands.h"
#include "creature.h"
#include "monster.h"
#include "game.h"
#include "tile.h"
#include "house.h"
#include "actions.h"
#include "combat.h"
#include "iologindata.h"
#include "iomarket.h"
#include "chat.h"
#include "talkaction.h"
#include "... |
from datetime import *
from Tweetstream import *
from UserAnalyser import *
from TimeAnalyser import *
import math
import sys
import pickle
#Frequency over the common
def load_list(filein):
d = dict()
for l in filein:
l = eval(l)
d[l[0]] = l[1]
return d
if __name__ == "__main__":
follow ... |
// This program is free software: you can redistribute it and/or modify
// the Free Software Foundation, version 2.0 or later versions.
// This program is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// A copy of the GPL 2.0 should have been included w... |
#ifndef MANGOS_H_ACCMGR
#define MANGOS_H_ACCMGR
#include "Common.h"
enum AccountOpResult
{
AOR_OK,
AOR_NAME_TOO_LONG,
AOR_PASS_TOO_LONG,
<API key>,
AOR_NAME_NOT_EXIST,
<API key>
};
#define MAX_ACCOUNT_STR 16
#define MAX_PASSWORD_STR 16
class AccountMgr
{
public:
AccountMgr();
... |
var path = require('path');
var ndir = require('ndir');
var express = require('express');
var MongoStore = require('connect-mongo')(express);
var ejs = require('ejs');
var routes = require('./routes');
var config = require('./config').config;
var adminFilter = require('./filter/adminFilter');
var businessFilter = requi... |
class Solution(object):
def setZeroes(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: void Do not return anything, modify matrix in-place instead.
"""
width,height = len(matrix[0]),len(matrix)
for i in xrange(height):
foundzero = False
... |
#include "xineCommon.h"
#include "xineLib.h"
namespace PluginXine
{
static eKeys KeyMap[] =
{
kNone,
kUp,
kDown,
kMenu,
kOk,
kBack,
kLeft,
kRight,
kRed,
kGreen,
kYellow,
kBlue,
k0, k1, k2, k3, k4, k5, k6, k7, k8, k9,
kPlay,
kPause,
kStop,
kRecord,
... |
<?php
/**
* \file htdocs/cactioncomm.class.php
* \ingroup commercial
* \brief Fichier de la classe des types d'actions commerciales
* \version $Id$
*/
/**
* \class CActionComm
* \brief Class to manage different types of events
*/
class CActionComm {
... |
package com.github.ivanmarban.movies;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
public class MovieRestController {
@Autowired
private MovieRepository repo;
@RequestMapping(value = "api/v1/movies", m... |
<?php
// phpCAS proxy client with PGT storage to database
// import phpCAS lib
include_once('CAS/CAS.php');
// set debug mode
phpCAS::setDebug();
// initialize phpCAS
phpCAS::proxy(CAS_VERSION_2_0,'sso-cas.univ-rennes1.fr',443,'');
// set PGT storage to file in XML format in the same directory as session files
phpCAS::... |
#include "convection.h"
#include "sem.h"
using namespace mnl;
using namespace std;
<API key>::<API key>(const basics::matrixStack& G,
const basics::Matrix& D,
const basics::Vector& weight,
const basics::Field2<basics::Matrix>& u,
basics::Matrix& buffer,
basics::Matrix& buffer2) :
m_weight(weight),... |
#include "mv_sas.h"
static struct <API key> *mvs_stt;
static const struct mvs_chip_info mvs_chips[] = {
[chip_6320] = { 1, 2, 0x400, 17, 16, 9, &mvs_64xx_dispatch, },
[chip_6440] = { 1, 4, 0x400, 17, 16, 9, &mvs_64xx_dispatch, },
[chip_6485] = { 1, 8, 0x800, 33, 32, 10, &mvs_64xx_dispatch, },
... |
<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
// Text
$_['text_title'] = 'Credit or Debit Card (Processed securely by Perpetual Payments)';
$_['text_credit_card'] = 'Credit Card Details';
$_['text_transaction'] = 'Transaction ID:';
$_['text_avs'] ... |
<?php
namespace eZ\Publish\Core\MVC\Symfony;
use eZ\Publish\Core\FieldType\FileService\LegacyFileService as BaseFileService;
use eZ\Publish\Core\MVC\<API key>;
/**
* Configuration aware local file service for BinaryBase FieldTypes storage
*/
class <API key> extends BaseFileService
{
/**
* Builds the file ser... |
<?php
/*
* Set default $content_width
*/
if ( ! isset( $content_width ) )
$content_width = 590;
/* Adjust $content_width depending on the page being displayed */
function boldr_content_width() {
global $content_width;
if ( is_singular() && !is_page() )
$content_width = 595;
if ( is_page() )
... |
<?php
include('koneksi.php');
session_start();
if(!isset($_SESSION['user'])){header("location:index.php");}
if(isset($_SESSION['user'])) {
unset($_SESSION);
session_destroy();
echo ("<SCRIPT LANGUAGE='JavaScript'>alert('Anda Berhasil Logout')
window.location.href='index.php';</SCRIPT>");
}
?> |
<?php
namespace FluidTYPO3\Vhs\ViewHelpers\Math;
use FluidTYPO3\Vhs\Traits\<API key>;
use TYPO3\CMS\Fluid\Core\ViewHelper\Exception;
/**
* Base class: Math ViewHelpers operating on one number or an
* array of numbers.
*/
abstract class <API key> extends <API key>
{
use <API key>;
/**
* @return void
... |
var events = {};
function showEvent(e) {
eid = e.getAttribute('data-event-id');
fid = e.getAttribute('data-frame-id');
var url = '?view=event&eid='+eid+'&fid='+fid;
url += filterQuery;
window.location.href = url;
//video element is blocking video elements elsewhere in chrome possible interaction with mouseo... |
<?php
namespace Magento\Indexer\Model\Config;
use Magento\Framework\Exception\<API key>;
class ConverterTest extends \PHPUnit\Framework\TestCase
{
/**
* @var \Magento\Framework\Indexer\Config\Converter
*/
protected $model;
protected function setUp()
{
$this->model = \Magento\TestFramew... |
#ifndef OPCODES_H
#define OPCODES_H
#include "features.h"
#include "types.h"
#include "debug.h"
#define OPCODE_STOP_CODE 0x00
#define OPCODE_POP_TOP 0x01
#define OPCODE_ROT_TWO 0x02
#define OPCODE_ROT_THREE ... |
<?php
defined('_JEXEC') or die;
/**
* HTML View class for the Modules component
*
* @package Joomla.Administrator
* @subpackage com_advancedmodules
* @since 1.6
*/
class <API key> extends JViewLegacy
{
protected $state;
protected $items;
/**
* Display the view
*/
public functi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.