text
stringlengths
27
775k
package webhook import ( "bytes" "io/ioutil" "net/http" "net/http/httptest" "testing" "github.com/google/go-github/github" "gopkg.in/gin-gonic/gin.v1" "github.com/Azure/brigade/pkg/brigade" "github.com/Azure/brigade/pkg/storage" ) type testStore struct { proj *brigade.Project builds []*brigade.Build e...
/* * Copyright (C) 2020 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 app...
--- layout: default title: People --- #### Current Lab Members 1. [Gust Bilcke](/pages/gust.html) (PhD Student) 2. [Lieven Clement](/pages/about.html) (Principal Investigator) 2. Elke Debrie (PhD Student) 2. Nina Demeulemeester (PhD Student) 2. [Caroline De Tender](/pages/caroline.html) (Postdoc) 2. [Jeroen Gilis](/p...
package user import ( "net/http" "github.com/bleenco/abstruse/internal/auth" "github.com/bleenco/abstruse/pkg/lib" "github.com/bleenco/abstruse/server/api/render" "github.com/bleenco/abstruse/server/core" ) // HandleLogin returns an http.HandlerFunc that writes JSON encoded // login data to the http response bo...
<div class="col-xs-12"> <h3 class="header smaller lighter green">Application Buttons</h3> <p></p> <button class="btn btn-app btn-danger btn-sm"> <i class="ace-icon fa fa-cloud-upload bigger-200"></i> Post <?=\app\models\Post::find()->count()?> </button> <button class="btn btn-ap...
/* $Id: horizontal_listbox.cpp 49225 2011-04-16 09:07:16Z mordante $ */ /* Copyright (C) 2008 - 2011 by Mark de Wever <koraq@xs4all.nl> Part of the Battle for Wesnoth Project http://www.wesnoth.org/ This program is free software; you can redistribute it and/or modify it under the terms of the GNU Gen...
package com.github.dwursteisen.minigdx.file class AngelCodeLoader : FileLoader<AngelCode> { @ExperimentalStdlibApi override fun load(filename: String, handler: FileHandler): Content<AngelCode> = handler.read(filename).map { val groups = it.split("\r\n|\n|\r".toRegex()) .filter { it.isNotBl...
/* * Copyright (c) 2011-2012, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program is distributed in ...
//TODO:Futurework // delete it? package node // //import ( // //"fmt" // //"time" // //"net/http" // //"errors" // "context" // //"google.golang.org/appengine" // //"google.golang.org/appengine/datastore" // //"strconv" //) // ///* == Struct ======================================================== */ //type NodeManage...
Param( [string]$owner, [string]$repo, [string]$previewStr ) Write-Host "Calculating new Preview Version:" -ForegroundColor Magenta; $newVersionStr; $releasesUrl = "https://api.github.com/repos/$($owner)/$($repo)/releases"; Write-Host "Getting list of releases with '$($releasesUrl)'" -ForegroundColor Blu...
<?php namespace Entity\Configuration; /** * Class ConfigurationFactory * @package Entity\Configuration */ class ConfigurationFactory { /** * @param array $data * @return \Entity\Configuration\Configuration */ public static function create($data = []) { if (empty($data)) { ...
namespace AnyfinCalculator.Properties { public sealed partial class Settings { private int GetDefaultIntValue(string key) => int.Parse(Properties[key].DefaultValue.ToString()); public int DefaultPlayerLeft => GetDefaultIntValue("Left"); public int DefaultPlayerTop => GetDefaultIntValue(...
var navbarEl = document.querySelector(".navbar"); window.addEventListener("scroll", animateNavbar); function animateNavbar() { if (window.scrollY >= 100) { if (!navbarEl.classList.contains("expanded")) { navbarEl.classList.add("expanded"); } } else { navbarEl.classList.remove("expanded")...
# tts-mtg-decks Tabletop Simulator Magic: the Gathering Decks These are my personal decks for use with Tabletop Simulator ## Installation 1. [Download this project](https://github.com/smoak/tts-mtg-decks/archive/master.zip) as a ZIP file. ### Mac OS X Extract the zip into `~/Library/Tabletop Simulator/Saves/Saved ...
package messaging import ( "encoding/json" "github.com/willhackett/azure-mft/pkg/azure" "github.com/willhackett/azure-mft/pkg/config" "github.com/willhackett/azure-mft/pkg/constant" "github.com/willhackett/azure-mft/pkg/keys" ) func SendMessage(id string, messageType string, payload []byte, destinationAgent str...
package com.dailystudio.devbricksx.compiler.kotlin.utils import com.dailystudio.devbricksx.annotations.RoomCompanion import com.squareup.kotlinpoet.FunSpec import com.squareup.kotlinpoet.TypeName import com.squareup.kotlinpoet.asTypeName import javax.lang.model.element.Element import javax.lang.model.element.TypeEleme...
import 'package:flutter/material.dart'; class ActionButton extends StatefulWidget { const ActionButton({ Key? key, required this.text, required this.onTap, required this.onHoverBackgroundColor, required this.textColor, required this.onHoverTextColor, required this.backgroundColor, req...
""" HTTP Title ========== The ``httptitle`` plugin will print the ``<title>`` HTML element of every linked posted. Options ------- - None """ import logging import re from lala.compat import html_unescape from lala.util import regex, msg from six.moves import html_parser from twisted.web.client import getPage from ...
package co.lithobyte.recycleradapter.models interface OnBoundProvider { var onBound: ((Int, Int) -> Unit)? }
<?php namespace Gerfey\Mapper\Rule; interface RuleMapperInterface { /** * @return string */ public function getName(): string; /** * @param $value * @param mixed $params * @return mixed */ public function validation($value, $params = []): bool; }
import { AbstractClient } from "../../../common/abstract_client"; import { ClientConfig } from "../../../common/interface"; import { DescribeSREInstancesRequest, DescribeSREInstanceAccessAddressResponse, DescribeSREInstancesResponse, DescribeSREInstanceAccessAddressRequest } from "./tse_models"; /** * tse client * @c...
#!/usr/bin/env bash # Usage: ra upgrade [app] # Summary: Upgrade apps # Help: 'ra upgrade' upgrades all apps to the latest version. # 'ra upgrade <app>' upgrades the latest version of that app, if there is one. local APP=$1 if [ -z "$APP" ]; then brew upgrade else brew upgrade $APP fi
import JsonApiRepo from './JsonApiRepo'; class UserRepo extends JsonApiRepo { constructor () { super('/api/v1/accounts/users/', 'Benutzer'); } } export default UserRepo;
module Hydra module Derivatives class Audio < Processor include Ffmpeg protected def new_mime_type(format) case format when 'mp3' "audio/mpeg" else "audio/#{format}" end end end end end
<!-- markdownlint-disable MD022 MD024 MD026 MD032 MD041 --> # Change Log - based on [Keep a Changelog](http://keepachangelog.com/) - adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ~~Removed, Changed, Deprecated, Added, Fixed, Security~~ ## [0.9.0] - 2020-04-26 ### Changed - rank finding now c...
export { default as build } from './build'; export { default as clean } from './clean'; export { default as esdoc } from './esdoc'; export { default as types } from './types'; export * from './dev';
#!/bin/bash cmake -DCMAKE_PREFIX_PATH="/home/ecb/Falaise-local;$(brew --prefix);$(brew --prefix qt5-base)" $@
vector-editor =================== A free and open source vector editor Version ------------- 0.0.1 License ------------- MIT Tech ------------- vector-editor uses a number of open source projects to work properly: * [Grapesjs](http://grapesjs.com/) - cash DOM and spectum color picker * [Material Design Lite](ht...
#!/bin/sh #add arm arm-linux-gnueabi-gcc #arm-linux-gnueabi-gcc -fPIC -c socket.c #arm-linux-gnueabi-gcc -fPIC -shared -o libsocket.so socket.o gcc -fPIC -c socket.c gcc -fPIC -shared -o libsocket.so socket.o cp libsocket.so /lib -fa gcc main.c -o test -lsocket echo "built done"
package geotrellis.raster.compression import geotrellis.raster._ import geotrellis.raster.io.geotiff._ import geotrellis.engine._ import geotrellis.testkit._ import org.scalatest._ import spire.syntax.cfor._ class ZipCompressedTileSpec extends FunSpec with TileBuilders with TestEngine with RasterMatche...
/* * Copyright 2021 Collate * 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 agreed to in writing,...
//! A collection of utilities for working with Riichi Mahjong player hands. //! //! This currently includes: //! * Hand representation object //! * Parser that allows to quickly create a hand using human-readable string, such as //! `123m456p_7*77z` //! * Renderer that allows to draw a hand to a raster image (along...
from backend.models.dtos.project_dto import ProjectSearchDTO from backend.models.postgis.user import User from backend.services.project_search_service import ProjectSearchService from tests.backend.base import BaseTestCase class TestProjectService(BaseTestCase): def test_project_search(self): user = User...
CREATE TABLE [dbo].[ErrorTable] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [ErrorLine] INT NULL, [ErrorMessage] NVARCHAR(MAX) NULL, [TxId] BIGINT NULL, [json] NVARCHAR(MAX) NULL )
/* tslint:disable no-unused-expression */ import { browser } from 'protractor'; import NavBarPage from './../../page-objects/navbar-page'; import CustomerComponentsPage from './customer.page-object'; import { CustomerDeleteDialog } from './customer.page-object'; import CustomerUpdatePage from './customer-update.page-o...
"""Channels implementation using 0MQ Todo: * Check sockaddr format """ import os from urllib.parse import urlparse import zmq from ensure import ensure_annotations, ensure from motiv.exceptions import AlreadyConnected, NotConnected from motiv.sync import SystemEvent, TimeoutEvent from motiv.serde import Serializ...
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Extensions; using Microsoft.AspNetCore.Http.Headers; using Microsoft.Extensions.Primitives; using Microsoft.Net.Http.Headers; namespace FastEndpoints; internal static class StreamHelper { internal static (RangeItemHeaderValue? range, long rangeLeng...
efi-roller ========= Please use [sbctl](https://github.com/Foxboron/sbctl).
using CSharpFunctionalExtensions; using Eximia.CleanArchitecture.SeedWork; namespace Eximia.CleanArchitecture.Avaliacoes.Dominio.Disciplinas { public sealed class Disciplina : Entity<int>, IAggregateRoot { private Disciplina(){} public Disciplina(in int id, in string nome) : base(id) {...
--- title: Hope Sabbath School Outline date: 04/12/2020 --- <center><img src="https://sabbath-school.adventech.io/api/v1/images/misc/hope-ss-logo.jpg" /></center> ### Outline #10 God-centered Learning * God—the Source of all life and truth * Genesis 1:1 * Nehemiah 9:6 * John 1:1-3 (see also John 14:6) * Why do ...
# -*- coding: utf-8 -*- """ Project: Wechat-Github Creator: Liwi Create time: 2021-12-21 16:40 Introduction: """ from unittest import TestCase from everyday_wechat.control.rubbish.atoolbox_rubbish import get_atoolbox_rubbish class BaseTestCase(TestCase): def test_atoolbox_rubbish(self): key = '牛' ...
#ifndef UCAPI_CORTEX_M_INTERRUPTS_SUPERVISOR_H_INCLUDED #define UCAPI_CORTEX_M_INTERRUPTS_SUPERVISOR_H_INCLUDED extern void __svcall_isr(void) __attribute__ ((interrupt ("IRQ"))); extern void __pendsv_isr(void) __attribute__ ((interrupt ("IRQ"))); #endif /* UCAPI_CORTEX_M_INTERRUPTS_SUPERVISOR_H_INCLUDED */
using System; using System.Collections.Generic; using System.Linq; using System.IO; using CommandLine; using CommandLine.Text; using RocksmithToTabLib; using RocksmithToolkitLib.Xml; namespace RocksmithToTab { class Program { static void Main(string[] args) { // parse command line...
package Perl::Dist::WiX::Mixin::Support; =pod =head1 NAME Perl::Dist::WiX::Mixin::Support - Provides support routines for building a Win32 perl distribution. =head1 VERSION This document describes Perl::Dist::WiX::Mixin::Support version 1.500002. =head1 SYNOPSIS # This module is not to be used independently. #...
# frozen_string_literal: true require 'rails_helper' describe Api::OpmlImportsController, type: :controller do before :each do @user = FactoryBot.create :user login_user_for_unit @user end context 'GET show' do it 'returns import process state successfully' do get :show, format: :json ...
package session import ( "fmt" "net/http" "testing" "github.com/stretchr/testify/assert" ) func TestBearerTokenFromRequest(t *testing.T) { for k, tc := range []struct { h http.Header t string f bool }{ { h: http.Header{"Authorization": {"Bearer token"}}, t: "token", f: true, }, { h: http.H...
#include "options.h" #include "document/authors.h" #include "document/library.h" #include "document/series.h" #include "qyamlcpp.h" QString EBookOptions::POSITION = "window"; QString EBookOptions::DIALOG = "options dialog"; QString EBookOptions::PREF_CURRENT_INDEX = "current book"; QString EBookOptions::PREF_CURRENT_...
from numpy import empty from .outdated_item_selection_strategy import OutdatedItemSelectionStrategy from storage_strategy.storage_strategy import StorageStrategy from database import ID class RegularIntervalUpdate(OutdatedItemSelectionStrategy): """Outdated item detection strategy that retrieves items in regular ...
namespace Com.QueoFlow.Peanuts.Net.Core.Infrastructure.Security { public interface ISecurityExpressionRoot { /// <summary> /// Überprüft, ob dem Nutzer mindestens eine der Rollen zugewiesen ist. /// </summary> /// <param name="roles"></param> /// <returns></returns> ...
# frozen_string_literal: true # use UUID for primary keys Rails.application.config.generators do |g| g.orm :active_record, primary_key_type: :uuid end
require "rails_helper" describe Api::BaseController do controller do def ping1 raise Api::BaseController::ScopeNotHandled end def ping2 raise Namespace::AuthScope::ResourceIsNotFound end end before do @routes.draw do get "/ping1", to: "api/base#ping1" get "/ping2"...
// // Part of Metta OS. Check https://atta-metta.net for latest version. // // Copyright 2007 - 2017, Stanislav Karchebnyy <berkus@atta-metta.net> // // Distributed under the Boost Software License, Version 1.0. // (See file LICENSE_1_0.txt or a copy at http://www.boost.org/LICENSE_1_0.txt) // #pragma once #include "a...
class EMetaIGet < EngineMeta set_cc 0xE set_char ?E set_mc 3 S_REGISTER_BITS = 3 S_REGISTER_BITMASK = 0x1c000 S_REGISTER_BITSHIFT = 15 S_REGISTER_OPTIONS_BITS = 2 S_REGISTER_OPTIONS_BITMASK = 0x3000 S_REGISTER_OPTIONS_BITSHIFT = 12 D_REGISTER_BITS = 3 D_REGISTER_BITMASK = 0xe00 D_REGISTER_BI...
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart'; import 'package:core/router/route.dart'; import 'package:core/widgets/ui/ui.dart'; import 'package:core/widgets/appbar/appbarExt.dart'; import...
function make_layout(adj) #function [x, y] = make_layout(adj) #% MAKE_LAYOUT Creates a layout from an adjacency matrix #% #% [X, Y] = MAKE_LAYOUT(ADJ) #% #% Inputs : #% ADJ = adjacency matrix (source, sink) #% #% Outputs : #% X, Y : Positions of nodes #% #% Usage Example : [X, Y] = make_layout(adj); #% #% #% Note : U...
import {useEffect, useRef} from 'react'; import {Keyboard, Platform, KeyboardEvent, ScreenRect} from 'react-native'; export type KeyboardLayout = { height: number; }; export interface KeyboardEventHandlers { onKeyboardHide: () => void; onKeyboardShow: (keyboardLayout: KeyboardLayout) => void; } export const us...
-- | -- Examples in various locations... -- -- Some random text. Some random text. Some random text. Some random text. -- Some random text. Some random text. Some random text. Some random text. -- Some random text. -- -- >>> let x = 10 -- -- Some random text. Some random text. Some random text. Some random tex...
package it.barusu.paymen import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.DisplayName import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith import org.slf4j.LoggerFactory import or...
using System; namespace Portalworkers.DocxTemplating.Grammar { public class BinaryCondition : AbstractCondition { public BinaryCondition(AbstractCondition lhs, BinaryOperator op, AbstractCondition rhs) { this.Lhs = lhs; this.Operator = op; this.Rhs = rhs; ...
#ifndef _SpkMirror_H_ #define _SpkMirror_H_ #include <Arduino.h> #ifdef ESP32 #include <utility/Speaker.h> #define HAVE_SPEAKER #else #define SPEAKER void #endif class SpkMirror { public: SpkMirror(SPEAKER *spk); void begin(); void end(); void mute(); void tone(uint16_t frequency); void ...
package net.formula97.miragewatch; import android.app.Application; /** * Created by f97one on 16/01/01. */ public class MyWearApplication extends Application { private int mBatteryLevel; @Override public void onCreate() { super.onCreate(); mBatteryLevel = -1; } public int get...
# britecore-project Product Development project for the BriteCore interview process ## Entity relationship diagram ![entity relationship diagram](datalay.er.png) ## Usage edit `britecoreproject/config.py` to set the location of the database. `sample.sqlite3` contains some sample data. ``` pipenv install pipenv shell...
import axios, { AxiosResponse } from 'axios'; import { FetchTimingsByCoordsParams, FetchTimingsByCityParams, FetchTimingsApiResponse, Timings, } from '../types'; export const timingsApi = axios.create({ baseURL: 'https://api.aladhan.com/v1', }); export const fetchTimings = async ( endpoint: string, para...
using WeaverAnnotations.Attributes; using WeaverAnnotations.Core.PatcherType; using WeaverAnnotations.DefaultPatchTypes.InlineIL; [assembly: PatcherAttributeMap(typeof(InlineILAttribute), typeof(InlineILPatcher))] namespace WeaverAnnotations.DefaultPatchTypes.InlineIL { using System; using System.Collections.G...
import React from 'react'; import { render } from 'rut-dom'; import Email from '../src/Email'; import Link from '../src/Link'; import { EmailProps } from '../src/types'; describe('components/Email', () => { it('can pass props to Link', () => { const func = () => {}; const { root } = render<EmailProps>( ...
// // ManagingViewController.h // oauth-sample-consumer // // Created by Owen Evans on 20/02/2009. // Copyright 2009 Xero.com. All rights reserved. // #import <Cocoa/Cocoa.h> #import "ViewParent.h" extern NSString * const OACConsumerKey; extern NSString * const OACConsumerSecret; extern NSString * const OACRequest...
<?php namespace Olcs\Form\Model\Form\Licence\Surrender; use Laminas\Form\Annotation as Form; /** * Class Surrender * @package Olcs\Form\Model\Form\Licence\Surrender */ class Surrender { /** * @Form\ComposedObject("Olcs\Form\Model\Form\Licence\Surrender\Fieldset\Checks") * @Form\Attributes({ * ...
use crate::PixelFormat; use display_interface::DisplayError; pub enum Command { Nop = 0x00, SoftReset = 0x01, ReadDisplayId = 0x04, ReadErrors = 0x05, ReadDisplayStatus = 0x09, ReadDisplayPowerMode = 0x0a, ReadDisplayMADCTL = 0x0b, ReadDisplayPixelFormat = 0x0c, ReadDisplayImageMode...
using System; using Microsoft.Extensions.DependencyInjection; using PnP.Core.Transformation.Services.Builder; using PnP.Core.Transformation.Services.Core; using PnP.Core.Transformation.Services.MappingProviders; using PnP.Core.Transformation.SharePoint.Services.Builder.Configuration; namespace PnP.Core.Transformation...
<?php /** * SiteBase * PHP Version 7.0 * * @category CMS / Framework * @package Degami\Sitebase * @author Mirko De Grandis <degami@github.com> * @license MIT https://opensource.org/licenses/mit-license.php * @link https://github.com/degami/sitebase */ namespace App\Base\Tools\Plates; use App\Base\To...
-- -- Copyright (C) Analytics Engines -- 2021 Alastair McKinley (a.mckinley@analyticsengines.com) -- \i tests/test_support/base-users-setup.sql \i tests/test_support/test-users-setup.sql
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class BaseModel extends Model { public static function parseCSV($path, $hasHeader = true) { $data = array_map('str_getcsv', file(public_path($path))); if ($hasHeader) { array_shift($data); // remove titles...
module Battle # Module responsive of mocking the battle scene so nothing happen on the reality # # How to use: # scene = @scene.clone # scene.extend(SceneMock) # # Note: super inside this script might call the original function module SceneMock class << self # Method called when a scene ge...
test("CSS Images url()", function() { var elem = document.createElement("div"); elem.style.cssText = "background-image: url(https://);"; assert( H.test.string( elem.style.backgroundImage, "url" ), "images with url() supported" ); }); test("CSS Images linear-gradient", function() { /** * Logic sourced from ...
/** * Test the user objects */ /* global it expect jest */ import 'react-native'; import Database from '../'; it('users create and read', () => { var db = new Database(); db.switchDb('inst', 'test'); // lets reset the db db.reset(); // in intial no user findById expect(db.users.list).toHaveLength(0); ...
import React from 'react' import { Form } from 'semantic-ui-react' const FormExampleWidthField = () => ( <Form> <Form.Group> <Form.Input label='First name' placeholder='First Name' width={6} /> <Form.Input label='Middle Name' placeholder='Middle Name' width={4} /> <Form.Input label='Last Name' ...
use crate::engine::*; pub struct Game { m_engine: Box<dyn Engine>, } impl Game { pub fn new(engine: Box<dyn Engine>) -> Game { Game { m_engine: engine, } } pub fn play(&self) -> Result<(), String> { self.m_engine.play() } } #[cfg(test)] mod tests { use sup...
#include "logger.hpp" void initLogging() { auto err_logger = spdlog::stderr_color_mt("stderr"); spdlog::set_level(spdlog::level::debug); spdlog::set_pattern("[%H:%M:%S.%e] [%^%l%$] [thread %t] %v"); } shared_ptr<spdlog::logger> logger() { return spdlog::get("stderr"); }
#include "mppch.h" #include "VertexArray.h" #include "Maple/Renderer/Renderer.h" #include "Platform/OpenGL/OpenGLVertexArray.h" namespace Maple { Ref <VertexArray> VertexArray::Create() { switch (Renderer::GetAPI()) { case RendererAPI::API::None: MP_CORE_ASSERT(false, "RendererAPI::None is not currently...
(ns crux.ui.http (:require [ajax.edn :as ajax-edn] [crux.ui.common :as common] [day8.re-frame.http-fx] [re-frame.core :as rf])) (rf/reg-event-fx ::fetch-query-table (fn [{:keys [db]} _] (let [query-params (dissoc (get-in db [:current-route :query-params]) :full-results) ;; Get back one more...
/* * 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 ...
{-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TupleSections #-} module HERMIT.GHCI.Types where import Control.Applicative import Control.Concurrent.MVar import Control.Concurrent.STM import Control.Monad.E...
# chaincoin/php-api chaincoin/php-api is a simple wrapper for the Chaincoin client's JSON-RPC API. Compatible with the latests Chaincoin releases (Tested until 0.16.1) ## Install `composer require chaincoin/php-api` **You need use at least the version v1.5.** (The last stable version is the v2.0.0) ## Start 1. Us...
{-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE FlexibleContexts #-} module UserInput where import Data.List import Control.Monad import Control.Monad.State import Control.Monad.IO.Class import Control.Monad.Operational import Control.Lens hiding (view) import Play...
// by alanhogan // https://github.com/Modernizr/Modernizr/issues/198 // http://css-tricks.com/596-run-in/ Modernizr.testStyles(' #modernizr { display: run-in; } ', function(elem, rule){ var ret = (window.getComputedStyle ? getComputedStyle(elem, null).getPropertyValue('display') : elem.curren...
#!/bin/bash ## copy in pre-reqs cd /var/www/virtualrecordlabel.net/public cp -r .abba /home/mark/work/virtualrecordlabel-site/public cp .htaccess /home/mark/work/virtualrecordlabel-site/public ## deploy cd /var/www/virtualrecordlabel.net/ mv public public-$(date +"%Y-%m-%d_%H-%M-%S") mv /home/mark/work/virtualrecordl...
mod aabb; mod interpolation; mod num; mod orthographic; mod perspective; use cgmath::Vector2; pub use self::aabb::AABB2D; pub use self::interpolation::Interpolation; pub use self::num::Float; pub use self::orthographic::{ortho_from_bounds, OrthographicCamera}; pub use self::perspective::PerspectiveCamera; /// Repres...
from functools import partial import napari.viewer from napari_plugin_engine import napari_hook_implementation from qtpy.QtWidgets import QWidget, QVBoxLayout, QFileDialog, QPushButton from .open_close_buttons import OpenCloseButtonsWidget from .named_labeled_slider import NamedLabeledSlider from .label_between_arro...
<?php namespace Amazonpaymentservices\Fort\Controller\Vault; use Magento\Framework\App\CsrfAwareActionInterface; use Magento\Framework\App\Request\InvalidRequestException; use Magento\Framework\App\RequestInterface; use Magento\Framework\App\Action\HttpGetActionInterface; use Magento\Framework\App\Action\HttpPostActi...
package com.gxq.learn.spark.transformation import org.apache.spark.SparkConf import org.apache.spark.SparkContext object FoldDemo { def main(args: Array[String]) { val conf = new SparkConf().setMaster("local").setAppName("Fold") val sc = new SparkContext(conf) val rdd = sc.parallelize(Array(("a", 1), ("...
module Data.LLVM.BitCode.BitString ( BitString(..) , toBitString , showBitString , fromBitString , maskBits , take, drop, splitAt ) where import Data.Bits ((.&.),(.|.),shiftL,shiftR,bit,bitSizeMaybe, Bits) import Data.Monoid (Monoid(..)) import Data.Semigroup import Numeric (showIntAtBase) import Prel...
# uploadmarketbeta ## upload android beta version for test [click download](https://github.com/CharlesFeiWang/uploadmarketbeta/blob/master/charlesmarketdemo-baidu-release.apk)
import 'package:analyzer/dart/element/element.dart'; import 'package:build/build.dart'; import 'package:serdes_json/serdes_json.dart'; import 'package:serdes_json_generator/parser.dart'; import 'package:source_gen/source_gen.dart'; import 'models.dart'; import 'serdes_generator.dart'; class SerdesJsonGenerator extend...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace rmApplication { class ViewFileName { public string SettingName { get; set; } public string SoftwareVersion { get; set; } public ViewFileName() { ...
<?php namespace Modules\Administracion\Repository; use Modules\Administracion\Entities\Anuncio; class AnuncioRepositorio { public function listaAnuncios() { return Anuncio::all(); } }
<?php namespace PhpGitHooks\Module\PhpUnit\Contract\Command; use Bruli\EventBusBundle\CommandBus\CommandInterface; class GuardCoverage implements CommandInterface { /** * @var string */ private $warningMessage; /** * GuardCoverageCommand constructor. * * @param string $warningMe...
Doorbell Mounting Plate I was replacing a Ring Elite that mounts in an outlet box with a flush mount WiFi doorbell. I also wanted to angle it slightly. You can customize the height and width of the plate as well as the tilt angle. Just use small wood screws to attach the metal bracket that comes with your WiFi doorb...
const defaultOpt = { cache: 'no-store' } const throwError = e => setTimeout(() => { throw e }, 0) const formatData = res => { let data = res.text().then(str => (str ? JSON.parse(str) : void 0)) if (!res.ok) { return data.then(data => { throw [data, res.statusText] }) } return data } cons...
select name, id, lock_level, type, resource_group, scope, notes from azure.azure_management_lock where name = '{{resourceName}}' and resource_group = '{{resourceName}}'
#!/bin/bash set -x set -eE defaultCMName=cis-$(date +"%Y-%m-%d-%H-%M-%S-%N") OUTPUT_CONFIGMAPNAME=${OUTPUT_CONFIGMAPNAME:-${defaultCMName}} SONOBUOY_NS=${SONOBUOY_NS:-sonobuoy} SONOBUOY_POD_NAME=${SONOBUOY_POD_NAME:-sonobuoy} DONE_ANNOTATION_KEY="field.cattle.io/sonobuoyDone" DONE_ANNOTATION_VALUE="true" ERROR_ANNO...