answer stringlengths 15 1.25M |
|---|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>vuetify-dropzone</title>
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:100,100i,200,200i,... |
var crossBrowser = function (browser, x, y) {
if (browser === 'Firefox 39') {
x = x - 490;
y = y + 10;
} else if (browser === 'MSIE 10') {
x = x - 588.7037353;
y = y + 3 - 0.32638931;
} else if (browser === 'IE 11') {
x = x - 641;
y = y + 2.5;
} else if (b... |
<?php namespace App\Repositories;
interface BaseRepository
{
public function paginateAll($perPage = 15, $pageName = 'page');
} |
package io.github.nucleuspowered.nucleus.core.scaffold.command.modifier.impl;
import io.github.nucleuspowered.nucleus.core.scaffold.command.ICommandContext;
import io.github.nucleuspowered.nucleus.core.scaffold.command.annotation.CommandModifier;
import io.github.nucleuspowered.nucleus.core.scaffold.command.control.Com... |
/**
* Custom styles. Loaded after bootstrap.
*/
html,
body {
height:100%;
}
body {
background-color: #dde4ec;
font-family: 'Lato', sans-serif;
color: #6e6e6e;
}
.container {
min-height: 100%;
margin-bottom: -200px; /* Height of footer */
height: auto;
position: relative;
}
#content {
... |
namespace Pote.CommandLine.Mocks
{
<summary>
A verb with an optional option.
</summary>
public class <API key> : Verb
{
<summary>
Some helpful hint on how to use this verb.
</summary>
public override string Help
{
get
{
... |
# -*- test-case-name: twisted.test.test_task,twisted.test.test_cooperator -*-
__metaclass__ = type
import time
from zope.interface import implements
from twisted.python import reflect
from twisted.python.failure import Failure
from twisted.internet import base, defer
from twisted.internet.interfaces import IReactorTime... |
#ifndef <API key>
#define <API key>
#include "kali/function.h"
#include "kali/containers.h"
#include "kali/ui/base.h"
namespace kali {
namespace ui {
namespace native {
namespace widget {
struct Parent
{
virtual Window* window() = 0;
virtual void attach(ReleaseAny*) = 0;
virtual ~Parent() {}
}... |
<?php
namespace DUDEEGO\PlatformBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\<API key>;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Vich\UploaderBundle\F... |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-21 12:06
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.<A... |
<html><img border=0 src=42397-65-9.txt alt=42397-65-9.txt></img><body>
"x"
"1" "KAZIUS, J, MCGUIRE, R AND BURSI, R. DERIVATION AND VALIDATION OF TOXICOPHORES FOR MUTAGENICITY PREDICTION. J. MED. CHEM. 48: 312-320, 2005"
</body></html> |
qx.Class.define("testapp.test.TestPlugins", {
extend: qx.dev.unit.TestCase,
members: {
testSimple: function() {
qx.io.PartLoader.require(["pluginFramework", "pluginOne"], () => {
this.debug("pluginOne loaded");
var plugin = new testapp.plugins.PluginOne();
this.assertEquals("testap... |
<?php
namespace Kodix\Support\Traits\Component;
use CComponentEngine;
/**
* This trait makes complex class easier to write
* You just need to change setUrlTemplates404 method with your paths
*
* Class ComplexTrait
* @package Malyusha\Helpers\Traits
*
* @property array $arParams
*/
trait ComplexTrait
{
publi... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JS Canvas Game Architecture</title>
<link rel="stylesheet" type="text/css" href="css/main.css" />
</head>
<body>
<div id="Container">
<h1>
<a href="https://github.com/... |
var canvas;
var time_x, time_y, time_z, time_inc;
var field = [];
var particles = [];
var rows, cols;
var scl = 20;
function setup() {
canvas = createCanvas(windowWidth, windowHeight);
canvas.position(0,0);
canvas.style('z-value', '-1');
canvas.style('opacity', '0.99');
background(0,0,0,0);
rows = 25;
scl... |
package org.knowm.xchange.bitstamp.service.marketdata;
import static org.fest.assertions.api.Assertions.assertThat;
import org.junit.Test;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.bitstamp.BitstampExchange;
import org.knowm.xchange.currency.CurrencyPair;
impo... |
#include "example_core_lite.h"
#include "xparameters.h"
#include <stdio.h>
#include <stdlib.h>
#include "xil_io.h"
uint32_t a_tests[] = {1,321097,45,4294967295,0,99,0xFFFF};
uint32_t b_tests[] = {2,1290484,214,4294967295,0,99,0x1};
/** @name Valid Selectors
Valid 32-Bit values that correspond to a unique output mux val... |
FactoryBot.define do
factory :status do
sequence(:label) { |n| "President
end
end |
<?php
/*
Unsafe sample
input : get the field UserData from the variable $_POST
sanitize : use of the function addslashes
construction : use of sprintf via a %s with simple quote
*/
$tainted = $_POST['UserData'];
$tainted = addslashes($tainted);
//flaw
$var = header(sprintf("Location: '%s'", $tainted));
?> |
'use strict';
/* Filters */
angular.module('multi-screen-demo.filters', [
]).
// create your own filter here
filter('yourFilterName', function () {
return function () {
return;
};
}); |
<!DOCTYPE html>
<html>
<head>
<title>MSL BlackSox</title>
<link rel="stylesheet" type="text/css" href="reset.css"/>
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="index.css"/>
</head>
<body>
<div id="header">... |
#!/usr/bin/env ruby
require 'omf-common/servicecall'
#Jabber::debug = true
def run
connection = OMF::XMPP::Connection.new("dom1", "test5", "123")
connection.connect
puts "Client connection status = #{connection.connected?}"
dom1 = OMF::ServiceCall.add_domain(:type => :xmpp, :uri => "dom1",
... |
import test from 'tape'
import { forEach, get, isArray, isMatch, isNumber, omit } from 'lodash'
import {
entityDel, ENTITY_DEL, entityPut, ENTITY_PUT, entityPutAll, ENTITY_PUTALL,
entityUpdate, ENTITY_UPDATE, pickTypeId, tripleDel, TRIPLE_DEL, triplePut, TRIPLE_PUT,
} from '../src'
import { agent, creator, item, ma... |
package com.github.gv2011.util.bytes;
import static com.github.gv2011.testutil.Assert.assertThat;
import static com.github.gv2011.testutil.Matchers.is;
import org.junit.Test;
import com.github.gv2011.util.BeanUtils;
import com.github.gv2011.util.icol.ICollections;
import com.github.gv2011.util.json.JsonUtils;
public cl... |
{% extends "base.html" %}
{% block body %}
<h2>{{ character }}'s Journal</h2>
<div class="row">
<div class="col-lg-1"> </div>
<div class="col-lg-11">
{% for post in posts %}
{% include "single_post.html" %}
{% endfor %}
</div>
</div>
{% endblock %} |
// 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 <std__vector.hpp>
START_ATF_NAMESPACE
#pragma pack(push, 8)
struct <API key>
{
int m_iType;
std::vector<unsigned long> m_vecuiVersion;... |
#ifndef ICT_MYSTRING_H__
#define ICT_MYSTRING_H__
namespace ict{
class MyString{
private:
char* data_;
int len_;
// utility
int strlen(const char* str)const;
void strcpy(char* des, const char* src)const;
void strcat(char* des, const char* src)const;
int strcmp(const char*... |
package com.kata.businessrules;
import org.w3c.dom.Document;
import com.google.inject.AbstractModule;
import com.google.inject.TypeLiteral;
import com.kata.businessrules.products.Product;
public class MainModule extends AbstractModule {
@Override
protected void configure() {
installDummyModules();
... |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { WeatherComponent } from './components/weather.component';
@NgModu... |
# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= 'test'
#require File.expand_path("../../config/environment", __FILE__)
#change the above to match the path to the spec/dummy
require File.expand_path("../dummy/config/environment", __FILE__)
require 'rspec/rails'
require 'rs... |
<?php
namespace Ems\Contracts\Foundation;
use Ems\Contracts\Core\AppliesToResource;
use Ems\Contracts\Validation\ValidatorFactory;
use Ems\Contracts\Core\HasMethodHooks;
use Ems\Contracts\Core\Extendable;
/**
* The <API key> is the factory for the InputNormalizer objects.
* You should categorize the input by its type... |
using System.Reflection;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("HorseTrack")]
[assembly: AssemblyDescription... |
<html>
<head>
<title>OKRs are cool!</title>
</head>
<body>
<h1>OKRs are cool!</h1>
<ul>
{% for company in companies %}
<li>
<a href="{% url 'company' pk=company.id %}">{{ company }}</a>
</li>
{% endfor %}
... |
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.UtmConverter = factory();
}
}(this, function () {
// BEGIN ORIGINAL LIBRARY
var pi = Math.PI;
/* Ellipsoid mode... |
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
require 'test/unit'
require 'httpauth/digest'
class <API key> < Test::Unit::TestCase
cases = {}
cases[:quote_string] = {
'word' => '"word"',
'word word' => '"word word"'
}
cases[:unquote_string] = cases[:quote_string].invert
cases[:int_to_hex] = {
... |
import loudRejection from 'loud-rejection';
import { fireEvent, getByTestId, getByText } from '@testing-library/dom';
import { act, screen } from '@testing-library/react';
import { MAILBOX_LABEL_IDS } from '@proton/shared/lib/constants';
import {
addApiMock,
clearAll,
getDropdown,
getHistory,
render... |
#!/bin/bash
set -xv
#adam-example# ./do_coadd_batch.sh MACS1115+01 W-J-B 'all exposure ' 'none' OCFI 2>&1 | tee -a OUT-coadd_W-J-B.log2
#adam-example# ./do_coadd_batch.sh ${cluster} ${filter} 'good ' 'none' 'OCFR' 'yes' 'yes' 2>&1 | tee -a OUT-coadd_${cluster}.${filter}.log
new coaddition script
the astro-/photometry c... |
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<div style="text-align: center; height: 75px; padding:1px; text-transform:capitalize; backgr... |
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width">
</head>
<body>
<script type="text/javascript" src='jquery-1.11.1.js'></script>
<div class="num"></div>
<div class="slider">
<div class="touch"></div>
<div class="bg"></div>
... |
# StoryboardHelper
StoryboardHelper is a open source plug-in for **Xcode 5**.
It lets you search/manage storyboard identifier without opening the .storyboard files.
Using StoryboardHelper's almost the same as [Lin-Xcode5](https://github.com/questbeat/Lin-Xcode5).
## Acknowledgment
StoryboardHelper is inspired by [Lin-X... |
<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!... |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>muvicre</title>
<link rel="stylesheet" href="css/muvicre.css">
</head>
<body>
<div class="window">
<div class="form-group">
<div class="leftArea">
<button id="coverButton" class="cover btn btn-default">Cove... |
package edu.cmu.hcii.whyline.analysis;
import java.util.SortedSet;
import java.util.TreeSet;
import edu.cmu.hcii.whyline.bytecode.MethodInfo;
import edu.cmu.hcii.whyline.source.JavaSourceFile;
import edu.cmu.hcii.whyline.source.Line;
import edu.cmu.hcii.whyline.source.Token;
import edu.cmu.hcii.whyline.ui.WhylineUI;
/*... |
<link rel="stylesheet" href="css/main.css"/>
<script src="https://identity.netlify.com/v1/<API key>.js"></script> |
var searchData=
[
['neighbours',['neighbours',['../<API key>.html#<API key>',1,'Parser::CellAtomGrammar']]],
['newgrid',['newGrid',['../<API key>.html#<API key>',1,'Compiler::State']]]
]; |
<?php
namespace Whoops\Handler;
use Whoops\Handler\HandlerInterface;
use Whoops\Exception\Inspector;
use Whoops\Run;
use Exception;
/**
* Abstract implementation of a Handler.
*/
abstract class Handler implements HandlerInterface
{
/**
* Return constants that can be returned from Handler::handle
* to me... |
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class <API key>
{
public static $files = array(
'<API key>' => __DIR__ . '/..' . '/nizarii/arma-rcon-class/arc.php',
);
public static $prefixLengthsPsr4 = array(
'v' =>
array(
'voku\\... |
title: Joel and the Outcome
date: 2015-07-08T08:09:52+00:00
layout: post
thumbnail_path: 2015/07/<API key>.jpg
videoID: 2015/20150708.mp4
tags:
- 2015-rushville-in
{% include aws.html id=page.videoID poster=page.thumbnail_path %}
Day 5 |
#include <algorithm>
#include <iterator>
#include <vector>
#include "ihanoi.hpp"
#include "aim.hpp"
// Algorithm to be tested
template <int from, int other, int to>
struct ApplyMapping
{
std::pair<std::size_t, std::size_t> operator()(std::pair<std::size_t, std::size_t> const& move)
{
static_assert(from != other... |
package statsd
import (
"context"
"fmt"
"hash/adler32"
"sync"
"github.com/ash2k/stager/wait"
"github.com/atlassian/gostatsd"
"github.com/atlassian/gostatsd/pkg/statser"
)
// AggregatorFactory creates Aggregator objects.
type AggregatorFactory interface {
// Create creates Aggregator obje... |
package graphql_test
import (
"testing"
"github.com/housinganywhere/graphql"
"github.com/housinganywhere/graphql/gqlerrors"
"github.com/housinganywhere/graphql/testutil"
)
func <API key>(t *testing.T) {
testutil.ExpectPassesRule(t, graphql.<API key>, `
query NullableValues($a: Int, $b: String,... |
'use strict';
describe('my app', function() {
beforeEach(function() {
browser().navigateTo('app/index-old.html');
});
it('should automatically redirect to /view1 when location hash/fragment is empty', function() {
expect(browser().location().url()).toBe("/view1");
});
describe('view1', function() {
... |
body {
background: red; }
body h2 {
color: yellow; }
/*# sourceMappingURL=styles.css.map */ |
namespace YanZhiwei.DotNet2.Utilities.WebFormExamples {
public partial class FileDownHelperDemo {
<summary>
form1
</summary>
<remarks>
</remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
<summary>
Button1
</summary>
... |
export default from './Input'; |
package org.vitanov.container;
public class ContainerConstants {
public static String CONTAINER_ROOT_PATH =
System.getProperty("user.dir");
} |
using Lux.IO;
using NUnit.Framework;
namespace Lux.Tests.IO
{
[TestFixture]
public class PathHelperTests
{
[TestCase]
[Category("ExcludeBuildAgent")] // todo: fix so be able to...
public void GetRootParent()
{
const string expected = "C:/";
const s... |
module Cryptoexchange::Exchanges
module Bit2c
module Services
class Pairs < Cryptoexchange::Services::Pairs
def fetch
output = super
market_pairs = []
output.each do |pair|
market_pairs << Cryptoexchange::Models::MarketPair.new(
... |
package lib
import (
"log"
"strings"
)
type (
Question struct {
RelatesTo struct {
Answers []string `json:"answers"`
Save bool `json:"save"`
SaveTag string `json:"saveTag"`
} `json:"relatesTo"`
Context []string `json:"context"`
... |
app.router = Backbone.Router.extend({
el : $('main'),
routes: {
// '': 'home',
// '!/': 'home',
'!/event-list/': function () {
app.preRoute('event-list', this.el);
new app.eventListView({ el: this.el });
},
'!/event-detail/:key': function (key) {
... |
body {
font-family: Calibri;
padding: 0;
margin: 0;
}
#container {
width: 660px;
}
.login {
background: url(../images/logo.png) no-repeat left center, -moz-linear-gradient(top, rgba(59,59,59,0.6) 0%, rgba(59,59,59,0.6) 1%, rgba(42,42,42,1) 95%, rgba(59,59,59,0.9) 100%); /* FF3.6+ */
background: ... |
// Card.h
// Matchismo
#import <Foundation/Foundation.h>
@interface Card : NSObject
@property (strong, nonatomic) NSString *contents;
@property (nonatomic, getter=isChosen) BOOL chosen;
@property (nonatomic, getter=isMatched) BOOL matched;
- (int)match:(NSArray *)otherCards;
@end |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Brian Schrader - 06ee</title>
<link rel="shortcut icon" href="/assets/images/favicon.ico">
<link rel="styl... |
"use strict";
const mongoose = require('mongoose');
module.exports = (()=>{
mongoose.connect('mongodb://192.168.56.101:30000/blog');
let db = mongoose.connection;
db.on('error', function(err){
console.log(err);
});
db.once('open', (err)=> {
console.log('connect success');
})
})()... |
<?php
if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
function upload($files, $albumID) {
global $database, $settings;
switch($albumID) {
// s for public (share)
case 's':
$public = 1;
$star = 0;
$albumID = 0;
... |
from network import WLAN
# Settings for WLAN STA mode
WLAN_MODE = 'off'
#WLAN_SSID = ''
#WLAN_AUTH = (WLAN.WPA2,'')
# LoRaWAN Configuration
# May be either 'otaa', 'abp', or 'off'
LORA_MODE = 'otaa'
# Settings for mode 'otaa'
LORA_OTAA_EUI = '70B3D57EF0001ED4'
LORA_OTAA_KEY = Non... |
<?php
namespace Illumine\Framework\Traits;
use Illuminate\Bus\Dispatcher;
trait DispatchesJobs
{
/**
* Dispatch a job to its appropriate handler.
*
* @param mixed $job
* @return mixed
*/
protected function dispatch($job)
{
return $this->plugin->make(Dispatcher::class)->dis... |
<!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ResolvableLiteral | UI-Router</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="style... |
<DIV NAME="detail" ID="detail" xmlns="http:
</H3> <TABLE><TR>
<TD class="borderStyle"><SPAN CLASS='Support' TITLE='Rational Robot Classic'>RC</SPAN></TD>
<TD class="borderStyle"><SPAN CLASS='Support' TITLE='SAFS TID Commands'>TID</SPAN></TD>
<TD class="borderStyle"><SPAN CLASS='Support' TITLE='Mercury Interactive Win... |
import pl.edu.agh.amber.common.AmberClient;
import pl.edu.agh.amber.drivetopoint.DriveToPointProxy;
import pl.edu.agh.amber.drivetopoint.Location;
import pl.edu.agh.amber.drivetopoint.Point;
import pl.edu.agh.amber.drivetopoint.Result;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
import j... |
using ZyGames.Framework.Game.Service;
using ZyGames.Tianjiexing.BLL.Base;
using ZyGames.Tianjiexing.Lang;
using ZyGames.Tianjiexing.Model;
using ZyGames.Tianjiexing.BLL.Combat;
namespace ZyGames.Tianjiexing.BLL.Action
{
<summary>
4206_
</summary>
public class Action4206 : BaseAction
{
privat... |
package daemon
import (
"log"
"time"
"github.com/Cloakaac/cloak/models"
)
type RecordDaemon struct{}
func (r *RecordDaemon) tick() {
total := models.GetOnlineCount()
err := models.AddOnlineRecord(total, time.Now().Unix())
if err != nil {
log.Fatal(err)
}
} |
from django.dispatch import Signal
user_email_bounced = Signal() # args: ['bounce', 'should_deactivate']
email_bounced = Signal() # args: ['bounce', 'should_deactivate']
email_unsubscribed = Signal() # args: ['email', 'reference'] |
<?php declare(strict_types = 1);
namespace PHPStan\Rules\Comparison;
use PHPStan\Type\Constant\ConstantBooleanType;
class <API key> implements \PHPStan\Rules\Rule
{
public function getNodeType(): string
{
return \PhpParser\Node\Expr\BinaryOp\BooleanOr::class;
}
/**
* @param \PhpParser\Node\... |
<!DOCTYPE html>
<html xmlns="http:
<head>
<style>
body, html{
background-color:#ddd;
margin: 0px;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
}
#bodymovin{
background-color:#000;
width:100%;
... |
package org.bitcoins.core.p2p
import org.bitcoins.core.p2p.TypeIdentifier._
import org.bitcoins.testkit.util.BitcoinSUnitTest
class TypeIdentifierTest extends BitcoinSUnitTest {
"MsgTx" must "serialize to 01000000" in {
MsgTx.hex must be("01000000")
}
"MsgWitnessTx" must "serialize to 01000040" in {
MsgWi... |
// pin_io_macros.h
// Makes it easy to define pins as logical names and then use those names
// throughout the program. Not the most efficient method for multiple pins
// on the same port but otherwise makes coding easier and more transportable.
// by Paul Duke 2012
#ifndef PIN_IO_MACROS
#define... |
<html>
<head>
<title>
Keep fighting for justice!
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php include "../../legacy-includes/Script.htmlf" ?>
</head>
<body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0">
<table width="7... |
<?php
/**
* TableBlock.php
*
* @since 31/05/15
* @author gseidel
*/
namespace Enhavo\Bundle\AppBundle\Block\Block;
use Enhavo\Bundle\AppBundle\Block\BlockInterface;
use Enhavo\Bundle\AppBundle\Type\AbstractType;
class TableBlock extends AbstractType implements BlockInterface
{
public function render($parameter... |
// package main provides an implementation of netcat using the secio package.
// This means the channel is encrypted (and MACed).
// It is meant to exercise the spipe package.
// Usage:
// seccat [<local address>] <remote address>
// seccat -l <local address>
// Address format is: [host]:port
package main
import ... |
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="ut... |
/* eslint-disable */
"use strict";
var express = require("express"),
path = require("path"),
webpack = require("webpack"),
config = require("./examples.config");
config.module.loaders[0].query = {presets: ["react-hmre"]};
config.entry.unshift("<API key>/client");
config.plugins = [
new webpack.<API key>... |
// f is not called via a go function, instead the go function is inside the body of f.
package main
func main() {
x := "Hello World"
ch := make(chan string)
f(ch)
// @expectedflow: false
sink(x)
x = source()
ch <- x
}
func f(ch chan string) {
// *ssa.MakeClosure
go func() {
y... |
a = [int(i) for i in input().split()]
print(sum(a)) |
<?php
/* WebProfilerBundle:Collector:memory.html.twig */
class <API key> extends Twig_Template
{
protected $parent;
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->blocks = array(
'toolbar' => array($this, 'block_toolbar'),
);
}
... |
<!DOCTYPE html>
<html lang="en">
<!-- Mirrored from bucketadmin.themebucket.net/google_map.html by HTTrack Website Copier/3.x [XR&CO'2013], Fri, 21 Feb 2014 19:39:48 GMT -->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content=... |
<?php
/**
* <API key>
*
*/
class <API key> extends CakeTestFixture {
/**
* Fields
*
* @var array
*/
public $fields = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'unsigned' => false, 'key' => 'primary'),
'resto_id' => array('type' => 'integer', 'null' => false... |
# This file belongs to MTYPE13 package by Wlodek Bzyl <matwb@univ.gda.pl>
DVIPSFLAGS = -u +sign-000.map
# Read in font independent definitions.
make_root = ../../../make
include $(make_root)/type3common.mk
GENERATEDFILES = test-signs.{log,dvi,ps}
sign-000.dvi : sign-000.t3 sign-000.proof
test-signs.dvi : sign-000.t3 |
<?php
namespace spec\Prophecy\Exception\Prophecy;
use PhpSpec\ObjectBehavior;
use Prophecy\Prophecy\ObjectProphecy;
class <API key> extends ObjectBehavior
{
function let(ObjectProphecy $objectProphecy)
{
$this->beConstructedWith('message', $objectProphecy);
}
function <API key>()
{
$... |
package burstcoin.faucet.data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
@Entity
public class Account
implements Serializable
{
private static final long serialVersionUID... |
"use strict";
const _ = require ('underscore')
_.hasTypeMatch = true
Meta.globalTag ('required')
Meta.globalTag ('atom')
$global.const ('$any', _.identity)
_.deferTest (['type', 'type matching'], function () {
$assert (_.omitTypeMismatches ( { '*': $any, foo: $required ('number'), bar: $required ('number') },
... |
Braintree Multi-Merchant Example
=============================
## Set Up
Note: This example requires multiple Braintree sandbox accounts.
1. Clone this repository
2. [Install Composer](https://getcomposer.org/download/), if necessary
3. Install dependencies (`composer install`)
4. Modify `credentials.php` to include al... |
void inplace(double *invec, double *outvec, int n, int m) {
int i;
for (i=0; i < n; i++) {
outvec[i] = 2*invec[i];
}
} |
package com.darksci.pardot.api.request.form;
import com.darksci.pardot.api.request.BaseRequest;
/**
* For creating new Forms using Pardot's API.
*/
public class FormCreateRequest extends BaseRequest<FormCreateRequest> {
@Override
public String getApiEndpoint() {
return "form/do/create";
}
/**
... |
import { $, util } from './util-node'
import Taglet from './taglet'
var
lace,
version = '1.0.0',
defaults = {
opts: {}
},
warehouse = {
singleton: null,
compiled_dom: null,
laces: {
global: null
},
taglets: {}
}
;
class Lace {
c... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Cinema
{
class Program
{
static void Main(string[] args)
{
var project = Console.ReadLine().ToLower();
var r = double.Parse(Console.ReadLine());
... |
from django.conf import settings
from django.conf.urls import static
from django.urls import include, path, re_path
from django.contrib import admin
urlpatterns = [
path(r"admin/", admin.site.urls),
path(r"flickr/", include("ditto.flickr.urls")),
path(r"lastfm/", include("ditto.lastfm.urls")),
path(r"pi... |
import angular from '<API key>';
import commonjs from '<API key>';
import nodeResolve from '<API key>';
import typescript from '<API key>';
import uglify from '<API key>';
import { minify } from 'uglify-es';
// <API key> addons
import sass from 'node-sass';
import CleanCSS from 'clean-css';
import { minify as minifyHtm... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>stalmarck: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... |
using System;
namespace <API key>
{
class <API key>
{
static void Main()
{
decimal number = decimal.Parse(Console.ReadLine());
number = Math.Round(number);
Console.WriteLine(number);
}
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.