answer stringlengths 15 1.25M |
|---|
#ifndef EVENTVISITOR_H_
#define EVENTVISITOR_H_
#include <einheri/utils/Visitor.h>
#include <einheri/common/event/<API key>.h>
#include <einheri/common/event/<API key>.h>
#include <einheri/common/event/EventWindowClose.h>
#include <einheri/common/event/EventWindowCreated.h>
#include <einheri/common/event/EventWindowRes... |
import json
import math
import urllib.parse
import requests
from bs4 import BeautifulSoup as bSoup
from utils import utils
class DarazScraper:
# Declare URL and class names to picked
BASE_URL = 'https:
@staticmethod
def search_item(product):
# Read the page contents and get structured data using... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import gi
gi.require_version('Gtk', '3.0')
import sys
import pygame
from gi.repository import Gtk
from sugar3.activity.activity import Activity
from sugar3.graphics.toolbarbox import ToolbarBox
from sugar3.activity.widgets import <API key>
from sugar3.graphics.toolbutton im... |
/*
* @lc app=leetcode id=74 lang=c
*
* [74] Search a 2D Matrix
*
* autogenerated using scripts/convert.py
*/
bool searchMatrix(int** matrix, int matrixRowSize, int matrixColSize, int target) {
int start = 0, end = matrixRowSize - 1, mid, *row = NULL;
if ((! (matrixRowSize && matrixColSize)) || target < ma... |
#ifndef __INC_DMX_H
#define __INC_DMX_H
#include <avr/io.h>
#include <stdint.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#if ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
//#define USE_INTERBYTE_DELAY // rare cases of equipment non full DMX-512 compliant, need this
#de... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import classnames from "classnames";
export default class Reply extends Component {
static propTypes = {
className: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
stroke: PropTypes.string,
... |
#pragma once
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
namespace test
{
template <int streamFd>
class DisableStream
{
public:
explicit DisableStream(FILE* handle)
: fileDescriptor(dup(streamFd)), fileHandle(handle)
{
fflush(fileHandle);
... |
//! # HTTP Response generation
//! The HTTP Response code converts response objects into octets and
//! writes them to a stream.
// Imports
use std::collections::HashMap;
use std::fmt;
use std::io;
use std::borrow::Cow;
// Public Types
#[derive(Debug, Clone, Copy)]
pub enum HttpResponseStatus {
Continue = 100,
... |
#include <DDesktopServices>
#include <DTitlebar>
#include <QApplication>
#include <QDebug>
#include <QDir>
#include <QProcess>
#include <QStandardPaths>
#include <daboutdialog.h>
#include "home_page.h"
#include "list_page.h"
#include "main_window.h"
#include "record_page.h"
#include "toolbar.h"
#include "utils.h"
<API ... |
package es.maltimor.genericDoc.parser;
import java.util.ArrayList;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TokenArray {
final Logger log = LoggerFactory.getLogger(TokenArray.class);
private boolean eof;
private int pos;
private List<String> listaToken... |
#include <firstinclude.h>
double add(double a,double b); |
package basic.<API key>;
public interface Calculation {
double multiplex(double result, double operand);
double add(double result, double operand);
double divide(double result, double operand);
double sub(double result, double operand);
} |
'use strict'
const mh = require('multihashes')
const assert = require('assert')
class DAGNode {
constructor (data, links, serialized, multihash) {
assert(serialized, 'DAGNode needs its serialized format')
assert(multihash, 'DAGNode needs its multihash')
if (typeof multihash === 'string') {
multihash... |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Media;
namespace TailBlazer.Views
{
public class VirtualScrollPanel : VirtualizingPanel, IScrollInfo
{
private ... |
#ifndef BACKLIGHT_H_
#define BACKLIGHT_H_
#include <stdint.h>
class Backlight
{
public:
void init();
void setValuePercent(uint8_t value);
};
#endif /* BACKLIGHT_H_ */ |
from django.contrib.auth.models import Group, User
from django.db import models
from django.utils.translation import gettext_lazy as _
class GroupContact(models.Model):
"""
Groups displayed in contact page and their informations.
"""
class Meta:
verbose_name = _("Groupe de la page de contact")
... |
div.balance {
color: #65B33C;
font-size: 18px;
}
div.balance div.price {
display: inline;
color: #C74530;
padding-left: 10px;
}
/* table part */
tr.sub td.amount {
color: red;
}
tr.add td.amount {
color: green;
}
tr.status-1 {
color: blue;
}
tr.status-3 td, tr.status-4 td,tr.status-5 td,tr.status-6 td {... |
Game.Tile = function (properties) {
this._litGlyph = properties.litGlyph || Game.Glyph.Null;
this._darkGlyph = properties.darkGlyph || Game.Glyph.Null;
this._blocked = properties.blocked || false;
if (properties.blockSight === false) {
this._blockSight = false;
} else {
this._blockSight = properties.b... |
var express = require('express'),
env = require('process').env,
config = require(env.CONFIG_PATH)
var app = express()
app.use(require('body-parser').json())
app.use(require('cookie-parser')())
app.use(`${config.http.root}/`,
express.static(`${__dirname}/../public`, {
index: ['index.html'],
})
)
... |
package org.deidentifier.arx.cli.model;
import java.text.ParseException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.deidentifier.arx.cli.ParseUtil;
/**
* The model for distinct l-diversity.
*
* @author Fabian Prasser
* @author Florian Kohlmayer
*/
public class DistinctLDiversity ext... |
#include <libDruid/SerialDruid.h>
#include "MainWindow.h"
#include "App.h"
#include "Config.h"
namespace DRUID {
#ifdef PLATFORM_LINUX
#define DEF_WIN_WIDTH 750
#define DEF_WIN_HEIGHT 565
#else
#define DEF_WIN_WIDTH 770
#define DEF_WIN_HEIGHT 630
#endif
bool App::OnInit()
{
srand(time(0));
MainWindo... |
#include "../ulixlib.h"
int main () {
printf ("Press Return to end.\n");
int f1 = fork (); // 2 procs
int f2 = fork (); // 4 procs
int f3 = fork (); // 8 procs
int f4 = fork (); // 16 procs
int f5 = fork (); // 32 procs
int f6 = fork (); // 64 procs
int pid = getpid ();
int ppid = getppid ... |
#ifndef TOKEN_H
#define TOKEN_H
string_t* token_next(char **str);
string_t* token_getlabel(string_t *str);
int token_islabel(string_t *str);
int token_iscomment(string_t *str);
int token_isreg(string_t *str);
int token_mnem2op(string_t *str);
int token_getnum(string_t *str);
int token_getreg(string_t *str);
int token_i... |
var reaction_8hpp =
[
[ "reaction_struct", "<API key>.html", "<API key>" ],
[ "integrate_reaction", "reaction_8hpp.html#<API key>", null ],
[ "<API key>", "reaction_8hpp.html#<API key>", null ],
[ "<API key>", "reaction_8hpp.html#<API key>", null ],
[ "reaction", "reaction_8hpp.html#<API key>", null... |
<?php
/**
* @see Zend_Exception
*/
require_once 'Zend/Exception.php';
class <API key> extends Zend_Exception
{
} |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('wizard', '<API key>'),
]
operations = [
migrations.AddField(
model_name='globals',
name='MEAL',
... |
#ifndef __prisoner_hh
#define __prisoner_hh
#include<ostream> // for std::ostream
class Prisoner {
public:
virtual void init(int imynum,int iprisnum)=0;
virtual void nullit()=0;
virtual bool wantToEnd()=0;
virtual bool doYourThing(bool)=0;
virtual void output(std::ostream& ou... |
package net.sf.jasperreports.charts.design;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Collection;
import net.sf.jasperreports.charts.JRDataRange;
import net.sf.jasperreports.charts.JRValueDisplay;
import net.sf.jasperreports.charts.base.JRBaseMeterPlot;
import net.sf.jasperreports.charts.base.... |
// written by : Doug Reuter
// SPI2C is a libarary that combines both SPI calls and I2C calls into
// like methods so sensors that use both protocols can be used with minimum modfication
// may work on other arduino boards as well
// This program is free software: you can redistribute it and/or modify
// ... |
package testblas
import (
"testing"
"gonum.org/v1/gonum/blas"
)
type Dgbmver interface {
Dgbmv(tA blas.Transpose, m, n, kL, kU int, alpha float64, a []float64, lda int, x []float64, incX int, beta float64, y []float64, incY int)
}
func DgbmvTest(t *testing.T, blasser Dgbmver) {
for i, test := range []st... |
<?php defined('BASEPATH') OR exit('No direct script access allowed');
class Sys_Exportso extends CI_Controller {
public function __construct() {
parent::__construct();
$this->load->model("Tpo_model", "so");
}
public function index() {
$so = $this->so->get_so();
$aout[0][0] = "Orden de g... |
import config
#This module is used for calling the Wolfram Alpha API
#It defines a function that constructs an URL based on the query.
#NOTE: This module returns only the URL. This URL is passed in the bot.py file. Telegram Takes care of the rest.
def query(query):
question = query.replace(" ","+") ... |
# Import Public Furniture listing into local database from CSV
import sys
sys.path.append('..')
from settings import *
import psycopg2
import psycopg2.extensions
import csv
class Point(object):
def __init__(self, dataString):
#clip out parenthesis, and split over comma
data = dataString[1:-1].split(... |
#!BPY
# -*- coding: utf-8 -*-
"""
Name: 'Glome Mesh Exporter'
Blender: 259
Group: 'Export'
Tooltip: 'Export meshes to Binary file format for Glome Game Renega Desruga'
"""
# This program is free software: you can redistribute it and/or modify
# (at your option) any later version.
# This program is distributed in the ho... |
var express = require('express');
var router = express.Router();
var ce = require('./commandExecutor');
var config = require('./config');
var winston = require('./log.js');
/* GET home page. */
router.get('/', function (req, res, next) {
winston.info("Rendering downloader main page");
res.render('index', {
... |
package org.ju2ender.x.types;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
/**
* JodaTime
*/
public final class DateTimeUtil
{
private static final String <API key> = "yyyy-MM-dd'T'HH:mm:ss";
private static final String <API key> = ... |
#!/usr/bin/python
__author__ = 'joaci'
try:
import time
from pyfase import MicroService
except Exception as e:
print('require module exception: %s' % e)
exit(0)
class Pong(MicroService):
def __init__(self):
super(Pong, self).__init__(self, sender_endpoint='ipc:///tmp/sender', receiver_endpoi... |
#ifndef MEAN_EIGEN_H_
#define MEAN_EIGEN_H_
#include <shogun/lib/config.h>
#include <shogun/lib/SGVector.h>
#include <shogun/lib/SGMatrix.h>
#include <shogun/mathematics/linalg/internal/implementation/Sum.h>
#include <shogun/mathematics/eigen3.h>
#include <numeric>
namespace shogun
{
namespace linalg
{
namespace implem... |
package org.thehellnet.shab.protocol.line;
import org.thehellnet.shab.protocol.exception.<API key>;
import org.thehellnet.shab.protocol.exception.ParseLineException;
import java.util.Locale;
public class ServerPingLine extends Line {
private static final Command COMMAND = Command.SERVER_PING;
public static fina... |
// 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: 2016.08.11 at 01:51:42 PM MSK
package org.smpte_ra.reg._395._2014._13._1.aaf;
import javax.xm... |
#include "Cog.hh"
namespace ai {
namespace becca {
Cog::Cog() {
mZipTie = new CogZipTie;
mDaisyChain = new CogDaisyChain;
}
Cog::~Cog() {
delete mZipTie;
delete mDaisyChain;
}
} /* namespace becca */
} /* namespace ai */ |
<?php
/**
* Includes the Convert Class.
*
* @filesource
* @author Stefan Herndler
* @since 1.5.0 12.09.14 10:56
*/
/**
* Converts data types and Footnotes specific values.
*
* @author Stefan Herndler
* @since 1.5.0
*/
class <API key> {
/**
* Converts a integer into the user-defined counter style for... |
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Threading;
using CameraControl.Devices.Classes;
using WIA;
using System.Runtime.InteropServices;
namespace CameraControl.Devices.Others
{
public class WiaCameraDevice : BaseCameraDevice
{
Dictionary<int,string>... |
# Utility functions
# This program is free software: you can redistribute it and/or modify
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
import logging
import ntpath
import os
import pathlib
import ... |
package bc
import (
"fmt"
"math/big"
"github.com/immesys/bw2/util/bwe"
"github.com/immesys/bw2bc/common"
"github.com/immesys/bw2bc/common/math"
)
/*
This is the API for a 32 byte Universal Function Identifier.
The first 20 bytes are a contract address. The next 4 bytes are the
function selector. The... |
using System.Windows;
using System.Windows.Media;
using Hurricane.PluginAPI.AudioVisualisation;
namespace Hurricane.Settings.Themes.AudioVisualisation.<API key>
{
public class <API key> : <API key>
{
private <API key> _loadedPlugin;
public override <API key> Visualisation
{
g... |
'use strict';
/**
* Serverless Module: Lambda Handler
* - Your lambda functions should be a thin wrapper around your own separate
* modules, to keep your code testable, reusable and AWS independent
* - '<API key>' module is required for Serverless ENV var support. Hopefully, AWS will add ENV support to Lambda soon... |
from channels.auth import <API key>,<API key>,http_session
from channels.routing import route, route_class
from channels.sessions import <API key>,channel_session
import datetime
import json
import copy
import pprint as pp
from django.http import HttpResponse
from django.http import <API key>
from Crypto.Hash import MD... |
#!/usr/bin/env python
from time import sleep
class ButtonListener():
"""
Service that polls the button status device and calls a
callback funtion for each button pressed.
Callback function should return a boolean to show whether
or not the listening should continue.
"""
def __init__(self, bu... |
#ifndef <API key>
#define <API key>
#include "<API key>.h"
#include <vector>
#include "<API key>.h"
#include <vector>
#include "podio/ObjectID.h"
//forward declarations
namespace ex {
class <API key>;
class <API key>;
}
#include "<API key>.h"
#include "<API key>.h"
namespace ex {
class <API key>;
class <API key>;
class... |
#include "storm/storage/expressions/BinaryExpression.h"
#include "storm/exceptions/<API key>.h"
#include "storm/utility/macros.h"
namespace storm {
namespace expressions {
BinaryExpression::BinaryExpression(ExpressionManager const& manager, Type const& type, std::shared_ptr<BaseExpression const> const& firstOperand,
... |
#include <iostream>
using namespace std;
int main() {
cout << "char: " << sizeof(char) << endl;
cout << "int: " << sizeof(int) << endl;
cout << "long: " << sizeof(long) << endl;
cout << "short :" << sizeof(short) << endl;
cout << "float: " << sizeof(float) << endl;
cout << "double: " << sizeof(double) << endl;
cout ... |
package io.getgauge.spec;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Table</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* <ul>
* <li>{@link io.getgauge.spec.T... |
<html lang="en">
<head>
<title>FAQ 1-7 - Frequently Asked Questions</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="Frequently Asked Questions">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="<API k... |
<div ng-mouseup="stopDrag($event)" ng-mousemove="drag($event)" style="padding: 3px 0;">
<div style="width: 0; height: 0; overflow: visible; z-index: 2;">
<div style="width: 5px; height: 10px; border-radius: 5px; background-color: rgb(40, 40, 40); position: relative; cursor: ew-resize;"
ng-style... |
'
' * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
' *
' *
' *
' *
' *
' *
' *
' *
' *
' *
' *
' *
' *
' *
' *
' *
' *
' *
' *
' *
'
'
' *
' *
' *
' *
' *
' * Written by Doug Lea with assistance from members of JCP JSR-166
' * Expert Group and released to the public domain, as explained at
' * http... |
#ifndef PF_PCAP
#define PF_PCAP
#define PCAP_MAGIC 0xa1b2c3d4 /* the magic of the pcap global header (non swapped) */
#define PCAP_MAGIC_SWAPPED 0xd4c3b2a1 /* the magic of the pcap global header (non swapped) */
#define PCAPNG_MAGIC 0x0a0d0d0a /* the magic of the pcap global header (non swa... |
package com.berka.multiplanner.Models.Trips;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class From{
private List<Location> location;
public From(JSONObject object) throws JSONException
{
... |
package org.patientview.radar.web.components;
import org.apache.wicket.Component;
import org.apache.wicket.feedback.FeedbackMessage;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.form.PasswordTextField;
import org.apache.wicket.markup.html.panel.<API key>;
import org.apac... |
#include "fitz.h"
/* TODO: check if this works with 16bpp images */
enum { MAXC = 32 };
typedef struct fz_predict_s fz_predict;
struct fz_predict_s
{
fz_stream *chain;
int predictor;
int columns;
int colors;
int bpc;
int stride;
int bpp;
unsigned char *in;
unsigned char *out;
uns... |
define(["myorder_view"], function(myorder_view) {
'use strict';
var MyOrderMatrixView = App.Views.FactoryView.extend({
name: 'myorder',
mod: 'matrix',
bindings: {
'.action_button': 'classes: {disabled: not(attributesSelected)}, text: select(ui_isAddMode, <API key>, <API key>)... |
.avatar {
border: 1px solid alpha (#000, 0.35);
border-radius: 50%;
box-shadow: inset 0 0 0 1px alpha (#fff, 0.05),
inset 0 1px 0 0 alpha (#fff, 0.45),
inset 0 -1px 0 0 alpha (#fff, 0.15),
0 1px 3px alpha (#000, 0.12),
0 1px 2px alpha (#000, 0.... |
package net.sf.laja.template;
import net.sf.laja.SyntaxPrintable;
import net.sf.laja.SyntaxPrinter;
import net.sf.laja.TemplateParser.IBlock;
import net.sf.laja.TemplateParser.IElse;
public class Else implements IElse, SyntaxPrintable {
private Block block;
public void setBlock(IBlock iblock) {
this.blo... |
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.... |
# Our friend Monk has an exam that has quite weird rules. Each question has a difficulty level in the form of an
# Integer. Now, Monk can only solve the problems that have difficulty level less than X . Now the rules are-
# Score of the student is equal to the maximum number of answers he/she has attempted without skip... |
<?php
defined('_JEXEC') or die;
/**
* View class for a list of documents.
*
* @package Projectlog.Administrator
* @subpackage com_projectlog
* @since 3.3.1
*/
class ProjectlogViewDocs extends JViewLegacy
{
protected $items;
protected $pagination;
protected $state;
/**
* Display the... |
package com.nixmash.blog.jpa.dto;
import java.io.Serializable;
public class AlphabetDTO implements Serializable {
private static final long serialVersionUID = -<API key>;
private String alphaCharacter;
private Boolean isActive;
public AlphabetDTO() {}
public AlphabetDTO(String alphaCharacter, Boolea... |
#ifndef __GRAPHICS_H__
#define __GRAPHICS_H__
extern "C" {
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/Xatom.h>
}
#include <string>
#include <sstream>
#include <iostream>
#include <vector>
#include <map>
#include "point.h"
class XGraphics {
private:
bool initialized;
Display *dis... |
define(['models/DataStorage'], function(DataStorage) {
'use strict';
/**
* HTML5 Audio player.
* @type {HTMLAudioElement}
*/
var _audio;
/**
* Attach event handler to player.
* @param {string} name
* @param {function} callback
*/
function attachEvent(name, callback) {
switch (name) {
... |
// modifyed by osilloscopion (2 Jul 2016)
#pragma once
#include "common.h"
void NTR_CmdReset(void);
u32 NTR_CmdGetCartId(void);
void <API key>(void);
void NTR_CmdReadHeader (void* buffer);
void NTR_CmdReadData (u32 offset, void* buffer);
bool NTR_Secure_Init (u8* buffer, u32 CartID); |
Joomla 2.5.28 = <API key>
Joomla 2.5.7 = <API key>
Joomla 3.3.3 = <API key>
Joomla 3.6.4 = <API key>
Joomla 3.2.1 = <API key>
Joomla 2.5.0 = <API key>
Joomla 3.4.8 = <API key>
Joomla 3.5.1 = <API key>
Joomla 3.7.0 = <API key>
Joomla 2.5.9 = <API key>
Joomla 3.7.3 = <API key>
Joomla 3.0.2 = <API key> |
<?php
namespace Gerh\Evecorp\Domain\Repository;
class <API key> extends ApiKeyRepository
{
} |
# 3. Ubuntu 16.04 as Server OS
Date: 2017-11-04
## Status
Accepted
## Context
We need to select a base operating system to install on all virtual machines that form
the Datalabs environment. There are three choices available through the JASIMN portal
Ubuntu 14.04, Ubuntu 16.04 and CentOS 6.9.
## Decision
We have select... |
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_29) on Sat Mar 17 18:06:09 MSK 2012 -->
<TITLE>
Uses of Class org.apache.poi.xslf.usermodel.XSLFTableCell (POI API Documentation)
</TITLE>
<META NAME="date" CONTENT="2012-03-17">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../..... |
<?php
namespace RevenantBlue\Admin;
use RevenantBlue;
use \PDO;
class Tags extends RevenantBlue\Db {
public $whiteList = array('id', 'tagId', 'tag_name', 'tag_alias', 'tag_description', 'tag_id', 'article_id', 'popularity');
private $tagsTable;
private $articleTagsTable;
public function __construct() {... |
from scapy.all import *
from veripy.assertions import *
from veripy.models import ComplianceTestCase
class <API key>(ComplianceTestCase):
"""
Stub Fragment Header
Verify that a node accepts the offset zero fragment with the More
Fragments flag clear.
@private
Source: IPv6 Ready Phase-1/P... |
package br.com.ezzysoft.restaurante.entidade;
import javax.persistence.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
@Entity
@Table(name = "combinado")
public class Combinado implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optiona... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "<API key>.h"
#include <gnuradio/io_signature.h>
#include <boost/format.hpp>
namespace gr {
namespace blocks {
ctrlport_probe2_c::sptr ctrlport_probe2_c::make(const std::string& id,
const std::string& desc,
... |
#include <linux/dvb/frontend.h>
#include "dvb_frontend.h"
static int stb6100_get_freq(struct dvb_frontend *fe, u32 *frequency)
{
struct dvb_frontend_ops *frontend_ops = &fe->ops;
struct dvb_tuner_ops *tuner_ops = &frontend_ops->tuner_ops;
int err = 0;
if (tuner_ops->get_frequency)
{
if... |
package cwe.scala.library.math
import cwe.scala.library.boxes._
import cwe.scala.library.math.bignumbers.Integer
import cwe.scala.library.math.bignumbers.Natural
class PositiveRational[T] (numerator: T, denominator: T)(implicit nBox: Numeric[T])
extends Rational[T](if(nBox.smaller(numerator, nBox.zero)) throw new <... |
#!/home/bjs66/anaconda2/bin/python2.7
import h5py
import numpy as np
import easyfit as ef
import datetime
import pytz
import os
# Prepare timezones and beginning of epcoch for later use
utc = pytz.utc
eastern = pytz.timezone('US/Eastern')
epochBeginning = utc.localize(datetime.datetime(1970,1,1))
# ... |
#include "vector3.h"
#include <stdio.h>
using namespace nautical::math;
void print_vector(Vector3<float> vector)
{
printf("Vector: X: %f Y: %f Z: %f", vector.x, vector.y, vector.z);
}
void test_vector3_add(void)
{
Vector3<float> vec1(15.0f, -30.0f, 10.2f);
Vector3<float> vec2(28.0f, 14.4, -2.0f);
Vector... |
/* Cute3D, a simple opengl based framework for writing interactive realtime applications */
/* This file is part of Cute3D. */
/* Cute3D is free software: you can redistribute it and/or modify */
/* (at your option) any later version. */
/* Cute3D is distributed in the hope that it will be useful, */
/* MERCHANTABILITY... |
package com.mprevisic.user.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* Security key entity
*
* @author Marko Previsic
* @created May 22, ... |
CREATE TABLE IF NOT EXISTS `exf_page` (
`oid` binary(16) NOT NULL,
`created_on` datetime NOT NULL,
`modified_on` datetime NOT NULL,
`created_by_user_oid` binary(16) DEFAULT NULL,
`<API key>` binary(16) DEFAULT NULL,
`app_oid` binary(16) DEFAULT NULL,
`page_template_oid` binary(16) DEFAULT NULL,
`name` v... |
namespace Maticsoft.TaoBao.Request
{
using Maticsoft.TaoBao;
using Maticsoft.TaoBao.Util;
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
public class FavoriteAddRequest : ITopRequest<FavoriteAddResponse>
{
private IDictionary<string, string> ot... |
$(window).scroll(
function() {
var scrollTop = $(this).scrollTop();
var scrollHeight = $(document).height();
var windowHeight = $(this).height();
if (scrollTop + windowHeight > scrollHeight - 200) {
ajax_sourch_submit();
}
}
); |
#coding:utf8
import re
import random
import time
import lxml.html
import json
def sleep(sleep_time):
sleep_time=sleep_time+random.randint(-2,2)
#print sleep_time
if sleep_time<=0:
sleep_time=0
#print('Sleeping for '+str(sleep_time)+' seconds')
time.sleep(sleep_time)
#print('Wake up')
def... |
package it.fmd.cocecl.gcm;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import com.google.android.gms.gcm.GcmPubSub;
import com.google.android.gms.gcm.<API key>;
import java.io.IOException;
import it.fmd.cocecl.APPConstants;
import it.fmd.cocecl.R;
publ... |
#include "Evento.h"
Evento::Evento(int _tempo, void *_objeto, void *_relacionado, int _tipo) {
tempo = _tempo;
objeto = _objeto;
tipo = _tipo;
relacionado = _relacionado;
}
int Evento::getTipo() { return tipo; }
int Evento::getTempo() const { return tempo; }
void *Evento::getObjeto() { return objeto; }
void *Ev... |
package com.example.benzex.holamundo;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activi... |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http:
<html xmlns="http:
<head>
<title>ActiveSupport</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="../css/reset.css" type="text/css" media="... |
<!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.6"/>
<title>Sidequest2: SideQuest II/SideQuest II/Tilemap.h Source File</title>
<link href="tabs.css" re... |
package adams.flow.transformer;
import adams.core.QuickInfoHelper;
import adams.core.Utils;
import adams.core.io.PlaceholderFile;
import adams.flow.core.Token;
import adams.gui.tools.<API key>.io.<API key>;
import adams.gui.tools.<API key>.io.<API key>;
import java.io.File;
/**
<!-- globalinfo-start -->
* Loads an ex... |
$(document).ready(function() {
$("#search_box").keyup(function() {
$("#search_div").load("/corect/ajax_search/" + $("#search_box").val());
});
$("#search_box").bind("enterKey",function() {
$("#search_div").load("/corect/ajax_search/" + $("#search_box").val());
});
}); |
#ifndef _FILE_EXT_H
#define _FILE_EXT_H
#ifdef HAVE_DYNAMIC
#ifdef _WIN32
#define EXT_EXECUTABLES "dll"
#elif defined(__APPLE__) || defined(__MACH__)
#define EXT_EXECUTABLES "dylib"
#else
#define EXT_EXECUTABLES "so"
#endif
#else
#if defined(__CELLOS_LV2__)
#define EXT_EXECUTABLES "self|SELF|bin|BIN"
#define SALAMANDER... |
import bisect
import json
import progress
import zoning
def <API key>(stream):
old_pos = stream.tell()
stream.seek(0, 2)
size = f.tell()
stream.seek(old_pos, 0)
return size
class NullFeatures(object):
def __init__(self, map1_len, map2_len):
self._mapping = map1_len * map2_len
sel... |
"""Collection of DIRAC useful file related modules.
.. warning::
By default on Error they return None.
"""
# pylint: skip-file
# getGlobbedFiles gives "RuntimeError: maximum recursion depth exceeded" in pylint
import os
import hashlib
import random
import glob
import sys
import re
import errno
__RCSID__ = "$Id$"
# T... |
// File : exLayerMng.cs
// Author : Wu Jie
// Last Change : 11/06/2011 | 17:23:35 PM | Sunday,November
// Description :
// usings
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
A component to manage draw order
[ExecuteInEditMode]
[AddComponentMenu("ex2D Helper/Layer Manag... |
from pox.core import core
import pox.openflow.libopenflow_01 as of
from pox.lib.revent import *
from pox.lib.util import dpidToStr
from pox.lib.addresses import EthAddr, IPAddr
from collections import namedtuple
import pox.lib.packet as pkt
import os
import string,sys,socket,json, subprocess
import thread
log = core.ge... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.