text stringlengths 27 775k |
|---|
<?php
namespace CF\Error;
class GenericErrorCollection extends \CF\Error\ErrorCollection {
/**
* @return String
*/
public function outputFormatted($outputFormat = NULL) {
return implode(PHP_EOL, $this->errors);
}
} |
module Distribution.Client.Init.Simple
( -- * Project creation
createProject
-- * Gen targets
, genSimplePkgDesc
, genSimpleLibTarget
, genSimpleExeTarget
, genSimpleTestTarget
) where
import Distribution.Client.Init.Types
import Distribution.Verbosity
import Distribution.Simple.PackageIndex
import Distribution.C... |
# TrelloReportAutomation
Program to automate reports for Trello work so you can get your micromanaging boss off your case.
|
require 'dotify'
module Dotify
module CLI
class Listing
include CLI::Utilities
attr_reader :collection, :options
def initialize(collection, options = {})
@collection = collection
@options = options
end
def count
collection.count
end
def write... |
# dasmの文法(x86)
```lua
------------------------------------------------------------------------------
-- x86 Template String Description
-- ===============================
--
-- Each template string is a list of [match:]pattern pairs,
-- separated by "|". The first match wins. No match means a
-- bad or unsupported com... |
using System.Management.Automation;
using Microsoft.SharePoint.Client;
using OfficeDevPnP.PowerShell.Commands.Base.PipeBinds;
using Resources = OfficeDevPnP.PowerShell.Commands.Properties.Resources;
namespace OfficeDevPnP.PowerShell.Commands
{
[Cmdlet(VerbsCommon.Remove, "SPOCustomAction", ConfirmImpact = Confirm... |
import { levels } from "./jsonmodule";
import { Level, LevelData } from "./levelstructure";
// Meets version 4 level standards
// https://gist.github.com/Zolo101/36ae33e5dd15510a2cb41e942dbf7044
// const allBlocks = blocks.map((array: { name: string; }) => array.name);
// const usedBlocks: string[] = [];
export func... |
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <math.h>
#include <structmember.h>
#define PY3_9_OR_MORE PY_VERSION_HEX >= 0x03090000
#define PY3_11_OR_MORE PY_VERSION_HEX >= 0x030b0000
static int is_negative_Object(PyObject *self) {
PyObject *tmp = PyLong_FromLong(0);
int result = PyObject_RichCompareBool(... |
<?php
namespace frontend\service;
use frontend\dao\BidDao;
class BidService {
/**
*
* @var type frontend\dao\HomeDao
*/
public $bid_dao;
function __construct() {
$this->bid_dao = new BidDao();
}
public function getBidReplyInfo($bid_reply_id) {
return $... |
class CreatePokemonsets < ActiveRecord::Migration[4.2]
def change
create_table :pokemonsets do |t|
t.string :title
t.integer :specie
t.integer :hp
t.integer :atk
t.integer :defe
t.integer :spatk
t.integer :spdef
t.integer :spd
t.integer :item
t.integer :... |
import { EventsHandler, IEventHandler } from '@nestjs/cqrs';
import { AccessTokenCreatedEvent } from './access-token-created.event';
@EventsHandler(AccessTokenCreatedEvent)
export class AccessTokenCreatedEventHandler implements IEventHandler<AccessTokenCreatedEvent> {
handle(event: AccessTokenCreatedEvent) {
con... |
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::Web::Mgmt::V2016_06_01
module Models
#
# Defines values for ConnectionParameterType
#
module ConnectionParameterType
S... |
#!/bin/bash
/Applications/mongodb/bin/mongod --dbpath /Applications/mongodb/db/ &
/Applications/redis/src/redis-server &
node-dev "/Users/xukai/Documents/Aptana workspace/melodycoder/app.js" & |
#!/usr/bin/env scala
object yes {
def main (args: Array[String]) {
val output = if (args.isEmpty) { "y" } else { args.mkString(" ") }
while (true) {
println(output)
}
}
}
|
<?php
declare(strict_types=1);
namespace BEAR\QueryRepository;
use BEAR\RepositoryModule\Annotation\AbstractCacheControl;
use BEAR\RepositoryModule\Annotation\Cacheable;
use BEAR\RepositoryModule\Annotation\Commands;
use BEAR\RepositoryModule\Annotation\Purge;
use BEAR\RepositoryModule\Annotation\Refresh;
use BEAR\S... |
package cz.linkedlist;
import cz.linkedlist.info.ProductInfo;
import cz.linkedlist.info.TileInfo;
import org.springframework.util.concurrent.ListenableFuture;
import java.util.Collection;
import java.util.List;
/**
* @author Martin Macko <https://github.com/LinkedList>
*/
public interface TileInfoService {
Til... |
<?php
namespace Tests\Unit\Repository\Home;
use Exception;
use Tests\TestCase;
use Illuminate\Http\Request;
use App\Model\Article as Model;
use App\Repository\Home\Article;
use App\Model\Article as ModelArticle;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
class Arti... |
require 'open3'
require 'timeout'
require_relative './GameBoard'
class PlayerProcess
attr_reader :name
class TimeLimitExceededError < RuntimeError; end
def initialize(name, cmd)
@name = name
@stdin, @stdout, @stderr, @thread = Open3.popen3(cmd)
@thread.freeze
end
def send_initial_info(init_inf... |
package main
import (
"encoding/json"
"flag"
"fmt"
"io"
"io/fs"
"log"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/ItsLychee/alto/dsl"
"github.com/dhowden/tag"
"github.com/pkg/errors"
)
var SupportedFormats = []tag.FileType{
tag.MP3,
tag.M4A,
tag.M4B,
tag.M4P,
tag.ALAC,
tag.FLAC,
tag.OGG,... |
$ErrorActionPreference = "Stop"
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo")
Import-Module SitecoreInstallFramework
Import-Module Carbon
function Get-SitecoreDatabase(
[parameter(Mandatory=$true)]$SqlServer,
[parameter(Mandatory=$true)]$SqlAdminUser,
[parameter(Mandator... |
import * as React from "react";
import { storiesOf } from "@storybook/react";
import { boolean, select } from '@storybook/addon-knobs';
import Panel from "./Panel";
import { PanelHeader } from "../PanelHeader";
import { PanelBody } from "../PanelBody";
import { PanelFooter } from "../PanelFooter";
import { PanelRow } f... |
//
// RYVRPlayer.h
// RYVRPlayer
//
// Created by Single on 2017/3/9.
// Copyright © 2017年 single. All rights reserved.
//
#import <Foundation/Foundation.h>
FOUNDATION_EXPORT double RYVRPlayerVersionNumber;
FOUNDATION_EXPORT const unsigned char RYVRPlayerVersionString[];
// Platform
#import "RYVRPlatform.h"
// ... |
package App::DuckPAN::Config;
BEGIN {
$App::DuckPAN::Config::AUTHORITY = 'cpan:DDG';
}
# ABSTRACT: Configuration class of the duckpan client
$App::DuckPAN::Config::VERSION = '0.165';
use Moo;
use File::HomeDir;
use Path::Tiny;
use Config::INI::Reader;
use Config::INI::Writer;
has config_path => (
is => 'ro',
... |
pub struct Window {
pub raw: winit::window::Window,
}
|
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:json_class/json_class.dart';
import 'package:sitecore_flutter/sitecore_dynamic_widget.dart';
import 'package:sitecore_flutter/src/builders/sitecore_promo_container_builder.dart';
class SitecoreWidgetRegistry {
/// Constructs a one-off regi... |
/*
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this fi... |
#!/bin/bash
# Name: set_syncclient_teriminal
# Usage: set_env, change_path, close_terminal, execute_sync_client
# ./esyncclient -p ../etc/policies.json -t ../data/dm_tree/
function run_testcase(){
python /home/tiankang/Downloads/OtaSmoke/Execute/execute.py
}
run_testcase
|
module Physics.FunPart.Score (
-- * Types
Score(..)
, ScoreValue
-- * Functions
, updateAllByBatch
) where
import Control.Lens
import Data.List (foldl')
import Physics.FunPart.Core
import Physics.FunPart.Track
import Physics.FunPart.Stat
-- | A type synonim for more expressive function signatures.
type ScoreValue ... |
/*
* Copyright (c) 2004-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... |
<?php
namespace App\Http\Controllers\Frontend;
use App\Http\Controllers\Controller;
use App\Models\Frontend\CartModel;
use App\Models\Backend\OrderDetailModel;
use App\Models\Backend\OrderModel;
use App\Models\Backend\ProductsModel;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use PHPUnit\Util\Json... |
//! Handler perform that Async task
mod challenge;
mod ideas;
mod tags;
mod users;
|
class ApplicationError extends Error {
constructor(errors, httpCode, message) {
super((message || 'Error'));
this.httpCode = httpCode || 422;
this.errors = errors;
}
}
module.exports = ApplicationError;
|
require 'cancan'
require 'state_machine'
module Pageflow
class ApplicationController < ActionController::Base
layout 'pageflow/application'
before_filter do
I18n.locale = current_user.try(:locale) || locale_from_accept_language_header || I18n.default_locale
end
# Prevent CSRF attacks by raisi... |
import mxnet as mx
from mxnet import autograd
from mxnet import profiler
#################### Set Profiler Config ######################
profiler.set_config(profile_all=True, aggregate_stats=True, filename='cpu_mnist_cnn_profile_output.json')
###############################################################
# Build Net... |
import React from "react";
const Nav = () => (
<nav>
<h1>TAILWIND TRADERS APP</h1>
</nav>
);
export default Nav;
|
[ActiveSupport PAR]
; Global primary clocks
GLOBAL_PRIMARY_USED = 1;
; Global primary clock #0
GLOBAL_PRIMARY_0_SIGNALNAME = out_vga_ck_c;
GLOBAL_PRIMARY_0_DRIVERTYPE = PLL;
GLOBAL_PRIMARY_0_LOADNUM = 152;
; # of global secondary clocks
GLOBAL_SECONDARY_USED = 4;
; Global secondary clock #0
GLOBAL_SECONDARY_0... |
import store from '../store';
import { checkLocalStorageAvailability } from '../utils';
import { BASE_URL, ENDPOINTS } from '../constants/api';
import setAuth from '../actions/setAuth';
import unsetAuth from '../actions/unsetAuth';
const isLocalStorageAvailable = checkLocalStorageAvailability();
export const authenti... |
package com.letv.android.client.view;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface.OnClickListener;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.TextView... |
package dev.floffah.gamermode.server.packet;
public enum PacketType {
/**
* Packet type representing any packet that may be sent to the server.
*/
SERVERBOUND,
/**
* Packet type representing any packet that may be sent to the player.
*/
CLIENTBOUND,
/**
* Edge c... |
sap.ui.require([
"sap/ui/test/Opa5",
"sap/ui/demo/todo/test/integration/pages/Common",
"sap/ui/test/matchers/AggregationLengthEquals",
"sap/ui/test/matchers/PropertyStrictEquals",
"sap/ui/test/matchers/Properties",
"sap/ui/test/matchers/LabelFor",
"sap/ui/test/actions/EnterText",
"sap/ui/test/actions/Press"
], ... |
# json_script
Safely outputs a Python object as JSON, wrapped in a `<script>` tag, ready for use with JavaScript.
Argument: HTML "id" of the `<script>` tag.
---
```htmldjango
{{ value|json_script:"hello-data" }}
```
|
/*
* Copyright (c) 2018-2020, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#include <stddef.h>
#include <stdint.h>
#include "tfm_mbedcrypto_include.h"
#include "tfm_crypto_api.h"
#include "tfm_crypto_defs.h"
#include "tfm_crypto_private.h"
/*!
* \defgroup public_psa Public ... |
require 'spec_helper'
module BoletoBancario
module Core
describe Banrisul do
it_should_behave_like 'boleto bancario'
describe "on validations" do
it "agencia should have 3 digits" do
should have_valid(:agencia).when("1", "123", 1, 123)
should_not have_valid(:agencia).when... |
module Helpers
module Errors
def error_403!(options = {})
content = {
status: 'Error',
code: 403,
message: 'Access denied'
}
content.merge!(options)
error!(content, 403)
end
def error_401!(options = {})
content = {
status: 'Error',
cod... |
Rails.application.routes.draw do
use_doorkeeper
root to: 'static_pages#home'
get 'static_pages/home'
get 'static_pages/about_us'
get 'static_pages/contact_us'
devise_for :users
scope 'tickets' do
resources :ticket_categories, path: 'categories', only: [:index, :show]
resources :ticket_items, ... |
%% See LICENSE for licensing information.
%% -*- coding: utf-8 -*-
-module(thaw_examples_tests).
%% Examples written in Erlang rather than ICE.
%%
%% They are written as tests for convenience.
-include_lib("eunit/include/eunit.hrl").
%% API.
-export([fib_seq/1]).
-export([fib_par/1]).
-export([spawn_n/2, join/1]).... |
using System;
using System.Collections.Generic;
using System.Reflection;
using FlaxEngine;
namespace Mirror
{
public static class InspectorHelper
{
/// <summary>
/// Gets all public and private fields for a type
/// </summary>
/// <param name="type"></param>
/// <param n... |
using System;
using System.ComponentModel.DataAnnotations;
namespace rbkApiModules.Analytics.Core
{
public class SessionEntry
{
public SessionEntry(string username, DateTime start, DateTime end)
{
Username = username;
Start = start;
End = end;
Du... |
import Control.Monad (guard)
inBounds :: [String] -> Int -> Int -> Bool
inBounds xs i j = i >= 0 && i < length xs && j >= 0 && j < length (head xs)
neighbors :: Bool -> [String] -> Int -> Int -> [Char]
neighbors lookFar xs i j = do
(iDir, jDir) <- [(-1, -1), (-1, 0), (-1, 1), (0, -1), (0, 1), (1, -1), (1,... |
# Docker port 命令
**docker port :**列出指定的容器的端口映射,或者查找将PRIVATE_PORT NAT到面向公众的端口。
### 语法
```
docker port [OPTIONS] CONTAINER [PRIVATE_PORT[/PROTO]]
```
### 实例
查看容器mynginx的端口映射情况。
```
runoob@runoob:~$ docker port mymysql
3306/tcp -> 0.0.0.0:3306
``` |
package com.jet.parking.common.domain
interface ErrorCode {
fun getCode(): Int
fun getDesc(): String?
} |
#! /bin/bash
# Completion for bash:
#
# (1) install this file,
#
# (2) load the script, and
# . ~/.profile.d/rb_optparse.bash
#
# (3) define completions in your .bashrc,
# rb_optparse command_using_optparse_1
# rb_optparse command_using_optparse_2
_rb_optparse() {
COMPREPLY=($("${COMP_WORDS[0]}" "--*-... |
# League_Of_Follows
This is a portfolio project that will test the Riot API to practice JSON requests.
|
# frozen_string_literal: true
require 'active_support/concern'
module SnFoil
module Policy
extend ActiveSupport::Concern
attr_reader :record, :entity
attr_accessor :options
def initialize(entity, record, options = {})
@record = record
@entity = entity
@options = options
end
... |
#include "felippa_prism.hpp"
namespace neon
{
felippa_prism::felippa_prism(int const minimum_degree)
{
switch (minimum_degree)
{
case 1:
{
m_degree = 1;
m_weights = {1.0};
m_coordinates = {{0, 1.0 / 3.0, 1.0 / 3.0, 0.0}};
break;
}
... |
#region HappyDo
// This is HappyDo
// which downloads files from one place to another
// thus, making me happy.
// https://github.com/picrap/HappyDo
// MIT License
#endregion
namespace HappyDo.Core.Rules
{
public class Rule
{
public string Match { get; set; }
public string SubDirectory { get; s... |
### Create sequental IPs list
Run as <i>tclsh</i> <b>cipl.tcl</b> \<<i>start address</i>\> [\<<i>end address</i> | amount adresses\>]
- cipl.tcl - initial algorithm
- cipl2.tcl - optimize
- cipl3.tcl - more optimize
[There is article about this on Habrahabr](https://habrahabr.ru/post/135920/)
|
<?php
use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\Reminders\RemindableInterface;
class Step extends Eloquent {
var $fillable = ['id','recipe_id','order'];
public $timestamps = false;
public function recipe(){
... |
package me.rnelson.learn.kotlin.rng.controllers
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import java.util.Random
@Res... |
import os
import sys
import subprocess
# Application Viewer for CariboSystem6 Preview
print()
def app_uninstall():
if sys.platform == "win32":
application = input("Enter APP Name: ")
print("Are you sure you want to uninstall " + application + " ?")
confirm = input("Yes/No > ")
if co... |
package com.tkstr.kobold
import com.tkstr.kobold.utils.logger
import org.jetbrains.spek.api.Spek
/**
* @author Ben Teichman
*/
class ConstructorSpec : Spek() {
open class Innermost {
val LOG by logger()
constructor() {
LOG.info("constructed")
}
}
class Middlemost... |
const snarkjs = require("snarkjs");
const eddsa = require("circomlib/src/eddsa.js");
const mimcsponge = require("circomlib/src/mimcsponge.js")
const bigInt = snarkjs.bigInt;
const msg = "00010203040506070809"; // 10 bytes
const prvSeed = "0001020304050607080900010203040506070809000102030405060708090001";
function ed... |
#[macro_use]
extern crate log;
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate serde_derive;
pub mod dashboard;
pub mod exit_manager;
pub mod heartbeat;
pub mod light_client_manager;
pub mod logging;
pub mod operator_fee_manager;
pub mod operator_update;
pub mod rita_loop;
pub mod traffic_watcher;
... |
---
title: 5402 - TokenValidationStarted
ms.date: 03/30/2017
ms.assetid: d3e9a727-92dd-4d5b-bca9-2ec98c1fde5c
ms.openlocfilehash: 212c6cd3a341f46e6ba0ad4b8542d47f699fb7c9
ms.sourcegitcommit: 9b552addadfb57fab0b9e7852ed4f1f1b8a42f8e
ms.translationtype: MT
ms.contentlocale: fr-FR
ms.lasthandoff: 04/23/2019
ms.locfileid: ... |
# ShellEx
Small program where we can see executions in bash from C# program.
|
<?php
return [
'api_base_url' => 'https://pos.snapscan.io',
'api_key' => '',
'merchant_code' => ''
]; |
/*
* Copyright (c) 2008-2015, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
library docs_bloc;
export 'commercio_docs_bloc.dart';
export 'commercio_docs_event.dart';
export 'commercio_docs_state.dart';
|
<?php
namespace Tests\Feature;
use App\Deck;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;
class ReviewTest extends TestCase
{
use RefreshDatabase;
/** @test */
function empty_deck_not_have_review_mode()
{
$deck = factor... |
#!/bin/bash
TARGETS=($(ls -1 "${CIQ_HOME}../../devices"))
PROJECT=`basename $PWD`
BETAMC="$CIQ_HOME/bin/monkeyc"
BETAVERSION=`"$BETAMC" --version |sed -e 's/.*version //'`
echo "Compiling $PROJECT beta releases with $BETAVERSION for various devices"
BETAFILE="releases/${PROJECT}-${BETAVERSION}.iq"
echo $BETAFILE
"$B... |
<?php
namespace App\Http\Controllers;
use App\AboutAvard;
use App\AboutExperience;
use App\AboutHeader;
use App\AboutService;
use App\Brand;
use App\ContactUs;
use App\Currency;
use App\Faquestion;
use App\Group;
use App\OneCategory;
use App\Post;
use App\Service;
use App\Product;
use App\Folower;
use App\QuestionsIm... |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.Azur... |
# Running TINC 1.1pre15 inside a Docker container
<!-- 2018-08-16 19:30 CEST -->
## References
* Docker image sources: <https://github.com/JensErat/docker-tinc>
* tinc v1.1 manual: <https://www.tinc-vpn.org/documentation-1.1/>
* tinc VPN homepage: <https://www.tinc-vpn.org/>
## Prerequisites
* A host running Docke... |
import fs from 'fs';
import path from 'path';
import parser from '../list2JsonParser';
import TxtNode from '../../TxtNode';
function loadMd(path: string): string {
const buf = fs.readFileSync(path);
return buf.toString();
}
test('parse simple md', (): void => {
const dir = path.resolve(__dirname, 'md-file... |
<?php
namespace App\Services;
use App\CarouselSlide;
use App\Http\Requests\CreateCarouselSlideRequest;
use App\Http\Requests\EditCarouselSlideRequest;
use App\Http\Requests\OrderCarouselSlidesRequest;
use Illuminate\Support\Facades\DB;
class CarouselSlideService
{
function findById($id)
{
$slide = C... |
module Parser where
import Control.Applicative ((<|>))
import Expression (getExpr)
import Grammar
import Lexer (char, double, integer)
import ParserLib (Parser, many)
import Token (Token (..))
expression :: Parser Expression
expression = getExpr <$> tokens
token :: Parser Token
token =
(double >>= \d -> return (Co... |
use vcell::VolatileCell;
#[doc = r" Register block"]
#[repr(C)]
pub struct RegisterBlock {
#[doc = "0x00 - GPIO port mode register"] pub moder: Moder,
#[doc = "0x04 - GPIO port output type register"] pub otyper: Otyper,
#[doc = "0x08 - GPIO port output speed register"] pub ospeedr: Ospeedr,
#[doc = "0x0... |
<?php
session_start();
if (!isset($_SESSION['UserFullName'])) {
header("location: index.php");
}
$questions = $_SESSION['questions'];
$answers = $_SESSION['answers'];
$numberOfQuestions = count($questions);
$numberOfCorrectAnswers = 0;
$connection = mysqli_connect("localhost", "root", "", "toefl") ... |
prompt - type drs_customer_t (row)
create or replace type drs_customer_t as object (
customer_id integer,
first_name varchar2(45 char),
last_name varchar2(45 char),
email varchar2(50 char),
address drs_address_t,
active char(1 byte),
create_date date,
last_update date
);
/
p... |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE ViewPa... |
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using CP77.CR2W.Types;
namespace CP77.CR2W
{
public static class CR2WReaderExtensions
{
/// <summary>
/// Read null terminated string
/// </summary>
/// <par... |
<?php
namespace App;
use Eloquent;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\MorphToMany;
use Illuminate\Support\Carbon;... |
export SECRET_KEY='jadiel'
export MAIL_USERNAME='jedielmwangi@gmail.com'
export MAIL_PASSWORD='church95'
python3.6 manage.py server |
//! Main API entry point for reading and manipulating Metamath databases.
//!
//! A variable of type `Database` represents a loaded database. You can
//! construct a `Database` object, then cause it to represent a database from a
//! disk file using the `parse` method, then query various analysis results
//! which wil... |
"""archetypal UmiBase module."""
import itertools
import math
import re
from collections.abc import Hashable, MutableSet
import numpy as np
from validator_collection import validators
from archetypal.utils import lcm
def _resolve_combined_names(predecessors):
"""Creates a unique name from the list of :class:`U... |
frame 0, 04
frame 4, 08
setrepeat 3
frame 1, 08
frame 2, 08
dorepeat 3
frame 3, 08
endanim
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import { ILogger } from '../logging/ILogger';
export interface MediaRequestArgs {
onMediaLoaded?: (source: string) => void;
onMediaLoadFailed?: (source: string, errorCode: number, error: string) ... |
# Sample Programs in R
Welcome to Sample Programs in R!
## Sample Programs
- [Hello World in R](https://therenegadecoder.com/code/hello-world-in-r)
## Fun Facts
- Debut: 1993
- Developer: R Core Team
- Typing: Dynamic
- License: GPL v2
## References
- [R Official Website](https://www.r-project.org/)
- [R Wiki](h... |
#!/bin/sh
VERSION=0.12
if [ -d .svn ]; then
svnversion -cn .|sed s/.*://g|sed s/exported//g
elif [ -d CVS ]; then
DATE=`date +%Y%m%d`
printf "%s" "$VERSION-CVS-$DATE"
else
echo $VERSION
fi
|
using System;
using System.Reactive.Linq;
using Reactive.Bindings;
using Reactive.Bindings.Extensions;
using TrainTripThinker.Core.Data;
using TrainTripThinker.Core.Enums;
namespace TrainTripThinker.ViewModel
{
public class TrainViewModel : TransportBaseViewModel
{
public TrainViewModel(Train model) :... |
<?php
/*
Общий код, который используется сразу в нескольких файлах, удобно организовать
в отдельные файлы и включить их в PHP-сценарии с помощью одной из двух инструкций:
include() и require().
Обе команды работают почти одинаково, за исключением одного существенного различия:
* команда require() и... |
#!/usr/bin/env bash
# #!/bin/bash
if [ $# -eq 0 ]
then
echo ""
echo ""
echo "Usage: $0 CiteKey"
echo "by Le CHEN, (chenle02@gmail.com)"
echo "Sat 25 Dec 2021 01:30:48 PM EST"
echo ""
echo ""
exit 1
fi
file=$(rg "CiteKey: $1" ~/Dropbox/Research-References/ | sed 's/info.*$/output.pdf/g')
echo $file
zathura $fi... |
package java.io
abstract class Writer private[this] (_lock: Option[Object]) extends
Appendable with Closeable with Flushable {
protected val lock = _lock.getOrElse(this)
protected def this(lock: Object) = this(Some(lock))
protected def this() = this(None)
def write(c: Int): Unit =
write(Array(c.toCh... |
class RoadSign {
final String signImage, signName;
RoadSign({required this.signImage, required this.signName});
}
List signName = [
'Roundabout Ahead',
'No Entry',
'Speed Limit 50km/h',
'Men At Work',
'Left Hand Curve',
'Narrow Road From Right',
'Narrow Road from Both Sides',
'Pedes... |
import 'package:bkci_app/widgets/PFText.dart';
import 'package:flutter/material.dart';
import 'package:bkci_app/utils/util.dart';
class TabItem {
final String id;
final String label;
TabItem({
@required this.id,
@required this.label,
});
}
class ToggleTab extends StatelessWidget {
final bool value;... |
import about from '../../data/about.json';
import styles from './about.module.scss';
const About = () => (
<section id='About' className={styles.color}>
<div className={styles.container}>
<h1 className={styles.title}>{about.title}</h1>
{about.content.map((c, i) => (
... |
CREATE TABLE `__database_name__`.`__table_name__`(
`id` int(11) NOT NULL AUTO_INCREMENT,
`facebook_id` varchar(100) DEFAULT NULL,
`type` enum('user','customer','admin') NOT NULL DEFAULT 'user',
`first_name` varchar(45) DEFAULT NULL,
`last_name` varchar(45) DEFAULT NULL,
`seo_name` varchar(100) DEFAULT NULL,... |
package learnfp.monoid
import org.scalatest.{WordSpecLike, Matchers}
class ListMonoidTest extends WordSpecLike with Matchers {
import MonoidOps._
import ListMonoid._
"list monoid" should {
"append lists" in {
List(1, 2, 3) |+| List(4, 5, 6) shouldBe List(1, 2, 3, 4, 5, 6)
}
"obey identity" in... |
var libcpp_8h =
[
[ "operator delete", "d5/dab/libcpp_8h.html#a3d97a7e2a0208075b4b37328c96ed390", null ],
[ "operator delete[]", "d5/dab/libcpp_8h.html#a1d8b2d6f17242ae0d182b0f7a98ba54f", null ],
[ "operator new", "d5/dab/libcpp_8h.html#a9bccb23e08907b6033c45f524578239a", null ],
[ "operator new[]", "d5... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.aws.greengrass.util.platforms.unix;
import com.aws.greengrass.testcommons.testutilities.GGExtension;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.