text
stringlengths
27
775k
/* * Copyright 2021 The Android Open Source Project * * 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 applica...
'use strict' const responder = require('bfx-report/workers/loc.api/responder') const _getHandler = ( authenticator, handler, args ) => { return async (...handlerArgs) => { await authenticator.verifyRequestUser( args, { isForcedVerification: true } ) return handler(...handlerArgs) } ...
## SEEDS INSERT INTO burgers (burger_name) VALUES ("Cheeseburger"), ("Bacon"), ("Cheese"); INSERT INTO burgers (burger_name,devoured) VALUES ("Big Beef",true);
# frozen_string_literal: true require 'azurerm_resource' class AzurermAppGateway < AzurermSingularResource name 'azurerm_app_gateway' desc 'Verifies settings for an Azure Network Interface' example <<-EXAMPLE describe azure_network_interface(resource_group: 'rg-1', name: 'my-nic-name') do it { should ...
import { ProductDecorator } from './product-decorator'; export class ProductCustomizationDecorator extends ProductDecorator { getPrice(): number { return this.product.getPrice() + 50; } getName(): string { return this.product.getName() + '(Customizada)'; } }
using UnityEngine; using System.Collections; namespace Restifizer { public class RestifizerManager: MonoBehaviour, RestifizerParams { public string baseUrl; public MonoBehaviour errorHandler; public static RestifizerManager Instance; private string clientId; priva...
from typing import TYPE_CHECKING, Union from vkbottle.dispatch.return_manager.abc import BaseReturnManager if TYPE_CHECKING: from vkbottle.tools.dev.mini_types.user import MessageMin class UserMessageReturnHandler(BaseReturnManager): @BaseReturnManager.instance_of(str) async def str_handler(self, value:...
#pragma once #include <i0rCore/Common.hpp> #include <i0rCore/Configuration.hpp> #include <i0rCore/Hashing/Crc32.hpp> #include <i0rCore/IFileSystem.hpp> #include <i0rCore/Colors.hpp> #include <i0rRender/IRenderer.hpp> #include <i0rRender/ITexture.hpp> #include <i0rRender/UniformBuffers.hpp> #include <i0rRender/IGraphic...
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## 1.3.0 - 2021-05-11 ### Fixed - Bug with uninitialized property o...
'use strict'; class UserService { constructor() { this.users = []; } // user = { id, username, room } addUser(user) { this.users.push(user); return user; } getUser(id) { return this.users.find(user => user.id === id); } removeUser(id) { const index = this.users.findIndex(user => ...
{-# LANGUAGE CPP #-} {-# LANGUAGE RankNTypes #-} -- | Auxx plugin. module Plugin ( auxxPlugin ) where import Universum import qualified Data.Text as T #if !(defined(mingw32_HOST_OS)) import System.Exit (ExitCode (ExitSuccess)) import ...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. package markdown import ( "strings" ) type ListItem struct { blockBase markdown string hasTrailingBlankLine bool hasBlankLineBetweenChildren bool Indentation int Children ...
/** * Button Component Export */ import Button from './component' export default Button
:- module(file_module, [ has_correct_hash_fa/1 ]). :- encoding(utf8). has_correct_hash_fa(_Resource) :- writeln('NOT YET IMPLEMENTED'), fail.
<?php namespace Tests\Feature; use App\Models\Dish; use Illuminate\Foundation\Testing\RefreshDatabase; use Illuminate\Foundation\Testing\WithFaker; use Tests\TestCase; class DishDeleteTest extends TestCase { use RefreshDatabase; /** * A basic feature test example. * * @return void */ ...
import ChalkFlags from "../src/index.js"; const c = new ChalkFlags(); console.log(c.parse("rBg/Hello World/end"));
class Dna (sequence: String) { init { require(sequence.all { c -> c in "ACGT" }) } val nucleotideCounts: Map<Char, Int> = sequence.groupBy { it } .mapValuesTo(mutableMapOf('A' to 0,'C' to 0, 'G' to 0, 'T' to 0)) { it.value.size } }
module Tbgen #Agent that drives clock class ResetAgent < Agent PROPERTIES = [:active_interval, :active_value, :reset] PROPERTIES.each { |p| attr_accessor p } def initialize(name, options={}) super(name) @active_value = 1 invalid_properties = options.keys - PROPERTIES raise Ar...
#!/usr/bin/env -S perl # Reformator Perl script # ---------------------- use warnings; use strict; use utf8; use 5.010; use Getopt::Long; my $VERSION = '1.0.2'; my $NAME = 'reformator '; my $HELP = ' Script for reformat systemd unit-files (or other ini-like files) USAGE: reformator.pl < example.service or ...
package tests import java.nio.charset.StandardCharsets import java.nio.file.Files import scala.meta.io.AbsolutePath object FileWrites { def write(destination: AbsolutePath, text: String): Unit = { Files.createDirectories(destination.toNIO.getParent) Files.write(destination.toNIO, text.getBytes(StandardChar...
/// A CSS dimension, decomposed into its numeric and unit parts #[derive(Debug, Clone, PartialEq, Eq)] pub struct Dimension<'a> { pub number: &'a str, pub unit: &'a str, } impl<'a> Dimension<'a> { pub fn new(number: &'a str, unit: &'a str) -> Self { Self { number, unit } } } /// Decompose a CSS dimension ...
# Extras All contents under the Extras folder is auxiliary, that is not required for consumers of the Allo library. Further subdivision: tests\ -- functional correctness tests benchmarks\ -- performance comparison suite
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <stdint.h> #include <x86intrin.h> #include <sched.h> #include <unistd.h> #define NB_LOOP 100 #define NB_SEED 15 #include "des.h" uint64_t rand_zero(uint64_t* state) { return 0UL; } uint64_t rand_full(uint64_t* state) { retur...
package com.example.geektrust.exceptions; /** * DESCRIPTION - This class is wrapper over Exception. This is used wherever * Business condition violation occurs. * * @author - Aastha * @version 1.0 * @since <11-December-2021> */ public class BankingException extends Exception { private static final long seri...
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using MiniEngine.Graphics.Effects; namespace MiniEngine.Graphics.Lighting { public sealed class SunlightEffect : EffectWrapper { public const int CascadeCount = 4; private readonly EffectParameter AlbedoParameter; ...
PROGRAM BENCHMARK USE ROOT REAL :: a = 0, b = 1 REAL :: x, x_0 = 0.25, x_1 = 0.5, x_2 = 0.75 REAL, EXTERNAL :: f, df INTEGER :: nroot INTEGER :: debug = 1 nroot = BRACKET(f, a, b) PRINT 1000, nroot PRINT * PRINT 2000, a, b x = BISECTION...
/***************************************************************************** * * NXP Confidential Proprietary * * Copyright (c) 2014-2016 Freescale Semiconductor * Copyright 2017 NXP * All Rights Reserved * ****************************************************************************** * * THIS SOFTWARE IS PROVIDED ...
(ns sixsq.nuvla.server.resources.configuration-vpn-api-lifecycle-test (:require [clojure.test :refer [deftest use-fixtures]] [sixsq.nuvla.server.resources.configuration-lifecycle-test-utils :as test-utils] [sixsq.nuvla.server.resources.configuration-template-vpn-api :as vpn-api] [sixsq.nuvla.server.re...
import {act, renderHook} from '@testing-library/react-hooks/native'; import {ExecutorProvider, ExecutorProviderContext, useExecutor} from '../../main'; import {Executor} from 'parallel-universe'; import {createElement, FunctionComponent} from 'react'; describe('useExecutor', () => { test('returns the same Executor ...
#!/bin/sh git diff configs/bashrc ~/.bashrc git diff configs/gitconfig ~/.gitconfig git diff configs/screenrc ~/.screenrc git diff configs/user-dirs.dirs ~/.config/ git diff configs/tmux.conf ~/.tmux.conf
(ns app.vector) ;; some vector helpers ;; state should look something like this ;; (defonce state ;; (atom {:location (create 100 100) ;; :velocity (create 2.5 3)})) ;; draw of bounce ball example ;; (defn draw [] ;; (let [v (add (:location @state) (:velocity @state))] ;; (swap! state assoc :location...
package com.ywh.im.common.protocol.response; import com.ywh.im.common.protocol.BasePacket; import com.ywh.im.common.session.Session; import lombok.Data; import lombok.EqualsAndHashCode; import java.util.List; import static com.ywh.im.common.constant.Constant.LIST_GROUP_MEMBERS_RESPONSE; /** * 查看群组成员响应协议包 * * @au...
#include "client.hpp" #include "glfw_win.hpp" #include <res_mgr/file_system.hpp> int main(int argc, const char **argv) { auto config = local_file_system::load_config("config.res"); auto win_config = config->read("win"); int width = win_config->read<int>("width"); int height = win_config->read<int>("height"); s...
#!/usr/bin/env bash function addFile { cp $1 . || (echo cp $1 failed ; return 1) 7z a -tzip portable.zip $(basename $1) > /dev/null echo "Source: \"$(basename $1)\"; DestDir: \"{app}\"; Flags: ignoreversion" >> installer.iss echo $1 } function addFileIn { name=$2\\$(basename $1) mkdir -p $2 ...
/* * Copyright (c) 2017 <l_iupeiyu@qq.com> All rights reserved. */ package com.geekcattle.util; import com.alibaba.fastjson.JSON; import java.util.HashMap; import java.util.Map; public class JsonUtil { public JsonUtil() { } public static String toJson(Object obj) { return JSON...
Setting up a Django project: Basic setup: 1) Create a GitHub repository - MIT License - gitignore: Python 2) Clone the repository to a local file "git clone git@github.com:vojta-janousek/project-name.git" 3) Create and configure a Dockerfile Select the image you are going to inherit the Dockerfile from. Images ca...
require 'open-uri' require 'uri' require 'logger' require 'zip' require 'json' module BwbDownload # Get government XML; BwbIdList. This list contains metadata for all laws currently in the government CMS. def download_metadata_dump puts 'Downloading XML' zipped_file = open('http://wetten.overheid.nl/BWBIdS...
package com.qubit.metricsflow.metrics.core.event; import com.qubit.metricsflow.metrics.core.types.MetricAggregationType; import java.io.Serializable; import java.util.EnumSet; import java.util.List; import javax.annotation.Nonnull; public final class InnerMetricUpdateEvent implements Serializable { private fina...
"use strict"; var canvas = document.getElementById("canvas"); var context = canvas.getContext("2d"); // set canvas size to the correct size var screenWidth = 0; var screenHeight = 0; window.onresize = function(e) { screenWidth = window.innerWidth; screenHeight = window.innerHeight; canvas.width = screenWidth; ca...
<div class="row"> <div class="col-md-12"> <input type="hidden" name="id" value="<?= $del_condition->id ?>"> <p>Anda yakin menghapus data : </p> <table border="0"> <tr> <th>Devisi</th> <td>:</td> <td><?= $del_condition->nama_devisi ?></td> </tr> <tr> <th>Co...
# backup_file # # Backup file #. backup_file () { check_file=$1 if [ "$audit_mode" = 0 ]; then backup_file="$work_dir$check_file" if [ ! -f "$backup_file" ]; then verbose_message "Saving: File $check_file to $backup_file" find $check_file | cpio -pdm $work_dir 2> /dev/null if [ "$check...
package edu.washington.escience.myria.operator; import static org.junit.Assert.assertEquals; import org.junit.After; import org.junit.Before; import org.junit.Test; import edu.washington.escience.myria.DbException; import edu.washington.escience.myria.Schema; import edu.washington.escience.myria.Type; import edu.was...
#ifndef SCENEOBJECT_H #define SCENEOBJECT_H #include "Object.hpp" #include "Component.hpp" #include <vector> #include <string> #include <glm/glm.hpp> class SceneObject : public Object { public: SceneObject(); virtual ~SceneObject(); void setLayer( int layer ) { m_layer = layer; } int getLayer() const ...
const { Logger } = require("node-core-utils"); function devMode(req, res, next) { const logger = new Logger("devMode"); if (process.env.NODE_ENV === "DEV") { logger.info("Setting devmode user"); const passport = { user: { profile: { firstName: "Dev", lastName: "ENV", ...
//! A module for reading and writing TFRecords, Tensorflow's preferred on-disk data format. //! //! See the [tensorflow docs](https://www.tensorflow.org/api_guides/python/python_io#tfrecords-format-details) //! for details of this format. use byteorder::{ByteOrder, LittleEndian, ReadBytesExt, WriteBytesExt}; use crc::...
# frozen_string_literal: true module PubSubModelSync class MockKafkaService class MockProducer def produce(*_args) true end def deliver_messages(*_args) true end def shutdown true end end class MockConsumer def each_message(*_args) ...
################################################################################################# # AIM 5: two-sample comparison performance ################################################################################################# ## Deps using StatsPlots using Distributed using Combinatorics using Distribution...
import dayjs from 'dayjs'; import { Tag } from '../models'; import Config from '../config'; import Secret from '../secret'; export default class TagApi { static async get() : Promise<Tag[]> { const response = await fetch(`${Config.ApiUrl}/tags/recent`, { headers: new Headers({ ...
package com.github.unidbg.linux.android.dvm; public abstract class JniFunction implements Jni { @Override public float callStaticFloatMethod(BaseVM vm, DvmClass dvmClass, DvmMethod dvmMethod, VarArg varArg) { throw new UnsupportedOperationException(dvmMethod.getSignature()); } @Override p...
using System; using System.Threading.Tasks; using R5T.Sindia; namespace R5T.Epidarus { public interface IEndpoint { /// <summary> /// Used in debugging, or to exactly specify the message to send to an endpoint. /// </summary> Task Send(string message); ...
module Deliverhq require_relative '../../../test_helper' class ResponseTest < Minitest::Test def setup @response = OpenStruct.new(status: 0, body: nil, headers: {}) end def test_does_not_raise @response.stub :body, {'domain' =>{'name' => 'foo.com'}}.to_json do @response.stub ...
/* * Copyright (c) 2005-2011, Michael Newcomb * * 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 l...
#ifndef __ETERNAL_TCP_USER_TERMINAL_ROUTER__ #define __ETERNAL_TCP_USER_TERMINAL_ROUTER__ #include "Headers.hpp" #include "ServerConnection.hpp" #define ROUTER_FIFO_NAME "/tmp/etserver.idpasskey.fifo" namespace et { class UserTerminalRouter { public: UserTerminalRouter(); inline int getServerFd() { return serv...
using System; using HarmonyLib; namespace ABearCodes.Valheim.CraftingWithContainers.Common { [HarmonyPatch] public static class ReversePatches { [HarmonyReversePatch] [HarmonyPatch(typeof(Inventory), "CountItems")] public static int CountItemsOriginal(this Inventory __instance, str...
<?php namespace UnstoppableCarl\Arbiter\Policies\Concerns; use UnstoppableCarl\Arbiter\Contracts\UserWithPrimaryRole as User; use UnstoppableCarl\Arbiter\Contracts\UserAuthorityContract; trait HasUserAuthority { /** * @var UserAuthorityContract */ protected $userAuthority; /** * Normaliz...
CREATE TABLE cc( "1,""Alfreds Futterkiste"",""Maria Anders"",""Obere Str. 57"",Berlin,12209,Germany" TEXT );
# frozen_string_literal: true require 'rake/garden/metadata' describe Garden::TreeDict do subject { Garden::TreeDict.new(data) } let(:data) { { 'a' => 2, 'nested' => { 'b' => 3 } } } it 'should be able to fetch data' do expect(subject['a']).to eq(2) end it 'should be able to set data' do subject['...
package com.thekhaeng.materialstyletemplate.adapter.holder import android.annotation.SuppressLint import android.view.ViewGroup import com.thekhaeng.materialdesign.metric.pxToSpInt import kotlinx.android.synthetic.main.holder_text.view.* import com.thekhaeng.materialstyletemplate.R import com.thekhaeng.materialstylete...
from decimal import Decimal import json import urllib from mock import Mock, patch from nose.tools import eq_ import test_utils from lib.paypal import constants from lib.paypal.ipn import IPN from lib.paypal.tests import samples from lib.sellers.models import Seller, SellerPaypal from lib.sellers.tests.utils import ...
package com.sample.jetpack import android.content.Intent import android.os.Binder import android.os.IBinder import androidx.lifecycle.LifecycleService class MyService : LifecycleService(), MyServiceListener.Callback { private var myServiceListener: MyServiceListener = MyServiceListener(this) private var callb...
import os import json import boto3 import urllib3 import gspread from datetime import datetime TOKEN = os.environ['TELEGRAM_TOKEN'] CHANNEL = os.environ['NEWS_CHANNEL'] TABLE = os.environ['DYNAMO_TABLE'] BASE_URL = f"https://api.telegram.org/bot{TOKEN}" LAMBDA_DIGEST = os.environ['LAMBDA_DIGEST'] LAMBDA_CHAPTERS = os....
package openfoodfacts.github.scrachx.openfood.utils import io.sentry.Scope import io.sentry.Sentry import openfoodfacts.github.scrachx.openfood.BuildConfig object AnalyticsService { @JvmStatic fun init() { Sentry.configureScope { scope: Scope -> scope.setTag("flavor", BuildConfig.FLAVOR) } } ...
import PdePreludat import Library import Test.Hspec main :: IO () main = hspec $ do describe "PUNTO 1: Costo de reparacion:" $ do it "de un auto cuya patente es 'AT001LN' debe ser $12.500" $ do (costoDeReparacion fiatRojo) `shouldBe` 12500 it "de un auto cuya patente es 'DJV214' debe s...
import pytest from mock import Mock from winter import ArgumentsResolver from winter import GenericArgumentResolver from winter.argument_resolver import ArgumentNotSupported from winter.core import ComponentMethod from winter.core import ComponentMethodArgument @pytest.mark.parametrize('arg_name, arg_type, resolver_...
package com.twitter.inject.thrift.integration.filtered import com.twitter.finagle.http.Request import com.twitter.finatra.http.Controller import com.twitter.greeter.thriftscala.Greeter import com.twitter.util.Future import javax.inject.Inject class GreeterHttpController @Inject()(greeter: Greeter[Future]) extends Con...
package com.iskyinfor.duoduo.ui.shop; import java.util.ArrayList; import java.util.Map; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.Color; import android.os.Bundle; import android.text.Html; import android.view.Gravity; import android.view.KeyEve...
package ga.rugal.demo.core.dao; import ga.rugal.demo.core.entity.Student; import org.springframework.data.repository.CrudRepository; public interface StudentDao extends CrudRepository<Student, Integer> { }
import sync from "@/services/sync" import type { NextApiRequest, NextApiResponse } from "next" const Sync = async (_req: NextApiRequest, res: NextApiResponse) => { sync() res.status(202).end() } export default Sync
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace Import_Google_Places.Utils { public class Utils { /** * Method: SafeDbObject * Description: Verifica se a variavel e nula/vazia * Author: Luiz F. Am...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.howtodoinjava.dao; import com.howtodoinjava.entity.Simbolo; import com.howtodoinjava.entity.Simbolo; import com.howtodoinjava.entity.Teorema; import com.howtodoinjava.lambdacalculo.Term; import java.util.Lis...
package com.illiarb.tmdbclient.libs.ui.widget.recyclerview interface LoopingPagerAdapter { val realCount: Int fun getRealPosition(pos: Int) = pos % realCount companion object { const val MAX_COUNT = Int.MAX_VALUE } }
import { createThemedIcon } from './utils/createThemedIcon'; import { FilledFilter7 } from './FilledFilter7'; import { OutlineFilter7 } from './OutlineFilter7'; import { RoundFilter7 } from './RoundFilter7'; import { SharpFilter7 } from './SharpFilter7'; import { TwoToneFilter7 } from './TwoToneFilter7'; export var Fil...
#ThorPy storage tutorial : boxes import thorpy application = thorpy.Application(size=(400, 400), caption="Storage") elements = [thorpy.make_button("button" + str(i)) for i in range(12)] box1 = thorpy.Box(elements[0:4]) thorpy.store(box1, mode="h") box1.fit_children() box2 = thorpy.Box(elements[4:8]) box3 = thorpy....
<?php declare(strict_types=1); namespace Slim\Routing\Symfony; use Slim\Routing\RouteParser as SlimRouteParser; use Slim\Interfaces\RouteCollectorInterface; use Symfony\Component\Routing\Generator\UrlGenerator; use Symfony\Component\Routing\RequestContext; use Symfony\Component\Routing\Route; use Symfony\Component\R...
--TEST-- Bug #80839: PHP problem with JIT --INI-- opcache.enable=1 opcache.enable_cli=1 opcache.jit_buffer_size=1M opcache.jit=tracing --EXTENSIONS-- opcache --FILE-- <?php declare(strict_types=1); // -------------------------------------------------------------------- class Node { public $column = null; publi...
require 'uia' def w @w ||= Uia.find_element title: /^MainForm/ end
package de.stoman.alpacaradio.model import org.springframework.data.mongodb.repository.MongoRepository /** Repository for accessing [Video] objects from the database. */ interface VideoRepository : MongoRepository<Video, String>
import StructuresDefinitionManager from "../managers/StructuresDefinitionManager"; export default class DataReplacerExtensionFasade { #structDefManager : StructuresDefinitionManager; #settings : ExtensionSettings; constructor(structDefManager: StructuresDefinitionManager, settings : ExtensionSettings) { ...
use std::str::FromStr; #[derive(Clone, Copy)] pub enum Language { CSharp, Cpp, Java, JavaScript, ObjC, Proto, TableGen, TextProto, } impl Language { pub fn get_name(self) -> &'static str { match self { Language::CSharp => "CSharp", Language::Cpp => "...
#!/bin/sh read -s password mcrcon -H 127.0.0.1 -P 25575 -p $password -t
import { createRootLogger } from "./root_logger" import { nextLog, createDestinationStream } from "./logger_test_utils" describe("RootLogger", () => { it("allows to create children", async () => { const destination = createDestinationStream() const logger = createRootLogger("myService", { destination }) ...
<?php namespace Modules\Payments\Gateways; use App\Entities\AcceptPayment; use Modules\Invoices\Entities\Invoice; use Modules\Payments\Contracts\PaymentInterface; use Modules\Payments\Helpers\Cashier; class Paytm implements PaymentInterface { protected $invoice; public function __construct() { $...
# Contributing Contributions are welcome and appreciated! Every little bit helps, and credit will always be given. When contributing to purl (such as code, bugs, documentation, etc.) you agree to the Developer Certificate of Origin http://developercertificate.org/ and its license (see the mit.LICENSE file). The same...
package io.github.jenyaatnow.validator4j.test.source; import io.github.jenyaatnow.validator4j.core.V4jIgnore; import io.github.jenyaatnow.validator4j.core.Validatable; import lombok.Getter; import java.util.Date; @Getter @Validatable public class JavaTypesPojo { @V4jIgnore private Boolean booleanIgnored; ...
var printType = function(val) { if (val === null) { console.log("Value is null"); return; } console.log("Value is", typeof val); } printType(12); // -> Value is number printType("I am a string"); // -> Value is string printType({}); // -> Value is object printType(null); // -> Value is null
import { BasicCache } from '../../tools/cache'; import { databaseBackend } from '../setup/backend'; import { ColumnDataType, ColumnValues, NullableColumnValues, TableSchema, } from '../tools/types'; import { Table } from './table'; export type FilterT = '=' | '<' | '>' | '>=' | '<=' | 'LIKE'; export type Advan...
package regolic package dpllt import regolic.asts.core.Trees._ import regolic.asts.theories.int.Trees.IntSort package object qfeuf { object FunctionSort { def apply(from: Sort, to: Sort) = Sort("Function", List(from, to)) def unapply(sort: Sort): Option[(Sort, Sort)] = sort match { case Sort("Functio...
import { Role } from './Role' export const role = new Role()
# Copyright (c) 2017, CNRS-LAAS # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the f...
#!/bin/bash echo "Generating MaxwellVacuum ETK thorn..." ./run_Jupyter_notebook.sh ETK_Workshop_2021-NRPy_tutorial.ipynb echo "Generating MaxwellVacuumID ETK thorn..." ./run_Jupyter_notebook.sh ../../Tutorial-ETK_thorn-MaxwellVacuumID.ipynb mv ../../MaxwellVacuumID .
import { EnvelopeIcon, ExternalLink } from 'franklin-sites'; import footer from './styles/contact.module.scss'; import TwitterLogo from '../../../images/twitter-logo.svg'; import FacebookLogo from '../../../images/facebook-logo.svg'; import YouTubeLogo from '../../../images/youtube-logo.svg'; import BloggerLogo from ...
<div align="center"> <img src="./userland/static/img/main/qing.svg" width="300" height="300" alt="The Qing Project"> <br> <h1>Qing [Work in Progress]</h1> </div> Content management system (CMS) on Go/MySQL, start your forum / blog site in seconds! **Qing is still in early stages and under heavy development, not re...
rm -rf demo/output mkdir demo/output cp -rf example demo/output/example cp -rf output/* demo/output rm -rf output
// Copyright (c) Arjen Post. See LICENSE and NOTICE in the project root for license information. using System; using System.IO; using Xunit; namespace ProtoBuf.Data.Light.Tests { public partial class DataSerializerTests { public class TheSerializeMethod : DataSerializerTests { [Fa...
/** * @Author: DollarKiller * @Description: Config * @Github: https://github.com/dollarkillerx * @Date: Create in 11:37 2019-10-24 */ package config import ( "github.com/dollarkillerx/easyutils" "gopkg.in/yaml.v2" "io/ioutil" "log" "time" ) type base struct { App struct { Host string `yaml:"host"`...
import 'package:alba/src/framework/env.dart'; import 'package:flutter_test/flutter_test.dart'; var environment = ''' STRING_VARIABLE=hello STRING_WITH_SPACES_VARIABLE=hello world TRUE_VARIABLE=true FALSE_VARIABLE=false '''; void main() { group('EnvironmentManager', () { setUp(() { testLoad(environment); ...
CREATE TABLE `datas` ( `data_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `gamespace_id` int(10) unsigned NOT NULL, `application_name` varchar(255) NOT NULL DEFAULT '', `version_status` enum('CREATED','PUBLISHING','PUBLISHED','ERROR') NOT NULL DEFAULT 'CREATED', `version_status_reason` varchar(255) DEFAULT N...
module RadarDiagramWithBlips def self.call(radar, quadrant) radar_diagram = RadarDiagram.new(quadrant.corner) radar.blips.in_quadrant(quadrant).each do |blip| radar_diagram.add_blip( id: "blip_#{blip.id}", ring: blip.ring_object, title: blip.name ) end radar_diagr...
from flask import Flask, Blueprint, request, render_template, \ redirect, url_for, current_app from google.cloud import storage import json import logging import os import re import sqlite3 import urllib.parse hearthsounds = Blueprint('hs', __name__, template_folder='templates', ...
import {Component, OnInit, Input} from '@angular/core'; import {Tag} from "@angular/compiler/src/i18n/serializers/xml_helper"; @Component({ selector: 'tag', templateUrl: './tag.component.html', styleUrls: ['./tag.component.css'] }) export class TagComponent implements OnInit { @Input() public tag: Tag; con...