answer stringlengths 15 1.25M |
|---|
#include<stdio.h>
#include<stdlib.h>
#include<fcntl.h>
#include<string.h>
#include<unistd.h>
#define BUFF_SIZE 8192
int main(int argc,char *argv[])
{
int fd,len,ret;
int fd2,num_bytes;
char *buf;
int i;
if (argc < 2) {
fprintf(stderr,"Insufficient number of arguments\n");
exit(EXIT_F... |
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "One parameter (snapshot name) needed"
exit 2
fi
./tools/shutdown_all_vms
./tools/list_domains | while read <API key>; do
echo "
echo $<API key>
virsh snapshot-create-as $<API key> --name $1 || exit 3
virsh snapshot-list $<API key>
done
./tools/start_all_... |
# Require any additional compass plugins here.
require 'ninesixty'
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "css/sass"
images_dir = "images"
javascripts_dir = "js"
# You can select your preferred output style here (can be overridden via the command line):
# output... |
#ifndef STATUSBAR_H
#define STATUSBAR_H
#include "BreadcrumbViewer.h"
#include <KStatusBar>
class QToolButton;
class QTimer;
class QProgressBar;
class QLabel;
class QSlider;
namespace MainWindow {
class ImageCounter;
class DirtyIndicator;
class StatusBar :public KStatusBar
{
Q_OBJECT
public:
StatusBar();
Di... |
#include "LSP/<API key>.h"
static int counter = 0;
LSP::<API key>::<API key>(const wxString& filename, const wxString& fileContent)
{
SetMethod("textDocument/didChange");
m_params.reset(new <API key>());
<API key> id;
id.SetVersion(++counter);
id.SetFilename(filename);
m_params->As<<API key>>()-... |
#ifndef <API key>
#define <API key>
#include <string>
#include <map>
#include <ace/Singleton.h>
class WordFilterMgr
{
private:
friend class ACE_Singleton<WordFilterMgr, ACE_Null_Mutex>;
WordFilterMgr();
~WordFilterMgr();
public:
Note for 0.6v : Will used std::map instead of UNORD... |
# LedgerSMB Small Medium Business Accounting
# This file contains source code included with or based on SQL-Ledger which
# version. For a full list including contact information of contributors,
# Contributors: Steve Doerr <sdoerr907@everestkc.net>
# This program is free software; you can redistribute it and/or modify... |
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/mm.h>
#include <linux/fb.h>
#include <linux/msm_mdp.h>
#include <linux/init.h>
#include <linux/kthread.h>
#include <linux/ioport.h>
#include <linux/device.h>
#include <linu... |
#include "camendpulse.h"
#include "../utils/cconverter.h"
#include <string.h>
#include <cmath> // std::abs
CAmendPulse::CAmendPulse()
{
memset(m_pulse_counter,0,4);
memset(m_frame_counter,0,4);
}
CAmendPulse::~CAmendPulse()
{
}
void CAmendPulse::SetAmendAttr(const DLPMotorPulse &type,const DLPMotorAttr &... |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="uk" version="2.1">
<context>
<name>@default</name>
<message>
<source>Notifications</source>
<translation type="unfinished"/>
</message>
<message>
<source>Sound</source>
<translation type="unfinished"/>
</message>
<m... |
#ifndef AT91_PIT_H
#define AT91_PIT_H
#define AT91_PIT_MR 0x00 /* Mode Register */
#define AT91_PIT_PITIEN (1 << 25) /* Timer Interrupt Enable */
#define AT91_PIT_PITEN (1 << 24) /* Timer Enabled */
#define AT91_PIT_PIV (0xfffff) /* Period... |
#include <config.h>
#include "globals.h"
#include <stdio.h>
#include "vzt.h"
#include "lx2.h"
#include "fsdb_wrapper_api.h"
#ifndef _MSC_VER
#include <unistd.h>
#endif
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include "symbol.h"
#include "vcd.h"
#include "lxt2_read.h"
#include "vzt_read.h"
#include "l... |
# AntiRSI
Shows a popover to remind you when it's time to take a break.
Written by [onnlucky](https:


Named after... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
/*
* Compute nanosecond epoch time from the fastest ticking clock
* on the system. Converting the time to nanoseconds requires
* the following formula
*
* t = (((1000000000<<3... |
<?php
/**
* W3TC Mobile detection
*/
w3_require_once(W3TC_LIB_W3_DIR . '/CacheCase.php');
/**
* Class W3_Mobile
*/
class W3_Mobile extends W3_CacheCase
{
/**
* PHP5-style constructor
*/
function __construct()
{
parent::__construct('mobile.rgroups', 'agents');
}
function group_v... |
# in config/initializers/locale.rb
# tell the I18n library where to find your translations
I18n.load_path += Dir[Rails.root.join('lib', 'locale', '*.{rb,yml}')]
# set default locale to something other than :en
I18n.default_locale = :'pt-BR' |
INTEGER FUNCTION YEAR4 ( YY )
C********************************************************************
C Version "$Id: year4.f 219 2015-08-17 18:05:54Z coats $"
C EDSS/Models-3 I/O API.
C Copyright (C) 1992-2002 MCNC and Carlie J. Coats, Jr.,
C (c) 2004-2007 Baron Advanced Meteorological Systems,
C (c) 2007-2013 Carlie J.... |
<?php
/**
* Lupus in Tabula
* ...un progetto di Edoardo Morassutto
* Contributors:
* - 2016 Edoardo Morassutto <edoardo.morassutto@gmail.com>
*/
/**
* Una notifica che un utente riceve
*/
class Notification {
/**
* Identificativo della notifica
* @var integer
*/
public $id_notification... |
#ifndef HW_GPIO_H
#define HW_GPIO_H
#define GPIO_REVISION (0x0)
#define GPIO_SYSCONFIG (0x10)
#define GPIO_IRQSTATUS_RAW(n) (0x24 + (n * 4))
#define GPIO_IRQSTATUS(n) (0x2C + (n * 4))
#define GPIO_IRQSTATUS_SET(n) (0x34 + (n * 4))
#define GPIO_IRQSTATUS_CLR(n) (0x3C + (n * 4))
#define GPIO_IRQWAKEN(n) (0x... |
#ifndef _INC_PROTOCOL_H
#define _INC_PROTOCOL_H
#include <json.h>
#include <curl/curl.h>
#ifdef USE_SSL
#include <openssl/engine.h>
#endif
#include <libmondai.h>
typedef struct {
CURL *Curl;
char *AuthURI;
char *RPCURI;
char *RESTURI;
cha... |
/* $Id: TrainingPenDrive.h,v 1.5 2003/07/16 15:55:24 nan Exp $ */
// 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
// along wi... |
@charset "utf-8";
/* CSS Document */
.job-single {
line-height: normal;
}
.job-single .continer-main {
display: inline-block;
width: 60%;
vertical-align: top;
}
.job-single .title {
font-size: 25px;
margin: 0 0 15px;
}
.job-single .content{}
.job-single .meta-container {
margin: 20px 0;
}
.job-single .job... |
package com.code.aon.finance;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persisten... |
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from ..gro_api.test import APITestCase, run_with_any_layout
from ..resources.models import ResourceType, ResourceProperty, ResourceEffect
from .models import ActuatorType, ControlProfile, Actuator
from .serializers import <API k... |
<?php
##*HEADER*##
if( ! isset($this->error))
{
$this->error = JFactory::getApplication()->enqueueMessage(JText::_('<API key>'), 'error');
$this->debug = false;
}
?>
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
xml:lang="<?php echo $this->language; ?>"
lang="<?php echo $this->language; ?>"
dir="<?php echo $this-... |
<?php
/**
* @file
* Contains \Drupal\custom_block\Tests\PageEditTest.
*/
namespace Drupal\custom_block\Tests;
/**
* Tests the block edit functionality.
*/
class PageEditTest extends CustomBlockTestBase {
/**
* Declares test information.
*/
public static function getInfo() {
return array(
'name'... |
<div layout-align="center center" ng-controller="DasboardCtrl" >
<div layout="row" >
<!-- MERGEN IZQUIERDO -->
<div flex-gt-sm="10"></div>
<!-- CONTENIDO -->
<div layout-padding layout-align="center center" layout="row" layout-xs="column" flex="auto" >
<!-- CARDS DESCRIPTIVAS -->
<div la... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Posts extends CI_Controller {
/**
*initialize connect to database
*/
function __construct(){
parent::__construct();
$this->load->model('post'); //@see models/post.php
}
/*
*function for defaul... |
package it.giacomos.android.wwwsapp;
public class ProgressBarParams {
/* 1. get situation
* 2. get today bmp
* 3. get today forecast (text only)
* 4. get tomorrow forecast (text + bmp)
* 5. get two days forecast (text + bmp)
*/
public static final double TOTAL_TASKS_INIT = 7.0;
/*... |
#include "constants.incl"
#define PLUS_EQUALS(A, B) A = A + B
#define MINUS_EQUALS(A, B) A = A - B
#define MULTIPLY_EQUALS(A, B) A = A * B
#define DIVIDE_EQUALS(A, B) A = A / B
!#define CONDITION_NUMBER
PROGRAM fibers
USE omp_lib
IMPLICIT NONE
CHARACTER(LEN=256)::program_name, data_name
#if defined(BENCHMARK)
I... |
#ifndef BIOS_H
#define BIOS_H
#define INDIRECT_CALL(addr, return_type, ...) (**(return_type(**)(__VA_ARGS__)) addr)
#define bios_run_cd_player INDIRECT_CALL(0x0600026C, void, void )
#define <API key> INDIRECT_CALL(0x06000274, int, int filtno ... |
package gspd.ispd.gui.iconico.dag;
import gspd.ispd.gui.iconico.Vertice;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.util.ArrayList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class DataFile ext... |
package test;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServ... |
#ifndef PROGRAMMER_H
#define PROGRAMMER_H
#include "devConfig.h"
int programmer_reset(int port);
int <API key>(int port);
int programmer_echo(int port, char ch);
int <API key>(int port);
int <API key>(int port);
int programmer_init(int port, deviceConfig_t devConfig);
int <API key>(int port);
int <API key>(int port);
i... |
<?php
defined('_JEXEC') or die;
KSSystem::import('views.viewksadmin');
class <API key> extends JViewKSAdmin
{
function display($tpl = null)
{
$this->path->addItem(JText::_('ks_panel'), 'index.php?option=com_ksen&extension=com_ksenmart');
$this->path->addItem(JText::_('ksm_countries'));
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace OYWebSite
{
public partial class Announcement : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
} |
<!DOCTYPE html>
<html>
<head>
<title><?php echo $title; ?></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/css/jquery-ui.css" rel="stylesheet" type="text/css"/>
<link href="/css/jquery-ui.structure.css" rel="s... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_24) on Sat May 28 14:07:22 BST 2011 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Class org.apache.mahout.clustering.lda.LDAWordTopicMapper (Mahout Core 0.5 API)
</TITLE>
<META NAME="date"... |
#include "util/errors.h"
#include <ostream>
#include <iostream>
#include <gsl_errno.h>
#ifdef __GNU_LIBRARY__
#include <execinfo.h>
#include <stdlib.h>
#include <cstring>
#include <cxxabi.h>
#endif
/** Standard exception classes for OpenMalaria. */
namespace OM { namespace util {
base_exception::base_exception(const st... |
<?php $TRANSLATIONS = array(
"Greetings {user}," => "Herzlich Willkommen {user},",
"Sorry, but a malware was detected in a file you tried to upload and it had to be deleted." => "Entschuldigung, es wurde Malware in einer Datei gefunden die Sie hochladen wollten und sie musste gelöscht werden.",
"This email is a notific... |
/* tunnel.c: an IP tunnel driver
The purpose of this driver is to provide an IP tunnel through
which you can tunnel network traffic transparently across subnets.
This was written by looking at Nick Holloway's dummy driver
Thanks for the great code!
-Sam Lantinga (slouken@cs.ucdavis.edu) 02/0... |
#include <diablosupport_class.h>
#ifndef CLASS
#define CLASS edge
#define <API key> EDGE
#define <API key> Edge
#endif
/*! \brief An edge in a graph.
*
* This is the general abstraction for edges in Diablo. Also see t_node and
* t_graph */
DIABLO_CLASS_BEGIN
/*! The node from which this edge originates */
MEMBER(t_n... |
/* <API key> */
/* <API key> */
#ifndef __BPF_EXPR_H__
#define __BPF_EXPR_H__
#include <stdint.h>
#include <sys/queue.h>
#include <netinet/ether.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define stringify(x)
enum bpf_arith_ops
{
UNKNOWN_ARITH_OP = 0,
EQUAL,
NOT_EQUAL,
GREATER,
LESS... |
using HubCrawl.Core;
using HubCrawl.Core.Providers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using Yuhan.Common.Models;
namespace HubCrawl.Models.Modules
{
[Serializable]
public class HubCrawlModule : HubCrawl... |
#include <linux/ieee80211.h>
#include <net/mac80211.h>
#include "ieee80211_i.h"
#include "rate.h"
void <API key>(struct <API key> *sband,
struct ieee80211_ht_cap *ht_cap_ie,
struct <API key> *ht_cap)
{
u8 ampdu_info, tx_mcs_set_cap;
int i, max_tx_streams;
BUG_ON... |
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
namespace TNL.Structures
{
using Entities;
using Interfaces;
using Utils;
public class FunctorDecl<T> : IFunctor where T : EventConnection
{
public Delegate MethodDelegate;
public object[] Parame... |
/*
Always provide the noop performance interface, for plugins.
*/
#define USE_PSI_V1
#define HAVE_PSI_INTERFACE
#include "my_global.h"
#include "my_pthread.h"
#include "my_sys.h"
#include "mysql/psi/psi.h"
C_MODE_START
#define NNN __attribute__((unused))
static void register_mutex_noop(const char *category NNN,
... |
#if 0
#include "Mp_Precomp.h"
#endif
#include "../odm_precomp.h"
#if (RTL8188E_SUPPORT == 1)
#if(DM_ODM_SUPPORT_TYPE & (ODM_AP))
u1Byte Array_8188E_FW_AP[] = {
};
u4Byte <API key> = 0;
void
<API key>(
IN PDM_ODM_T pDM_Odm,
OUT u1Byte *pFirmware,
OUT u4Byte *pFirmwareSize
)
{
ODM_M... |
from django.db import models
from django.utils.encoding import <API key>
@<API key>
class area_annotation(models.Model):
"""
Not all parameters are listed here, only those that present some interest
in their Django implementation.
:param area: references :class:`.area`. This field is interesting because... |
<?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><API key>.download.downloader.Downloader</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script type="text/javascript... |
<?php
class CM_API{
private $name;
private $email_address;
private $api_key;
private $list_id;
private $subscription_option;
private $custom_field_name;
private $typesWithOptions;
// private $custom_field_id;
private $custom_field_obj;
private $custom_fields;
private $<API ke... |
package net.nikr.eve.jeveasset.io.local;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.supercsv.io.CsvMapWriter;
import org.supercsv.io.ICsvMapWriter;
import org.supercsv.prefs.CsvPreference;
public... |
<?php
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
// Create some shortcuts.
$params = &$this->item->params;
$n = count($this->items);
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.directio... |
@extends('layouts.scaffold')
@section('main')
<h1>Administrative Dashboard</h1>
<p>Nice to see you, <b>{{{ Auth::user()->username }}}</b></p>
@stop |
<?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>schrodinger.pipeline.stages.filtering.ChargeFilterStage</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script type="... |
from dbmail.providers.microsoft.base import MPNSBase
class MPNSRaw(MPNSBase):
NOTIFICATION_CLS = 3
TARGET = 'raw'
def payload(self, payload):
return payload
def send(uri, *_, **kwargs):
return MPNSRaw().send(uri, kwargs) |
{% extends "base.html" %}
{% load cms_tags staticfiles sekizai_tags menu_tags %}
{% block content %}
<article class="article container">
<div>
<h2> {% page_attribute "page_title" %} </h2>
{% placeholder "content" %}
</div>
</article>
{% endblock content %} |
package in.shabhushan.algo_trials.algorithms.chapter1.section5;
/**
* This is the lazy approach
* Union is quick but find takes more time if the tree is too tall.
*
* on n objects, find would take O(n^2) time
*/
public class WeightedQuickUnion implements UnionFind {
private int[] parent;
private int[] size;
... |
<!
IE 6 makes the page to wide with the following doctype. I accept
standards if they help me, not if they make anything even harder!
<!--NewPage
<HTML>
<HEAD>
<TITLE>Docs for page site_support.php</TITLE>
<LINK REL ='stylesheet' TYPE='text/css' HREF='../media/stylesheet.css' TITLE='Style'>
</HEAD>
<BODY BG... |
package com.openlinksw.bibm.tpchRefresh;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import com.csvreader.CsvReader;
import com.openl... |
<?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>schrodinger.trajectory.ffstructure._FFBond</title>
<link rel="stylesheet" href="epydoc.css" type="text/css" />
<script type="text/javascri... |
package org.wordpress.android;
import android.os.StrictMode;
import com.facebook.stetho.Stetho;
import org.wordpress.android.util.AppLog;
import org.wordpress.android.util.AppLog.T;
public class WordPressDebug extends WordPress {
@Override
public void onCreate() {
super.onCreate();
// enableStri... |
#include <sstream>
#include "<API key>.h"
#include "EngineChannel.h"
#include "Engine.h"
#include "../../common/global_private.h"
#include "../../common/Path.h"
#include "../../plugins/<API key>.h"
namespace LinuxSampler { namespace sf2 {
String <API key>::GetInstrumentName(instrument_id_t ID) {
Lock();
... |
# parallel-uglifyjs
Hunts for js files in a directory tree, and runs uglify-js on them in parallel
(one per CPU).
Easily modifiable to run any job in parallel (see worker.js).
On an 8-core machine a large test takes 2.5 hours utilising a single CPU, and
20 minutes with parallel-uglifyjs.
## Installation
$ npm insta... |
<?php
namespace PHPExiftool\Driver\Tag\ID3v24;
use PHPExiftool\Driver\AbstractTag;
class InitialKey extends AbstractTag
{
protected $Id = 'TKEY';
protected $Name = 'InitialKey';
protected $FullName = 'ID3::v2_4';
protected $GroupName = 'ID3v2_4';
protected $g0 = 'ID3';
protected $g1 = 'ID3v2_4';... |
// INetGet - Lightweight command-line front-end to WinINet API
// This program is free software; you can redistribute it and/or
// as published by the Free Software Foundation; either version 2
// This program is distributed in the hope that it will be useful,
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Se... |
local function musiclink(msg, musicid)
local value = redis:hget('music:'..msg.to.id, musicid)
if not value then
return
else
value = value..'\n\n@XamarinTG'
return value
end
end
function sectomin (Sec)
if (tonumber(Sec) == nil) or (tonumber(Sec) == 0) then
return "00:00"
else
Seco... |
#include "oal_dt.h"
#include "usbdrv.h"
#include <linux/netlink.h>
#include <net/iw_handler.h>
zbuf_t* zfwBufAllocate(zdev_t* dev, u16_t len)
{
zbuf_t* buf;
buf = dev_alloc_skb(len);
return buf;
}
void zfwBufFree(zdev_t* dev, zbuf_t* buf, u16_t status)
{
dev_kfree_skb_any(buf);
}
u16_t zfwBufRemoveHead(... |
<?php
defined('_JEXEC') or die('Restricted access');
?><div id="acy_content">
<div id="iframedoc"></div>
<form action="index.php?option=<?php echo <API key> ?>&ctrl=send" method="post" name="adminForm" id="adminForm" autocomplete="off">
<div>
<?php $displayWarning = false;
$c... |
using MediaBrowser.Controller;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.LiveTv;
using MediaBrowser.Controller.MediaEncoding;
using MediaBrowser.Model.Dto;
using MediaBrowser.Model.Logging;
using MediaBrowser.Model.MediaInfo;
using MediaBrowser.Model.Se... |
ShoterHomework
===========
Project for android to take care about my homeworks. It will be linked with external mySQL database. |
<?php
namespace pemapmodder\inventorygui;
use pocketmine\Player;
interface GUI{
/**
* @return int
*/
public function getID();
/**
* @return int
*/
public function getDamage();
/**
* @return number
*/
public function getPriority();
/**
* @param Player $playe... |
MCU = atmega328p
F_CPU = 8000000
BAUD = 19200
## Also try BAUD = 19200 or 38400 if you're feeling lucky.
## This is where your main() routine lives
MAIN = sensors_module.c
## If you've split your program into multiple .c / .h files,
## include the additional source (in same directory) here
LOCAL_SOURCE = dht11.c
## H... |
#include "my_global.h"
#include <string.h>
#include <arpa/inet.h>
#include "util/util.h"
#include "value/value_constants.h"
#include "value/value.h"
#include "io/data_input.h"
namespace spotter {
data_input::data_input(char* buff) {
buffer = buff;
offset = 0;
buffer_length = 0;
}
data_input::~data_input() {... |
/**
* @file
* A JavaScript file for the theme.
*
* In order for this JavaScript to be loaded on pages, see the instructions in
* the README.txt next to this file.
*/
// JavaScript should be made compatible with libraries other than jQuery by
// wrapping it with an "anonymous closure". See:
(function ($, Drupal, w... |
// Decompiled by Deathway
// Date : 2007-03-09
#ifndef KALIMAGATE_H
#define KALIMAGATE_H
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "GameMain.h"
#include "user.h"
#define KALIMA_FLOORS 7
#define MAX_KALIMA_ENTER 5
#define KALIMA_GATE_TIMEOUT 180000
#define KUNDUN_MARK_COUNT 5
#define KALIMA_... |
#include "VMapFactory.h"
#include "VMapManager2.h"
#include "VMapDefinitions.h"
#include "WorldModel.h"
#include "Entities//GameObject.h"
#include "World/World.h"
#include "GameObjectModel.h"
#include "Server/DBCStores.h"
struct GameobjectModelData
{
GameobjectModelData(const std::string& name_, const G3D::AABox& b... |
// Author : $Author$
// Date : $Date$
// Url : $URL$
// This program is free software; you can redistribute it and/or modify
// (at your option) any later version.
#ifndef <API key>
#define <API key>
#include "db_database_content.h"
#include "db_tree_cache.h"
#include "db_time.h"
#include "db_move.h"
#include "u_c... |
/**
* @file dock.c
* @author Joe Wingbermuehle
* @date 2006
*
* @brief Dock tray component.
*
*/
#include "jwm.h"
#include "dock.h"
#include "tray.h"
#include "main.h"
#include "error.h"
#include "color.h"
#include "misc.h"
#define <API key> 0
#define <API key> 1
#define <API key> 2
#define <API key> 0
#de... |
<?php
defined('_JEXEC') or die('Restricted access');
foreach ($list as $review){
modReviewsHelper::renderReview($review, $params);
}
?> |
import App from 'app';
App.initialize(); |
<?php
// Change path to the plugin
function <API key>( $path ) {
$path = OUTDOOR_INC_DIR . '/admin/acf/';
return $path;
}
add_filter('acf/settings/path', '<API key>');
// Change dir to the plugin
function <API key>( $dir ) {
$dir = OUTDOOR_TPL_URI . '/include/admin/acf/';
return $dir;
}
add_filter('acf/... |
#!/bin/bash
. ./cmd.sh
stage=1
train_stage=-10
use_gpu=true
. ./path.sh
. ./utils/parse_options.sh
if $use_gpu; then
if ! cuda-compiled; then
cat <<EOF && exit 1
This script is intended to be used with GPUs but you have not compiled Kaldi with CUDA
If you want to use GPUs (and have them), go to src/, and configur... |
#ifndef _WORKERTHREAD_H
#define _WORKERTHREAD_H
#include <thread>
#include "<API key>.h"
class MySQLConnection;
class SQLOperation;
class DatabaseWorker
{
public:
DatabaseWorker(<API key><SQLOperation*>* newQueue, MySQLConnection* connection);
~DatabaseWorker();
private:
<API key><SQLOpe... |
package sun.tools.jstatd;
import java.rmi.*;
import java.rmi.server.*;
import java.rmi.registry.Registry;
import java.rmi.registry.LocateRegistry;
import java.net.<API key>;
import sun.jvmstat.monitor.remote.*;
/**
* Application providing remote access to the jvmstat instrumentation
* exported by local Java Virtual M... |
.<API key>.tab-pane {
position: relative;
/*width: 100%; width needed weird IE bug */
/*margin-right: -2px; to make room for the shadow */
}
.<API key> .tab-row .tab {
height: 16px;
background-image: url( "tab.png" );
position: relative;
top: 0;
display: inline;
... |
#ifndef _NET_H
#define _NET_H
#include <stdint.h>
#include "src/common/macros.h"
/* open a stream socket on an ephemereal port and put it into
* the listen state. fd and port are filled in with the new
* socket's file descriptor and port #.
*
* OUT fd - listening socket file descriptor number
* OUT port - TCP port... |
#include "genericmodelbase.h"
#include <QMetaType>
GenericModelBase::GenericModelBase(QObject *parent)
: QAbstractListModel(parent)
{
}
GenericModelBase::~GenericModelBase()
{
}
void GenericModelBase::getByIndex(int index)
{
emit populateCurrentItem(accessDataByIndex(index));
} |
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Banner Ad</title>
</head>
<body>
<!-- Start of Brightcove Player -->
<div style="display:none">
</div>
<!
By use of this code snippet, I agree to the Brightcove Publisher T and C
found at https://accounts.brightcove.com/en/<API ... |
# CPUfreq core
obj-$(CONFIG_CPU_FREQ) += cpufreq.o
# CPUfreq stats
obj-$(<API key>) += cpufreq_stats.o
# CPUfreq governors
obj-$(<API key>) += cpufreq_performance.o
obj-$(<API key>) += cpufreq_smartass.o
obj-$(<API key>) += cpufreq_powersave.o
obj-$(<API key>) += cpufreq_userspace.o
o... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Mobissime Liberta source code Documentation</title>
<link rel="stylesheet" href="resources/bootstrap.min.css?<SHA1-like>">
<link rel="stylesheet" href="resources/style.css?<SHA1-like>">
</head>
<body>
<nav id="navigation" class="navbar navb... |
// Project: SuckMT, a multithreaded suck replacement
// Language : C++
// This program is free software; you can redistribute it and/or modify
// (at your option) any later version.
// If you reuse code from SuckMT you are required to put a notice of
// this fact in both your manual and about box.
#ifndef __... |
<?php
namespace TYPO3\CMS\Backend\History;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\DataHandling\DataHandler;
use TYPO3\CMS\Core\Imaging\Icon;
use TYPO3\CMS\Core\Imaging\IconFactory;
use TYPO3\CMS\Core\Utility\DiffUtility;
use TYPO3\CMS\Core\Utility\Ge... |
package io.github.mzmine.parameters.parametertypes;
import java.util.List;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.w3c.dom.Element;
import io.github.mzmine.parameters.ParameterValidator;
public class ToggleParameter<ValueType> extends AbstractParameter<ValueType> {
private fina... |
#include <bits/stdc++.h>
int map[31][31], n, cur = 2;
bool check(int t1, int t2) {
if (t1 < 1 || t2 < 1 || t1 > n || t2 > n) return false;
return true;
}
int dir[4][2] = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};
int main() {
std::memset(map, -1, sizeof(map));
bool flag;
std::cin >> n;
int i, j, t1, t2... |
#ifndef <API key>
#define <API key>
// Auto generated for version 2, 4, 3, 8606
enum EObjectFields
{
OBJECT_FIELD_GUID = 0x0000, // Size: 2, Type: LONG, Flags: PUBLIC
OBJECT_FIELD_TYPE = 0x0002, // Size: 1, Type: INT, Flags: PUBLIC
OBJECT_FIELD_ENTRY ... |
#! /usr/bin/env python
#coding=utf-8
import sys, os, thread
from pymongo import Connection
from pymongo.errors import ConnectionFailure
from import_parameters import ImportParameters
from <API key> import GenerateReachTable
from find_sites import FindSites
from weights_mongo import GenerateWeightInfo
import util
from c... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using Owin;
using Mathador.Models;
namespace Mathador.... |
<!DOCTYPE html>
<html>
<head>
<script src="filters.js"></script>
<script src="effects.js"></script>
<style>
body {
text-align:center;
}
</style>
</head>
<body onload="Effects.init()">
<canvas id="image-effects" width="640" height="400">Not supported</canvas>
<div>
<button id="nav">Next</button>
<br>
<h2>Image Effec... |
<?php
/**
* @file
* Main view template.
*
* Variables available:
* - $classes_array: An array of classes determined in
* <API key>(). Default classes are:
* .view
* .view-[css_name]
* .view-id-[view_name]
* .view-display-id-[display_name]
* .view-dom-id-[dom_id]
* - $classes: A string ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.