answer stringlengths 15 1.25M |
|---|
using System;
using Hypermedia.AspNetCore.Json.Formatters;
using Hypermedia.Json;
using Hypermedia.JsonApi.AspNetCore.Formatters;
using Hypermedia.JsonApi.AspNetCore.ModelBinding;
using Hypermedia.Metadata;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Net.Http.Headers;
namespace Hypermedia.JsonApi.As... |
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
use App\Jobs\TestingQueue;
use App\Http\Requests;
use Exception;
/**
* Class TestingController
*
* @package App\Http\Controllers
* @author Mahmoud Zalt <mahmoud@zalt.me>
*/
class TestingController extend... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-field: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.mi... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jprover: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>stdpp: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... |
function solve() {
function validateString(string) {
if (string === undefined) {
throw new Error
}
if (typeof string !== 'string') {
throw new Error();
}
if (string.length < 3 || string.length > 25) {
throw new Error();
} else {
... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Microsoft.D... |
<link href="/public/_sprint8/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" /> |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SimpleDataGenerator.Sql.Extensions;
using SimpleDataGenerator.Sql.Models;
namespace SimpleDataGenerator.Sql.Sql.Builders
{
public class <API key>
{
private readonly IEnumerable<<API ... |
var webpack = require('webpack');
module.exports = {
entry: {
app: [
// 'webpack/hot/only-dev-server',
'./src/entry.js'
],
dom: [
// 'webpack/hot/only-dev-server',
'./src/dom.js'
]
},
output: {
path: __dirname + '/www',
... |
(function () {
'use strict';
var app = angular.module('Fablab');
app.factory('EventModuleService', function ($log, $resource, $http) {
var eventModule = $resource(App.API.EVENT_MODULE_API + "/:id", {id: '@id'});
return {
list: function (successFn) {
$http(
... |
package DocsExamples.<API key>;
import DocsExamples.DocsExamplesBase;
import org.testng.annotations.Test;
import com.aspose.ms.System.IO.Directory;
import com.aspose.ms.System.IO.Path;
import com.aspose.ms.System.msConsole;
import com.aspose.words.FileFormatInfo;
import com.aspose.words.FileFormatUtil;
import com.aspos... |
const Promise = require('bluebird');
const request = Promise.promisifyAll(require('request'));
const candidateInit = (options) => {
const actions = {
startElection: (callback) => {
setTimeout(() => {
actions.<API key>().then(resultRequest => {
if (resultRequest) {
candidate.vot... |
/**
* @file dateUtils
* @author
*/
import moment from 'moment';
// <API key> require-jsdoc
function MonthDays(year) {
// debugger
let dateArray = [];
for (let i = 0; i < 12; i++) {
switch (i + 1) {
case 1:
case 3:
case 5:
case 7:
case 8:... |
using System;
using Aop.Api.Domain;
using System.Collections.Generic;
using Aop.Api.Response;
namespace Aop.Api.Request
{
<summary>
AOP API: alipay.open.public.label.user.query
</summary>
public class <API key> : IAopRequest<<API key>>
{
<summary>
-
</summary>
public ... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>minic: 30 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesh... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>concat: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... |
use std::collections::HashMap;
use std::fmt::{Display, Formatter};
use std::hash::{Hash, Hasher};
use std::str::from_utf8;
use base64::encode;
use log::warn;
use maplit::hashmap;
use serde_json::{json, Value};
use crate::{DifferenceType, PactSpecification};
use crate::bodies::OptionalBody;
use crate::generators::{Gener... |
$(document).on('click', '.registration', function() {
$.ajax({
url: '/index.php/Users/registration_view/',
success: function (data) {
bootbox.dialog({
message: data,
title: "Регистрация",
buttons: {
success: {
... |
var Fluent = require('fluent-js');
var ChatAppDispatcher = require('../dispatcher/ChatAppDispatcher');
var ChatWebAPIUtils = require('../utils/ChatWebAPIUtils');
var ChatMessageUtils = require('../utils/ChatMessageUtils');
class ChatMessageActions extends Fluent.Actions {
createMessage(text, currentThreadID) {
th... |
const webpack = require('webpack');
export default {
devtool: '<API key>',
entry: ['<API key>/client',
'./client/index.js',
],
output: {
path: `${__dirname}/dist/`,
filename: 'bundle.js',
publicPath: '/dist/',
},
resolve: {
extensions: ['', '.js', '.jsx'],
},
module: {
load... |
package com.lthummus.kappalang.interperter
/**
* A simple brainfuck interperter. Takes a string and executes it. Input
* is a little wonky because console input is buffered.
*/
class <API key>(program: Seq[Char]) {
def moveBackToMatch(): Unit = {
var level = 1
while (level > 0) {
if (dataPointer... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>compcert: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... |
package com.technobitia.ted.example;
import java.util.List;
import com.technobitia.ted.client.TedClient;
import com.technobitia.ted.model.Talk;
import com.technobitia.ted.response.TalkListResponse;
public class <API key> {
public static void main(String[] args) {
String <API key>;
TedClient tedClien... |
module Auth
# :reek:DataClump
class Permissions
def initialize(instances)
@instances = instances.is_a?(Enumerable) ? instances : [instances]
@model = @instances.first.class
end
def fetch(action, subject)
fetch_grants(action, subject)
fetch_active_bans(action, subject)
end
... |
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Stockie</title>
<link href="style.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navba... |
package net.glowstone.util;
public class Convert {
/**
* Converts a hexadecimal string to a byte array.
*
* @param hex a string of hexadecimal digits
* @return {@code hex} as a byte array
*/
public static byte[] fromHex(String hex) {
int len = hex.length();
byte[] data =... |
package de.skuzzle.jeve.providers;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import java.util.function.BiConsumer;
import java.uti... |
import { Component } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { IAddress, AddressService } from '../core';
@Component({
templateUrl: './address-editor-page.html',
styleUrls: ['./address-editor-page.css'],
})
export class <API key> {
addr: IAddress;
constructor(
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>of-ocaml: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
<?php
namespace Kambo\Http\Message;
// \Spl
use RuntimeException;
// \Psr
use Psr\Http\Message\StreamInterface;
class Stream implements StreamInterface
{
/**
* Underline stream
*
* @var Resource|null
*/
private $stream = null;
/**
* Size of file
*
* @var int|null
*/
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/5.0 (Linux; U; Android 4.4.2; es-LA; GT-S5830 Build/KOT49H) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1 UCBrowser/9.4.0.460 Mobile</title>
<link rel="stylesheet" href="https://... |
var path = require("path");
var rootDir = path.join(__dirname, "../..");
var exec = require(path.join(rootDir, "./utils/execPromise"));
module.exports = function getStatus() {
return exec("git submodule status", { cwd: rootDir})
.then(function(stdout) {
function <API key>(line) {
var lineSections = ... |
package com.frostmonkey.phixyenteering.api.account;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotEmpty;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Login {
@NotEmpty
private String username;
@NotEmpty
p... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!
THEME INFO
========================
<meta name="description" content="Akli REGUIG's CV">
<meta name="keywords" content="akli reguig,software engineer, azal... |
Copyright (c) 2016 Dropbox, Inc. All rights reserved.
Auto-generated by Stone, do not modify.
#import <Foundation/Foundation.h>
#import "<API key>.h"
#import "<API key>.h"
@class <API key>;
@class <API key>;
@class <API key>;
@class <API key>;
@class DBSHARINGUserInfo;
#pragma mark - API Object
The `<API key>` struct.
... |
<p style="margin-top: -2px; margin-bottom: -2px;" align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>
<font color="#008000">Department of Mathematics</font></b></font></p>
<p style="margin-top: -2px; margin-bottom: -2px;" align="center"><b>
<font color="#008000" face="Verdana, Arial, Helvetic... |
import logging
from datetime import timedelta
from pajbot.managers.handler import HandlerManager
from pajbot.modules import BaseModule
from pajbot.modules import ModuleSetting
log = logging.getLogger(__name__)
class MaxMsgLengthModule(BaseModule):
ID = __name__.split(".")[-1]
NAME = "Maximum Message Length"
... |
<?php
namespace LeanIX\Api\Auth;
class Authentication
{
/**
*
* @param ArrayHolder $queryParams
* parameters to be place in request header
* @param ArrayHolder $headerParams
* parameters to be place in request header
*/
public function applyToParams(& $queryPa... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Table</title>
</head>
<body>
<table>
<caption> School auction sign-up sheet </caption>
<thead>
<tr>
<th><label for=e1>Name</label>
<th><label for=e2>Product</label>
<th><label for=e3>Picture</label>
... |
#import "NSPopUpButton.h"
@interface XCActionControl : NSPopUpButton
{
}
+ (id)<API key>:(BOOL)arg1;
+ (void)<API key>:(id)arg1;
+ (id)<API key>:(id)arg1 forProjectDocument:(id)arg2;
+ (void)initialize;
- (void)mouseDown:(id)arg1;
- (void)_selectionDidChange:(id)arg1;
- (void)dealloc;
- (id)<API key>:(id)arg1;
- (id)ge... |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import cms.models.fields
import taggit.managers
class Migration(migrations.Migration):
dependencies = [
('taggit', '0001_initial'),
('cms', '<API key>'),
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class NewContactList extends MY_Controller {
var $TPL;
public function __construct()
{
parent::__construct();
// Your own constructor code
}
private function display()
{
$this->template->show('new_list', $this->TPL... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>huffman: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>extructures: 55 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="s... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Xml;
using BizTalkComponents.PipelineComponents.<API key>.Tests.Constants;
using BizTalkComponents.PipelineComponents.<API key>.Tests.Extensions;
using BizTalkComponents.PipelineComponents.<API key>.Tests.Models;
using Micr... |
import json
import argparse
import os
from listener.config import MIN_TIME, MAX_TIME, <API key>
from listener.replayer import Replayer
from listener.utilities import convert_time, average
from listener.calculate import (calculate_temp_NTC, calculate_press,
calculate_height, calculate_gyr... |
<?php
class HpsDebitAddValue extends HpsAuthorization
{
} |
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="tito">
<meta name="GENERATOR" content="Mozilla/4.7 [en] (WinNT; I) [Netscape]">
<title>Untitled</title>
</head>
<body text="#0000... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paco: 2 m 22 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="styl... |
# PathFinder

Image maze processor and solver.
*Logo: Right path by BomSymbols from the Noun Project* |
<!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">
<meta name="description" content="Introduction to Bootstrap">
<meta name="author... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import logging
import unittest
import epitran
logger = logging.getLogger('epitran')
def map_slice(xs, start, end):
return [x[start:end] for x in xs]
def assemble_ipa(xs):
return ''.join([x[3] for x in xs])
clas... |
# The set of languages for which implicit dependencies are needed:
SET(<API key>
"CXX"
)
# The set of files for implicit dependencies of each language:
SET(<API key>
"/home/cmeon/SimplexLP/eigen/unsupported/test/gmres.cpp" "/home/cmeon/SimplexLP/lib/unsupported/test/CMakeFiles/gmres_1.dir/gmres.cpp.o"
)
SET(<AP... |
<!doctype html>
<html lang = en >
<head>
<title></title>
<meta charset = utf-8 >
<meta name = viewport content = 'width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0' >
</head>
<body>
<script src = https://<API key>.github.io/3d-models/code/gallery/gallery.js ></script>
</body>
</html> |
package org.think.ex;
class Automobile {
}
public class ExTemplateHolder<T> {
private T data;
public ExTemplateHolder(T varData) {
this.data = varData;
}
public void set(T varData) {
this.data = varData;
}
public T get() {
return this.data;
}
public static void ma... |
<?php
namespace Comodojo\Foundation\DataAccess;
trait IteratorTrait
{
/**
* Reset the iterator
*/
public function rewind()
{
reset($this->data);
}
/**
* Get the current element
*
* @return mixed
*/
public function current()
{
return current($this... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>qarith: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>domain-theory: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... |
package goflow
//XML
type EndModel struct {
NodeModel
}
func (p *EndModel) Exec(execution *Execution) {
engine := execution.Engine
order := execution.Order
tasks := <API key>(order.Id)
for _, task := range tasks {
CompleteTask(task.Id, string(ER_AUTO), nil)
}
CompleteOrder(order.Id)
... |
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Web;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin;
using M... |
// std
import { URL } from 'url';
import * as fetch from 'node-fetch';
// FoalTS
import { AbstractProvider, SocialTokens } from './abstract-provider.service';
import { UserInfoError } from './user-info.error';
export interface <API key> {
projection?: string;
fields?: string[];
}
/**
* LinkedIn social provider.
*... |
#pragma once
#include "config.h"
class JsonConfig : public Config {
public:
explicit JsonConfig(const std::string& file_path);
inline bool Valid() const override {
return valid_;
}
private:
bool valid_{false};
}; |
package top.cardone.func.v1.usercenter.department;
import com.google.common.base.Charsets;
import com.google.common.collect.Maps;
import com.google.gson.Gson;
import top.cardone.ConsumerApplication;
import lombok.extern.log4j.Log4j2;
import lombok.val;
import org.apache.commons.io.FileUtils;
import org.junit.Assert;
im... |
[2016-02-24][] [bouzuya/rally-rxjs][]
rally-rxjs [bouzuya/vdom-rxjs-ssr][]
- spot create
- spot detail
- spot list
- stamp-rally create
- stamp-rally detail
0.1.0 tag
subject request / response route action
0.2.0 Subject framework
[2016-02-24]: https://blog.bouzuya.net/2016/02/24/
[bouzuya/rally-rxjs]: https:... |
#ifdef SQUIRREL_SP
#define <API key>
#include <windows.h>
#include <locale.h>
#include <tchar.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#if defined(_MSC_VER) && defined(_DEBUG)
#include <crtdbg.h>
#include <conio.h>
#endif
#include <squirrel.h>
#include <sqstdblob.h>
#incl... |
[ on Tue Feb 19 00:14:09 CET 2019 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Uses of Package org.slf4j.issue (SLF4J 1.7.26 Test API)</title>
<meta name="date" content="2019-02... |
import gravity from '../lib/loaders/gravity';
import Partner from './partner';
import PartnerTypeType from './input_fields/partner_type_type';
import {
GraphQLString,
GraphQLList,
GraphQLBoolean,
GraphQLInt,
GraphQLEnumType,
} from 'graphql';
const Partners = {
type: new GraphQLList(Partner.type),
descrip... |
# padlock
Note: this is a prototype. You may freely use any of the code here, but I can't promise it will work out for you |
#/u/GoldenSights
import traceback
import praw # simple interface to the reddit API, also handles rate limiting of requests
import time
import sqlite3
'''USER CONFIGURATION'''
APP_ID = ""
APP_SECRET = ""
APP_URI = ""
APP_REFRESH = ""
USERAGENT = ""
#This is a short description of what the bot does. For example "/u/Golde... |
package connect.ui.activity.chat.bean;
import java.io.Serializable;
public class GroupExt1Bean implements Serializable{
private String avatar;
private String groupname;
private String groupidentifier;
private String inviteToken;
public String getAvatar() {
return avatar;
}
public voi... |
**Insanity**
**School** enchantment (compulsion) [mind-affecting]; **Level** sorcerer/wizard 7
**Casting Time** 1 standard action
**Components** V, S
**Range** medium (100 ft. + 10 ft./level)
**Target** one living creature
**Duration** instantaneous
**Saving Throw** [Will](../combat#_will) negates; **[Spell Resistance]... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>functions-in-zfc: 13 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... |
# Analyze the Errors - 4.4
By Jeff George, 9.30.15, for DBC Phase 0
_Note:_ This file is a copy of the **errors.rb** file created for the assignment. I have reformatted as a markdown file for ease of reading, and edited the content to show both the original code snippets with their errors, and the fixed versions where ... |
<?php
declare(strict_types=1);
namespace Doctrine\ODM\MongoDB\Types;
use MongoDB\BSON\Binary;
use function sprintf;
/**
* The BinData type for generic data.
*/
class BinDataType extends Type
{
protected $binDataType = Binary::TYPE_GENERIC;
public function <API key>($value)
{
if ($value === null) {... |
import * as React from 'react';
// Libs
import styled from 'styled-components';
type Props = {
disciplines: string[];
};
const Label = styled.span`
padding-left: 5px;
`;
const Root = styled.div`
font-size: 12px;
`;
const ProjectDisciplines: React.FC<Props> = ({
disciplines,
rest
}: Props): JSX.Element => (
... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-erasure: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... |
#include<cstdio>
const int LIMIT=1000000;
int wayNum[LIMIT+1]={0,1,2};
int main(){
for(int i=4;i<=LIMIT;i+=2){
wayNum[i-1]=wayNum[i-2];
wayNum[i]=(wayNum[i-2]+wayNum[i/2])%1000000000;
}
int n;
scanf("%d",&n);
printf("%d\n",wayNum[n]);
return 0;
} |
package cubicchunks.world.dependency;
import cubicchunks.server.ServerCubeCache;
import cubicchunks.server.ServerCubeCache.LoadType;
import cubicchunks.util.CubeCoords;
import cubicchunks.world.cube.Cube;
import javax.annotation.Nonnull;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
/**
... |
<?php
// capture the user input (whatever they put after the filename in Terminal)
$user_throw = $argv[1];
// store possiblities in an array
$throws[0] = "Rock";
$throws[1] = "Paper";
$throws[2] = "Scissors";
$random_number = rand(0,2);
$comp_throw = $throws[$random_number];
if ($user_throw == "Rock") {
if ($comp_t... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>monae: 9 m 33 s </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="sty... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lens: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>zsearch-trees: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... |
var injected = injected || (function() {
var user = prompt("Enter Your Username", "user1");
var data, jsonArray, url, count=0;
var lis = [],
jsonlist = [];
var i = 0;
var Inspector = function() {
this.highlight = this.highlight.bind(this);
this.log = this.log.bind(this);
... |
#ifndef PROFITCOIN_BLOOM_H
#define PROFITCOIN_BLOOM_H
#include <vector>
#include "uint256.h"
#include "serialize.h"
class COutPoint;
class CTransaction;
// 20,000 items with fp rate < 0.1% or 10,000 items and <0.0001%
static const unsigned int <API key> = 36000; // bytes
static const unsigned int MAX_HASH_FUNCS = 50;
/... |
// <API key>.h
// <API key>
#import <UIKit/UIKit.h>
#import "<API key>.h"
@interface <API key> : UIViewController{
NSUserDefaults *defaults;
<API key> *nc;
UIBarButtonItem *revealButtonItem;
SAMultisectorSector *sectorX;
SAMultisectorSector *sectorY;
SAMultisectorSe... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>geocoq: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... |
create table dbo.RecordTypes
(
Id tinyint not null ,
Code varchar(30) not null ,
Name nvarchar(50) not null ,
constraint PK_RecordTypes primary key clustered (Id),
constraint UQ_RecordTypes_Code unique (Code),
constraint UQ_RecordTypes_Name unique (Name... |
// Ecma International makes this code available under the terms and conditions set
function testcase() {
var accessed = false;
function callbackfn(val, idx, obj) {
accessed = true;
return function () { };
}
return [11].every(callbackfn) && accessed;
}
runTestC... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>algorand: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>User agent detail - Mozilla/5.0 (iPad; CPU OS 7_0_4 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Mobile/11B554a</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.mi... |
# Proto REPL Charts Canvas
[API Docs](http://jasongilman.github.io/proto-repl-charts/proto-repl-charts.canvas.html)
Proto REPL Charts supports building more complex visualizations by drawing on an HTML canvas element embedded within Atom.
## Using this new feature
If you're already using Atom and Proto REPL make sure y... |
ENV['RACK_ENV'] = 'test'
require 'json'
require 'rspec'
require 'rack/test'
describe 'Trend Color UI' do
include Rack::Test::Methods
def app
STUDENTS: make this method return your Rack-based app
end
it 'should have all trend colors' do
get '/'
expect(last_response).to be_ok
expect(last_response.... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of level.
from importer import Importer
from preggy import expect
from tornado.testing import gen_test
from level.app import LevelApp
from level.config import Config
from level.json import dumps, loads
from level.context import Context, ServerParameters
... |
# ServiceErrors.<API key> method
The service returned an unexpected response.
csharp
public static ServiceErrorDto <API key>(string? message = null)
## See Also
* class [ServiceErrorDto](../ServiceErrorDto.md)
* class [ServiceErrors](../ServiceErrors.md)
* namespace [Facility.Core](../../Facility.Core.md)
<!-- DO NOT E... |
package com.javier.util.io;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
public class FileUtils {
private final static in... |
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
namespace MonoGameUtils.UI.GameComponents
{
<summary>
A screen that tracks the Keyboard and Mouse state between
Update() calls.
</summary>
public class <API key>
: <API key>
{
protected MouseState previousMouseSt... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>regexp: Not compatible </title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... |
using Microsoft.AspNet.Identity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace <API key>.Auth
{
public class EmailService : <API key>
{
public Task SendAsync(IdentityMessage message)
{
// Plug in your ema... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.