answer stringlengths 15 1.25M |
|---|
"use strict";
(function (mod) {
if (typeof exports == "object" && typeof module == "object") {
mod(require("codemirror"));
}
else if (typeof define == "function" && define.amd) {
define(["codemirror"], mod);
}
else {
mod(CodeMirror);
}
})(function (CodeMirror) {
"use ... |
#include <string.h>
#include "search_anagram.h"
static inline uint8_t GET_BIT(uint8_t num, uint8_t which_bit)
{
if (which_bit < 8) {
return (num & (1 << which_bit));
} else {
return 0;
}
}
static inline uint8_t SET_BIT(uint8_t num, uint8_t which_bit)
{
if (which_bit < 8) { // only applie... |
#!/bin/sh
set -e
mkdir -p "${TARGET_BUILD_DIR}/${<API key>}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
case "${<API key>}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
1)
TARGET_DEVICE_ARGS="--target-device i... |
namespace <API key>
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
using System.Text;
using System.Threading.Tasks;
class <API key>
{
static void Main()
{
string directoryPath = @"C:\";
string fileToWrit... |
using UnityEngine;
using System.Collections;
using UnityEditor;
using BMAPI.v1;
public class OpenFileDialog : MonoBehaviour {
private BMAPI.v1.Beatmap m_beatmap;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
public void SelectFile(... |
1. ~~Observer~~
2. ~~Individual Updates - <API key>.rb~~
1. ~~<API key>.rb~~
2. ~~<API key>.rb~~
3. ~~Enrollment Actions~~
1. ~~active_renewal.rb~~
2. ~~assistance_change.rb~~
3. ~~carrier_switch.rb~~
4. ~~<API key>.rb~~
5. ~~<API key>.rb~~
6. ~~<API key>.rb~~
7. ~~cobra_reinstate.rb~~
8. ... |
;(function() {
'use strict';
/**
* Evemit
*
* @constructor
* @api public
*/
function Evemit() {
this.events = {};
}
/**
* Register a new event listener for a given event.
*
* @param {string} event Event name.
* @param {function} fn Callback function (listener).
... |
package org.simpleflatmapper.poi.impl;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.simpleflatmapper.map.<API key>;
import org.simpleflatmapper.map.<API key>;
import org.simpleflatmapper.map.SourceFieldMapper;
import org.simpleflatmapper.map.MappingContext;
import org.sim... |
<?php
/*
* This is a firt example of user script,
* used eg. from a special button
*
*/
// Add the conf file and first bootstrap
require_once("../inc/conn.php");
// remove the comment if the script is not public
// proteggi(); // authenticated users
// proteggi(2); // level 2 users
// proteggi(3); // level 3 users ... |
#!/usr/bin/env python3
import argparse
import datetime
import hashlib
import json
import logging
import os
import resource
import shutil
import sys
import tempfile
import time
import zipfile
def _main():
parser = argparse.ArgumentParser()
parser.add_argument('config', help='JSON configuration file')
parser.... |
title: "JavaScript spread operator and Redux reducers"
layout: post
The JavaScript spread operator (`...`) can help us write more
declarative code for manipulating and copying objects.
## Redux and state mutation
Redux reducers are used to transform the application state from the old
state to a new state in response to... |
h1 a {
color: #FCA205;
font-family: 'cursive';
}
/* Remove the navbar's default margin-bottom and rounded borders */
.navbar {
margin-bottom: 0;
border-radius: 0;
}
/* Set height of the grid so .sidenav can be 100% (adjust as needed) */
.row.content {
height: 450px
}
/* Set gray background color and... |
// SCCatWaitingHUD.h
// SCCatWaitingHUD
#import <UIKit/UIKit.h>
#import "UIViewExt.h"
#define ScreenWidth [[UIScreen mainScreen] bounds].size.width
#define ScreenHeight [[UIScreen mainScreen] bounds].size.height
#define <API key> [UIColor colorWithRed:75.0f/255.0f green:... |
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Student CNN encoder for XE training."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
from models.encoders.core.cnn_util import conv_layer, max_pool, batch_normaliz... |
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_WSANSClassInfoA.hpp>
START_ATF_NAMESPACE
typedef _WSANSClassInfoA *LPWSANSCLASSINFO;
END_ATF_NAMESPACE |
package com.lqtemple.android.lqbookreader.model;
import java.io.Serializable;
public class MusicMedia implements Serializable{
private int id;
private String title;
private String artist;
private String url;
private String time;
private String size;
private int albumId;
private String al... |
(function() {
//
var CND, Multimix, alert, badge, debug, dec, decG, echo, help, hex, hexG, info, isa, log, name, nameO, nameOG, rpr, type_of, types, urge, validate, warn, whisper;
CND = require('cnd');
rpr = CND.rpr.bind(CND);
badge = 'NCR';
log = CND.get_logger('plain', badge);
info = CND.get_logger('inf... |
const BaseAssertion = require('./_element-assertion.js');
class PropertyAssertion extends BaseAssertion {
static get assertionType() {
return BaseAssertion.AssertionType.METHOD;
}
init(property, msg) {
super.init();
this.flag('attributeFlag', true);
this.property = property;
this.hasCustomMess... |
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Battleships Server</title>
<script src="/socket.io/socket.io.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r72/three.js"></script>
<script src="main.js"></script>
<style>
html {
box-sizing: b... |
import javax.naming.directory.DirContext;
import org.owasp.esapi.Encoder;
import org.owasp.esapi.reference.DefaultEncoder;
public void ldapQueryBad(HttpServletRequest request, DirContext ctx) throws NamingException {
String organizationName = request.getParameter("organization_name");
String username = request.getP... |
package sample;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.TextArea;
import javafx.scene.paint.Color;
import javafx.scene.text.Text;
import javafx.scene.text.TextFlow;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
pub... |
title: "A Post with a Video"
description: "Custom written post descriptions are the way to go... if you're not lazy."
tags: [sample post, video]
<iframe width="560" height="315" src="
Video embeds are responsive and scale with the width of the main content block with the help of [FitVids](http://fitvidsjs.com/).
Not su... |
namespace BookShop
{
using BookShop.Data;
using BookShop.Models;
using BookShop.Initializer;
using System.Linq;
using System;
using System.Collections.Generic;
using System.Text;
public class StartUp
{
static void Main()
{
var input = Console.ReadLine();
... |
const rangeParser = require(`parse-numeric-range`)
module.exports = language => {
if (!language) {
return ``
}
if (language.split(`{`).length > 1) {
let [splitLanguage, ...options] = language.split(`{`)
let highlightLines = [],
numberLines = false,
numberLinesStartAt
// Options can be ... |
import ruleError from './ruleError'
// Tags that have no associated components but are allowed even so
const componentLessTags = [
'mj-all',
'mj-class',
'mj-selector',
'mj-html-attribute',
]
export default function validateTag(element, { components }) {
const { tagName } = element
if (componentLessTags.incl... |
# -*- coding utf-8 -*-
from __future__ import unicode_literals
import pytest
from structures.insertion_sort import insertion_sort
@pytest.fixture
def sorted_list():
return [i for i in xrange(10)]
@pytest.fixture
def reverse_list():
return [i for i in xrange(9, -1, -1)]
@pytest.fixture
def average_list():
re... |
class <API key> {
constructor() {
// short bands () {get} {set}
this.bands = undefined;
// int Capabilities () {get}
this.Capabilities = undefined;
// string Direction () {get} {set}
this.Direction = undefined;
// float Duration () {get} {set}
this.Dur... |
'use strict';
var webpack = require('webpack');
var cfg = {
entry: './src/main.jsx',
output: {
path: __dirname + '/dist',
filename: 'main.js',
},
externals: {
yaspm: 'commonjs yaspm'
},
target: process.env.NODE_ENV === 'web' ? 'web' : 'node-webkit',
module: {
loaders: [
{
tes... |
require('./style.css');
var vm = avalon.define({
$id:'map'
})
module.exports = vm; |
#pragma once
#include <string>
namespace Utils {
/**
* @brief Get the version of the C++ compiler used.
* @ingroup Utils
*
* Works for the 3 main compilers GCC, Clang and Microsoft Visual Studio
*/
class CompilerVersion
{
public:
Extract informations for the main compilers
CompilerVersion() :
#ifdef _MSC... |
<html>
<head>
<title>Learning WebGL — lesson 2</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<script type="text/javascript" src="glMatrix-0.9.5.min.js"></script>
<script type="text/javascript" src="webgl-utils.js"></script>
<script type="text/javascript" src="./shape.js"></scrip... |
body {
background: #FFFFFF url("{{ "img01.gif" | image_url }}") repeat-x;
color: #333333;
}
h1, h2, h3 {
color: #3E3E3E;
}
a {
color: #7BAA0F;
}
a:hover, a:active {
color: #003448;
}
table.competitors tr:nth-child(even) {
background-color: white;
}
table.competitors tr:nth-child(odd) {
background-color: #... |
// This source file is part of Hect.
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following con... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http:
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
<title>Moonchain</title>
<link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>
<div id="container">
<div id="product">
<div id="product_... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>hello-backbonejs</title>
</head>
<body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="http://ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js"></script>
<script src="http://ajax.cdnjs.com/ajax/l... |
extern crate build;
fn main() {
build::link("wow32", true)
} |
package com.glazebrook.tictactoe.responses;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.constraints.NotNull;
import java.util.UUID;
public class JoinGameResponse {
@JsonProperty
@NotNull
private UUID gameId;
@JsonProperty
@NotNull
private UUID playerId;
@Jso... |
# docker-logs
Centralized logging for [Docker](https:
## Run the container
Using the `docker` command:
CONTAINER="logs" && sudo docker run \
--name "${CONTAINER}" \
-h "${CONTAINER}" \
-p 80:80 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/docker/containers:/var/lib/dock... |
package com.wavesplatform.transaction.assets.exchange
import com.google.common.primitives.Bytes
import com.wavesplatform.common.state.ByteStr
import com.wavesplatform.serialization.Deser
import com.wavesplatform.transaction.Asset.{IssuedAsset, Waves}
import com.wavesplatform.transaction._
import com.wavesplatform.trans... |
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>GroupV2 | The Traveler</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" ... |
#import "TiViewProxy.h"
@interface <API key> : TiViewProxy {
}
@end |
module HealthSeven::V2_6
class RorRor < ::HealthSeven::Message
attribute :msh, Msh, position: "MSH", require: true
attribute :msa, Msa, position: "MSA", require: true
attribute :errs, Array[Err], position: "ERR", multiple: true
attribute :sfts, Array[Sft], position: "SFT", multiple: true
attribute :uac, Uac, ... |
'use strict';
const _ = require('lodash');
const path = require('path');
/**
* Special settings for use with serverless-offline.
*/
module.exports = {
<API key>() {
// Use service packaging for compile
_.set(this.serverless, 'service.package.individually', false);
return this.serverless.pluginManager.sp... |
<?php
namespace Convict\Validator;
class Any implements Validator {
public function validate($key, $value)
{
}
public function coerce($value)
{
return $value;
}
} |
package com.mrmq.poker.common.glossary;
public enum ServiceType {
ADMIN("admin"),
POKER("poker");
String value;
private ServiceType(String value) {
this.value = value;
}
public String getValue(){
return value;
}
} |
#include "C:\Factory\Common\all.h"
#include "C:\Factory\Common\Options\csv.h"
static void CsvToJson(char *rFile, char *wFile)
{
autoList_t *csv = readCSVFileTR(rFile);
autoList_t *head;
uint rowidx;
FILE *wfp;
head = getList(csv, 0);
wfp = fileOpen(wFile, "wt");
writeLine(wfp, "[");
for(... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace <API key>
{
class Program
{
static void Main(string[] args)
{
string pattern = "[A-Z][a-z]+ [A-Z][a-z]+";
Re... |
// 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: 2018.06.05 at 08:50:12 PM SAMT
package ru.fsrar.wegais.infoversionttn;
import javax.xml.bind.... |
#ifndef TEXTURERESOURCE_H
#define TEXTURERESOURCE_H
#include <sunglasses/Extern/Resource.h>
#include <string>
#include <GL/glew.h>
namespace sunglasses {
class TextureResource : public Resource {
public:
Constructs the texture resource with a path to the texture.
/**
* This constructor initializes the file... |
% Underlying graph for minimum spanning tree (mst) example
% Redrawn from Figure 5.3 of the textbook ``Algorithms'' by Dasgupta
\begin{tikzpicture}[node distance = {1.0cm and 1.5cm},
v/.style = {draw, circle},
cpv/.style = {v, fill = teal}, % vertices in cut property example
cpe/.style = {circle connecti... |
\begin{figure}[H]
\centering
\includegraphics[width=6in]{figs/run_10/<API key>}
\caption{Scatter plot of reynolds stress term vs radius at $z/c$=5.37, $V_{free}$=32.98, station1}
\label{fig:<API key>}
\end{figure} |
package ru.mvk.biblioGuide.service;
import org.jetbrains.annotations.NotNull;
import ru.mvk.biblioGuide.dao.BookCaseDao;
import ru.mvk.biblioGuide.model.BookCase;
import ru.mvk.iluvatar.descriptor.ListViewInfo;
import ru.mvk.iluvatar.descriptor.ListViewInfoImpl;
import ru.mvk.iluvatar.descriptor.ViewInfo;
import ru.mvk... |
package com.github.ssindelar.ps2parser;
import static org.fest.assertions.api.Assertions.assertThat;
import org.testng.annotations.Test;
import com.github.ssindelar.ps2parser.data.world.WorldResponse;
import com.github.ssindelar.ps2parser.data.world.status.ApiWorldStatus;
import com.github.ssindelar.ps2parser.data.worl... |
<meta charset="utf-8"/>
<!-- @TEMPLATE -->
<textarea name="css">
.m-b0{background:#fd0;}
</textarea>
<textarea name="ntp" id="b0-ntp-0">
<div class="m-b0">
<p><API key></p>
<p><API key></p>
<p><API key></p>
<p><API key></p>
<p><API key></p>
<p><API key></p>
... |
<section data-ng-controller="<API key>" data-ng-init="findOne()">
<div class="page-header">
<h1 data-ng-bind="emaxiningboard.name"></h1>
</div>
<div class="pull-right" data-ng-show="((authentication.user) && (authentication.user._id == emaxiningboard.user._id))">
<a class="btn btn-primary" h... |
#!/bin/bash
# Script to query the wiki pages name for Helm completion source
# swivt:<API key> swivt:wikiPageSortKey
# TODO: error handling is bad
#set -x
QUERY=$(cat<<EOF
select *
from <virtual://mediawiki> {
?page a mw:Page ;
mw:pageNamespaceId ?nsid ;
mw:pageTitle ?title ;
mw:pageUrl ?url ;
mw:... |
let widget = document.<API key>('markdownx-widget')[0];
let element = document.<API key>('markdownx');
let element_divs = element[0].<API key>('div');
let div_editor = element_divs[0];
let div_preview = element_divs[1];
let navbar_bar = document.<API key>('markdownx-toolbar')[0].<API key>('li');
let btn_preview = navba... |
module.exports = {};
var app_data = {};
function initCharts()
{
$(document).ready(function() {
$.get(app_data.config.<API key>, function(analytics_data) {
data = analytics_data.data;
max_val = analytics_data.highest_value;
var parseDate = d3.time.format('%Y%m%d').parse;
... |
<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title><API key> Properties</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" /... |
title: "geom_errorline for intervals"
author: "Tham, Wei Yang"
date: "November 8, 2017"
output: html_document
excerpt: "Upper and lower bounds as lines rather than intervals at each point"
tags:
- r
I'm back! This post is about my attempt to create a ggplot2 `geom`, which I'm calling `geom_errorline`. You can use `ge... |
// CLJIChunk.h
// PersistentStructure
#import "CLJIIndexed.h"
#include "CLJTypes.h"
The CLJIChunk protocol declares the two methods necessary for an object to call itself a
'Chunk'. Chunks are windows into the values of a collection that permit only reduction
@protocol CLJIChunk <CLJIIndexed>
Returns a new chunk wit... |
author: guese.justin@gmail.com
comments: false
date: 2015-09-27 15:14:29+00:00
layout: page
slug: kontakt
title: Kontakt
wordpress_id: 497
<p>Haben Sie Fragen oder sonstige Anmerkungen? Dann schreiben Sie uns!</p>
<form action="//formspree.io/guese.justin@gmail.com"
method="POST">
<h2>Name: </h2><input type="... |
</!DOCTYPE html>
<html>
<head>
<title>Memory Challenge</title>
<link rel="stylesheet" type="text/css" href="main.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="main.js"></script>
<!-- <embed src="jeopardy.mp3" autost... |
const SpecReporter = require('<API key>').SpecReporter;
jasmine.getEnv().clearReporters(); // remove default reporter logs
jasmine.getEnv().addReporter(new SpecReporter({ // add <API key>
spec: {
displayPending: true,
},
summary: {
displayDuration: true,
}
})); |
package cn.osworks.aos.core.captcha.filter.library;
public class DoubleRippleImageOp extends RippleImageOp {
@Override
protected void transform(int x, int y, double[] t) {
double tx = Math.sin((double) y / yWavelength + yRandom) + 1.3 * Math.sin((double) 0.6 * y / yWavelength + yRandom);
double... |
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="">
<!--<![endif]--... |
#![feature(core)]
extern crate core;
#[cfg(test)]
mod tests {
use core::convert::AsRef;
// pub trait FixedSizeArray<T> {
// /// Converts the array to immutable slice
// fn as_slice(&self) -> &[T];
// /// Converts the array to mutable slice
// fn as_mut_slice(&mut self) -> &mut [T... |
# encoding: utf-8
class Money
# Represents a specific currency unit.
class Currency
include Comparable
# Thrown when an unknown currency is requested.
class UnknownCurrency < StandardError; end
# List of known currencies.
# == monetary unit
# The standard unit of value of a currency, as the ... |
#include "Room.h"
#include "../Rng.h"
using namespace std;
Room::Room(Coordinate coordinate, RoomType roomType, int securityLevel) {
_coordinate = coordinate;
_securityLevel = securityLevel;
_type = roomType;
_visited = false;
if (coordinate.x == 0 && coordinate.y == 0) {
throw 8;
}
... |
Rdio2Spotify
=========
Copies playlists and collection tracks/albums from Rdio to Spotify.
Edit main.py, setting [Rdio API](http:
The Rdio and Spotify API apps must have http://127.0.0.1:8123/ in their list of redirect URIs. After pasting the OAuth links printed to the terminal into your browser, retrun to the termina... |
const webpack = require('atool-build/lib/webpack');
module.exports = function (webpackConfig, env) {
webpackConfig.babel.plugins.push('transform-runtime');
webpackConfig.babel.plugins.push(['import', {
libraryName: 'antd',
style: 'css' // if true, use less
}]);
// Support hmr
if (env === 'development... |
using System.ComponentModel;
namespace K4W.KinectDrone.Core.Enums
{
public enum DroneFlyingAction
{
[Description("Unkown")]
Unknown = 0,
[Description("Emergency")]
Emergency = 1,
[Description("Land")]
Land = 2,
[Description("Takeoff")]
TakeOff = 4
... |
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: google/api/servicecontrol/v1/log_entry.proto
package <API key>
import proto "github.com/gogo/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "go.pedge.io/pb/gogo/google/api"
import google_logging_type "go.pedge.io/pb/gogo/google/logging/type"
im... |
Given /^I have installed the plugin$/ do
# Do nothing here
end
Given /^Nark is setup to monitor my application$/ do
Capybara.app = Nark::Middleware.with(DummyApp)
end
Given /^I have a application I want to track$/ do
# Do nothing here
end
When /^I created the following plugin$/ do |string|
eval string
end
Then ... |
package fasthttp
import (
"net"
"runtime"
"runtime/debug"
"strings"
"sync"
"time"
)
// workerPool serves incoming connections via a pool of workers
// in FILO order, i.e. the most recently stopped worker will serve the next
// incoming connection.
// Such a scheme keeps CPU caches hot (in theory... |
# Summary
[A brief description of what this pull request does.]
# Issue Link
[Please link the GitHub issue this PR addresses.]
# Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
- [ ] It's a new feature
- [ ] It's a bugfix
- [ ] Added or updated specs (required for all ne... |
from flask import Flask
app = Flask(__name__)
app.config.from_object('blog.config')
from blog import views |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Class Index
*/
class Pemasukan extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('model_kelas');
$this->load->model('model_siswa');
$this->load->model('model_pemasukan');
$this-... |
package org.necros.settings;
/**
* @author weiht
*
*/
public class <API key><T> {
private Integer zIndex = 0;
private T service;
private CascadingService<T> cascadingService;
public void doInject() {
if (cascadingService != null && service != null) {
cascadingService.injectImpleme... |
#pragma once
#include "vec3.h"
namespace solar {
class mat33 {
public:
static const int FORWARD_ROW_INDEX;
static const int UP_ROW_INDEX;
static const int CROSS_ROW_INDEX;
private:
#pragma warning(push)
#pragma warning(disable:4201) //warning C4201: nonstandard extens... |
class IpnMessage < ActiveRecord::Base
alias_method :success?, :success
def self.create_from_message(hash)
ipn_message = IpnMessage.new
ipn_message.body = hash.to_yaml
ipn_message.success = hash["ACK"] == "Success"
ipn_message.correlation_id = hash["correlation_id"]
ipn_me... |
<div class="commune_descr limited">
<p>
Mornant est
une commune située dans le département de Rhône en Rhône-Alpes. Elle comptait 5 229 habitants en 2008.</p>
<p>
La ville est équipée concernant l'éducation des jeunes de deux collèges.
Concernant les très jeunes, la commune est équipée de une maternelle et... |
<?php
namespace Oro\Bundle\MeasureBundle\Family;
/**
* Temperature measures constants
*
*
*/
interface <API key>
{
/**
* Family measure name
* @staticvar string
*/
const FAMILY = 'Temperature';
/**
* @staticvar string
*/
const CELCIUS = 'CELCIUS';
/**
* @staticva... |
<link rel="stylesheet" href="/assets/css/<API key>/prettify.css">
<script src="/assets/js/<API key>/prettify.js"></script> |
# Install and Configure Apache
include_recipe 'apache2'
# Create Web Directory
directory node['core_web']['apache']['path'] do
action :create
user node['apache']['user']
group node['apache']['group']
end
# Apache Site Config (apache2 cookbook)
web_app node['core_web']['apache']['site_name'] do
server_name node[... |
using System.Drawing;
namespace GVNET
{
<summary>
Basic node with added functionality to control the shape, color, and style of the node.
</summary>
public interface INodeSimple : INode
{
<summary>
Set the shape of a node.
</summary>
[DOTKeyword("shape")]
Shap... |
package com.lesgrosspoof.bemydiary.network;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
im... |
//! \file ImageRCT.cs
//! \date Fri Aug 01 11:36:31 2014
//! \brief RCT image format implementation.
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// sell copies of the Software, and to permit pe... |
'use strict';
describe('Controllers Tests ', function () {
beforeEach(module('solrpressApp'));
describe('SessionsController', function () {
var $scope, SessionsService;
beforeEach(inject(function ($rootScope, $controller, Sessions) {
$scope = $rootScope.$new();
SessionsSe... |
Template.registerHelper("itemTypes", function() {
return [
{label: i18n.t('choose'), value: ''},
{label: i18n.t('offer'), value: 'offer', icon: 'icon gift'},
{label: i18n.t('need'), value: 'need', icon: 'icon fire'},
{label: i18n.t('wish'), value: 'wish', icon: 'icon wizard'},
... |
package programmersguide.<API key>.<API key>.java;
import com.aspose.slides.Presentation;
import com.aspose.slides.SaveFormat;
public class <API key>
{
public static void main(String[] args) throws Exception
{
// The path to the documents directory.
String dataDir = "src/programmersguide/<API ke... |
package seedu.todo.ui;
import javafx.application.Platform;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.stage.Stage;
import seedu.todo.commons.util.StringUtil;
import seedu.todo.commons.core.ComponentManager;
import seedu.todo.commons.core.Config;
import seedu.todo.commo... |
class HashStruct
def initialize hash = {}
@impl = Hash[hash]
end
def [] key
@impl[key]
end
def []= key, val
@impl[key] = val
end
def merge! other
other.each_pair do |key, val|
self[key] = val
end
end
def merge other
rv = self.clone
rv.merge! other
rv
end
def m... |
using Stranne.BooliLib.Models;
using Xunit.Abstractions;
namespace Stranne.BooliLib.Tests.Models
{
public class <API key> : Dimension, IXunitSerializable
{
public <API key>()
{
}
public <API key>(int height, int width)
: base(height, width)
{
}
... |
// cloudfront-config.js - config for AWS CloudFront
// Written by Andrew Chilton <chilts@appsattic.com>
var data2xml = require('data2xml')({ attrProp : '@', valProp : '
function pathDistribution(options, args) {
return '/' + this.version() + '/distribution';
}
function pathDistributionId(options, args) {
retur... |
package de.vsis.groomba.communication;
public class Log {
/**
* @author Hannes
*
* Helps to create different log levels for debugging purposes.
*
*/
public final static int OFF = 0;
public final static int ERROR = 1;
public final static int INFO = 2;
public final static int... |
import { Component, OnInit, OnDestroy, ElementRef, ViewChild } from '@angular/core';
import { fromEvent } from 'rxjs';
import { debounceTime, <API key>, takeWhile } from 'rxjs/operators';
import { Terminal } from 'xterm';
import * as fit from 'xterm/lib/addons/fit/fit';
import * as search from 'xterm/lib/addons/search/... |
package com.cngu.androidfun.main;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import com.cngu.androidfun.R;
import com.cngu.androidfun.data.ActionTopic;
import com.cngu.androidfun.data.MenuTopic;
import com.cngu.androidfun.data.Topic;
import com.cngu.androidfun.view.Top... |
\documentclass[11pt]{amsbook}
\usepackage{../HBSuerDemir}
\begin{document}
\hPage{b1p2/310}
\begin{flushleft}
side of $\ell$.
\end{flushleft}
\subsection*{D. CURVES} \hfill\\
Circle and line are some curves having polar equations
\begin{equation*}
r=a,\ r=a\ cos\theta,\ r^2 -2r_{0}r... |
package com.jcwhatever.nucleus.internal.managed.scripting.api;
import com.jcwhatever.nucleus.Nucleus;
import com.jcwhatever.nucleus.mixins.IDisposable;
import com.jcwhatever.nucleus.utils.PreCon;
import com.jcwhatever.nucleus.utils.coords.NamedLocation;
import org.bukkit.Location;
import java.util.Collection;
import ja... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.