text
stringlengths
27
775k
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-} module GCL.Exec.ExNondet where import Control.Arrow ( (***) ) import Control.Monad.Except import Control.Monad.State hiding ( guard ) import GHC.Base ( Alternative(..) ) import...
<?php require_once('hibbity/dbinfo.php'); if( USER_LEVEL < IMAGE_EDIT ) { exit(); } $x = mysql_real_escape_string($_POST['x']); $y = mysql_real_escape_string($_POST['y']); $width = mysql_real_escape_string($_POST['width']); $height = mysql_real_escape_string($_POST['height']); $text = strip_tag...
<?php namespace LTAV\Taxonomies; // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) { exit; } // Register Custom Post Type class Country { private static $instance; public static function getInstance() { if( null == self::$instance ) { self::$instance = new Country(); } // end if return self::$ins...
package structs import "encoding/xml" // PCardTypesResponse is a response to all pcard_types request type PCardTypesResponse struct { Answer PCardTypesAnswer `xml:"answer"` XMLName xml.Name `xml:"sirena" json:"-"` } // PCardTypesAnswer is an <answer> section in all pcard_types response type PCardTypesAnsw...
package io.scalecube.cluster; import static com.google.common.base.Preconditions.checkArgument; import io.scalecube.transport.Address; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.Objects; import javax.annotation.concurrent.Immutable; /** * Cluster member which re...
# sgkit Statistical genetics toolkit [Documentation](https://pystatgen.github.io/sgkit/)
package io.tolgee import io.tolgee.configuration.tolgee.TolgeeProperties import io.tolgee.service.StartupImportService import org.springframework.boot.CommandLineRunner import org.springframework.context.ApplicationListener import org.springframework.context.event.ContextClosedEvent import org.springframework.stereoty...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Wraps : MonoBehaviour { private Renderer[] renderers; private Camera cam; private LevelBoundaries levelBoundaries; private bool isWrappingX = false; private bool isWrappingZ = false; private Rect gameBo...
package com.sjani.usnationalparkguide.UI.Details.Alerts; import android.content.Context; import android.database.Cursor; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.sjani.usnationalparkguide.Data.AlertEntity; import ...
/** @brief ブート。 */ /** Scene */ namespace Scene { /** Boot */ public sealed class Boot : BlueBack.Scene.Scene_Base { /** endflag */ public bool endflag; /** [BlueBack.Scene.Scene_Base]シーン名。 */ public string GetSceneName() { return null; } /** [BlueBack.Scene.Scene_Base]前シーン。終了。初回。 */ ...
package com.imooc.scala import org.apache.spark.storage.StorageLevel import org.apache.spark.{SparkConf, SparkContext} /** * 需求:Kryo序列化的使用 * Created by xuwei */ object KryoSerScala { def main(args: Array[String]): Unit = { val conf = new SparkConf() conf.setAppName("KryoSerScala") .setMaster("loca...
import styles from "./AboutItem.module.css"; const AboutItem = ({ question, answers, image, order }) => { return ( <div className={styles.wrapper}> <h1 className={styles.title}>{question}</h1> {answers.map((answer, index) => { return <p key={index}>{answer}</p>; })} </div> ); }; ...
# encoding: UTF-8 require 'spec_helper' describe Coder do describe :clean do it 'cleans up UTF-8 strings without having to specify the encoding' do Coder.clean("yummy\xE2 \xF0\x9F\x8D\x94 \x9F\x8D\x94").should binary_equal("yummy 🍔 ") end it 'allows specifying the encoding' do Coder.clean("...
<?php namespace Nmotion\BackofficeBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class DefaultController extends Controller { public function indexAction() { $optimizedDefault = $this->get('kernel')->getEnvironment() !== 'local'; $appCacheDefault = $th...
# use this machine HOST_IPADDR='192.168.1.40' # test intranet against this machine IPERF_HOST='192.168.1.50' # use port 80, not 8123 echo '80' > HOST_PORT # use this MQTT broker with these credentials echo "${HOST_IPADDR}" > MQTT_HOST echo 'username' > MQTT_USERNAME echo 'password' > MQTT_PASSWORD # name device uni...
var module = angular.module('commafeed.directives', []); module.directive('focus', ['$timeout', function($timeout) { return { restrict : 'A', link : function(scope, element, attrs) { scope.$watch(attrs.focus, function(value) { if (!value) return; $timeout(function() { $(element).foc...
<?php declare(strict_types=1); /* * This file is part of the package bk2k/bootstrap-package. * * For the full copyright and license information, please read the * LICENSE file that was distributed with this source code. */ namespace BK2K\BootstrapPackage\Tests\Functional\Parser; use BK2K\BootstrapPackage\Servic...
const utils = require('@midgar/utils') /** * CacheCli class * Add cli command to manage cache * * commands: * - cache:clean * - cache:cleanAll */ class CacheCli { constructor (midgar, cacheService) { this.midgar = midgar if (!this.midgar.cli) { throw new Error('The cli is not register'...
function Add(){ alert ("Do you want to add tickets?") } export default Add;
package pocketcli import ( "context" "errors" "net/http" "testing" ) type httpClientMock struct { DoFunc func(*http.Request) (*http.Response, error) } func (m *httpClientMock) Do(r *http.Request) (*http.Response, error) { return m.DoFunc(r) } func TestNew(t *testing.T) { t.Run("should return a new client wit...
package pl.writeonly.babel.akka import akka.actor.Actor import akka.actor.ActorLogging import akka.event.LoggingReceive import pl.writeonly.babel.entities.Relation import pl.writeonly.babel.dtos.RelationsDto //aktor do odbierania komunikatów od class RelationActor extends Actor with ActorLogging{ def receive = Lo...
// Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE.md file. // // This sample illustrates how Dartino programs can interface with existing // native code. For ...
using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore; using VoiceStickerBot.Data.Abstract; namespace VoiceStickerBot.Data.Repositories { public class EntityRepository<T>: IEntityRepository<T> where T : c...
import { Command, flags } from '@oclif/command'; import { promises as fs } from 'fs'; import Folder = require('./interfaces/folder'); import Postman = require('./interfaces/postman'); import { read } from './configReader'; import path = require('path'); class OpConverter extends Command { static description = 'Ope...
package com.wallace.demo.rest.sever.demo.common /** * Created by 10192057 on 2018/4/23 0023. */ trait Using extends LogSupport { protected def using[A <: {def close() : Unit}, B](param: A)(f: A => B): B = try { f(param) } finally { param.close() } }
using HelpMyStreet.Utils.Enums; using HelpMyStreet.Utils.Extensions; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HelpMyStreet.Utils.Models { public class RequestSummary : IContainsLocation { public Shift Shift { get; set; } public List<JobSum...
#!/bin/bash # sample exports that need to be set before everything will work # Triggering change to trigger save in DevOps some more changes export CLOUDNOMICS_REGION="northeurope" export CLOUDNOMICS_OUTPUT_PATH="../output/"
This is no longer maintained. Sorry. # remove-fb-ads Browser add-on to remove ads from facebook. Works with Firefox. [Add to Firefox here](https://addons.mozilla.org/en-US/firefox/addon/remove-fb-ads/)
#ifndef DISH_HISTORY_H #define DISH_HISTORY_H #include <vector> #include <cstdlib> #include <cstring> #include <string> #include <iostream> #include <fstream> using namespace std; class History_elem{ public: int line_number; char *command; History_elem *prev; History_elem *next; History_elem(); ...
# frozen_string_literal: true require "spec_helper" describe DataMigrate::StatusService do let(:subject) { DataMigrate::SchemaDumper } let(:db_config) do { adapter: "sqlite3", database: "spec/db/test.db" } end let(:service) { DataMigrate::StatusService } context "table does not exists" d...
# census-wrangling tools, tips, and tricks for accessing the data provided by the US Census
package uk.gov.hmrc.agentaccesscontrol.connectors.afi import play.api.test.Helpers._ import uk.gov.hmrc.agentaccesscontrol.connectors.AfiRelationshipConnector import uk.gov.hmrc.agentaccesscontrol.support.{MetricTestSupportAppPerSuite, WireMockWithOneAppPerSuiteISpec} import uk.gov.hmrc.agentmtdidentifiers.model.Arn i...
#! /bin/bash echo "Run with following values:" echo "MONGODB_URI: $MONGODB_URI" echo "MASTER_KEY: $MASTER_KEY" echo "APP_ID: $APP_ID" docker run \ --name davegee-words \ -p 8080:1337 \ -d davegee/words
package com.utradia.catalogueappv2.module.storedetail.more_options.openhours import android.os.Bundle import androidx.recyclerview.widget.LinearLayoutManager import android.view.View import android.widget.LinearLayout import androidx.recyclerview.widget.RecyclerView import com.utradia.catalogueappv2.R import com.utrad...
<?php namespace App\Entity\Fixture; use App\Entity; use Doctrine\Common\DataFixtures\AbstractFixture; use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Persistence\ObjectManager; class StationMount extends AbstractFixture implements DependentFixtureInterface { public function load(ObjectMa...
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Presupuestos.cts { public class ProjectionKg { public string NumOrdem { get; set; } public string IdLote { get; set; } public string Lote { get; set; } public int? CantidadUnidades { ...
const name = 'Lior', age = 24, male = true const sayHi = (name: string, age: number, male?: boolean): string => { if (male === undefined) return `Hello ${name}, you are ${age} years old` if (male) return `Hello ${name}, you are a ${age} year old male` return `Hello ${name}, you are a ${age} year old female`...
import { configureStore, combineReducers } from "@reduxjs/toolkit"; import { markerReducer, uiReducer } from "./reducers"; const reducers = combineReducers({ markers: markerReducer, ui: uiReducer, }); const store = configureStore({ reducer: reducers, }); export default store;
package container import ( "path" "github.com/deref/exo/internal/manifest/exohcl" "github.com/deref/exo/internal/providers/docker" "github.com/deref/exo/internal/providers/docker/compose" "github.com/docker/docker/api/types/strslice" ) type Container struct { docker.ComponentBase State State SyslogPort uin...
import System.Time main = putStrLn $ calendarTimeToString $ toUTCTime $ TOD 0 0
module DifferentiableFunctionsTests using Test using ProximalBase using Random using LinearAlgebra Random.seed!(1) @testset "L2Loss" begin x = randn(5) y = randn(5) f1 = L2Loss() f2 = L2Loss(y) @test value(f1, x) ≈ sum(abs2,x)/2. @test value(f2, x) ≈ sum(abs2,x-y)/2. hat_x = similar(x) @test valu...
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace App\Utils; use Symfony\Component\HttpFoundation\Response; use Lexik\Bundle\JWTAuthenticationBundle\Event\Authenticat...
#!/bin/bash first_thing_to_be_run \ && second_thing_to_be_run \ && third_thing_to_be_run \ && forth_and_last_thing_to_be_run number=$RANDOM case ${number} in 5) echo "Lucky number" ;; 7) echo "Lucky number" ;; *) echo "It may not be a lucky number" ;; esac
func generateMatrix(n int) [][]int { if n <= 0 { return nil } var result = make([][]int, n) for i := 0; i < n; i++ { result[i] = make([]int, n) } num := 1 nRound := n / 2 if nRound*2 != n { nRound = nRound + 1 } for nr := 0; nr < nRound; nr++ { tmpLen := n - 2*nr - 1 if tmpLen == 0 { //奇数,圈只有一个 ...
/* * Copyright (C) 2016-2021 Grok Image Compression Inc. * * This source code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This source code is distributed in th...
package jfrog import ( "bytes" "encoding/json" "errors" "fmt" "io" "io/ioutil" "net/http" "strconv" "strings" common_http "github.com/goharbor/harbor/src/common/http" "github.com/goharbor/harbor/src/common/http/modifier" "github.com/goharbor/harbor/src/common/utils/log" "github.com/goharbor/harbor/src/co...
describe PerformancePlatform::Presenter::RoamingUsers do before do Timecop.freeze(Date.new(2018, 2, 1)) ENV["PERFORMANCE_DATASET"] = "some-dataset" end let(:gateway_results) do { metric_name: "some-metric-name", roaming: 100, active: 200, period: "week", } end it "pre...
<?php declare(strict_types=1); namespace CloverReporter\Console; use Symfony\Component\Console\Style\SymfonyStyle; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use function mb_strlen; class Style extends Sym...
import 'package:pogo/src/entities/game_entity.dart'; import 'package:pogo/src/components/timer_component.dart'; export 'package:pogo/src/entities/game_entity.dart'; export 'package:pogo/src/components/timer_component.dart'; /// A [GameEntity] containing a [TimerComponent]. /// /// This creates a prefabricated entity ...
# Copyright (C) The Arvados Authors. All rights reserved. # # SPDX-License-Identifier: AGPL-3.0 PERMISSION_VIEW = "materialized_permission_view" def do_refresh_permission_view ActiveRecord::Base.transaction do ActiveRecord::Base.connection.execute("LOCK TABLE permission_refresh_lock") ActiveRecord::Base.con...
namespace RabbitMQAzureMetrics.Consumer { using System.Threading; using System.Threading.Tasks; using RabbitMQAzureMetrics.MetricsValueConverters; public interface IMetricConsumer { Task<MetricValueCollectionWrapper> ConsumeAsync(CancellationToken cancellationToken = default); } }
INSERT INTO entrys(eyuuid, eyparentuuid, uruuid) VALUES (UUID_TO_BIN(:uuid), UUID_TO_BIN(:parentuuid), UUID_TO_BIN(:useruuid)); INSERT INTO folders(eyuuid, fdname) VALUES (UUID_TO_BIN(:uuid), :name); INSERT INTO history(hruuid, eyuuid, uruuid, hrdatetime, hrtype) VALUES (UUID_TO_BIN(UUID()), UUID_TO_BIN(:...
require File.expand_path '../../../lib/sok', File.dirname(__FILE__) include Kabu class Sma65Cc3 def decide(env) code = env[:code] date = env[:date] closes = env[:closes] open = env[:open] position = env[:position] aves = closes[-67..-1].ave(65) is_buy = 3.times.inject(true) do |ret, i| ...
--- title: Chyba sestavení projektu PRJ0014 ms.date: 11/04/2016 f1_keywords: - PRJ0014 helpviewer_keywords: - PRJ0014 ms.assetid: b08c6df1-1df1-4573-9fca-49de6c5a0c17 ms.openlocfilehash: e23e259f4a0ff6f70b260d497ceb563dd07c8cfc ms.sourcegitcommit: 857fa6b530224fa6c18675138043aba9aa0619fb ms.translationtype: MT ms.conte...
module Cmor module Testimonials # Example: # # # app/controllers/application_controller.rb # class ApplicationController < ActionController::Base # view_helper Cmor::Testimonials::ApplicationViewHelper, as: :testimonials_helper # end # class ApplicationViewHelper < Ra...
pub mod parser; pub mod expressions; pub mod storage; use db::Database; use db::schema::{Type, Schema}; use db::stream::Stream; use db::row::RowBuilder; fn get_sample_schema() -> Schema { let mut s = Schema::new(); s.add_type("name", Type::String); s.add_type("age", Type::Int); s } fn create_test_d...
/* * Copyright (c) 2014. Pokevian Ltd. * * 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 by applicable law or ag...
export const SET_POSITION = 'SET_POSITION' export const setPosition = (position) => { return { type: SET_POSITION, position } } export const fetchPosition = () => { return (dispatch) => { window.navigator.geolocation.getCurrentPosition( ({ coords }) => { const position = { la...
#' @title myrepo #' @description set repository - changed to function, since it was working as part of a package #' @family abysmally documented #' @author unknown, \email{<unknown>@@dfo-mpo.gc.ca} #' @export myrepo <-function(){ myrepo = getOption('repos') myrepo["CRAN"] = 'http://stat.ethz.ch/CRAN/' op...
var NAVTREEINDEX62 = { "graph__mobilenet_8cpp_source.xhtml":[9,0,2,12], "graph__mobilenet__v2_8cpp.xhtml":[9,0,2,13], "graph__mobilenet__v2_8cpp.xhtml#a3c04138a5bfe5d72780bb7e82a18e627":[9,0,2,13,0], "graph__mobilenet__v2_8cpp_source.xhtml":[9,0,2,13], "graph__resnet12_8cpp.xhtml":[9,0,2,14], "graph__resnet12_8cpp.xhtm...
package de.rki.coronawarnapp.qrcode.handler import de.rki.coronawarnapp.covidcertificate.common.exception.InvalidHealthCertificateException import de.rki.coronawarnapp.covidcertificate.common.qrcode.DccQrCode import de.rki.coronawarnapp.covidcertificate.common.repository.CertificateContainerId import de.rki.coronawarn...
#!/bin/sh # generate migration for local environment yarn migrate:dev:create # run migrations in local environment yarn migrate:dev # development mode yarn start:dev
<?php defined('BASEPATH') OR exit('No permitido acceso directo al script.'); class Clientes extends CI_Controller { public $title = 'Clientes'; public function __construct() { parent::__construct(); if(!is_logged_in()){ redirect('login'); ...
<?php namespace spec\MeadSteve\DiceApi\Dice\Factories; use MeadSteve\DiceApi\Dice\BasicDice; use MeadSteve\DiceApi\Dice; use MeadSteve\DiceApi\Dice\Factories\NumericDiceFactory; use MeadSteve\DiceApi\Dice\Factories\SpecialDiceFactory; use MeadSteve\DiceApi\Dice\UncreatableDiceException; use PhpSpec\ObjectBehavior; us...
import fs from 'fs'; const SRC_DIR = __dirname + '/../src'; const PRISMA_FILE = __dirname + '/../prisma/schema.prisma'; const SERVER_DIR = __dirname + '/../src/server'; const ROUTER_DIR = SERVER_DIR + '/routers'; const HOOKS_DIR = __dirname + '/../src/hooks'; if (!fs.existsSync(ROUTER_DIR)) { fs.mkdirSync(ROUTER_DIR...
/// Generated by Flutter GetX Starter on ${.now?string("yyyy-MM-dd HH:mm")} import '../../../gen/json/base/json_convert_content.dart'; class Result<T> { T data; int code; String msg; Result({this.data, this.code, this.msg}); Result.fromJson( Map<String, dynamic> json, { List msgAlias = const ["msg"...
require_relative 'github-status/check' require_relative 'github-status/in' require_relative 'github-status/out' require_relative 'github-status/version'
const {toType} = require('./modules/toType'); const {isSchema} = require('./modules/isSchema'); const validators = require('./modules/validators'); const {applyValidators} = require('./modules/applyValidators'); const {validate} = require('./modules/validate'); module.exports = {toType, isSchema, validators, applyVali...
@extends ('layouts.superadmin') @section ('content') <div class="content-wrapper"> <div class="container-fluid"> <!-- Breadcrumbs--> <ol class="breadcrumb"> <li class="breadcrumb-item"> <a href="#">Dashboard</a> </li> <li class="breadcrumb-item active">Profil Super Admin</li...
from fabric.api import * from getpass import getpass cont = 0 info = {} def get_info(root=False): try: global info if not info: info['username'] = raw_input('username: ') info['password'] = getpass('password: ') if root: info['pass_root'] = getpass('root password: ') info['com...
-- @testpoint:opengauss关键字Array(保留),作为字段数据类型(合理报错) --前置条件 drop table if exists Array_test cascade; --关键字不带引号-合理报错 create table Array_test(id int,name Array); --关键字带双引号-合理报错 create table Array_test(id int,name "Array"); --关键字带单引号-合理报错 create table Array_test(id int,name 'Array'); --关键字带反引号-合理报错 create table Array_...
<?php namespace App\Http\Requests\Acl\Vendor; use Illuminate\Foundation\Http\FormRequest; class CreateRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** ...
/* SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _OBJTOOL_ENDIANNESS_H #define _OBJTOOL_ENDIANNESS_H #include <arch/endianness.h> #include <linux/kernel.h> #include <endian.h> #ifndef __TARGET_BYTE_ORDER #error undefined arch __TARGET_BYTE_ORDER #endif #if __BYTE_ORDER != __TARGET_BYTE_ORDER #define __NEED_BS...
Simple USD(Z) dump tool. Assume this project is built from tinyusdz root(../../)
package main func main() { NewSystemParams("hello", "world") }
# GoogleAppScripts Here I store copies of scripts I've made in [Google Apps Script][1]. Google Apps Script is a really awesome way to automate a lot of thing you might want to do with GMail, Drive, Google Docs, etc. (Or even just do stuff that's impossible through the native UI interfaces.) [1]: http://www.google.c...
<?php /** * Created by PhpStorm. * User: tangjun <tangjun@misrobot.com> * Date: 2015年12月15日 * Time: 11:18:06 */ namespace App\Entities\Sys; use Illuminate\Database\Eloquent\Model; class SysPermissionMenu extends Model { protected $connection = 'sys'; protected $table = 'sys_permission_menu'; pro...
# frozen_string_literal: true class Item < Base belongs_to :organization has_many :stores scoped_to :organization end
export {}; // disable implicit exporting of types type Unpromise<T> = T extends Promise<infer U> ? U : T;
# Changelog ## 1.0.5 * Added missing customShadowRoot TypeScript definition ## 1.0.4 * Fixed customShadowRoot ## 1.0.2 * Updated Aurelia plugin require ## 1.0.1 * Release ## 0.0.2 * Combined all other protractor plugins ## 0.0.1 * Initial Commit
import 'package:filcnaplo/generated/i18n.dart'; import 'package:filcnaplo/ui/card.dart'; import 'package:filcnaplo/ui/cards/evaluation/card.dart'; import 'package:filcnaplo/ui/cards/message/card.dart'; import 'package:filcnaplo/utils/format.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/materia...
package typingsSlinky.paper.global.paper import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @JSGlobal("paper.Key") @js.native class Key () extends typingsSlinky.paper.paper.Key ...
package io.fabric8.launcher.osio; import java.util.logging.Level; import java.util.logging.Logger; import javax.enterprise.event.Event; import javax.inject.Inject; import javax.validation.Valid; import javax.ws.rs.BeanParam; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.w...
# Validates every row matches the provided schema. Rejects any which fail. class ProductImport::Transforms::ValidateAgainstSchema < ProductImport::Framework::Transform def transform_step(row) begin RSchema.validate!(opts[:schema], row) continue row # poss: here validate and copy rescue => e ...
# [Finding links in HTML documents (Gophersices)](https://github.com/gophercises/link) ## Task Given an HTML document, return the links as a list. For example, consider: ```html <html> <head> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> </head> <body>...
from typing import overload import pycuda.tools as ct import pycuda.driver as cuda import pycuda.autoinit from pycuda.compiler import SourceModule import pycuda.gpuarray as ga import numpy import math import os import argparse from jinja2 import Template class KernelImplement: def __init__(self, func: str, c_arg...
<?php class UploadImges_IM { // đường dẫn ổ đĩa public static $UrlUpload; // đường dẫn sever sử lý public static $Sever; // luu session $UrlUpload; public $SessionUrlUpload; // luu session $SessionSever; public $SessionSever; function __construct() { $this->SessionSever = "Session...
module.exports = { moduleNameMapper: { "src/.*": "<rootDir>/dist/immer.esm.js" }, testURL: "http://localhost", globals: { USES_BUILD: true, "ts-jest": { tsConfig: { noUnusedLocals: false } } }, preset: "ts-jest/presets/js-with-ts", testEnvironment: "node", testMatch: ["**/__tests__/**/*.[jt]s?...
// // NSDictionary+GSNGeometryType.h // JSONStage // // Created by Adi Mathew on 7/5/14. // Copyright (c) 2014 RCPD. All rights reserved. // #import "GSNObjectTypes.h" @interface NSDictionary (GSNObjectMethods) /** Returns the NS_ENUM value of the Object type contained IFF it is a legal GEOJSON geometry type. ...
INSERT INTO burgers (burger_name, devoured) VALUES ("Double Cheeseburger", true), ("Bacon Cheese burger", false), ("Mac & Cheese Burger", false), ("Bacon & Blue Cheese Burger", true);
![](./PREREQUISITES/images/xilinx_sdaccel_logo.png) # Getting Started with 2018.2 SDAccel™ Development Environment on AWS F1 [Get Started with C/C++ Kernels in 5 Steps](CPP/README.md) </br> </br> [Get Started with RTL Kernels in 5 Steps](RTL/README.md) <br/> <br/> <br/> <hr/> <p align="center"><sup>Copyright&copy; ...
require 'bolt/error' # Parses common ways of referring to targets and returns an array of Targets. # # Accepts input consisting of # - a group # - a target URI # - an array of groups and/or target URIs # - a string that consists of a comma-separated list of groups and/or target URIs # # Examples of the above would be ...
import java.util.* fun main(args: Array<String>) { val scanner = Scanner(System.`in`) val line = scanner.nextLine() val index = scanner.nextInt() println("Symbol # $index of the string \"$line\" is '${line[index - 1]}'") }
from typing import * if TYPE_CHECKING: from board import Board class Field: def __init__(self: "Field", coordinate: Tuple[int, int], size: int, *args: Any ) -> None: """ :attr image_coordinate: the top left coordinate of the f...
import React from 'react'; import styled from 'styled-components'; import { ExternalLinkAlt, FaSVG } from './fontawesome'; export const sizes: { [key: string]: string; } = { small: '0.8rem', medium: '1rem', large: '1.2rem', }; type Props = { size?: string; }; const StyledAnchor = styled.a` font-size: ${(...
@section('title', 'Your order is Complete | Fancy Flowers') @section('dscr', '') @section('keywords', '') @extends('main') @section('content') <div id="breadcrumb" class="clearfix breadcrumb_back"> <div class="container"> <div class="breadcrumb clearfix"> <ul class="ul-breadcrumb"> <li><a href="/"...
#!/bin/bash # 4. Upload the data to GCS # todo: <<ADD YOUR CODE>>. Use wc (word count) command to count the number of lines in _deb-aircrafts.csv_. echo "uploading airport data to GCS..." gsutil cp "./data/deb-airports.parquet" gs://[BUCKET-NAME]
# # Duplicates songs plugin. # # Copyright (C) 2012, 2011 Nick Boultbee # # Finds "duplicates" of songs selected by searching the library for # others with the same user-configurable "key", presenting a browser-like # dialog for further interaction with these. # # This program is free software; you ca...
package faker.internet import org.apache.commons.lang3.StringUtils import org.scalacheck.{Arbitrary, Gen} import faker.ResourceLoader import faker.name.UserName final case class SafeEmailAddress private (value: String) extends AnyVal object SafeEmailAddress { def safeEmailDomains(implicit loader: ResourceLoader):...
# example-library-cmake An example repository to explain how to create a library with CMake and use it from an external application