answer
stringlengths
15
1.25M
<?php namespace App\Models\Rme; use App\Models\Orm\Entity; use App\Models\Structs\Exercises\ScalarExercise; use Orm; /** * @property string $answer * @property bool $correct * @property bool $hint has user seen hint? {default false} * @property bool $inactivity browser tab hidden during exer...
<?php namespace Easy\EspaceMembreBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class <API key> extends Bundle { }
#ifdef HAVE_CONFIG_H #include "../ext_config.h" #endif #include <php.h> #include "../php_ext.h" #include "../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" #include "kernel/memory.h" #include "kernel/array.h" #include "kernel/operator...
import axios from 'axios'; import {globalState} from '../state'; import BaseModel from './base'; export default class Guild extends BaseModel { constructor(obj) { super(); this.fromData(obj); this.config = null; } fromData(obj) { this.id = obj.id; this.ownerID = obj.owner_id; this.name = o...
<?php /* * PHPUnit is required in order to run these tests. * You can install PHPUnit by running requirements.sh * packaged with MTV. * * You'll also need to edit the accompanying settings.json file * in this directory and update the hostname of the WordPress * install you're using to run these tests. * * Note...
class Screen_Name class << self def create *args r = new r.create *args end end # Possible args: # hash # customer, 'screen_name' def create *args raise ":create no longer accepts #{args.first.inspect}" if args.first.is_a?(Symbol) raw_data = if args.size == 2 && args.first.is...
import { Component, EventEmitter, Output } from '@angular/core'; import { fadeAnimation, slideAnimation } from '@app/framework'; @Component({ selector: '<API key>', styleUrls: ['./onboarding-dialog.component.scss'], templateUrl: './onboarding-dialog.component.html', animations: [ fadeAnimation, ...
<?php namespace Application\Database\Video; use Application\Database\Video\Video; use Zend\Db\ResultSet\ResultSet; use Zend\Db\TableGateway\TableGateway; class <API key> { public function __invoke($serviceManager) { $adapter = $serviceManager->get('Application\Database\DatabaseService')->getAdapter(); ...
<div class="ink-shade fade"> <div class="ink-modal" data-trigger="dummy" data-bind="attr: {'data-width': modalWidth, 'data-height': modalHeight}"> <div class="modal-header"> <button class="modal-close ink-dismiss"></button> <h5 data-bind="text: title"></h5> </div> ...
'use strict'; var isA = require("Espresso/oop").isA; var oop = require("Espresso/oop").oop; var init = require("Espresso/oop").init; var trim = require("Espresso/trim").trim; var isA = require("Espresso/oop").isA; var oop = require("Espresso/oop").oop; var <API key> = require("Espresso/Security/Core/Authentication/Prov...
#include "common_core.h" #include <stdlib.h> /* atoi(3) */ #include <string.h> /* strerror(3) */ #include <errno.h> #include "ipc.h" #include "memory.h" #include "mod_api/lexicon.h" #include "mod_api/hash.h" typedef struct { uint32_t last_wordid; } lexicon_shared_t; typedef struct { lexicon_shared_t *shared; ...
package com.myriadmobile.library.shove; import android.app.IntentService; import android.content.Intent; /** * Handles GCM push notifications */ public class ShoveIntentService extends IntentService { public static final String TAG = ShoveIntentService.class.getSimpleName(); public ShoveIntentService() { ...
import React, { Component, PropTypes } from 'react' import classNames from 'classnames' import './List.scss' export default class List extends Component { static propTypes = { className: PropTypes.string, children: PropTypes.node, value: PropTypes.any, onChange: PropTypes.func, onSelect: PropTypes...
layout: post title: "Sample Link Post" description: "" tags: [, ] comments: true link: https://thisangblog.wordpress.com/ **link post** YAML `link:https://thisangblog.wordpress.com/`,OK This theme supports **link posts**, made famous by John Gruber. To use, just add `link: http://url-you-want-linked` to the post's YA...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>rational: Not compatible</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
class Solution: # @param {integer[]} nums # @return {boolean} def containsDuplicate(self, nums): return len(nums) != len(set(nums))
layout: page title: "Lingshuang Mao" comments: true description: "blanks" keywords: "Lingshuang Mao,CU,Boulder" <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script src="https://dl.dropboxusercontent.com/s/pc42nxpaw1ea4o9/highcharts.js?dl=0"></script> <!-- <script src=...
# <API key>: true describe Nylas::RawMessage do describe ".#send!" do it "calls execute on api with params" do message_string = "MIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\n" \ "Subject: A mime email\n" \ "From: You <your-email@example.com>\n" \ "To: You <#{ENV.fetch(...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class CI_Log { /** * Path to save log files * * @var string */ protected $_log_path; protected $_file_permissions = 0644; /** * Level of logging * * @var int */ protected $_threshold = 1; ...
# Saving and loading variables in Julia Data format (JLD) [![Build Status](https: [![Build status](https: [![codecov.io](http: [![JLD](http: JLD, for which files conventionally have the extension `.jld`, is a widely-used format for data storage with the Julia programming language. JLD is a specific "dialect" of [HDF5]...
<?php namespace Sifter; class RequestException extends \Exception { } class Request { private static $host; private static $token; public static function config($host, $token) { static::$host = $host; static::$token = $token; } public static function make($endpoint, $params = arr...
using System; using UAOOI.Configuration.Networking.Serialization; using UAOOI.SemanticData.UANodeSetValidation.DataSerialization; namespace UAOOI.Networking.Simulator.Boiler.AddressSpace { public abstract partial class DataItemState : <API key> { [Obsolete("This constructor is provided only to make auto-generat...
// Description // A Hubot script that returns videos // Configuration: // <API key> // Commands: // hubot F<N> - returns videos // bouzuya <m@bouzuya.net> module.exports = function(robot) { var API_KEY, request; request = require('request-b'); API_KEY = process.env.<API key>; return robot.respond(/(?...
class FarmCat < ActiveRecord::Base belongs_to :has_farm_cats, :polymorphic => true # has_many :events belongs_to :farm_cat has_many :sub_cats, :class_name => 'FarmCat', :foreign_key => 'farm_cat_id' validates :name, :presence => true def FarmCat.for_class(klass) FarmCat.where(:master_class => klass) e...
<?php // We hide the comments and links now so that we can render them later. hide($content['comments']); hide($content['links']); hide($content['field_title']); hide($content['field_event_banner']); hide($content['field_event_date']); hide($content['<API key>']); hide($content['field_event_title']); hide($content['<AP...
import { isTranslucent } from './Util'; declare var Cesium; /** * This is the default implementation of a primitive, all primitives extend this class. */ export abstract class Primitive{ protected _show:boolean; protected _modelMatrix: any; protected _renderState: any; protected _drawCommand: any; ...
#include <headers/hash.h> Hash::Hash(CryptoPP::HashTransformation* h) { this->hashType = h; plaintext = ""; digest = ""; saltlen = 0; salt = ""; } Hash::Hash(){ this->hashType = new CryptoPP::SHA1(); name = "SHA 1"; } Hash::Hash(const Hash &h) { saltlen = h.saltlen; salt = h.salt; ...
var http = require('http') , URL = require('url') , fs = require('fs') , path = require('path') , async = require('async'); exports.exec = function(config, data, callback) { var url = config.url , outDir = path.resolve(config.dir) , urls = []; if (url) { urls.push(url); } if (Array.isArray(d...
// Karma configuration // Generated on Sat Sep 20 2014 20:50:04 GMT+0000 (UTC) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '../', // frameworks to use frameworks: ['jasmine'], // list of files / patterns to ...
/* HIT_START * BUILD: %t %s ../test_common.cpp * TEST: %t * HIT_END */ #include <hip/hip_runtime.h> #include <hip/device_functions.h> #include "test_common.h" #pragma GCC diagnostic ignored "-Wall" #pragma clang diagnostic ignored "-Wunused-variable" __device__ void <API key>() { float fX, fY; __cosf(0.0f);...
// Generated by class-dump 3.4 (64 bit) (Debug version compiled Mar 6 2013 16:24:16). @class NSBundle; @interface BRSystemLanguages : NSObject { NSBundle *_promptBundle; } + (id)currentLanguage; - (id)_promptFileForLang:(id)arg1; - (void)dealloc; - (id)getLangsAndPrompts:(BOOL)arg1; - (id)init; @end
var data = [ { stars: 5, secondsPerPlaces: 2, touchDiv: 5 }, { stars: 4, secondsPerPlaces: 3, touchDiv: 4 }, { stars: 3, secondsPerPlaces: 4, touchDiv: 3 }, { stars: 2, secondsPerPlaces: 5, touchD...
# $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'cnp_one_click' require 'capybara' require 'capybara/rspec' require 'webmock/rspec' require 'support/stub_helpers' Capybara.default_driver = :selenium RSpec.configure do |config| config.include Capybara::DSL config.include StubHelpers end
# <API key> A Symfony2 bundle for parsing the contents of a url that specifies which mailer to use. ## Installation and configuration Using [Composer][composer] add the bundle to your dependencies using the require command: `composer require bravesheep/mailer-url-bundle:dev-master`. Add the bundle to your AppKernel Add...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>infotheo: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
namespace JsonBuilder.Tests { using NUnit.Framework; public class <API key> : <API key> { private string elementName = "MyObject"; private string firstValue = "firstValue"; private string secondValue = "secondValue"; private string collectionName = "collection"; publi...
# <API key>: true module GitHubPages # Dependencies is where all the public dependencies for GitHub Pages are defined, # and versions locked. Any plugin for Pages must be specified here with a # corresponding version to which it shall be locked in the runtime dependencies. class Dependencies VERSIONS = { ...
var qrsInteract = require('./qrsInstance'); var Promise = require('bluebird'); var getAppOwner = { getAppOwner : function(appId) { return new Promise(function(resolve,reject) { var path = "/app/full"; path += "?filter=id eq " + appId; return qrsInteract.Get(pa...
import {Application} from "@nativescript/core"; declare var GMSServices: any; if(Application.ios) { GMSServices.provideAPIKey("<Google Api>"); } Application.run({ moduleName: "main-page" }); /* Do not place any code after the application has been started as it will not be executed on iOS. */
## Purpose **java-to-typescript** creates namespaced Typescript classes from Java classes. It correctly handles inner classes (creates inner typescript namespaces) and inheritance. Using this library you can export your Java DTO objects for use in typescript/javascript. ## Usage 1) Register the repository in your pom.x...
<?php namespace PhpugTest\Cache\Populator; use Phpug\Cache\Populator\CountryCode; use Mockery as M; class CountryCodeTest extends \<API key> { public function testActualCaching() { $return = M::mock('stdObject'); $return->shouldReceive('getCountryCode') ->andReturn('foo'); $G...
<?php namespace Checkout\Models\Payments; class Payer extends Source { /** * Qualified name of the class. * * @var string */ const QUALIFIED_NAME = __CLASS__; /** * Name of the model. * * @var string */ const MODEL_NAME = 'payer'; /** * Magic Methods ...
from __future__ import unicode_literals from . import exceptions DEFAULT_HOST = 'http://api.acoustid.org/' FORMATS = ('json', 'jsonp', 'xml') META = ( 'recordings', 'recordingids', 'releases', 'releaseids', 'releasegroups', 'releasegroupids', 'tracks', 'compress', 'usermeta', 'sources' ) ERRORS = { 1: e...
<!DOCTYPE html> <html ng-app="gta"> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width"> <title></title> <link href="lib/ionic/css/ionic.css" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> <!-- IF ...
!function(){"use strict";var d=document.createElementNS("http:
module Braincron module Queue def self.configure RosettaQueue::Destinations.define do |queue| queue.map :requests, "/queue/braincron/requests" queue.map :results, "/queue/braincron/results" queue.map :exceptions, "/queue/braincron/exceptions" end config = Braincron.queue_...
#pragma once #include <iterator> #include <bbb/core.hpp> #include <bbb/container/iterator/traits.hpp> namespace bbb { namespace container { namespace iterator { template <typename container> struct iterator_providers { using traits = <API key><container>; ...
<md-toolbar class="md-table-toolbar md-default"> <div class="md-toolbar-tools"> <md-button id="main" class="md-icon-button md-primary" aria-label="{{'Vouchers' | translate }}"> <md-icon md-font-icon="arrow_back" ng-click="back()">arrow_back</md-icon> </md-button> <p translate>Back to Voucher</p> ...
# Cordova Content Security Policy / iOS 9 ATS Demo App ## Introduction This is a Cordova 5 app that demonstrates the steps needed to successfully make an Ajax request for data from a server, and how to configure the Content Security Policy meta tag to allow this. For iOS 9 / Xcode 7 users this also demonstrates the con...
"""The template component.""" from __future__ import annotations import asyncio from collections.abc import Callable import logging from homeassistant import config as conf_util from homeassistant.const import ( CONF_UNIQUE_ID, <API key>, SERVICE_RELOAD, ) from homeassistant.core import CoreState, Event, Ho...
#import <CoreFoundation/CFCharacterSet.h> #import <Foundation/NSObject.h> #import <Foundation/NSRange.h> #import <Foundation/NSString.h> @class NSData; enum { <API key> = 0xF400 }; @interface NSCharacterSet : NSObject <NSCopying, NSMutableCopying, NSCoding> + (id)controlCharacterSet; + (id)<API key>; + (id)<API key...
class <API key> < ActiveRecord::Migration def change change_table :personal_histories do |t| t.integer :address_id end end end
require 'test_helper' class CredoraxTest < Test::Unit::TestCase include CommStub def setup @gateway = CredoraxGateway.new(merchant_id: 'login', cipher_key: 'password') @credit_card = credit_card @amount = 100 @options = { billing_address: address, description: 'Store Purchase' } ...
<?php namespace frontend\modules\admin\models; use common\models\User; use yii\base\Model; use Yii; use yii\helpers\VarDumper; use yii\web\HttpException; class CreateUserForm extends Model { public $username; public $email; public $password; public $role; /** * @inheritdoc */ public fu...
import Promise from 'bluebird' import getMemberInfo from 'src/server/actions/getMemberInfo' import {Cycle, Phase, Project} from 'src/server/services/dataService' export default async function <API key>(cycleId) { const [cycle, phases] = await Promise.all([ await Cycle.get(cycleId), await Phase.filter({hasRetr...
<!DOCTYPE html PUBLIC "- <html xmlns="http: <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="GENERATOR" content="VSdocman - documentation generator; https: <link rel="icon" href="favicon.ico"> <title><API key>.FirstName Property</title> <link rel="stylesheet" ...
<?php declare(strict_types=1); namespace Eloquent\Phony\Mock\Method; use Eloquent\Phony\Mock\Builder\MockBuilderFactory; use Eloquent\Phony\Mock\Handle\HandleFactory; use Eloquent\Phony\Test\TestClassA; use PHPUnit\Framework\TestCase; use ReflectionMethod; class <API key> extends TestCase { protected function setUp...
<footer class="main-footer"> <a class="main-footer__link" href="https://github.com/moonbrv/<API key>"> <img src="./img/github.svg" alt="see code on github" class="main-footer__img"> </a> </footer>
var StickyNav = { config: { viewportHeight : Helpers.windowHeight(), navSelector : document.querySelector('[data-js="nav"]') }, init: function(options) { if( typeof options === "object" ) { this.config = options; } var $this = this; window.addEvent...
<?php return array( 'global_password' => 'mjaumjau', );
package com.microsoft.azure.spring.cloud.feature.manager.targeting; /** * The settings that are used to configure the TargetingFilter feature filter. */ public class <API key> { private Audience audience; /** * @return the audience */ public Audience getAudience() { return audience; ...
require 'rails_helper' RSpec.describe Api::<API key>, type: :controller do end
module.exports = require('util-ex/lib/is/type/undefined');
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>paco: 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>random: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" r...
from .sender import SignalSender, connect_with from .base import ValueModel, AttachAbility from .base import ValueInterface, ChangedInterface from .base import AbstractItem, Item, AbstractProperty from .multi_types import StringValueModel, StringProperty, StringItemInterface, StringItem from .multi_types import IntValu...
# copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # and/or sell 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 substant...
import sys import os import requests import json import twitter import config def <API key>(s): # My code here return { 'userid': str(s.user.id), 'id': str(s.id), 'sourceid': 'python-twitter', 'contenttype': 'text/plain', 'language': s.lang, 'content': s.text, ...
<TS language="mk_MK" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Десен клик за уредување на адреса или етикета</translation> </message> <message> <source>Create a new address</source> <...
<?php /** * @param $httpUrl * @param array $httpData * @return array|mixed|null */ function httpPostSend($httpUrl, $httpData = array()) { if (!$httpUrl) { return null; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $httpUrl); curl_setopt($ch, <API key>, 1); curl_setopt($ch, CURLO...
using System; using System.Collections.Generic; using System.Configuration; using System.Text; using System.Web; using PayPal.<API key>; using PayPal.<API key>.Model; using Payment.Business.Model; using Payment.Repository; using Payment.Repository.Entity; using Profile.Repository.Entity; namespace Payment.Business.PayP...
<HTML xmlns="http: <HEAD> {# Start off with the script imports... #} <script type="text/javascript" src="static/jquery-easyui/jquery.min.js"></script> <script type="text/javascript" src="static/jquery-easyui/jquery.easyui.min.js"></script> {# And our own scripts... #} <script type="text/javascript" ...
#!/usr/bin/env bash ## Evaluate some Erlang code against the running node set -e release_ctl eval "$@"
<?php namespace ModernPdf\Builder\StreamWriter; use \ModernPdf\Component\ObjectType; class State { protected $stream; public function __construct(&$stream) { $this->stream = $stream; } /** * Saves the current graphic state. */ public function saveGraphicState() { $t...
import { createCanvas } from "../sys/canvas"; import { createImage } from "../sys/image"; /** * Base class for all images. */ export abstract class BaseImage { /** The image width in pixels. */ protected width: number; /** The image height in pixels. */ protected height: number; /** * Creates...
# Process the attendance data by adding fields for day of week and school year and reoder the fields # so that they match the enrollment file: date, lasid, status (ABS), day, school year # also, clean the bad data. Many absence records are on days not in the calendar. Check the date # of the absence against the calenda...
from os import environ class BaseConfig: # flask options DEBUG = False ENV = '' JSON_AS_ASCII = False JSON_SORT_KEYS = True TESTING = False SECRET_KEY = '' # JWT options <API key> = True JWT_SECRET_KEY = '' <API key> = ['identity'] <API key> = False <API key> = False ...
package com.pholser.util.properties.it.boundtypes; import com.pholser.util.properties.BoundProperty; public interface <API key> { @BoundProperty("generic.array.type.class") <T> Class<T[]> <API key>(); }
local Timer, Label = Component.load({"Timer", "Label"}) function createInvunerable(parent) local entity = Entity(parent) entity:add(Timer(1)) entity:add(Label("Invunerable")) return entity end
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Mono.Cecil.Cil; using Mono.Cecil; namespace Teh.Decompiler.Builders.Matchers { public class CallMatcher : Matcher { public override void Build(CodeWriter writer, MatcherData data) { ...
'use strict'; import 'vs/css!./media/shell'; import * as nls from 'vs/nls'; import {TPromise} from 'vs/base/common/winjs.base'; import * as platform from 'vs/base/common/platform'; import {Dimension, Builder, $} from 'vs/base/browser/builder'; import dom = require('vs/base/browser/dom'); import aria = require('vs/base/...
package br.senac.tads4.playgroundweb; import java.io.Serializable; import java.math.BigDecimal; import java.util.List; /** * * @author Fernando */ public class Produto implements Serializable { private long id = 0; private String nome; private String descricao; private BigDecimal preco; private List<Catego...
layout: e17page title: RL Circuits date: 2017-06-24 description: Transient response of RL circuits section: EL # RL circuit, Transient response ___ - A voltage step is applied to a series RL circuit and the voltage across the inductor is recorded. ## Schematic ___ ![](images/schematics/RLcircuit.svg){: width="700px"} #...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>constructors: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min....
<!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"...
class CreateSegments < ActiveRecord::Migration def change create_table :segments do |t| t.string :name t.integer :first_clause t.integer :first_condition t.string :email t.integer :second_clause t.integer :second_condition t.integer :age t.integer :third_clause ...
require 'blackjack-service' ENV['RACK_ENV'] = 'test' # This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The generated `.rspec` file contains `--require spec_helper` which will cause # this file to always be loaded, ...
using UnityEngine; using System.Collections; public class Flipper : MonoBehaviour { public float pressPos = 45f; public float power = 10F; public KeyCode keyCode; private bool isFlipup; void Start() { isFlipup = false; hingeJoint.useSpring = true; JointSpring js = hingeJoint....
import <API key> from './<API key>'; import { locales } from 'mwp-config'; describe('<API key>', () => { it('has a localized name for every item in `mwp-config/locales`', () => { locales.forEach(locale => { expect(Object.keys(<API key>).includes(locale)).toBeTruthy(); }); }); });
<?php namespace AppBundle\Controller; use AppBundle\Entity\Affiliate; use AppBundle\Form\AffiliateType; use DateTime; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use AppBundle\Helper\Helper; use Symfony\Component\Rou...
package org.snf4j.core; import java.net.SocketAddress; import java.nio.ByteBuffer; import org.snf4j.core.future.IFuture; interface IEncodeTaskWriter { IFuture<Void> write(SocketAddress remoteAddress, ByteBuffer buffer, boolean withFuture); IFuture<Void> write(SocketAddress remoteAddress, byte[] bytes, boolean w...
const MAX = 2147483647; const FACTOR_A = 16807; const FACTOR_B = 48271; const B16 = 0b1111111111111111; function getGeneratorsStart(input) { const [, genA, genB] = input.match(/Generator A starts with (\d+)\nGenerator B starts with (\d+)/); return { genA, genB }; } exports.part1 = (input) => { let matches = 0; ...
<!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 cha...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mini-compiler: Not compatible </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>interval: 6 m 26 s </title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="...
using FakeXrmEasy; using Microsoft.Xrm.Sdk; using NUnit.Framework; using System; using System.Management.Automation.Runspaces; namespace Xrm.Framework.CI.PowerShell.Cmdlets.Test { public static class TestData { public static XrmFakedContext XrmFakedContext = new XrmFakedContext(); public static ...
<head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="{{ site.description }}"> <title>{% if page.title %}{{ page.title }} | {{ site.title }}{% else %}{{ site.title }} ...
// Class Implementation : // COXCaptionInfo & COXCaptionPainter // This software along with its related components, documentation and files ("The Libraries") #include "StdAfx.h" #include <shlwapi.h> #include "OXCaptionPainter.h" #include "UTBStrOp.h" #include "UTB64...
layout: post title: 'Using Wiremock to Mock API Responses: Part 3 - Response Templating using Handlebars Helpers' date: '2021-10-18' author: Fred Muya excerpt: Making use of Wiremock's Response Templating for dynamic responses using Handlebars helpers tags: - wiremock - api - mock - response-templating - tutorial - wir...
<footer class="site-footer"> <nav class="wrapper"> <ul class="nav-footer"> <li class="<API key>"> <a href="/about/" class="nav-footer__item"> About Frend </a> </li> <li class="<API key>"> <a href="https:/...