answer
stringlengths
15
1.25M
var chalk = require('chalk'); var argv = require('minimist')(process.argv.slice(2)); console.log(argv); //var messages = require(/*'file.json'*/); //var messages = [ // { type: 'error', message: 'fail fail fail!'}, // { type: 'info', message: 'here is a message'} //messages.forEach(function(msg){
# NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin from __future__ import (absolute_import, division, print_function) import tempfile import unittest import os import json import mantid from mantid.py3compat import mock from sans.gui_logic.presenter.<API key> import <A...
const defaultState = { token: '', loggingIn: false, err: false, info: {} }; function user(state = defaultState, action) { switch(action.type) { case 'FETCH_USER': { return { state, loggingIn: true, err: false, }; } case 'RECEIVE_USER': { const { info, toke...
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <label> <span class="screen-reader-text"><?php _e('Search for:', 'modelo'); ?></span> <input type="search" class="search-field" placeholder="Search" value="<?php echo get_search_query(); ?>" name="s"...
#Generated by bots open source edi translator from UN-docs. from bots.botsconfig import * from edifact import syntax from recordsD96AUN import recorddefs structure = [ {ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGM', MIN: 1, MAX: 1}, {ID: 'DTM', MIN: 1, MAX: 35}, {ID: 'PAI', MIN: 0, MAX: 1}, {ID: 'ALI',...
using CP77.CR2W.Reflection; using FastMember; using static CP77.CR2W.Types.Enums; namespace CP77.CR2W.Types { [REDMeta] public class <API key> : CVariable { [Ordinal(0)] [RED("face")] public <API key> Face { get; set; } [Ordinal(1)] [RED("tongue")] public <API key> Tongue { get; set; } ...
#ifndef NSLEEP_H_INCLUDED #define NSLEEP_H_INCLUDED void pm_sleep(unsigned int const milliseconds); #endif
# coding: utf-8 from pprint import pformat from six import iteritems import re class <API key>(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ def __init__(self, x=None, y=None, z=None): """ <API key> - a mode...
#!/usr/bin/env python '''A relatively simple distributed network implementation, using async SGD.''' from fastnet import net, layer, data, parser, weights from fastnet.util import EZTimer from mpi4py import MPI import ctypes import cudaconv2 import numpy as np import os WORLD = MPI.COMM_WORLD cudaconv2.init(WORLD.Get_r...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Array Cardio</title> </head> <body> <p><em>Have a look at the JavaScript Console</em></p> <script src="app.js" type="text/javascript"></script> </body> </html>
<!DOCTYPE HTML PUBLIC "- <!--NewPage <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_45) on Sun Jun 09 12:16:28 GMT+05:30 2013 --> <META http-equiv="Content-Type" content="text/html; charset=utf-8"> <TITLE> org.apache.solr.analysis (Solr 4.3.1 API) </TITLE> <META NAME="date" CONTENT="2013-06-09"> <LINK REL ="style...
package wowhead_itemreader; public interface Sheme { String getQuery(WoWHeadData data); }
<?php // Moodle is free software: you can redistribute it and/or modify // (at your option) any later version. // Moodle is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the defined('MOODLE_INTERNAL') or die; require_once("$CFG->dirroot/mod/dataform/entries...
title: "आईपीएल: मुफ्त पासों से कानपूर के मैचों में घाटा" layout: item category: ["sports"] date: 2016-05-26T15:43:50.995Z image: <API key>.jpg <p>कानपुर। ग्रीन पार्क में यहां पहली बार हुए दो आईपीएल मैचों में कुल छह करोड़ 80 लाख रुपये के टिकट बिके थे। जबकि गुजरात लायंस ने टिकट बिक्री का लक्ष्य आठ करोड़ साठ लाख रुपये रखा...
package com.l2jglobal.gameserver.model.events.impl.character.npc; import com.l2jglobal.gameserver.model.actor.L2Npc; import com.l2jglobal.gameserver.model.events.EventType; import com.l2jglobal.gameserver.model.events.impl.IBaseEvent; /** * @author UnAfraid */ public class <API key> implements IBaseEvent { privat...
package mechanics class Item(val id: Int) { /** * If the item lies loose on the map, it has its own location, stored in this variable * wrapped in an Option. An item can also be located elsewhere, for example in * a player's inventory, in which case it lacks actual location and the variable * has the valu...
package de.bund.bfr.knime.gis.views.graphvisualizer; import java.awt.BorderLayout; import java.awt.Dimension; import org.knime.core.node.BufferedDataTable; import org.knime.core.node.<API key>; import org.knime.core.node.NodeSettingsRO; import org.knime.core.node.NodeSettingsWO; import org.knime.core.node.<API key>; im...
#include "stdafx.h" #include <string> #include <vector> #include <map> using namespace std; typedef map<const wstring, const wstring> CMapLang; int wmain(int argc, WCHAR* argv[]) { vector<WCHAR> wcAbb(4); vector<WCHAR> wcName(20); CMapLang mapLang; for (INT i = 1; i < 1000; i++) { GetLo...
package de.xonical.mvplayer; import java.io.File; import java.io.FilenameFilter; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.List...
package cuina.world; import java.io.Serializable; public interface CuinaMotor extends Serializable { public static final String EXTENSION_KEY = "motor"; public void update(); }
/** * A red button with an 'X' that, when clicked, will remove an atom (with a bond type) or a lone pair from the main molecule * * @author Jonathan Olson <jonathan.olson@colorado.edu> */ import { Shape } from '../../../kite/js/imports.js'; import merge from '../../../phet-core/js/merge.js'; import { Path } from '....
## Picocaine server api introduce - There are some rules you need understand before developing. 1. All of the results is a JSON str, and there must be have param named 'error', if the param's value is 0 (type integer), it mean success, others are unsuccess. If it success, you can find the data you want from the 'da...
package de.metas.procurement.webui.model; import javax.persistence.Entity; import javax.persistence.Table; import javax.persistence.UniqueConstraint; import com.google.gwt.thirdparty.guava.common.base.Objects.ToStringHelper; @Entity @Table(name = "product_trl" , uniqueConstraints = @UniqueConstraint(name = "product_trl...
__author__ = 'joseph' import statistics import numpy as np class AccelData(object): def __init__(self,Accel): #Static accelerometer data self.Accel = Accel def applyCalib(self,params,Accel): ax = params['ax'] ay = params['ay'] az = params['az'] scaling_Matrix = np...
<!DOCTYPE HTML PUBLIC "- <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Sets the mode of iteration</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="splstack.construct.html">Spl...
package me.markeh.factionsframework.layer.layer_1_6; import java.util.HashMap; import java.util.Set; import java.util.TreeSet; import org.bukkit.Chunk; import org.bukkit.World; import com.massivecraft.factions.Board; import com.massivecraft.factions.FLocation; import com.massivecraft.factions.struct.Relation; import me...
#ifndef <API key> #define <API key> #include <boost/thread.hpp> #include <ossie/Resource_impl.h> #include <bulkio/bulkio.h> #include <boost/date_time/posix_time/posix_time.hpp> #include "<API key>.h" #include <sstream> #define NOOP 0 #define FINISH -1 #define NORMAL 1 class divide_ff_2i_base; template < typename Target...
'use strict'; var redis = require('redis'); module.exports = function (config) { var client = redis.createClient( config.redis.port, config.redis.host ); if (config.redis.password) { client.auth(config.redis.password, function (err) { if (err) { console.lo...
package com.picosms.hermash.ifaces; public interface IGate { public String getBalance() throws Exception; public String sendMessage(String number, String text) throws Exception; public String sendMessageBatch(String number[], String[] text) throws Exception; }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Member List</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.2.14 --> <center> <a class="qindex" href="ind...
#include <fstream> #include <ctime> #include <cstring> #include "Log.h" std::ofstream gLogStream; std::ostream& _LogError(const char * pFile, int pLine) { return std::cerr << clock() * 1000 / CLOCKS_PER_SEC << " - (" << ((strrchr(pFile, '/') ? strrchr(pFile, '/') : (strrchr(pFile, '\\') ? strrchr(pFile, '\\') : pFi...
package com.redhat.lightblue.query; import com.redhat.lightblue.util.JsonUtils; import com.redhat.lightblue.util.Path; import org.junit.Assert; import org.junit.Test; public class <API key> { final String p_field_inclusion = "{\"field\":\"field.x\", \"include\": true}"; final String <API key> = "{\"field\":\"fi...
var NAVTREEINDEX0 = { "annotated.html":[1,0], "<API key>.html":[1,0,0,0,0], "<API key>.html#<API key>":[1,0,0,0,0,0], "<API key>.html#<API key>":[1,0,0,0,0,1], "<API key>.html":[1,0,0,0,1], "<API key>.html#<API key>":[1,0,0,0,1,1], "<API key>.html#<API key>":[1,0,0,0,1,0], "<API key>.html":[1,0,0,0,2], "<API key>.html#...
package org.vrodic.hshopper; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.FileChannel; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.os.Environment; import android.util.Log; public c...
import os import rospkg import lxml.etree as ET from openag_brain import params from openag.models import SoftwareModule, SoftwareModuleType from openag.db_names import SOFTWARE_MODULE, <API key> # maping from python types to roslaunch acceptable ones PARAM_TYPE_MAPPING = {'float' : 'double'} def create_node(parent, pk...
/* Foma: a finite-state toolkit and library. */ /* This file is part of foma. */ /* Foma is free software: you can redistribute it and/or modify */ /* published by the Free Software Foundation. */ /* Foma is distributed ...
<?php /** * Classes for error logging. * * @subpackage ErrorLog * @author Selihov Sergei Stanislavovich <red331@mail.ru> */ /** * Documents the plcAbstractErrorLog class. * * Following class is abstract class for plcAbstractErrorLog. * * @subpackage plcAbstractErrorLog * @author Selihov Sergei Stanislavovich...
package sky.pvprank; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; public class RankCommand implements CommandExecutor { private DatabaseHandler databaseHandler; private Ranks r...
require 'data_mapper' require 'daitss/archive' require 'daitss/model/package' module Daitss class Batch include DataMapper::Resource property :id, String, :key => true has n, :batch_assignments has n, :packages, :through => :batch_assignments # helper methods - calculating the size and number of f...
'use strict'; var requireBookmarks = require('sdk/places/bookmarks'); var requireChrome = require('chrome'); var requireHeritage = require('sdk/core/heritage'); var requirePagemod = require('sdk/page-mod'); var requirePanel = require('sdk/panel'); var requirePreferences = require('sdk/preferences/service'); var require...
#!/usr/bin/env python # coding: utf-8 import argparse import sys import yaml from pyarlo import PyArlo def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('--username', '-u') parser.add_argument('--password', '-p') parser.add_argument('--config', '-c', type=a...
// <auto-generated> // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> namespace CustomControls.Properties { using System; <summary> A strongly-typed resource class, for looking up locali...
/* classes: h_files */ #ifndef SCM_LOAD_H #define SCM_LOAD_H #include "libguile/__scm.h" SCM_API SCM scm_parse_path (SCM path, SCM tail); SCM_API SCM <API key> (SCM path, SCM base); SCM_API SCM scm_primitive_load (SCM filename); SCM_API SCM <API key> (const char *filename); SCM_API SCM <API key> (void); SCM_API SCM scm...
# Contributing When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change. Please note we have a code of conduct, please follow it in all your interactions with the project. ## Pull Request Proces...
<API key>::Application.routes.draw do root "home#index" resources :rooms # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". # You can have the root of your site routed with "root" # root 'welcome#index' # Example of regu...
package org.jpedal.function; /** * Class to handle Type 3 shading (Stitching) in PDF */ public class PDFStitching extends PDFGenericFunction implements PDFFunction { /** * composed of other Functions */ private PDFFunction[] functions; private float[] bounds; private int n; public PDFSti...
package net.foxopen.fox.thread.persistence; import com.google.common.collect.HashBasedTable; import com.google.common.collect.Table; import net.foxopen.fox.database.UCon; import net.foxopen.fox.ex.ExInternal; import net.foxopen.fox.thread.RequestContext; import net.foxopen.fox.thread.persistence.SharedDOMManager.Shared...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>@title</title> <link href="//cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <link href="/static/trumbowyg/trumbowyg.min.css" rel="stylesheet"> <link href="/static/trumbowyg/colors.min.css" rel="stylesheet...
#!/usr/bin/env python # This file is part of GNU Radio # GNU Radio is free software; you can redistribute it and/or modify # the Free Software Foundation; either version 3, or (at your option) # any later version. # GNU Radio is distributed in the hope that it will be useful, # MERCHANTABILITY or FITNESS FOR A PARTICUL...
<?php namespace _2BitRealms\command; use _2BitRealms\_2BitFacs; use pocketmine\command\CommandSender; abstract class SubCommand{ /** @var _2BitFacs */ private $plugin; /** * @param _2BitFacs $plugin */ public function __construct(_2BitFacs $plugin){ $this->plugin = $plugin; } /...
#if !defined(_SPANDSP_DTMF_H_) #define _SPANDSP_DTMF_H_ /*! \page dtmf_rx_page DTMF receiver \section dtmf_rx_page_sec_1 What does it do? The DTMF receiver detects the standard DTMF digits. It is compliant with ITU-T Q.23, ITU-T Q.24, and the local DTMF specifications of most administrations. Its passes the test suites...
presenter('form-layout',function () { var This=this; This.assign('selectConf',This.model(':selectConf')); this.assign('getForm',function (formAPI) { return function () { console.log(formAPI,formAPI.getData()); } }); this.assign('formConf',this.model('@form:formConf')); ...
You are given coins of different denominations and a total amount of money. Write a function to compute the number of combinations that make up that amount. You may assume that you have infinite number of each kind of coin. Note: You can assume that 1. 0 <= amount <= 5000 1. 1 <= coin <= 5000 1. the number of coins is ...
package com.shatteredpixel.<API key>.actors.buffs; import com.shatteredpixel.<API key>.Dungeon; import com.shatteredpixel.<API key>.messages.Messages; import com.shatteredpixel.<API key>.scenes.GameScene; import com.shatteredpixel.<API key>.ui.BuffIndicator; import com.watabou.noosa.Image; public class MindVision exten...
#include <vgStableHeaders.h> #include <vgMod/<API key>.h> #include <vgMod/vgFileDefinitionVG.h> #include <vgMod/<API key>.h> #include <vgMod/vgModUtility.h> #include <vgKernel/vgkStreamWriter.h> #include <vgSound/vgSoundManager.h> #include <vgCam/vgcaCamManager.h> #include <vgMovingManager.h> #include <vgAutoBuild/vgvA...
# -*- coding: utf-8 -*- # * Authors: # * TJEBBES Gaston <g.t@majerti.fr> # * Arezki Feth <f.a@majerti.fr>; # * Miotte Julien <j.m@majerti.fr>; from autonomie.utils.files import ( encode_path, decode_path, issubdir, filesizeformat, ) def test_encode_decode(): st = u"$deù % ù$ùdeù % ...
using CP77.CR2W.Reflection; using FastMember; using static CP77.CR2W.Types.Enums; namespace CP77.CR2W.Types { [REDMeta] public class <API key> : CVariable { [Ordinal(0)] [RED("weaponSlot")] public TweakDBID WeaponSlot { get; set; } [Ordinal(1)] [RED("shots", 8)] public CStatic<<API key>> Sho...
<?php defined('KOOWA') or die; $server_limit = <API key>::<API key>(); ?> <?= helper('translator.script', array('strings' => array( // file size "tb", "mb", "kb", "gb", "b", "N/A", // file status 'done', 'failed', 'delete', 'uploading', // koowa.uploader.overwritable.js 'A file with the same nam...
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_152) on Fri Jun 28 21:50:19 MSK 2019 --> <title>Uses of Package bot.penguee.exception</title> <meta name="date" content="2019-06-28"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> <s...
// This program is free software: you can redistribute it and/or modify // (at your option) any later version. // This program is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #include "H_MEM_SCHED_FIFO.h" Define_Module(H_MEM_SCHED_FIFO); H_MEM_SCHED_FI...
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdlib.h> #include <string.h> #include "../weechat.h" #include "../wee-hook.h" #include "../wee-infolist.h" #include "../wee-log.h" #include "../wee-string.h" #include "../../gui/gui-color.h" #include "../../gui/gui-line.h" /* * Hooks a message printed by WeeCh...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Gap.Network.Helper { public static class ByteHelper { public static string AsString(this byte[] buffer) { return Encoding.UTF8.GetString(buffer); } ...
using System; using System.Diagnostics; using System.Runtime.CompilerServices; namespace Bss.Core.Utils { public static class BenchmarkUtils { public static void Benchmark(Action action, [CallerMemberName] string messageConsole = "") { var timer = new Stopwatch(); Debug.W...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "../dogechat-plugin.h" #include "irc.h" #include "irc-upgrade.h" #include "irc-buffer.h" #include "irc-channel.h" #include "irc-config.h" #include "irc-input.h" #include "irc-nick.h" #include "irc-notify.h" #include "irc-raw.h" #include "irc-redirect.h...
#ifndef MIAMITEMMODEL_H #define MIAMITEMMODEL_H #include <QStandardItemModel> #include <<API key>> #include <model/genericdao.h> #include "separatoritem.h" #include "miamlibrary_global.hpp" class MIAMLIBRARY_LIBRARY MiamItemModel : public QStandardItemModel { Q_OBJECT protected: /** This hash is a cache, used t...
// Library for I/O of genetic data #include <stdio.h> #include <string.h> #include <math.h> #include "marker.h" #include "personbits.h" #include "util.h" // initialize static members int PersonBits::_numDuos = 0; int PersonBits::_numTrioKids = 0; dynarray<PersonBits *> PersonBits::_allIndivs; Hashtable<char *, PersonBi...
#!/usr/bin/python # Generates commands for the muscle alignment program import sys, os, core, argparse # Options parser = argparse.ArgumentParser(description="MUSCLE command generator"); parser.add_argument("-i", dest="input", help="Directory of input FASTA files.", default=False); parser.add_argument("-o", dest="outpu...
from __future__ import absolute_import import ast import re import operator as op import pyparsing from ..exceptions import <API key> from . import <API key> _OP_MAP = { ast.Add: op.add, ast.Sub: op.sub, ast.Mult: op.mul, ast.Div: op.truediv, ast.Invert: op.neg, } class Calc(ast.NodeVisitor): de...
#include "../common.h" class Solution { public: bool isMatch(string s, string p) { const static char ESCAPE_CHRACTER = '\\'; const static char ANY_COUNT = '*'; const static char ANY_VALUE = '.'; const static char INVALID_SUBJECT = '\0'; // check if pattern is emtpy if...
package net.usikkert.kouinject.testbeans.scanned.factory; import javax.inject.Named; import net.usikkert.kouinject.annotation.Component; import net.usikkert.kouinject.annotation.Produces; import net.usikkert.kouinject.testbeans.scanned.qualifier.OrangeBean; /** * Creates a new ColorBean, for testing qualifiers and inj...
@import url("basic.css"); body { font-family: Arial, sans-serif; font-size: 100%; background-color: #111; color: #555; margin: 0; padding: 0; } div.documentwrapper { float: left; width: 100%; } div.bodywrapper { margin: 0 0 0 230px; } hr { border: 1px solid #B1B4B6; } div.documen...
#include "config.h" #include "conky.h" #include "common.h" #include "logging.h" #include "text_object.h" #include "timed-thread.h" #include <errno.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <limits.h> #include <mutex> #include <netinet/in.h> #include <netdb.h> #include <sys/socket.h> #includ...
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ #ifndef <API key> #define <API key> #include "<API key>.h" #include "base/Thread.h" #include <set> class WavFileReader; class ProgressReporter; class <API key> : public <API key> { Q_OBJECT public: enum ResampleMode { Resampl...
import com.teamdev.jxbrowser.chromium.Browser; import com.teamdev.jxbrowser.chromium.BrowserContext; import com.teamdev.jxbrowser.chromium.<API key>; import java.io.File; /** * By default all Browser instances with same BrowserContext share * cookies and cache data. This sample demonstrates how to create two isolated...
package com.jeffbrower.tuple; public class Tuple7<T1, T2, T3, T4, T5, T6, T7> implements Tuple<T1, T7> { public final T1 _1; public final T2 _2; public final T3 _3; public final T4 _4; public final T5 _5; public final T6 _6; public final T7 _7; public Tuple7(T1 _1, T2 _2, T3 _3, T4 _4, T...
; ; Minicom-like program for MikeOS ; ; With this program and an appropriate serial (null modem) cable, you ; can log in to Linux machines. You will need your Linux box to establish ; a serial terminal in /etc/inittab, with something like this: ; ; T0:2345:respawn:/sbin/getty/ -L ttyS0 9600 vt100 ; ; Connect the ser...
/* * commandCoolDown.js * * Manage cooldowns for commands * * To use the cooldown in other scipts use the $.coolDown API */ (function() { var defaultCooldownTime = $.getSetIniDbNumber('cooldownSettings', 'defaultCooldownTime', 5), modCooldown = $.getSetIniDbBoolean('cooldownSettings', 'modCooldown', f...
#ifndef TOOLSETTINGSDOCK_H #define TOOLSETTINGSDOCK_H #include "tools/tool.h" #include "tools/toolproperties.h" #include <QDockWidget> class QStackedWidget; class Color_Dialog; namespace tools { class ToolSettings; class AnnotationSettings; class ColorPickerSettings; class <API key>; class FillSetti...
namespace WorldServer.Game.ObjectDefines { public class ActionButton { public uint Action; public byte SlotId; public byte SpecGroup; } }
#!/bin/bash # This file is part of the Pi Entertainment System (PES). # PES provides an interactive GUI for games console emulators # and is designed to work on the Raspberry Pi. # PES is free software: you can redistribute it and/or modify # (at your option) any later version. # PES is distributed in...
from test_basics import setUp, app def test_visit_login(): r = app.get('/mod/login') assert "<form name=\"login\"" in r def test_login(): r = app.get('/mod/login') r.form['username'] = 'admin' r.form['password'] = 'adminadmin1' r = r.form.submit() assert "You are now logged in" in r
#include "kicadmodule2svg.h" #include "../utils/textutils.h" #include "../debugdialog.h" #include "../viewlayer.h" #include "../fsvgrenderer.h" #include <QFile> #include <QFileInfo> #include <QTextStream> #include <QObject> #include <QDomDocument> #include <QDomElement> #include <QDateTime> #include <qmath.h> #include ...
package org.openmuc.framework.datalogger.ascii.test; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.List; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Test; import org.openmuc.framework.data.Record; import org.openmuc.framework.data.ValueType; import org.openmuc.frame...
@extends('layouts.app') @section('page_title') Forgot Password @endsection @section('content') <div class="col-xs-8 col-sm-6 col-md-4 col-lg-4 col-xs-offset-2 col-sm-offset-3 col-md-offset-4 col-lg-offset-4"> @include('common.validationErrors') <p class="text-center">Enter the email address used to create your ...
#pragma once #include "../../faworld/world.h" #include <cstdint> #include <fa_nuklear.h> #include <optional> #include <vector> namespace FAWorld { class Player; class PlayerInput; } namespace Engine { class <API key> { public: virtual ~<API key>() = default; virtual std::optional<std...
<style> .thead_white table thead { background-color: #FFFFFF; } </style> <?php use yii\helpers\Html; use yii\grid\GridView; use yii\helpers\ArrayHelper; use kartik\select2\Select2; use vendor\meta_grid\helper\RBACHelper; use yii\helpers\Url; /* @var $this yii\web\View */ /* @var $searchModel app\models\ProjectSearc...
#!/usr/bin/env node const getUnixTimeNow = () => Math.round((new Date()).getTime() / 1000) const displayTime = (secs) => { const mins = Math.floor(secs / 60) const remainingSecs = (secs % 60) return `${mins.toString().padStart(2, '0')}:${remainingSecs.toString().padStart(2, '0')}` } async function main () { con...
#ifndef SERVER_UTILS_H #define SERVER_UTILS_H #include <QString> #include <QHostAddress> #include "httprequest.h" namespace SJ { class Utils { public: static QString substring(const QString & str, int beginIndex, int endIndex = -1); static QString version() { return "0.3"; } static QHostAddress createAddres...
#ifndef <API key> #define <API key> #include <string> #include <memory> #include <chrono> #include "changelog_entry.hpp" #include "semantic_version.hpp" namespace dbmig { Represents the changelog of a given database installation class changelog { public: changelog(const std::string &conn_str, co...
function LineGraph(argsMap) { /* public methods */ var self = this; /** * This allows appending new data points to the end of the lines and sliding them within the time window: * - x-axis will slide to new range * - new data will be added to the end of the lines * - equivalent number of ...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Linq; using System.Web; namespace GitHub.ViewModels { public class FutureDate : ValidationAttribute { public override bool IsValid(object value) { Dat...
TOP = ../.. SWIG = $(TOP)/../preinst-swig INTERFACE = example.i SRCS = CXXSRCS = example.cxx TARGET = class INCLUDE = SWIGOPT = CFLAGS = VARIANT = # uncomment the following lines to build a static exe (only pick one of the CHICKEN_MAIN lines) #CHICKEN_MAIN = test-lowlev...
#include <sys/select.h> #include <arpa/inet.h> #include <arpa/nameser.h> #include <ares.h> #include <talloc.h> #include <tevent.h> #include <errno.h> #include <netdb.h> #include <stddef.h> #include <string.h> #include <unistd.h> #include "config.h" #include "resolv/async_resolv.h" #include "util/dlinklist.h" #include "...
// Purpose: #ifndef DECALS_H #define DECALS_H #ifdef _WIN32 #pragma once #endif #define CHAR_TEX_CONCRETE 'C' #define CHAR_TEX_METAL 'M' #define CHAR_TEX_DIRT 'D' #define CHAR_TEX_VENT 'V' #define CHAR_TEX_GRATE 'G' #define CHAR_TEX_TILE 'T' #define CHAR_TEX_SLOSH 'S' #de...
package com.joslittho.popmov.adapter.trailer; import android.content.Context; import android.databinding.DataBindingUtil; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.ViewGroup; import com.joslittho.popmov.R; import com.joslittho.popmov.data.model.trailers.Resul...
<?php /** * Admin Functionality * - this file is included only if is_admin() * * @package McBoots */ add_filter( 'admin_init', function () { // block access to /wp-admin if current user can't edit if ( !current_user_can( 'edit_posts' ) && !( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { wp_redi...
package ase2016.introclass.median; public class <API key> { public <API key>() { } public int median( int a, int b, int c ) { int small, big, median; if (a > b) { //mutGenLimit 1 small = b; //mutGenLimit 1 big = a; //mutGenLimit 1 } else { big = b;...
module Murlsh class UrlResultSet def initialize(query, page, per_page, filters={}) @query, @page, @per_page, @filters = query, page, per_page, filters @order = 'time DESC' end def search_conditions @search_conditions ||= SearchConditions.new(query).conditions end def conditions ...
package com.zhilianxinke.schoolinhand.modules.autoupdate; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import java.io.InputStream; import java.util.HashMap; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.<API key>; public class ParseX...
package ua.sgkhmja.wboard.repository; import ua.sgkhmja.wboard.domain.<API key>; import org.springframework.data.jpa.repository.JpaRepository; import java.util.List; import java.util.Set; /** * Spring Data JPA repository for the Social User Connection entity. */ public interface <API key> extends JpaRepository<<API k...