answer
stringlengths
15
1.25M
window.joypad2rouesID = 0; (function() { var joypad2rouesWidget = function (settings) { var self = this; var thisjoypad2rouesID = window.joypad2rouesID++; var titleElement = $('<h2 class="section-title"></h2>'); var joypad2rouesElement = $('<div id="joypad2roues-' + thisjoypad2rouesI...
using System; using System.Diagnostics; using System.Windows.Forms; using WaveEngine.Adapter; namespace ProgressBarSample { static class Program { [STAThread] static void Main() { using (App game = new App()) { game.Run(); } } ...
package br.augustoicaro.pathfindercombat.models; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.<API key>; import javax.xml.parsers.<API key>; import org.w3c.dom.Document; import org.w3c.dom.El...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Categories extends ActiveRecord\Model {} /* End of file Categories.php */ /* Location: ./application/models/Categories.php */
<!doctype html> <html lang="en" ng-app="phonecatApp"> <head> <meta charset="utf-8"> <title>Google Phone Gallery</title> <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"> <link rel="stylesheet" href="css/app.css"> <link rel="stylesheet" href="css/animations.css"> ...
using System; using System.Collections.Generic; using System.Dynamic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VerySimpleData { public class <API key> : DynamicObject { private readonly Dictionary<string, object> _data; public <API key>() :this(ne...
{% extends 'common/_base.html' %} {% block local_includes %} {% load sass_tags %} {% load static %} <link href="https://fonts.googleapis.com/css?family=Pangolin" rel="stylesheet"> <script src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.7.22/fabric.min.js"></script> <script src="htt...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Livet; using OxyPlot; using OxyPlot.Series; using OxyPlot.Axes; using System.Collections.ObjectModel; namespace WpfEventViewer.Models { public class GraphModel : NotificationObject { #region PlotData priv...
// --skip-worktree export var CONSUMER_KEY:string = 'KEY'; export var CONSUMER_SECRET:string = 'SECRET';
package com.flightstats.http; import com.flightstats.util.Part; import com.flightstats.util.UUIDGenerator; import com.github.rholder.retry.RetryException; import com.github.rholder.retry.Retryer; import com.google.common.base.Charsets; import com.google.common.base.Throwables; import com.google.common.collect.ListMulti...
<?php include 'header.php' ?> <script> SHOT.albums = <?= json_encode($this->albums) ?>; </script> <div class="row"> <div class="large-12 columns"> <ul class="thumbnail-grid"></ul> <p class="page-placeholder"> No albums have been created yet </p> </div> </div> <?php includ...
package net.krinsoft.autorepair.util; /** * * @author krinsdeath */ public class Parser { public static String getType(String input) { if (input.contains("WOOD") || input.contains("BOW")) { return "wood"; } if (input.contains("STONE")) { return "stone"; } if (input.contains("IRON") || inp...
// // FILE: usbmsc.h // TITLE: Generic types and defines use by the mass storage class // // $TI Release: F2837xS Support Library v210 $ // modification, are permitted provided that the following conditions // are met: // documentation and/or other materials provided with the // distribution. // Neither the name ...
# VectorJs [![Join the chat at https: [![Travis testing](https: A 2D Vector class for JavaScript. That's it! ## Installation `$ npm install vectorjs` Building `$ npm run build` `$ npm run test` ## Usage javascript var Vector = require('vectorjs'); var a = new Vector(2, 2); var b = new Vector(5, 3); var ab = a.add(b); c...
from collections import defaultdict, namedtuple import regex as re from gary import ignore_parens_list Record = namedtuple('Record', ['dob', 'eng', 'pos', 'phn']) @ignore_parens_list def split_words(text:str) -> list: return re.split('\s*;\s*', text) class ShParser: def __init__(self, text): self.entrie...
<?php namespace Benoth\StaticReflection\Tests\ReflectionFunctions; use Benoth\StaticReflection\Tests\AbstractTestCase; class <API key> extends AbstractTestCase { protected $function; public function setUp() { parent::setUp(); $this->context->parseFile($this->fixturesPath.'/WithNamespace/Func...
import styled from 'styled-components'; import Color from 'color'; import { colorOnBackground } from '../../../util/css-helpers'; import Navigation from '../Navigation'; const StyledNavigation = styled(Navigation)` display: block; height: 50px; width: 100%; margin: 0 0 1em 0; padding: 0; nav { position:...
import numpy as np import pandas as pd from emulator.env_factor import get_factors turnovers = pd.read_excel('emulator/SH50.xls', sheetname='total_turnover') opens = pd.read_excel('emulator/SH50.xls', sheetname='open') closes = pd.read_excel('emulator/SH50.xls', sheetname='close') highs = pd.read_excel('emulator/SH50.x...
import React, { FunctionComponent } from 'react'; import BackHeader from 'ringcentral-widgets/components/BackHeaderV2'; import classNames from 'classnames'; import { <API key>, <API key>, } from '../../interfaces'; import { HandUpButton, HoldCallButton, } from '../SmallCallControl'; import i18n from './i18n'; i...
package kcl.teamIndexZero.traffic.simulator.data; import kcl.teamIndexZero.traffic.log.Logger; import kcl.teamIndexZero.traffic.log.Logger_Interface; import kcl.teamIndexZero.traffic.simulator.data.features.DirectedLanes; import kcl.teamIndexZero.traffic.simulator.data.features.Junction; import kcl.teamIndexZero.traffi...
require 'test_helper' class MailMatchesJobTest < ActiveJob::TestCase # test "the truth" do # assert true # end end
<template name="login"> <div class="panel panel-primary"> <div class="panel-heading text-center"> <h3 class="panel-title">Sign in</h3> </div> <div class="panel-body"> <div id="error-message" class="panel-message text-danger"></div> <form role="form"> <div class="form-grou...
#pragma once #include <memory> #include <unordered_map> #include "time.hh" #include "thread.hh" #include "shared-mutex.hh" #include "future.hh" namespace mimosa { template <typename Key, typename Value, typename Hash = std::hash<Key>, typename KeyEqual = std::equal_to<Key> > clas...
<?php declare(strict_types=1); namespace ProxyManagerTest\Factory; use Laminas\Code\Generator\ClassGenerator; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; use ProxyManager\Autoloader\AutoloaderInterface; use ProxyManager\Configuration; use ProxyManager\Factory\AbstractBaseFactory; use Pr...
# <API key> Interface | Toolkit Layer | Namespace | | | Core | Microsoft.MixedReality.Toolkit.Core.Interfaces.<API key> | The <API key> is the interface that defines the requirements of the spatial awareness system. The interface is divided, logically into multiple sections. As new functionality is added, the appropria...
require 'spec_helper' describe Quill::Error do it "is a kind of Standard Error" do Quill::Error.new.should be_kind_of StandardError end end
<?php defined('BASEPATH') OR exit('No direct script access allowed'); function translate_status($status) { switch ($status) { case 0: return "unsorted"; break; case 1: return "rejected"; break; case 2: return "accepted"; ...
<p> A perfect blend of pointy paws in a coat of fur, Baloo is an affable display typeface by Ek Type. Available in nine Indian scripts along with a Latin counterpart, the family is Unicode compliant and libre licensed. </p> <p> Baloo is a distinctive heavy spurless design with a subtle tinge of playfulness and all the ...
import {HttpClient} from '<API key>'; import _ from 'lodash'; import {HdoApi} from '../util/hdo-api'; import {flattenQuery} from '../util/url'; export interface PromisesQuery { page?: number; } export interface PromisesResponse { navigators: Object[]; results: Object[]; next_url?: string; previous_url?: strin...
#include "less/lessstylesheet/MediaQueryRuleset.h" #include "less/lessstylesheet/LessStylesheet.h" #include "less/stylesheet/MediaQuery.h" MediaQueryRuleset::MediaQueryRuleset(TokenList &selector, const LessRuleset &parent) : LessRuleset(*(new LessSelector()), parent) { this->se...
// <API key>.cs - NUnit Test Cases for <API key> // Sebastien Pouliot (sebastien@ximian.com) // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // permit perso...
FROM amclain/rbenv MAINTAINER Alex McLain <alex@alexmclain.com> RUN apt-get -qq update RUN apt-get -y install build-essential libssl-dev RUN rbenv install 2.1.2 -v RUN rbenv global 2.1.2 RUN echo "gem: --no-rdoc" > ~/.gemrc RUN gem update --force RUN gem install pry rb-readline CMD /bin/bash
//remember that here you define a stockWidget in camel-case but in html you'll use "stock-widget" angular.module('stockMarketApp') .directive('stockWidget', [function () { return { templateUrl: 'es52_stock.html', restrict: 'A', scope: { stockData: '=' ...
using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.IO; using System.Runtime.Serialization; using System.Text; using System.Text.RegularExpressions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using Newtonsoft.Json....
package Janelas.Gasto.Cama; import Hibernate.Lotecama; /** * * @author Douglas */ public class Cadastro_Lote_Cama extends javax.swing.JDialog { private boolean existe=false; public boolean isExiste() { return existe; } public void setExiste(boolean existe) { this.existe = existe; ...
Setup development environment ## Install NodeJS 8.x * curl -sL https://deb.nodesource.com/setup_8.x | sudo bash - * sudo apt-get install -y nodejs ## Clone the Polyglot-v2 repository * git clone git@github.com:Einstein42/udi-polyglotv2.git * cd udi-polyglotv2 ## Install NodeJS Packages * npm install * sudo npm install ...
<label [attr.for]="inputId" class="<API key>"><input #input class="<API key> cdk-visually-hidden" [type]="_type" [id]="inputId" [checked]="checked" [disabled]="disabled" [name]="name" (change)="_onInputChange($event)" (click)="_onInputClick($event)"><div class="<API key>"><ng-content></ng-content></div></label><div cla...
using System; namespace Neo.Compiler { public class EntryPointException : Exception { <summary> Number of entry point founds </summary> public int Count { get; } <summary> Constructor </summary> <param name="count">Number of entry point founds</par...
'use strict'; const { config: dotenvConfig } = require('dotenv'); dotenvConfig(); const argv = require('minimist')(process.argv.slice(2)); function getVal(...vals) { // returns first defined val or undefined for (let val of vals) { if (val === undefined) { continue; } return val; } return unde...
using System; using SimplePersistence.Model; namespace SimplePersistence.Example.Console.Models.Logging { public class Log : Entity<long> { public virtual Level Level { get; set; } public virtual Application Application { get; set; } public string Logger { get; set; } public stri...
// @flow /* eslint-disable import/<API key> */ export const NAME = '<%= moduleName %>';
const express = require('express'); const cookieParser = require('cookie-parser'); const bodyParser = require('body-parser'); const compression = require('compression'); const nunjucks = require('nunjucks'); const constants = require('../app/lib/constants'); const errorCounter = require('../app/lib/promCounters').error...
#ifndef <API key> #define <API key> #include "linear/ssl_context.h" #include "server_impl.h" namespace linear { class SSLServerImpl : public ServerImpl { public: SSLServerImpl(const linear::weak_ptr<linear::Handler>& handler, const linear::SSLContext& context, const linear::EventLoop&...
package togglr import ( "testing" ) func TestInitWithJson(t *testing.T) { Init("data/feature.json") m := FeaturesJSON{} Read(&m) if !m.FeatureJson.IsEnabled() { t.Fatal("FeatureJson was not set") } if !m.FeatureWithTag.IsEnabled() { t.Fatal("FeatureWithTag was not set") }...
namespace Sleemon.Core { using System.Collections.Generic; using Sleemon.Data; public interface IRoleService { IList<UserRole> <API key>(string userUniqueId); IList<Role> GetAllRoleList(); IList<Role> GetRoleList(string roleName, int pageIndex, int pageSize, out int totalCount); ...
import numpy as np import pandas as pd from sklearn.ensemble import <API key> import xgboost as xgb from keras.models import Sequential from keras.layers.core import Dense, Activation, Dropout from keras.layers.<API key> import PReLU from keras.models import Sequential from keras.utils import np_utils from hep_ml.losse...
var ISOBoxer = {}; ISOBoxer.parseBuffer = function(arrayBuffer) { return new ISOFile(arrayBuffer).parse(); }; ISOBoxer.Utils = {}; ISOBoxer.Utils.dataViewToString = function(dataView, encoding) { var impliedEncoding = encoding || 'utf-8' if (typeof TextDecoder !== 'undefined') { return new TextDecoder(implied...
#pragma once #include "game/GameLib.h" #include "map/Map.h" #include <memory> namespace game { class Controller { public: explicit Controller(std::unique_ptr<GameLib>& gameLib, const std::string& pathToRallyDir, size_t parts); void run(); private: std::unique_ptr<GameLib> gameLib_; s...
`pptx` recipe generates office powerpoint presentations based on the uploaded pptx template with [handlebars](/learn/handlebars) tags filled inside using Powerpoint application. 1. Open Powerpoint and create pptx file using handlebars templating engine. 2. Upload created pptx file as an asset to the jsreport studio 3....
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title> Cultural Blog 3</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.css"> <link rel="stylesheet" href="https://cdnjs.cloudfl...
#ifndef __CAMERA_H__ #define __CAMERA_H__ #include "cocos2d.h" USING_NS_CC; class Camera3d { Vec3 _eye; // Eye position Vec3 _lookat; // Lookat position Vec3 _up; // Up vector Mat4 _viewMatrix; float _fov; // FOVy int _screenWidth; // Screen width i...
package com.taro.backspring; import java.util.Date; import java.text.SimpleDateFormat; import java.text.ParseException; public class <API key> { public static Date convert(String line) throws ParseException { if (line.contains("Strategy finished")) { String [] tokens = line.split("\\|"); ...
using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using DataTables.AspNet.AspNetCore; using Microsoft.AspNetCore.Hosting; namespace DataTables.AspNet.Samples.AspNetCore.BasicIntegration { public class Startup { public void ConfigureServices(IServiceCollection services) ...
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>SHA256</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.min.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/mocha/2.1.0/mocha.min.js"></script> <script src="https://cdnjs.cloudflare.com...
// This is a Controller mixin to add methods for generating Swagger data. // __Dependencies__ var mongoose = require('mongoose'); var utils = require('./utils'); var params = require('./parameters'); // __Private Members__ // __Module Definition__ module.exports = function () { var controller = this; // __Private I...
helpers do def clothes possible_reports = { "clear-day" => "It's going to be a nice day, wear something light & casual. Today is a good day for those new shoes ", "clear-night" => "Wear your party clothes, because it's a nice night to hit the town in that cute outfit ", "rain" => "GETCHA...
package r2router import ( "github.com/stretchr/testify/assert" //"fmt" "io/ioutil" "net/http" "net/http/httptest" "testing" ) func TestRouter(t *testing.T) { router := NewRouter() router.Get("/user/keys/", func(w http.ResponseWriter, r *http.Request, p Params) { w.Write([]byte("G...
package sparkConfig import org.apache.spark.SparkConf trait BaseSparkConf { def sparkConf(map: scala.collection.immutable.HashMap[String, String]): SparkConf }
<?php namespace Application\Migrations; use Doctrine\DBAL\Migrations\AbstractMigration, Doctrine\DBAL\Schema\Schema; /** * Auto-generated Migration: Please modify to your need! */ class <API key> extends AbstractMigration { public function up(Schema $schema) { // this up() migration is autogenerat...
var express = require("express"); var router = new express.Router(); var List = require("../../lib/task"); // Tasks sub-route var tasks = require("./tasks"); router.use("/:list_id/tasks", tasks); router.param("list_id", function (req, res, next, listId) { List.findById(listId, function(err, list) { if (err)...
using System; using System.Data; using System.IO; using LinqToDB; using LinqToDB.Data; using LinqToDB.DataProvider.Access; using NUnit.Framework; namespace Tests.Create { using Model; [TestFixture] public class CreateData : TestBase { static void RunScript(string configString, string divider, st...
import java.util.*; import java.util.regex.*; public class RegisterGraph { public class RegisterColoring { public HashMap<String, List<String>> registers; public List<String> spills; } private List<String> ints = Arrays.asList("$t0", "$t1", "$t2", "$t3", "$t4", "$t5", "$t6", "$t7", "$t8", "$...
"use strict"; CompItem.prototype.forLayers = function (cb) { var layers = this.layers; var numLayers = layers.length; for (var i = 1; i <= numLayers; i++) { cb(layers[i]); } }; CompItem.prototype.forSelectedLayers = function (cb) { var selectedLayers = this.selectedLayers; var numSelectedLayers = select...
var stream = require('vinyl-source-stream'), buffer = require('vinyl-buffer'); var builder = require('browserify'); var gulp = require('gulp'), jshint = require('gulp-jshint'), phantom = require('<API key>'), uglify = require('gulp-uglify'), size = require('gulp-size'); var source = './li...
package net.akhyar.android.imgpro.actions; import net.akhyar.android.imgpro.Action; public class Brightness extends Action { private int offset; public Brightness(int offset) { this.offset = offset; } @Override protected void adjustPixels(int[] pixels) { int r, g, b; int[] ca...
(function (global) { 'use strict'; var expect = global.expect || require('expect.js'), date = global.date || require('../../date-and-time'), forEach = function (array, fn) { for (var i = 0, len = array.length; i < len; i++) { if (fn(array[i], i) === 0) { ...
import _plotly_utils.basevalidators class FamilyValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="family", parent_name="funnelarea.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=...
// <API key>.cs // MiNG <developer@ming.gz.cn> // 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...
const mongoose = require('mongoose'); let taskSchema = mongoose.Schema({ title: {type: String, required:true}, status: {type: String, required: true} }); let Task = mongoose.model('Task', taskSchema); module.exports = Task;
using System.Collections.Immutable; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Diagnostics; namespace CodeTiger.CodeAnalysis.Analyzers.Readability { <summary> Analyzes comparisons for readability issues. </summa...
#include <debug.h> #include <printf.h> #include <arch/arm/dcc.h> #include <dev/fbcon.h> #include <dev/uart.h> #include <platform/timer.h> static void write_dcc(char c) { uint32_t timeout = 10; /* Note: Smallest sampling rate for DCC is 50us. * This can be changed by SNOOPer.Rate on T32 window. */ ...
<div> <form> <button type="submit" id="filter" class="btn btn-primary btn-sm" formaction="/History/dateSort">Sort by date</button> <button type="submit" id="filter" class="btn btn-primary btn-sm" formaction="/History/modelSort">Sort by robot model</button> </form> </div> <div class="container"> <h2>History</h...
using UnityEngine; public class Bullet : MonoBehaviour { private Transform target; public float speed = 70f; public int damage = 50; public float explosionRadius; public GameObject impactEffect; public void Seek(Transform _target) { target = _target; } // Update is called onc...
<?php namespace Binaerpiloten\MagicBundle\Entity; use FOS\UserBundle\Model\User as BaseUser; use Doctrine\ORM\Mapping as ORM; /** * User * * @ORM\Table() * @ORM\Entity */ class User extends BaseUser { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\Genera...
<!doctype html> <html class="no-js" lang=""> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="apple-...
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (version 1.7.0_02) on Wed Oct 17 22:44:35 PDT 2012 --> <title>Uses of Class com.stevenmz.project1.domainTypes.Menu</title> <meta name="date" content="2012-10-17"> <link rel="stylesheet" type="text/css" href="../../../../../style...
// 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...
<template name="keywordPage"> <h1>keyword Page</h1> <!-- keyword Card <div class="panel-primary col-sm-6"> <div class="panel-heading" for="inputkeyword"> keyword</div> <div class="list-group"> <ul class="list-group-item"> {{> addkeywordItem}} <p></p> <p> ...
package xss.LinkContainer; import java.util.LinkedHashSet; public class XssContainer extends LinkedHashSet<XssStruct> { <API key> callback; @Override public boolean add(XssStruct xssStruct) { boolean wasAdded = super.add(xssStruct); if (wasAdded) if (callback != null) ...
const {shiphold} = require('../../dist/bundle'); export default ({test}) => { test('should create a service when a definition argument is passed', t => { const registry = shiphold({}); const service = registry.service({table: 'users'}); t.eq(typeof service.select, 'function', 'select method ...
<?php require __DIR__ . '/bootstrap.php'; $action = isset($_GET['action']) ? $_GET['action'] : ''; // update our session/client if needed. // NOTE: This example uses the session, but you could also be using a database or some other persistance layer. if (isset($_SESSION['access_token']) && $fc->getAccessToken() != $_SE...
/* jshint node: true */ const should = require('should'); const fs = require('fs'); const path = require('path'); const Vinyl = require('vinyl'); const getStylesheetList = require('../index'); function getFile(filePath) { return new Vinyl({ path: path.resolve(filePath), cwd: './test/', base:...
require File.expand_path('../boot', __FILE__) require 'rails/all' # Require the gems listed in Gemfile, including any gems # you've limited to :test, :development, or :production. Bundler.require(*Rails.groups) module GenderPredictor class Application < Rails::Application
function Tour(settings) { var tour = settings.tour; var exit_callback = settings.exit_callback; var position = settings.position var options = ('<div class="tour">\ <a class="glyphicon glyphicon-remove pull-right text-muted btn-exit-tour"></a>\ <div class=...
# ifndef <API key> # define <API key> # include <chaos/preprocessor/cat.h> # include <chaos/preprocessor/config.h> # include <chaos/preprocessor/punctuation/paren.h> # /* CHAOS_PP_SPECIAL */ # define CHAOS_PP_SPECIAL(digit) <API key>(CHAOS_IP_SPECIAL_, digit) # if CHAOS_PP_VARIADICS # define CHAOS_IP_SPECIAL_00(...)...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" type="text/css" href="css/base.css"> </head> <body style="overflow:auto;"> <div class="content_main baseinfo"> <div class="content_title"> <span class="main_title"></span...
.timeline { position: relative; padding: 20px 0 20px; list-style: none; } .timeline::before { content: " "; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background-color: #eee; } .timeline > li { position: relative; margin-bottom: 20px; } .timeline > li::b...
<?php namespace Nova\Controllers; use Nova\Object; use Nova\Models\DirectoryType; class <API key> extends ControllerBase { public function indexAction() { $data = new Object(); $data->directory_types = DirectoryType::find()->toArray(); return $this->jsonResponse($data); } public ...
![GitHub Actions](https://github.com/pegjs/pegjs/workflows/Github%20Actions/badge.svg) [![Codecov](https: [![CodeFactor](https: [![license](https: PEG.js is a simple parser generator for JavaScript that produces fast parsers with excellent error reporting. You can use it to process complex data or computer languages an...
# -*- coding: utf-8 -*- import re import sympy from colorama import Fore from plugin import alias, plugin @alias('calc', 'evaluate') @plugin('calculate') def calculate(jarvis, s): """ Jarvis will get your calculations done! -- Example: calculate 3 + 5 """ tempt = s.replace(" ", "") if le...
<?php namespace lukaszmakuch\ValueMatcher\String; use lukaszmakuch\ValueMatcher\Exception\<API key>; use <API key>; abstract class <API key> extends <API key> { /** * @var StrictStringMatcher */ protected $m; public function <API key>() { $this-><API key>(<API key>::class); $th...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Admin extends <API key> { protected $_user_name,$_password = null; public function __construct(){ parent::__construct(); if(!isset($_SESSION['auth_admin_login'])){ header("Location: /Admin_Login/login"); ...
/*Problem 9. Print a Sequence Write a program that prints the first 10 members of the sequence: 2, -3, 4, -5, 6, -7, ... */ using System; class PrintSequence { static void Main() { for (int i = 0; i < 10; i++) { if (i % 2 == 0) { Console.Write("{0}, ", i ...
package net.popsim.src.util.io; import java.io.OutputStream; import java.io.PrintStream; import java.util.Arrays; public class HeadedPrintStream extends PrintStream { /** * The header of the day. Formatted as * <br><tt>[ DD:MM:YYYY ]</tt> */ private static final String HEADER_DAY = "[ %1$td-%1$tm...
<?php declare(strict_types=1); namespace <API key>\Fixture\C; class FixtureC873 { public function __construct(FixtureC872 $dependency) { } }
<ul class="heroes"> <li *ngFor=" <span class="badge">{{hero.id}}</span> {{hero.name}} </li> </ul>
<!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>blowbox: Member List</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <scr...
<?php declare(strict_types=1); namespace Ramsey\Uuid\Test\Nonstandard; use DateTimeImmutable; use Mockery; use Ramsey\Uuid\Codec\CodecInterface; use Ramsey\Uuid\Converter\<API key>; use Ramsey\Uuid\Converter\<API key>; use Ramsey\Uuid\Exception\DateTimeException; use Ramsey\Uuid\Exception\<API key>; use Ramsey\Uuid\Laz...
#include <stdio.h> #include <string.h> #include <arpa/inet.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <sys/file.h> #include <errno.h> #include <signal.h> #define ECHOMAX (255) #define TIMEOUT (2) int SendEchoMessage(struct sockaddr_in *pServAddr); int ReceiveEchoMessage(struct sockaddr_in *p...
var myArray = ['Bob', 'Fred']; var myStr = myArray[0]; myArray['key1'] = 'Alice'; myArray[1] = 1; // Type '1' is not assignable to type 'string'.