text stringlengths 27 775k |
|---|
const router = require('express').Router();
const {
createQuiz,
} = require('../controller/quiz')
// Create single quiz route.
router.route('/quiz')
.post(createQuiz);
module.exports = router; |
#!/bin/sh
set -ex
cargo build --target wasm32-unknown-unknown --release
cd ../../
rm -rf static
mkdir static
cp target/wasm32-unknown-unknown/release/rusty_demon_attack.wasm static/
cp utils/wasm/index.html static/
cp utils/wasm/gl.js static/
cp utils/wasm/audio.js static/
mkdir static/resources
cp -ar resources stat... |
using Newtonsoft.Json;
namespace WoWonder.Activities.Live.Stats
{
public class AgoraRecordObject
{
[JsonProperty("resourceId", NullValueHandling = NullValueHandling.Ignore)]
public string ResourceId { get; set; }
[JsonProperty("sid", NullValueHandling = NullValueHandling.Ignore)]
... |
from datetime import date, timedelta, datetime
import pandas as pd
def last_day_of_month(date):
# Guaranteed to get the next month. Force any_date to 28th and then add 4 days.
next_month = date.replace(day=28) + timedelta(days=4)
# Subtract all days that are over since the start of the month.
day ... |
# Código para extrair lista de links em umsite usando requests, urrlibrequest e BeautifulSoup4
# Wandeson Ricardo, 2020
# www.wsricardo.blogspot.com
import requests
from bs4 import BeautifulSoup
import urllib.request
# A palavra reservada 'import' serve para importar outro código,
# para ser usado. Tanto 'from' como '... |
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use crate::error::PowerManagerError;
use crate::message::{Message, MessageReturn};
use crate::node::Node;
use crate::shutdown_request::ShutdownRequest;
use... |
<?php
namespace App\Controller\Utils;
use App\Controller\UtilsController;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation... |
#!//bin/bash
db_file="database.sdb"
# Setup environment
rm -f ../$db_file
sqlite3 $db_file < ../database.sql # Due to bug in sqlite3 I can't put file directly under twidder
mv $db_file ../ # Move to correct location
# cd to server dir and run server
cd ../..
./runserver.py &
pid=$!
# cd back to test dir and run tes... |
#ifndef __DAGCONTAINER_H_INCLUDED__
#define __DAGCONTAINER_H_INCLUDED__
#include "ppix.h"
#include "triops.h"
#include "triopgenerator.h"
class trigenerator;
class DAGContainer {
public:
DAGContainer(std::vector<trigenerator *> gens, triop *inpixel);
std::vector<trigenerator *> generators;
triop *pixel;... |
# textimon
A new world of adventure and textimons! Gotta download some of them, maybe.
|
package com.spotinst.sdkjava.model.api.gcp;
import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spotinst.sdkjava.client.rest.IPartialUpdateEn... |
package org.geepawhill.contentment.fragments
import javafx.scene.Group
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.within
import org.geepawhill.contentment.core.Context
import org.junit.jupiter.api.Test
class FaderTest {
private val group = Group()
private val cont... |
using System;
namespace Trape.Datalayer.Models
{
/// <summary>
/// This class represents the latest price for 24 hours
/// </summary>
public class CurrentPrice
{
#region Constructor
/// <summary>
/// Initializes a new instance of the <c>CurrentPrice</c> class.
... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class DifficultyLevel extends Model
{
protected $table = 'difficulty_levels';
protected $guarded = [];
// un niveau de difficulté ( facile / moyen / difficile ) appartient à un projet
public function projects(){
ret... |
using System;
namespace RCNet.Neural.Data.Generators
{
/// <summary>
/// Generates sinusoidal signal
/// </summary>
[Serializable]
public class SinusoidalGenerator : IGenerator
{
//Attributes
private double _step;
private readonly SinusoidalGeneratorSettings _settings;
... |
SELECT CONCAT(s.FirstName, ' ', s.LastName) AS [Full Name]
FROM Students AS s
LEFT JOIN StudentsExams AS se ON se.StudentId = s.Id
WHERE se.StudentId IS NULL
ORDER BY s.[FirstName] |
//cons getDbConn = require('knex')
//const testConfig = require('../knexfile').test
|
part of 'entry_bloc.dart';
@freezed
abstract class EntryState with _$EntryState {
const factory EntryState.initial() = _Initial;
const factory EntryState.loading() = _Loading;
const factory EntryState.loaded({@required Entry entry}) = _Loaded;
const factory EntryState.error() = _Error;
}
|
use math::Vec2;
#[derive(PartialEq)]
pub struct Shape;
#[derive(PartialEq)]
pub struct Particle {
position: Vec2<f32>,
velocity: Vec2<f32>,
acceleration: Vec2<f32>,
shape: Shape,
}
pub struct World {
pub x: u32,
pub y: u32,
pub particles: Vec<Particle>,
}
pub fn create_world(x_dim: u32, ... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
export default class {
static getData(uri: string): Promise<any>;
}
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName = "Effects/Low Gravity", fileName = "Effect_LowGravity")]
public class Effect_LowGravity : BaseEffect
{
[SerializeField] float JumpHeightModifier = 2f;
[SerializeField] float JumpVelocityModifier = 2f;
... |
package com.huzt.data;
public class BloodNode {
public Integer id;
public String schemaName;
public String tableName;
public String fieldName;
public String level;
public BloodNode(String tableName) {
this.tableName = tableName;
}
public BloodNode(String tableName,int level) {
... |
display_mode=Na głównej stronie ukazują się,1,0-Wszystkie polecenia i parametry,1-Dowiązania do poleceń
width=Szerokość okna edytora pliku,3,Domyślnie (80 znaków)
height=Wysokość okna edytora pliku,3,Domyślnie (20 znaków)
wrap=Tryb wrap edytora plików,1,-Domyślnie (miękki),hard-Twardy,off-Wyłączone
columns=Kolumny do w... |
package org.kanjivg.tools.parsing
import org.kanjivg.tools.KVGTag
import javax.xml.namespace.QName
import javax.xml.stream.XMLEventReader
import javax.xml.stream.events.*
import org.kanjivg.tools.KVGTag.Attribute as Attr
/**
* Parser of KanjiVG SVG files based on StAX iterator API.
*
* This parser not only checks ... |
use pyo3::prelude::*;
use std::collections::HashSet;
use std::iter::FromIterator;
use std::hash::{Hash, Hasher};
#[pyclass]
#[text_signature = "(id, inventory, /)"]
#[derive(Clone)]
pub struct Store {
#[pyo3(get)]
pub id: String,
#[pyo3(get)]
pub inventory: HashSet<String>,
}
#[pymethods]
impl Store {
#[new]
pu... |
require "try_me/version"
module TryMe
# Supports both || and | syntax
# object.try_me { maybe_method || other_possible_method || something_else }
# object.try_me { maybe_method | other_possible_method | something_else }
def try_me(&block)
Proxy.new(self).__try_me__(&block)
end
class Proxy < BasicO... |
'use strict'
global.__base = __dirname + '/../'
const path = require('path')
const util = require('util')
const config = {}
config.libPath = path.join(__base, 'src', 'libs', 'angular-signature-pad')
config.debugMode = true
config.validPreset = 'angular'
config.ci = {}
config.ci.validState = 'passed'
module.exports ... |
import Server from './server';
import { port } from '../configs/general';
const internals = {};
internals.server = { port };
Server.init(internals.server.port, (err, server) => {
if (err) return next(err); //eslint-disable-line curly
server.log(['info'], '==> ✅ Server is listening');
server.log(['info... |
<?php
namespace CloudFramework\Service\SocialNetworks\Dtos;
/**
* Class ExportDTO
* @package CloudFramework\Service\SocialNetworks\Connectors
* @author Salvador Castro <sc@bloombees.com>
*/
class ExportDTO {
private $published;
private $title;
private $urlObject;
private $idUser;
private $nameU... |
import React, { useEffect, useState } from "react";
import Nav from "../components/Nav";
import Jumbotron from "../components/Jumbotron";
import API from "../utils/API";
import Saved from "../components/Saved";
import Footer from "../components/Footer";
function SavedBooks() {
const [books, setBooks] = useState([]... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FromTerabytesToBits
{
//Write program to enter a real number of terabytes and convert it to bits.
class Program
{
static void Main(string[] args)
{
dou... |
<?php
namespace Signifly\Travy\Http\Controllers;
use Illuminate\Database\Eloquent\Model;
use Signifly\Travy\Http\Actions\IndexAction;
use Signifly\Travy\Http\Requests\TravyRequest;
use Illuminate\Database\Eloquent\Relations\Relation;
class RelationController extends Controller
{
public function index(TravyReques... |
module ManageIQ::Providers::Aliyun::ManagerMixin
extend ActiveSupport::Concern
included do
validates :provider_region, :inclusion => {:in => ->(_region) { ManageIQ::Providers::Aliyun::Regions.names }}
end
def description
ManageIQ::Providers::Aliyun::Regions.find_by_name(provider_region)[:description]
... |
package api
import (
"github.com/kataras/iris/v12"
)
type AwifiBaseApi struct {
}
func NewAwifiBaseApi() *AwifiBaseApi {
return &AwifiBaseApi{}
}
func (zk *AwifiBaseApi) Index(ctx iris.Context) {
ctx.Writef("Hello from the server")
}
func (zk *AwifiBaseApi) IndexJson(ctx iris.Context) {... |
---
inject: true
to: Build/role.tf
after: depends_on = \[
skip_if: dynamo_<%=locals.table%>
sh: cd Build && terraform fmt
---
aws_iam_role_policy_attachment.dynamo_<%=locals.table%>,
|
module SimplySuggest
class Configuration
# SimplySuggest publicKey
#
# default: nil
attr_accessor :public_key
# SimplySuggest secretKey
#
# default: nil
attr_accessor :secret_key
# Read Timeout
#
# default: 2
attr_accessor :timeout
# Api Version
#
# defau... |
package RestTest::Controller::API::RPC::Any;
use Moose;
BEGIN { extends 'Catalyst::Controller::DBIC::API::RPC' }
use namespace::autoclean;
sub setup :Chained('/api/rpc/rpc_base') :CaptureArgs(1) :PathPart('any') {
my ($self, $c, $object_type) = @_;
my $config = {};
if ($object_type eq 'artist') {
$config->... |
import 'dart:async';
import 'package:flutter_plugin_example/model/contact.dart';
import 'package:content_provider/content_provider.dart';
import 'package:simple_permissions/simple_permissions.dart';
class ContactBloc {
StreamController<List<Contact>> _contactStreamController = StreamController();
StreamController<... |
package com.fengdu.mysql;
import org.apache.commons.lang.StringUtils;
/**
* 分页工具
*/
public class PageQuery {
private static final int MAX_PAGE_NO = 5000;
// 默认10
public static final int DEFAULTPAGE_SIZE = 10;
private int pageNo;
// 默认10
private int pageSize = DEFAULTPAGE_SIZE;
private int start;
privat... |
exclude :test_chdir, "needs investigation"
exclude :test_dir_enc, "needs investigation"
exclude :test_glob, "needs investigation"
exclude :test_glob_cases, "fails to return files with their correct casing (#2150)"
exclude :test_home, "needs investigation"
exclude :test_inspect, "needs investigation"
exclude :test_path,... |
package org.kevem.app
import org.kevem.common.conversions.bytesToString
import org.kevem.evm.model.Account
import org.kevem.rpc.LocalAccount
import org.kevem.eth.Mnemonic
import java.math.BigInteger
/**
* Generates the output when server is started listing generated accounts / balances etc.
*/
class StartupSummaris... |
<?php
class AutoLoader
{
private $prefixes;
function __construct()
{
$this->prefixes = array('', 'MOGUL/', 'MOGUL/Prefabs/', 'MOGUL/Math/', 'MOGUL/Map/');
spl_autoload_register(array($this, 'load'));
}
function load($classname)
{
foreach($this->prefixes as $prefix)
{
$path = $prefix . $cla... |
//----------------------------------------
// MIT License
// Copyright(c) 2019 Jonas Boetel
//----------------------------------------
public interface IRandom
{
/// returns a random value between 0 (inclusive) and maxValue (exclusive)
int Next(int maxValue);
}
|
class TopMomProducts::Scraper
def self.product_scraper
page = Nokogiri::HTML(open("https://www.babylist.com/hello-baby/best-baby-products"))
products = page.css(".product-section")
products.each do |p|
name = p.css(".product-title").text
price = p.css(".product-price").text
... |
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import { useState, useEffect } from 'react';
import Header from './components/Header';
import SiteCompile from './components/SiteCompile';
import Esports from './components/Esports';
import ErrorPage from './components/ErrorPage';
function App(... |
/*******************************************************************\
Module:
Author: Daniel Kroening, kroening@cs.cmu.edu
\*******************************************************************/
#include "language_util.h"
#include <memory>
#include <util/symbol_table.h>
#include <util/namespace.h>
#include <util/la... |
package org.infinispan.server.memcached
import org.testng.annotations.Test
import org.testng.Assert._
import org.infinispan.server.core.test.Stoppable
import org.infinispan.test.fwk.TestCacheManagerFactory
import org.infinispan.server.memcached.configuration.MemcachedServerConfigurationBuilder
/**
* Memcached server... |
import 'dart:async';
import 'package:beca_app/model/built_report.dart';
import 'package:beca_app/service/report_service.dart';
import 'package:beca_app/utils/local_store_keys.dart';
import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:meta/meta.dart';
import 'package:shared_prefe... |
/*
* File Layout for: BI.BI_PATIENT on 21-May-01
*
* Patient File
*/
#pragma member_alignment save
#pragma nomember_alignment
struct bi_patient_cdd
{
/* Element = INSURED
Description = Insured */
char insured[10];
/* Element = PATIENT
Description = Patient Number */
char patient[10];
/* Element = FAMRELAT... |
#! /use/bin/ruby
class CodeLib
def initialize(target)
@target = target
@snipets = {}
@level = 0
end
def snipet(name, text)
@snipets[name] = text
end
# Used to generate a shader definition
def shader(name, text)
@target.puts " static const char * #{name} ="
text.each do |line|
... |
# Plato::LED class
assert('LED', 'class') do
assert_equal(Plato::LED.class, Class)
end
assert('LED', 'superclass') do
assert_equal(Plato::LED.superclass, Plato::DigitalIO)
end
assert('LED', 'new') do
l1 = Plato::LED.new(0)
l2 = Plato::LED.new(0, true)
l3 = Plato::LED.new(0, false, :high)
assert_true(l1 &... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
using Azure.ResourceManager.Resources.Models;
namespace Azure.ResourceManager.Compute.Models
{
/// <summary> The CloudServiceVaultAndSecretRefere... |
Hanami::Model.migration do
change do
alter_table :rooms do
add_column :created_at, DateTime, null: false
add_column :updated_at, DateTime, null: false
add_column :game_started, :boolean, default: false
drop_column :players
end
end
end
|
// Generated by scripts/update_version - do not edit
#ifndef DUST_RANDOM_VERSION_HPP
#define DUST_RANDOM_VERSION_HPP
#define DUST_VERSION_MAJOR 0
#define DUST_VERSION_MINOR 11
#define DUST_VERSION_PATCH 21
#define DUST_VERSION_STRING "0.11.21"
#define DUST_VERSION_CODE 1121
#endif
|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class purchaseController extends Controller
{
public function display($id) {
return 'Compra '.$id;
}
public function displayEmpty() {
return 'ID vazio';
}
public function buyStatus($userId,$buyId) {
return 'Us... |
var module = [
{
name: 'address',
module: require('vux-components/address')
},
{
name: 'cell',
module: require('vux-components/cell')
},
{
name: 'alert',
module: require('vux-components/alert')
},
{
name: 'checklist',
module: require('vux-components/checklist')
},
{
... |
# emmet-jsx-css-modules package
Atom package to extend Emmet's JSX expansions to use CSS modules.
For example: `.foo` will now expand to `<div className={style.foo}></div>` instead of `<div className="foo"></div>`.
## TODO
- [x] Allow the `style` variable name to be customized via Atom's preferences.
|
#!/bin/sh -e
# TODO: Implement caching
# Preemptively ignore the largest directories that would be ignored by Git
find . -type "f" \
! -path "./.git/*" \
! -path "./.venv/*" |
sed 's,./,,' | sort | while read -r file; do
# Skip any files ignored by Git
if git check-ignore "${file}" >/dev/null; the... |
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.M... |
# 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 u... |
mod arg;
use arg::DbusArg;
mod event;
pub use event::Event;
mod prop;
use prop::Property;
use crate::logic::{
BaseInfo,
BaseState,
DeviceMode,
DeviceType,
LatchStatus,
};
use std::collections::HashMap;
use std::sync::Arc;
use anyhow::{Context, Result};
use dbus::{Message, arg::{RefArg, Varian... |
import {CGFobject} from '../lib/CGF.js';
/**
* MyQuad
* @constructor
* @param {MyScene} scene - Reference to MyScene object
* @param {Array} coords - Array of texture coordinates (optional)
*/
export class MyQuad extends CGFobject {
constructor(scene) {
super(scene);
this.initBuffers();
}
initBuffers() {
... |
package com.burrito.matic.product;
import com.burrito.matic.inventory.Ingredient;
import net.jcip.annotations.NotThreadSafe;
/**
* Encapsulates the rules for an A la CarteRule burrito product.
*
* @author ewarner
*
*/
@NotThreadSafe
public class AlaCarteRule extends BurritoProductRule implements ProductRule {
... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Description extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->helper(array('url','form'));
$this->load->model('Data_model');
}
public function index($id_exam)
{
$data['select_exam']... |
# Copyright (C) 2008-2010, Sebastian Riedel.
package Mojolicious::Plugin::EpRenderer;
use strict;
use warnings;
use base 'Mojolicious::Plugin';
use Mojo::ByteStream 'b';
use Mojo::Template;
# What do you want?
# I'm here to kick your ass!
# Wishful thinking. We have long since evolved beyond the need for asses.
su... |
/**
* This file is automatically created by Recurly's OpenAPI generation process and thus any edits you
* make by hand will be lost. If you wish to make a change to this file, please create a Github
* issue explaining the changes you need and we will usher them to the appropriate places.
*/
package com.recurly.v3.r... |
#!/bin/bash
rm -rf .libs_mssql/ .libspymssql/ archives/ etc/ lib/ pymssql-*-info usr/ *.so *.pyc __pycache__/ |
(defproject zen-arcadia "1.0.0-SNAPSHOT"
:description "Zen arcadia"
:url "http://zen-arcadia.herokuapp.com"
:license {:name "Eclipse Public License v1.0"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[compojure "1.4.... |
package com.liuguilin.kotlintools.ui.fragment
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.liuguilin.kotlintools.R
import com.liuguilin.kotlintools.bean.WeatherBean
import com.liuguilin.kotlintools.event.Even... |
# Setup integration system for the integration suite
Dir.chdir "#{File.dirname(__FILE__)}/integration/app/" do
pid_file = '/tmp/sphinx/searchd.pid'
if File.exist? pid_file
pid = File.read(pid_file).to_i
system("kill #{pid}"); sleep(2); system("kill -9 #{pid}")
end
system("rm -rf /tmp/sphinx")
... |
<?php
namespace Acts\CamdramBundle\Entity;
use Doctrine\ORM\EntityRepository;
/**
* TimePeriodRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class TimePeriodRepository extends EntityRepository
{
public function findAt(\DateTime $date)
{
... |
use std::sync::Arc;
use serde_json::{json, Value};
use crate::behaviour::entity::operation::LogicalOperation;
use crate::behaviour::entity::operation::LogicalOperationProperties;
use crate::behaviour::entity::operation::LOGICAL_OPERATIONS;
use crate::model::{DataType, EntityInstance, EntityType, PropertyType, Reactiv... |
# Copyright (C) 2016 Colin Fulton
# All rights reserved.
#
# This software may be modified and distributed under the
# terms of the three-clause BSD license. See LICENSE.txt
# (located in root directory of this project) for details.
require 'tet'
require_relative '../mismatch'
module Lextacular
group Mismatch do
... |
/*\
title: $:/plugins/noteself/core/constants
type: application/javascript
module-type: library
Constants used to name events and config tiddlers similar stuff
@preserve
\*/
/*jslint node: true, browser: true */
/*global $tw: false */
'use strict';
const {SYNC_STATE} = require('$:/plugins/danielo515/tiddlypouch/c... |
require "commander"
require "net/http"
require "yaml"
require "json"
require 'active_support/core_ext/hash/indifferent_access'
module Pfab
class CLI
include Commander::Methods
def run
program :name, "pfab"
program :version, Pfab::Version::STRING
program :description, "k8s helper"
if... |
export { createMockStore } from './utils/StoreMock';
export { createMockDispatch } from './utils/DispatchMock';
|
package com.deer.wms.detect.model;
import com.deer.wms.project.seed.core.service.QueryParams;
/**
* Created by guotuanting on 2019/08/28.
*/
public class MtAloneSampleClothOutDetParams extends QueryParams {
}
|
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Cis194.Hw.Scrabble where
import Data.Char
import Data.List
newtype Score = Score Int
deriving (Eq, Ord, Show, Num)
instance Monoid Score where
mempty = Score 0
mappend = (+)
score :: Char -> Score
score ch
| oneOf "aeilnorstu" = 1
| oneOf "dg" = 2
| on... |
# Documentation
#### Trello :
https://trello.com/devops20191
#### Base :
Mise à jour : `pull`
Enregistrement modification : `commit` & `push` |
//! # Lookup
//!
//! Lookup tables for string helper
/**
* MIT License
*
* Copyright (c) 2020 magiclen.org (Ron Li)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restricti... |
package OpenTracing::Implementation::DataDog::ScopeManager;
=head1 NAME
OpenTracing::Implementation::DataDog::ScopeManager - Keep track of active scopes
=head1 SYNOPSIS
my $span = $TRACER->build_span( ... );
my $scope_manager = $TRACER->get_scope_manager;
my $scope = $scope_manager->build_sc... |
<?php
/**
* Created by PhpStorm.
* User: gt
* Date: 19-2-10
* Time: 下午2:50
*/
crud_router_set('admin/sysconfig'); |
#!/bin/bash
#================================================================
# HEADER
#================================================================
#% SYNOPSIS
#+ ${SCRIPT_NAME}
#%
#% DESCRIPTION
#% This script is checking for running miners
#% if no miners are found, start script will be
#% executed. ... |
<?php
namespace App\Http\Controllers\Api\Admin;
use App\Http\Controllers\Controller;
use App\Mail\InvitationMail;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Mail;
use Validator;
class InvitationController extends Controller
{
public func... |
#!/bin/bash
set -ev
docker run --rm -e PLAT=$PLAT -e PKG_VERSION=$PKG_VERSION \
-v `pwd`:/io quay.io/pypa/$PLAT \
$PRE_CMD /io/contrib/build_wheels_linux.sh
|
function b64DecodeUnicode(str) {
return decodeURIComponent(window.atob(str).replace(/(.)/g, (m, p) => {
let code = p
.charCodeAt(0)
.toString(16)
.toUpperCase();
if (code.length < 2) {
code = `0${code}`;
}
return `%${code}`;
}));
}
export default function (str) {
let outpu... |
<?php
namespace Cradle\Http\Request;
use PHPUnit\Framework\TestCase;
use Cradle\Data\Registry;
/**
* Generated by PHPUnit_SkeletonGenerator on 2016-07-28 at 11:36:34.
*/
class Cradle_Http_Request_RouteTrait_Test extends TestCase
{
/**
* @var RouteTrait
*/
protected $object;
/**
* Sets u... |
namespace HtmlDocument.UnitTests
{
using System.Text;
using HtmlStringWriter.Attributes.Style.TextAlign;
using HtmlStringWriter.StaticClasses;
using NUnit.Framework;
public class TextAlignCenterTests
{
private TextAlignCenter _textAlignCenter;
[SetUp]
public void Setup(... |
# How to release new versions of Apify SDK
Release of new versions is managed by GitHub Actions. On pushes to the `master` branch, prerelease versions
are automatically produced. Latest releases are triggered manually through the GitHub release tool.
After creating a release there, Actions will automatically produce a ... |
type EnvVar = Map<string, string>;
export class InputStream {
constructor() {}
}
export class OutputStream {
constructor() {}
}
export class Process {
private _uid: i32;
private _cwd: string;
public argv: string[];
public cmd: string;
public argv0: string;
public stdout: OutputStream;
public stdin:... |
# $NetBSD: t_dotcmd.sh,v 1.2 2016/03/27 14:57:50 christos Exp $
#
# Copyright (c) 2014 The NetBSD Foundation, Inc.
# All rights reserved.
#
# This code is derived from software contributed to The NetBSD Foundation
# by Jarmo Jaakkola.
#
# Redistribution and use in source and binary forms, with or without
# modification... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Web.Mvc;
using MvcContrib.FluentHtml.Behaviors;
using MvcContrib.FluentHtml.Html;
namespace MvcContrib.FluentHtml.Elements
{
/// <summary>
/// Base class for HTML elements.
/// </summary... |
package app.web.drjackycv.domain.base
sealed class Failure(var msg: String?, var retryAction: () -> Unit) : Throwable() {
class Api(msg: String? = null) : Failure(msg, {})
class Timeout(msg: String? = null) : Failure(msg, {})
class NoInternet(msg: String? = null) : Failure(msg, {})
class Unknown(ms... |
#!/usr/bin/env zsh
#
#
set -u -e -o pipefail
case "$1" in
watch)
exec sudo -u production_user --preserve-env da_dev watch
;;
reset)
bin/megauni migrate reset
exec sudo -u production_user --preserve-env bin/megauni migrate force
;;
migrate)
exec sudo -u production_user --preserve-env bi... |
---
lang: NL
title: De zoete vruchten van je eigen creatie
answer: ^Een heks is getemd
ok: Dat zal ze leren
error:
load: def tem( aantal_heksen );aantal_heksen.times{puts "Een heks is getemd"};end;
---
En zo worden nieuwe methodes geboren.
Ik wil 'em meteen gebruiken:
tem 5
|
// CC 4.0 International License: Attribution--HolisticGaming.com--NonCommercial--ShareALike
// Authors: David W. Corso
// Start: 07/23/2017
// Last: 04/26/2021
using UnityEngine;
using UnityEngine.UI;
// Set & control the overall volume
public class VolumeManager : MonoBehaviour
{
public SaveGame saved;
pub... |
package de.fayard.refreshVersions.core.internal
import de.fayard.refreshVersions.core.ModuleId
import de.fayard.refreshVersions.core.extensions.okhttp.await
import okhttp3.OkHttpClient
import okhttp3.Request
import retrofit2.HttpException
import retrofit2.Response
internal class MavenDependencyVersionsFetcherHttp(
... |
using System;
using System.Collections.Generic;
namespace GameMain
{
/// <summary>
/// 属性接口
/// </summary>
public interface IAttribute
{
/// <summary>
/// 初始化属性值
/// </summary>
void InitAttribute();
/// <summary>
/// 获取属性值
/// </summary>
... |
using System;
using System.Collections.Generic;
namespace P05_Cars
{
public class Program
{
public static void Main(string[] args)
{
ICar car1 = new Seat() { Model = "Leon", Color = "red" };
ICar car2 = new Tesla() { Model = "Model 3", Color = "black" };
ICa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.