answer
stringlengths
15
1.25M
// <API key>.h // XQDemo #import <UIKit/UIKit.h> @interface <API key> : UIView - (void)<API key>:(NSString *)timestamp; @end
/** * A <API key> represents a collection of display objects. * It is the base class of all display objects that act as a container for other objects. * * @class <API key> * @extends DisplayObject * @constructor */ PIXI.<API key> = function() { PIXI.DisplayObject.call( this ); /** * [read-only] The ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/...
function ga() {} var _gaq = []
export { default } from '<API key>/components/stripe-card';
#include "binary_buffer.hpp" #include <iterator> #include <algorithm> #include <sstream> #include <boost/endian/conversion.hpp> using boost::endian::native_to_big; using boost::endian::big_to_native; namespace { using aria::byte; template <typename P> void <API key>(std::vector<byte> & vec, P primitive) ...
<pre><code class="css">h1(class='s-simple-title u-fs-h5x') Thumbnail Object h2.s-simple-title--sub Default .s-simple-objects.thumbnail .o-thumb img(class="o-thumb__item" src= "http://placehold.it/200") .s-simple-code include ../code/highlight/<API key>.html h2.s-simple-title--sub Thumbnail Rounded .s-simple-ob...
# :floppy_disk: ghbackup [![GoDoc](https: [![Build Status](https: [![Go Report Card](https: Backup your GitHub repositories with a simple command-line application written in Go. The simplest way to keep your repositories save: 1. [Install](#install) `ghbackup` 1. Get a token from https://github.com/settings/tokens 2. ...
const exec = require('child_process').exec const path = require('path') const fs = require('fs') const execPath = process.execPath const binPath = path.dirname(execPath) const dep = path.join(execPath, '../../lib/node_modules/dep') const repository = 'https://github.com/depjs/dep.git' const bin = path.join(dep, 'bin/de...
using MongoDB.Driver; namespace AspNet.Identity.MongoDB { public class IndexChecks { public static void <API key><TUser>(IMongoCollection<TUser> users) where TUser : IdentityUser { var userName = Builders<TUser>.IndexKeys.Ascending(t => t.UserName); var unique...
class SystemModule < ActiveRecord::Base attr_accessible :name def self.CUSTOMER readonly.find_by_name("Customer") end def self.USER readonly.find_by_name("User") end def self.CONTACT readonly.find_by_name("Contact") end end
# <API key> Just look at the colors
package org.aikodi.chameleon.support.statement; import org.aikodi.chameleon.core.declaration.Declaration; import org.aikodi.chameleon.core.element.ElementImpl; import org.aikodi.chameleon.core.lookup.DeclarationSelector; import org.aikodi.chameleon.core.lookup.LookupContext; import org.aikodi.chameleon.core.lookup.Look...
"use strict"; ace.define("ace/snippets/matlab", ["require", "exports", "module"], function (e, t, n) { "use strict"; t.snippetText = undefined, t.scope = "matlab"; });
(function(){ /** * PubSub implementation (fast) */ var PubSub = function PubSub( defaultScope ){ if (!(this instanceof PubSub)){ return new PubSub( defaultScope ); } this._topics = {}; this.defaultScope = defaultScope || this; }; PubSub.prototype = {...
function fixPosition() { console.log($(window).scrollTop()); // if its anywhee but at the very top of the screen, fix it if ($(window).scrollTop() >= headerHeight) { // magic number offset that just feels right to prevent the 'bounce' // if (headPosition.top > 0){ $('body').addClass('js-fix-positions...
<?php return [ '@class' => 'Grav\\Common\\File\\CompiledYamlFile', 'filename' => '/Users/kenrickkelly/Sites/hokui/user/plugins/admin/languages/tlh.yaml', 'modified' => 1527231007, 'data' => [ 'PLUGIN_ADMIN' => [ 'LOGIN_BTN_FORGOT' => 'lIj', 'BACK' => 'chap', '...
#!/usr/bin/env bash # Run a raspberry pi as ulnoiot gateway (wifi router and mqtt_broker) # To enable this, # make sure ulnoiot-run script is porperly setup (for example in /home/pi/bin) # add the following to the end of /etc/rc.local with adjusted location of the # run-script: # export PATH="/usr/local/sbin:/usr/local...
import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'underscore'; import babel from 'babel-core/browser'; import esprima from 'esprima'; import escodegen from 'escodegen'; import estraverse from 'estraverse'; import Codemirror from 'react-codemirror'; import classNames from 'classnames'; import {...
/** @babel */ /* eslint-env jasmine, atomtest */ import fs from 'fs'; import path from 'path'; const testPrefix = path.basename(__filename).split('-').shift(); const projectRoot = path.join(__dirname, 'fixtures'); const filePath = path.join(projectRoot, `test.${testPrefix}`); describe('editorconfig', () => { let te...
#import <HomeSharing/HSRequest.h> @interface HSItemDataRequest : HSRequest { } + (id)<API key>:(unsigned int)arg1 itemID:(unsigned long long)arg2 format:(id)arg3; - (id)initWithDatabaseID:(unsigned int)arg1 itemID:(unsigned long long)arg2 format:(id)arg3; @end
#import <Foundation/NSPredicateOperator.h> @interface <API key> : NSPredicateOperator { } + (id)<API key>; + (id)orPredicateOperator; + (id)<API key>; - (_Bool)evaluatePredicates:(id)arg1 withObject:(id)arg2 <API key>:(id)arg3; - (_Bool)evaluatePredicates:(id)arg1 withObject:(id)arg2; - (id)symbol; - (id)predicateForma...
import React from "react" import { injectIntl } from "react-intl" import { NavLink } from "react-router-dom" import PropTypes from "prop-types" import Styles from "./Navigation.css" function Navigation({ intl }) { return ( <ul className={Styles.list}> <li><NavLink exact to="/" activeClassName={Styles.active...
package main import ( "bufio" "os" "fmt" ) func main() { counts := make(map[string]int) fileReader, err := os.Open("words.txt") if err != nil { fmt.Println(err) os.Exit(1) } defer fileReader.Close() scanner := bufio.NewScanner(fileReader) // Set the split function...
<?php defined("_VALID_ACCESS") || die('Direct access forbidden'); $recordsets = <API key>::<API key>(); $checkpoint = Patch::checkpoint('recordset'); $processed = $checkpoint->get('processed', array()); foreach ($recordsets as $tab => $caption) { if (isset($processed[$tab])) { continue; } $processed...
const Marionette = require('backbone.marionette'); const MeterValuesView = require('./MeterValuesView.js'); module.exports = class EnergyMetersView extends Marionette.View { template = Templates['capabilities/energy/meters']; className() { return 'energy-meters'; } regions() { return { metersByPeriod: '...
// of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // all copies or substanti...
const _ = require('lodash'); const en = { modifiers: require('../../res/en').modifiers }; const Types = require('../../lib/types'); const optional = { optional: true }; const repeatable = { repeatable: true }; const nullableNumber = { type: Types.NameExpression, name: 'number', nullable: true };...
class ACLHelperMethod < <API key> access_control :helper => :foo? do allow :owner, :of => :foo end def allow @foo = Foo.first render inline: "<div><%= foo? ? 'OK' : 'AccessDenied' %></div>" end end
<?php namespace App\Application\Controllers\Traits; trait HelpersTrait{ protected function checkIfArray($request){ return is_array($request) ? $request : [$request]; } protected function createLog($action , $status , $messages = ''){ $data = [ 'action' => $action, 'm...
/* 1023 20 */ #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char *argv[]) { int n = 10; int quantities[n]; for (int i = 0; i < n; i++) { if (scanf("%d", &quantities[i]) != 1) return EXIT_FAILURE; } int nums[50] = {0}; int count = 0; fo...
<html><body> <h4>Windows 10 x64 (19041.508)</h4><br> <h2>_XPF_MCE_FLAGS</h2> <font face="arial"> +0x000 MCG_CapabilityRW : Pos 0, 1 Bit<br> +0x000 MCG_GlobalControlRW : Pos 1, 1 Bit<br> +0x000 Reserved : Pos 2, 30 Bits<br> +0x000 AsULONG : Uint4B<br> </font></body></html>
angular.module('Reader.services.options', []) .factory('options', function($rootScope, $q) { var controllerObj = {}; options.onChange(function (changes) { $rootScope.$apply(function () { for (var property in changes) { controllerObj[property] = changes[property].newValue; } ...
class UsersController < <API key> def index end def show @user = User.find(params[:id]) end def edit @user = User.find(params[:id]) end def update @user = User.find(params[:id]) if @user.update_attributes(user_params) @user.geocode else render 'edit' end end...
# blog [![Build Status](https: Weekend project for self education ## backend configuration create config.local.js on ./server directory with module.exports = { secret: 'some random text', port: 3000, greeting: 'blog server running on http://localhost:', mongoose: 'mongodb://localhost/blog' } where: - se...
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="refresh" content="0;URL=../../openssl_sys/fn.<API key>.html"> </head> <body> <p>Redirecting to <a href="../../openssl_sys/fn.<API key>.html">../../openssl_sys/fn.<API key>.html</a>...</p> <script>location.replace("../../openssl_sys/fn.<API key>.html"...
# TriDIYBio Web site for TriDIYBio ## Workflow Setup: - `git clone https://github.com/Densaugeo/TriDIYBio.git` - `npm install` Making changes: - `git pull` - Make your changes and save files - `node gen.js` - `node test_server.js` - `git commit -am "Commit message"` - `npm run push`
import Ember from 'ember'; import DS from 'ember-data'; import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin'; export default DS.RESTAdapter.extend(DataAdapterMixin, { authorizer: 'authorizer:dspace', initENVProperties: Ember.on('init', function() { let ENV = this.container.lookupFactory('c...
html { height: 100%; } body { background: #538eb8; /* For browsers that do not support gradients */ background: -<API key>(left top, #538eb8, #ffd044); /* For Safari 5.1 to 6.0 */ background: -o-linear-gradient(bottom right, #538eb8, #ffd044); /* For Opera 11.1 to 12.0 */ background: -moz-linear-gra...
function alertThanks (post) { alert("Thanks for submitting a post!"); return post; } Telescope.callbacks.add("postSubmitClient", alertThanks);
1. pingICMP pingpingping ping ICMP ICMP Internet Internet Control Message Protocolping ICMPICMPICMPICMP - [Ping](https://zhuanlan.zhihu.com/p/45110873) - [ICMPping](https: 2. telnet telnetIPIP10.14.40.1722telnet 10.14.40.17 22 - [TelnetHTTP](https://zhuanlan.zhihu.com/p/61352013) - [win10telnetHTTP](http...
"use strict"; var async = require('async'); var fs = require('fs'); var util = require('util'); var prompt = require('prompt'); var httpRequest = require('emsoap').subsystems.httpRequest; var common = require('./common'); var mms = require('./mms'); var mmscmd = require('./mmscmd'); var deploy = require('./deploy'); va...
#!/usr/bin/env python # coding:utf-8 """ Database operation module. This module is independent with web module. """ import time, logging import db class Field(object): _count = 0 def __init__(self, **kw): self.name = kw.get('name', None) self.ddl = kw.get('ddl', '') self._default = kw.ge...
package cn.libery.calendar.MaterialCalendar; import android.content.Context; import java.util.Collection; import java.util.HashSet; import cn.libery.calendar.MaterialCalendar.spans.DotSpan; /** * Decorate several days with a dot */ public class EventDecorator implements DayViewDecorator { private int color; p...
import React from 'react'; // import Layout from '../../components/Layout'; const title = 'Admin Page'; const isAdmin = false; export default { path: '/admin', children : [ require('./dashboard').default, require('./library').default, require('./setting').default, // require('./editor').default, ...
using System; using System.Collections.Generic; namespace HarmonyLib { <summary>Specifies the type of method</summary> public enum MethodType { <summary>This is a normal method</summary> Normal, <summary>This is a getter</summary> Getter, <summary>This is a setter</su...
<?php namespace MyApplication\Navigation\Navigation; interface <API key> { /** * @return NavigationControl */ function create(); }
import pytest from tests.base import Author, Post, Comment, Keyword, fake def make_author(): return Author( id=fake.random_int(), first_name=fake.first_name(), last_name=fake.last_name(), twitter=fake.domain_word(), ) def make_post(with_comments=True, with_author=True, with_keywo...
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="author" content="Aurelio De Rosa"> <title>Geolocation API Demo by Aurelio De Rosa</title> <style> * { -webkit-box-sizing...
<!DOCTYPE html> <!--[if IEMobile 7 ]> <html class="no-js iem7"> <![endif]--> <!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8"> <title></title> <meta name="description" content=""> <meta name="HandheldFriendly" content="T...
# Declaring a Function def recurPowerNew(base, exp): # Base case is when exp = 0 if exp <= 0: return 1 # Recursive Call elif exp % 2 == 0: return recurPowerNew(base*base, exp/2) return base * recurPowerNew(base, exp - 1)
c rutina leemallab c lee el fichero de control de lineas y longitudes de onda:'mallaobs' c ntau : numero de puntos en tau c tau : log10(tau) c ntl : numero total de lineas c nlin : indice de cada linea y de cada blend c npas : numero de puntos en cada linea c dlamda:cada delta de l.d.o. en ma c nble :numero de blends...
// flow-typed signature: <API key> declare module 'react-redux' { declare module.exports: any; } /** * We include stubs for each file inside this npm package in case you need to * require those files directly. Feel free to delete any files that aren't * needed. */ declare module 'react-redux/dist/react-redux' { ...
import * as riot from 'riot' import { init, compile } from '../../helpers/' import TargetComponent from '../../../dist/tags/popup/su-popup.js' describe('su-popup', function () { let element, component let spyOnMouseover, spyOnMouseout init(riot) const mount = opts => { const option = Object.assign({ '...
package app.components.semanticui import japgolly.scalajs.react import japgolly.scalajs.react.{Callback, Children} import japgolly.scalajs.react.vdom.VdomNode import scala.scalajs.js object Menu { val component = react.JsComponent[js.Object, Children.Varargs, Null](<API key>.Menu) def apply()(children: VdomNode*) =...
import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { SharedModule, <API key> } from '../../../shared'; import { AppModule } from './app.module'; import { AppComponent } from './app.component'; @NgModule({ imports: [ SharedModule, AppModule, RouterModule.forChi...
const jwt = require('jsonwebtoken'); const User = require('../models/User'); // import { port, auth } from '../../config'; /** * The Auth Checker middleware function. */ module.exports = (req, res, next) => { if (!req.headers.authorization) { return res.status(401).end(); } // get the last part from a auth...
//10. Odd and Even Product //You are given n integers (given in a single line, separated by a space). //Write a program that checks whether the product of the odd elements is equal to the product of the even elements. //Elements are counted from 1 to n, so the first element is odd, the second is even, etc. using System...
var Ringpop = require('ringpop'); var TChannel = require('TChannel'); var express = require('express'); var NodeCache = require('node-cache'); var cache = new NodeCache(); var host = '127.0.0.1'; // not recommended for production var httpPort = process.env.PORT || 8080; var port = httpPort - 5080; var bootstrapNodes = ...
Element.prototype.remove = function() { this.parentElement.removeChild(this); } const addIcon = (icon) => `<i class="fa fa-${icon}"></i>` const headerTxt = (type) => { switch (type) { case 'error': return `${addIcon('ban')} Error` case 'warning': return `${addIcon('exclam...
<!DOCTYPE html> <html> <head> <meta charset='utf-8'> <meta http-equiv='x-ua-compatible' content='ie=edge'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <meta name='<API key>' content='VPS Health' /> <meta name='<API ke...
<?php namespace Rocketeer\Services\History; use Illuminate\Support\Collection; /** * Keeps a memory of everything that was outputed/ran * and on which connections/stages. */ class History extends Collection { /** * Get the history, flattened. * * @return string[]|string[][] */ public func...
<?php namespace AppBundle\Entity; use Doctrine\ORM\EntityRepository; /** * <API key> */ class <API key> extends EntityRepository { public function findByRefList(array $refList) { $qb = $this->createQueryBuilder('s'); $qb->where($qb->expr()->in('s.ref', $refList)); return $qb->getQuery(...
package br.com.k19.android.cap3; import android.app.Activity; import android.os.Bundle; public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.frame); } }
import {WidgetConfig} from '../shared/widget-config'; import {WidgetService} from '../shared/widget.service'; export class Widget { title: string; updateInterval: number = 1000; widgetConfig: WidgetConfig; titleUrl: string; description: string; constructor(private widgetService: WidgetService) { } getTi...
''' Testing class for database API's course related functions. Authors: Ari Kairala, Petteri Ponsimaa Originally adopted from Ivan's exercise 1 test class. ''' import unittest, hashlib import re, base64, copy, json, server from <API key> import BaseTestCase, db from flask import json, jsonify from exam_archive import <...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>zorns-lemma: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.c...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>higman-s: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
<!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.9.1"/> <title>V8 API Reference Guide for node.js v0.11.8: v8::<API key> Class Reference</title> <link hr...
// console777.c // crypto777 #ifdef DEFINES_ONLY #ifndef <API key> #define <API key> #include <stdio.h> #include <stdio.h> #include <ctype.h> #include <stdint.h> #include <string.h> #include <stdlib.h> #include "../includes/cJSON.h" #include "../KV/kv777.c" #include "../common/system777.c" #endif #else #ifndef <API k...
#include "base58.h" #include "core.h" #include "init.h" #include "keystore.h" #include "main.h" #include "net.h" #include "rpcserver.h" #include "uint256.h" #ifdef ENABLE_WALLET #include "wallet.h" #endif #include <stdint.h> #include <boost/assign/list_of.hpp> #include "json/json_spirit_utils.h" #include "json/json_spi...
# This file is copied to spec/ when you run 'rails generate rspec:install' ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../config/environment', __FILE__) # Prevent database truncation if the environment is production abort("The Rails environment is running in production mode!") if Rails.env.production? requ...
import React from 'react'; import { View, ScrollView } from 'react-native'; import ConcensusButton from '../components/ConcensusButton'; import axios from 'axios'; const t = require('tcomb-form-native'); const Form = t.form.Form; const NewPollScreen = ({ navigation }) => { function onProposePress() { naviga...
package com.mikescamell.<API key>.recycler_view.<API key>; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import com.mikescamell.<API key>.R; public class <API key> extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(saved...
define(["ace/ace"], function(ace) { return function(element) { var editor = ace.edit(element); editor.setTheme("ace/theme/eclipse"); editor.getSession().setMode("ace/mode/python"); editor.getSession().setUseSoftTabs(true); editor.getSession().setTabSize(4); editor.set...
/** * React components for kanna projects. * @module <API key> */ "use strict"; module.exports = { /** * @name KnAccordionArrow */ get KnAccordionArrow() { return require('./kn_accordion_arrow'); }, /** * @name KnAccordionBody */ get KnAccordionBody() { return require('./kn_accord...
<?php namespace App\Helpers\Date; use Nette; /** * Date and time helper for better work with dates. Functions return special * DateTimeHolder which contains both textual and typed DateTime. */ class DateHelper { use Nette\SmartObject; /** * Create datetime from the given text if valid, or otherwise retu...
layout: post title: "[BOJ] 15686. " categories: Algorithm author: goodGid * content {:toc} ## Problem Problem URL : **[ ](https: ![](/assets/img/algorithm/15686_1.png) ![](/assets/img/algorithm/15686_2.png) ## [1] Answer Code (18. 10. 15) cpp #include<iostream> #include<vector> #include<algorithm> #define p pair<int,...
<!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.11"/> <title>V8 API Reference Guide for node.js v8.9.1: Member List</title> <link href="tabs.css" rel="s...
#include <iostream> #include <fstream> #include <seqan/basic.h> #include <seqan/index.h> #include <seqan/seq_io.h> #include <seqan/sequence.h> #include <seqan/file.h> #include <seqan/score.h> #include <seqan/seeds.h> #include <seqan/align.h> using namespace seqan; seqan::String<Seed<Simple> > <API key>(seqan::DnaString...
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- Blog Ads --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-{{site.cfg.<API key>}}" data-ad-slot="{{site.cfg.adsense_unit_no}}" data-ad-format="auto"></ins> <script> (adsbygoogle = window.a...
#include "stdafx.h" #include "GPUResource.h" #include <algorithm> #include "D3D12DeviceContext.h" CreateChecker(GPUResource); GPUResource::GPUResource() {} GPUResource::GPUResource(ID3D12Resource* Target, <API key> InitalState) :GPUResource(Target, InitalState, (D3D12DeviceContext*)RHI::GetDefaultDevice()) {} GPUResour...
package com.braintreepayments.api; import android.os.Parcel; import android.os.Parcelable; import android.text.TextUtils; import androidx.annotation.Nullable; import com.braintreepayments.api.GraphQLConstants.Keys; import org.json.JSONException; import org.json.JSONObject; /** * Use to construct a card tokenization re...
package cn.edu.siso.rlxapf; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class DeviceActivity extends AppCompatActivity { private Button devicePrefOk = null; @Override protected void o...
.bluisha { box-shadow: 0px 0px 17px #000; padding: 0 !important; background: url('https://lh3.googleusercontent.com/<API key>=w1334-h667-no') no-repeat center center; height: 100vh; background-size: cover; }
require 'spec_helper' RSpec.configure do |config| config.before(:suite) do VCR.configuration.<API key>! end end describe VCR::RSpec::Metadata, :skip_vcr_reset do before(:all) { VCR.reset! } after(:each) { VCR.reset! } context 'an example group', :vcr do context 'with a nested example group' do i...
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; } audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; } audio:not([controls]) { display: none; } html { font-size: 100%; -<API key>: 100%; -ms-text-size-adjust: 100%; } a:focus { o...
<?php declare(strict_types=1); namespace OAuth2Framework\Tests\Component\ClientRule; use <API key>; use OAuth2Framework\Component\ClientRule\<API key>; use OAuth2Framework\Component\ClientRule\RuleHandler; use OAuth2Framework\Component\Core\Client\ClientId; use OAuth2Framework\Component\Core\DataBag\DataBag; use OAuth2...
function countBs(string) { return countChar(string, "B"); } function countChar(string, ch) { var counted = 0; for (var i = 0; i < string.length; i++) { if (string.charAt(i) == ch) counted += 1; } return counted; } console.log(countBs("BBC")); console.log(countChar("kakkerlak", "k...
// dvt package myJava; import java.util.Scanner; public class dvt { public static void main(String[] args) { Scanner read = new Scanner(System.in); int a, b, temp; System.out.print("a = "); a = read.nextInt(); System.out.print("b = "); b = read.nextInt(); if (a > b){ ...
#!/usr/bin/env bash PYTHONPATH=. <API key>=sampleproject.settings py.test --create-db
// DYMEPubChapterFile.h // <API key> #import <Foundation/Foundation.h> @interface DYMEPubChapterFile : NSObject @property (nonatomic, copy) NSString *chapterID; @property (nonatomic, copy) NSString *href; @property (nonatomic, copy) NSString *mediaType; @property (nonatomic, copy) NSString *title; @property (nonatomi...
// - The class constructor call is in a valid tail-call position, which means PrepareForTailCall is performed. // - The function call returns from `otherRealm` and proceeds the tail-call in this realm. // - Calling the class constructor throws a TypeError from the current realm, that means this realm and not `otherReal...
package com.rootulp.rootulpjsona; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.AsyncTask; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem;...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; ...
<?php declare(strict_types=1); namespace JDWil\Xsd\Event; /** * Class <API key> * @package JDWil\Xsd\Event */ class <API key> extends <API key> { }
# == Schema Information # Table name: avatars # id :integer not null, primary key # user_id :integer # entity_id :integer # entity_type :string(255) # image_file_size :integer # image_file_name :string(255) # image_content_type :string(255) # created_at ...
package com.epi; import java.util.Random; public class RabinKarp { // @include // Returns the index of the first character of the substring if found, -1 // otherwise. public static int rabinKarp(String t, String s) { if (s.length() > t.length()) { return -1; // s is not a substring of t. } fin...
using System; using System.Collections.Generic; using Sekhmet.Serialization.Utility; namespace Sekhmet.Serialization { public class <API key> : <API key> { private readonly IInstantiator _instantiator; private readonly ReadWriteLock _lock = new ReadWriteLock(); private readonly IDictiona...
require "rails_helper" RSpec.describe DiagnosesController, type: :routing do describe "routing" do it "routes to #index" do expect(:get => "/diagnoses").to route_to("diagnoses#index") end it "routes to #new" do expect(:get => "/diagnoses/new").to route_to("diagnoses#new") end it "route...