text
stringlengths
27
775k
using System.Collections.Generic; using System.Linq; namespace FoodOnline.Domain.Stores.Catalogue { public class MenuItem { public MenuItem() { Entries = new List<MenuItemEntry>(); } public string Title { get; set; } public decimal StartPrice { get; set; }...
package orm import ( "fmt" _ "github.com/go-sql-driver/mysql" "github.com/jinzhu/gorm" "gopost/src/base" "gopost/src/logger" "gopost/src/model" "log" "time" ) var ( db *gorm.DB ) func Get() *gorm.DB { return db } func InitDB() error { var err error cfg := base.GetConfig().Database logger.Print(cfg) arg...
//! A `Zome` is a module of app-defined code which can be run by Holochain. //! A group of Zomes are composed to form a `DnaDef`. //! //! Real-world Holochain Zomes are written in Wasm. //! This module also provides for an "inline" zome definition, which is written //! using Rust closures, and is useful for quickly def...
import React, { Component } from 'react'; import FontAwesome from 'react-fontawesome'; export default class Footer extends Component { render() { return ( <footer className="footer"> <div className="right credit"> Made by <a href="http://rayalez.com">Ray Alez</a> <a href="https://github.com/ra...
--- layout: page title: About Me permalink: /about/ --- You'll find better legs in a bucket of chicken.
using System.IO; using Bing.IO; using Xunit; using Xunit.Abstractions; namespace Bing.Utils.Tests.IO { /// <summary> /// 目录操作辅助类测试 /// </summary> public class DirectoryUtilTest:TestBase { public DirectoryUtilTest(ITestOutputHelper output) : base(output) { } [Fact] ...
/* t-stutter.c - Test the stutter exploit. * Copyright (C) 2016 g10 Code GmbH * * This file is part of GnuPG. * * GnuPG is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, o...
#ifndef MESHCONVERTERUIFORM_H #define MESHCONVERTERUIFORM_H #include <QWidget> class MeshConverterUIControl; class QDoubleSpinBox; class QLineEdit; namespace Ui { class MeshConverterUIForm; } class MeshConverterUIForm : public QWidget { Q_OBJECT public: explicit MeshConverterUIForm( MeshConvert...
package com.gh4a.loader; public class LoaderResult<T> { private T mData; private Exception mException; LoaderResult(T data) { mData = data; } LoaderResult(Exception e) { mException = e; } public T getData() { return mData; } public boolean isSuccess() { ...
// "WaveVR SDK // © 2017 HTC Corporation. All Rights Reserved. // // Unless otherwise required by copyright law and practice, // upon the execution of HTC SDK license agreement, // HTC grants you access to and use of the WaveVR SDK(s). // You shall fully comply with all of HTC’s SDK license agreement terms and // cond...
require 'socket' require 'wake_on_lan/version' module WakeOnLan autoload :MagicPacket, 'wake_on_lan/magic_packet' def self.wake(mac_address, broadcast, port) packet = MagicPacket.new(mac_address).assemble_frame socket = UDPSocket.open() socket.setsockopt Socket::SOL_SOCKET, Socket::SO_BROADCAST, 1 ...
 namespace OfxNet { public class OfxBankAccount : OfxAccount { public string BankId { get; set; } public string BranchId { get; set; } public OfxAccountType AccountType { get; set; } } }
package com.cefoler.configuration.core.exception.unchecked.time; public abstract class TimeException extends RuntimeException { private static final long serialVersionUID = 7381064349343580256L; protected TimeException() { } protected TimeException(final String error) { super(error); } protected Ti...
namespace PDIWinFormsTest { partial class EventRecurTestForm { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
const Big = require("big.js"); const web3 = require("web3"); const SECONDS_PER_BLOCK = 3; function getDeadAddress() { return "0x000000000000000000000000000000000000dead"; } function numToHex(num) { return `0x${num.toString(16)}`; } function getBlockFromTime(time, knownBlock, knownBlockTime) { time = typeof ti...
module TAdd where import Dwt import Test.HUnit hiding (Node) import Text.Megaparsec (parse) import Control.Monad.Trans.State (execStateT) tAdd = TestList [ TestLabel "tAddLabeled" tAddLabeled , TestLabel "tAddUnlabeled" tAddUnlabeled ] tAddLabeled = TestCase $ do let Right g = exec...
use failure::Error; use lucet_module::bindings::Bindings; use lucet_runtime_internals::module::DlModule; use lucet_wasi_sdk::{CompileOpts, Link, LinkOpt, LinkOpts}; use lucetc::{Lucetc, LucetcOpts}; use std::path::{Path, PathBuf}; use std::sync::Arc; use tempfile::TempDir; pub fn test_module_c(dir: &str, cfile: &str) ...
package bookstore.service; import java.util.List; import java.util.Optional; import javax.transaction.Transactional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import bookstore.dao.AuthorRepository; import bookstore.dao.BookRepository; import bookst...
package org.lyon_yan.app.android.lib_lyon_yan_utils.file; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.nio.channels.FileChannel; import java.util.ArrayList; import java.util.List; import android.content.Contex...
<?php namespace Oro\Bundle\ActionBundle\Datagrid\Action; use Oro\Bundle\DataGridBundle\Extension\Action\Actions\AbstractAction; use Symfony\Component\Translation\TranslatorInterface; class ButtonWidgetAction extends AbstractAction { /** * @var TranslatorInterface */ protected $translator; /** ...
package com.android.picshow.app; import android.app.Activity; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.ColorMatrix; import android.os.Bundle; import android.provider.MediaStore; import android.support.annotation.Nullable; import andr...
/** * Copyright 2021 RelationalAI, Inc. * * 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...
<?php /** * It defines the Category layer, which will be used to categorize contents * in the system. It allows create, change and remove categories in database, * also sets relations between terms and vocabularies. * * This is a static class. */ namespace Drufony\CoreBundle\Model; defined('CATEGORY_TABLE') or ...
# VideoBrowser 1) Checkout code from Repo <br> 2) Run the sample in Simulator<br> 3) Then use "CMD+SHIFT+H" to go to home on simulator<br> 4) Open Safari Browser and Navigate to http://s18613401.onlinehome-server.com:8080/server.crt URL in the browser<br> 5) Click on Install to install self signed CA as Trusted CA.<br>...
package com.easycode.gencode.ui.main; import org.eclipse.jface.viewers.TreeViewer; import org.eclipse.swt.SWT; import org.eclipse.swt.custom.CTabFolder; import org.eclipse.swt.custom.CTabItem; import org.eclipse.swt.custom.SashForm; import org.eclipse.swt.events.MouseEvent; import org.eclipse.swt.events.MouseListener;...
import { Bot } from '../client/Client'; import { ApplicationCommandData, ApplicationCommand, CommandInteraction, } from 'discord.js'; export default interface Command { execute(client: Bot, interaction: CommandInteraction): Promise<void>; config: ApplicationCommandData; command?: ApplicationCommand; }
# How to: Upgrade existing Peggy ## Setup Modify the .env file to include: ``` MAINNET_URL=<mainnet_url> MAINNET_PROXY_ADMIN_PRIVATE_KEY=<private_key> DEPLOYMENT_NAME="sifchain-1" ``` Where: |Item|Description| |----|-----------| |`<mainnet_url>`|Replace with the Mainnet URL| |`<private_key>`|Replace with the ETH...
permissionsetextension 4507 "Email - Admin - ORA" extends "Email - Admin" { Permissions = tabledata "Email - Outlook Account" = imd, tabledata "Email - Outlook API Setup" = IMD; }
package ipfs import ( "context" "github.com/ipfs/go-ipfs/core" "github.com/ipfs/go-ipfs/repo/fsrepo" ipld "github.com/ipfs/go-ipld-format" ) type IPFS struct { n *core.IpfsNode ctx context.Context } func (ipfs IPFS) Add(node ipld.Node) error { return ipfs.n.DAG.Add(ipfs.n.Context(), node) } func InitIPFS...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Team; class TeamController extends Controller { public function registForm() { return view('iheart.admin.team.regist'); } // 팀 등록 public function regist(Request $request) { // form validation $errMessag...
import { Component, Input, ViewChild, ElementRef, Output } from "@angular/core"; import { Tab } from "./tab.component"; import { EventEmitter } from "@angular/core"; @Component({ selector: "ibm-tab-header", template: ` <li [ngClass]="{ 'bx--tabs__nav-item--selected': active, 'bx--tabs__nav-item--d...
package com.evalab.core.cli.exception import com.evalab.core.cli.option.Option public class IllegalOptionNameException(val option: Option<*>) : OptionException("Illegal name option " + option.toString())
<?php namespace Ribal\Onix\Product; use Ribal\Onix\CodeList\CodeList46; class SalesRights { /** * SalesRightsType * * @var CodeList */ protected $SalesRightsType; /** * Territory * * @var Territory */ protected $Territory; /** * Set SalesRightsType ...
<?php namespace App\Http\Controllers; use App\Deal; use App\Post; use Illuminate\Http\Request; use Illuminate\Support\Arr; use mysql_xdevapi\Session; class DealsController extends Controller { public function deals(Request $request){ $deals = Deal::all(); $posts = Array(); foreach ($deals...
package nl.jovmit.login import android.content.Intent import android.os.Bundle import android.support.design.widget.Snackbar import android.support.v7.app.AppCompatActivity import kotlinx.android.synthetic.main.activity_login.* import nl.jovmit.R import nl.jovmit.login.data.LoginResponse import nl.jovmit.main.MainActi...
package ch.epfl.bluebrain.nexus.delta.sdk.views.model import cats.Functor import ch.epfl.bluebrain.nexus.delta.rdf.IriOrBNode.Iri import ch.epfl.bluebrain.nexus.delta.sdk.model.TagLabel import ch.epfl.bluebrain.nexus.delta.sdk.model.projects.ProjectRef import ch.epfl.bluebrain.nexus.delta.sourcing.projections.Projecti...
# MobDisguises Showcasing DisguiseLib posibilities. * disguised entity spawning (configurable) * `/disguise` command
<?php namespace Database\Seeders; use App\Models\Module; use App\Models\Permission; use Illuminate\Database\Seeder; class PermissionSeeder extends Seeder { /** * Run the database seeders. * * @return void */ public function run() { $moduleAppDashboard = Module::updateOrCreate(...
#!/usr/bin/env raku use Test; use JSON::Fast; use AWS::SNS::Notification; use Test::Mock; use Cro::HTTP::Client; use URI; my @tests = ( { name => 'Notification', message => 'not.json', }, { name => 'Subscription', message => 'sconf.json', } ); subtest { ...
import { connect } from 'react-redux'; // actions import { setMapOptions } from 'modules/map/actions'; // components import BasemapControl from './component'; export default connect( state => ({ basemap: state.map.basemap }), { setMapOptions } )(BasemapControl);
# shopify-demo-app-node-react [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE.md) This repository is deprecated and has been replaced by [Shopify App Node](https://github.com/Shopify/shopify-app-node).
module PolishInvoicer class Presenter attr_accessor :invoice def initialize(invoice) @invoice = invoice @out = {} end def data copy_available_params remove_redundand_params copy_additional_params format_dates format_prices format_comments format_...
package org.apache.poi.ss.usermodel.charts; public interface ChartAxis { void crossAxis(ChartAxis chartAxis); AxisCrosses getCrosses(); long getId(); double getLogBase(); AxisTickMark getMajorTickMark(); double getMaximum(); double getMinimum(); AxisTickMark getMinorTickMark(); ...
import torch.nn as nn from einops import rearrange from pytorch_blocks.linear_block import LinearBlock class SEBlock(nn.Module): """Squeeze-and-Excitation (SE) block. Args: in_channels (int) reduction (int): reduction factor for hidden channels. Defaults to 16. hidden_channels (int): ...
module Claim class TransferBrainDataItem def initialize(data_item) @litigator_type = data_item.litigator_type.downcase @elected_case = data_item.elected_case.to_bool @transfer_stage_id = TransferBrain.transfer_stage_id(data_item.transfer_stage) @case_conclusion_id = get_case_conclusion_id(...
mod c_404; pub fn all() -> Vec<rocket::Catcher> { catchers![self::c_404::view,] }
<?php namespace Domain\Usuario; use Domain\Base\Models\BaseAuthModel; use Domain\Equipe\Equipe; use Domain\Perfil\Perfil; use Domain\Tarefa\Tarefa; use Domain\Timesheet\Timesheet; use Domain\UsuarioHorario\UsuarioHorario; use Domain\UsuarioToken\UsuarioToken; use Illuminate\Notifications\Notifiable; class Usuario ex...
# https://adventofcode.com/2020/day/19 example1 = """ 0: 1 2 1: "a" 2: 1 3 | 3 1 3: "b" """ example2 = """ 0: 4 1 5 1: 2 3 | 3 2 2: 4 4 | 5 5 3: 4 5 | 5 4 4: "a" 5: "b" """ function preprocess_rule(rule) if '"' in rule return strip(replace(rule, '"' => "")) end if '|' in rule rule = join...
using System; using System.Runtime.Serialization; using SadConsole.UI.Controls; using SadRogue.Primitives; namespace SadConsole.UI.Themes { /// <summary> /// A basic theme for a drawing surface that simply fills the surface based on the state. /// </summary> [DataContract] public class SurfaceView...
from setuptools import setup import os API_NAME = os.environ.get('API_NAME', 'api') API_VERSION = os.environ.get('API_VERSION', '0.0.1') setup( name=API_NAME, version=API_VERSION, description='HHE equipment api', author='Michael Housh', author_email='mhoush@houshhomeenergy.com', packages=['api...
<?php /** * Maze.core * * @license http://opensource.org/licenses/MIT MIT */ /** * MazeLib_Auth_Adapter * * @license http://opensource.org/licenses/MIT MIT */ class MazeLib_Auth_Adapter implements Zend_Auth_Adapter_Interface { protected $_username; protected $_password; public function __construc...
<?php die(); /** * Add you custom models here that you are loading in your controllers * * <code> * $this->site_model->get_records() * </code> * Where site_model is the model Class * * ---------------------- Models to Load ---------------------- * <examples> * * @property Category_model $category_model * @p...
/* * (c) Copyright 2021 Palantir Technologies Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
/** * * Copyright (c) 2015-2017 Rodney S.K. Lai * https://github.com/rodney-lai * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the * above copyright notice and this permission notice appear in all copies. * * THE SOFTW...
using MyInterpolations: ValsVector @testset "Testing lin_interp.jl" begin @testset "MyLinInterp" begin grid = 0:2 vals = [1, 3, 2.5] itp = MyLinInterp(grid, vals) x, y = 1.2, 2.9 @test isapprox(@inferred(itp(x)), y) # Grid points for (i, x) in enumerate(gr...
require 'oa/graph' # mixin methods module OA class Graph # returns graph without any LDP-specific triples def self.remove_ldp_triples graph if graph && graph.is_a?(RDF::Graph) && graph.count > 0 no_ldp_graph = RDF::Graph.new ldp_props = RDF::Vocab::LDP.properties.map {|p| p.to_s} ...
<?php N2Loader::import('libraries.form.elements.subformImage'); class N2ElementSliderResponsive extends N2ElementSubformImage { /** @var N2SSPluginSliderResponsive[] */ protected $plugins = array(); protected function loadOptions() { $this->plugins = N2SSPluginSliderResponsiv...
import 'package:flutter/widgets.dart'; import 'package:flutter_platform_widgets/flutter_platform_widgets.dart'; import 'package:go_router/go_router.dart'; import 'package:trackmys/core/app_theme.dart'; import 'package:trackmys/features/settings_screen/settings_screen.dart'; class Page1Screen extends StatelessWidget { ...
import Fox.core.lib.general.templates.ProgressState; import Fox.core.lib.general.utils.ProgressStateException; import Fox.core.main.SearchLib; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.swing.*; import javax.swing.plaf.ProgressBarUI; import javax.swing.plaf.basic.BasicProgressBarUI; import ...
package com.miruken.callback import com.miruken.TypeReference import com.miruken.runtime.componentType import com.miruken.runtime.isCompatibleWith import kotlin.reflect.KType class Provider( private val value: Any, type: TypeReference? = null ) : Handler() { private var _key: Any = type?.kotlinTy...
import fs from 'fs'; import path from 'path'; import url from 'url'; import cheerio from 'cheerio'; import CleanCSS from 'clean-css'; import UglifyJS from 'uglify-js'; import { minify as HtmlMinify } from 'html-minifier'; function localUrl (urlPath) { let u = url.parse(urlPath, false, true); return u.host ? nu...
#ifndef _ATOMIC_H #define _ATOMIC_H #if defined(_WIN32) || defined(_WIN64) #include <Windows.h> #include <intrin.h> #define __sync_fetch_and_add32 _InterlockedExchangeAdd #define __sync_val_compare_and_swap32(ptr, a, v) _InterlockedCompareExchange(ptr, v, a) #define __sync_bool_compare_and_swap32(ptr, a, v) (_Interl...
import {Column, Entity, ManyToOne, OneToMany, PrimaryGeneratedColumn} from "typeorm"; import {Recipe} from "../recipes/recipes.entity"; import {RecipesIngredients} from "../recipes/recipes-ingredients.entity"; @Entity() export class Ingredient { @PrimaryGeneratedColumn() id: number; @Column() title: s...
#!/bin/sh # # YAFFS: Yet another FFS. A NAND-flash specific file system. # # Copyright (C) 2002-2010 Aleph One Ltd. # # Created by Charles Manning <charles@aleph1.co.uk> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # publish...
require 'spec_helper' require 'json' def serialize_json(o) API_CLIENT.object_to_http_body(o) end def deserialize_json(s, type) headers = {'Content-Type' => 'application/json'} response = double('response', headers: headers, body: s) API_CLIENT.deserialize(response, type) end describe "Pet" do before do ...
use rocket::{get, post, form::Form, response::Redirect, Request}; use rocket_auth::{Error, Auth, Signup, Login, User}; use rocket_dyn_templates::Template; use rocket::serde::json::Json; use serde_json::value::Value; use super::utils::{render_spa, SPAInfo}; #[post("/signup", data="<form>")] pub async fn signup(form: J...
<?php namespace Winged\Buffer; /** * This class create a buffer of output HTML. It is possible to create a buffer only * Class Buffer */ class Buffer{ public static $ob_buffer; /** * Start buffer */ public static function start() { if (!self::$ob_buffer) { if (ob_sta...
--- title: Mordern C++ Tricks author: Bhargav Lad date: 2020-11-25 11:33:00 categories: [Learning, Cpp] tags: [cpp,c14,programming] --- # Initalization with {} - The initialization of variables was uniform in C++11. - {} initalization is always applicable - {} init prevents narrowing conversion of implicit conver...
#!/bin/sh set -e # install homebrew manually if ! which brew >/dev/null 2>&1; then ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" fi if ! which ansible >/dev/null 2>&1; then brew install ansible fi echo echo Now you can keep running ansible with: echo \$ ./ansible.sh ec...
using System.Collections.Generic; using System.Security.Claims; using System.Threading.Tasks; using Casbin.AspNetCore.Authorization; using Casbin.AspNetCore.Authorization.Policy; using Casbin.AspNetCore.Tests.Fixtures; using Casbin.AspNetCore.Tests.Utilities; using Microsoft.AspNetCore.Authorization; using Microsoft.E...
import React, {Component} from 'react'; export default class Attributes extends Component { constructor(props) { super(props); this.attrName = props.name; this.attrValue = props.value; } static replaceDash(name){ return name.replace('-', ' '); } render() { ...
package it.unibo.tuprolog.core.parsing import it.unibo.tuprolog.core.operators.OperatorSet import it.unibo.tuprolog.parser.PrologLexer import it.unibo.tuprolog.parser.PrologParser import org.antlr.v4.runtime.* import org.antlr.v4.runtime.atn.PredictionMode import org.antlr.v4.runtime.misc.ParseCancellationException im...
package pl.temomuko.autostoprace.ui.staticdata.image import pl.temomuko.autostoprace.domain.model.RaceInfoImages import pl.temomuko.autostoprace.ui.base.MvpView interface FullscreenImageView : MvpView { fun setRaceInfoImages(raceInfoImages: RaceInfoImages) }
require 'spec_helper' require 'magic_reveal/creator' require 'pathname' describe MagicReveal::Creator do let(:fetcher) { double(MagicReveal::RevealJsFetcher).as_null_object } before do subject.stub(:system) # This is an integration test thingy. subject.reveal_js_fetcher = fetcher end context 'with a t...
import { selectedText, importMissingDependencies, activeFileName, allText, selectedTextStart, selectedTextEnd } from "../editor"; import { replaceSelectionWith } from "../code-actions"; import { buildEffectHook, buildUseCallbackHook, buildUseMemo } from "../snippet-builder"; import { codeToAst, astToCode } from "../par...
#!/bin/bash # Note: docker must be listening on port 2376 for these builds to work. # Ubuntu does not have docker listen on a TCP port by default for security # reasons. # See restart-docker.sh to see how to set docker to listen on 2376. cd ../twitter-to-kafka-service || exit pwd mvn install -DskipTests cd ../conf...
-- @testpoint: opengauss关键字Identity(非保留),作为函数名,部分测试点合理报错 --关键字不带引号-成功 drop function if exists Identity; create function Identity(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / drop function if exists Identity; --关键字带双引号-成功 drop function if exists "Identity"; create function "Identi...
[@sitecore-jss/sitecore-jss-vue](../README.md) / TrackingRequestOptions # Interface: TrackingRequestOptions ## Table of contents ### Properties - [action](TrackingRequestOptions.md#action) - [fetcher](TrackingRequestOptions.md#fetcher) - [host](TrackingRequestOptions.md#host) - [querystringParams](TrackingRequestOp...
use crate::event::PlayerSpawnEvent; use bevy::prelude::*; use bevy::{ app::AppExit, input::gamepad::{Gamepad, GamepadButton, GamepadEvent, GamepadEventType}, }; use std::collections::{HashMap, HashSet}; #[derive(Default)] pub struct GamepadPlugin; impl Plugin for GamepadPlugin { fn build(&self, app: &mut A...
puppet-autossh ============== AutoSSH upstart service, for port forwarding thru firewall
import org.scalacheck.Prop import org.scalatest.funsuite.AnyFunSuite import org.scalatestplus.scalacheck.Checkers import scala.util.parsing.combinator.{JavaTokenParsers, RegexParsers} import scala.util.parsing.input.CharSequenceReader import scalacheck.{ExtendedGen => ExGen} class ParsecTest extends AnyFunSuite with C...
package fr.eni.editions.lambdas; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; public class TestListe { public static void main(String[] args) { List<String> liste = new ArrayList<String>(List.of("bonjour", "tout", "le", "monde")); System.out.println("Affichage classiqu...
require 'rails_helper' RSpec.describe BulkGradings::SubjectPolicy, :doing do subject { described_class.new(account, policy_record) } let(:policy_record) { described_class.policy_record_with(exercise: exercise) } let(:term) { exercise.term } context 'exercise allowing bulk management' do let(:exercise) { ...
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; /** * */ class DOMTools { /** * */ getPanelLocation (aPanel) { let ref=ReactDOM.findDOMNode(this.refs[aPanel]); if (ref!=null) { return (ref.getBoundingClientRect()); } else { console.log ("Internal error: can...
#!/bin/bash SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" cd "$SCRIPT_DIR/.." # TODO: This should be rewritten in rust, a Makefile, or some platform-independent language echo "Welcome to the happy clean script. :)" echo "[*] Running clean for the main crates" cargo clean fuzzers=$(find...
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Tempo de geração: 07/10/2021 às 13:00 -- Versão do servidor: 5.7.34 -- Versão do PHP: 7.4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
#!/usr/bin/env bash set -eo pipefail mkdir -p data/logs mkdir -p data/bitcoin bitcoind \ -datadir=data/bitcoin \ -conf=../../scripts/bitcoin.conf \ $* # &> >(tee &> >(echo `basename "$0 $*"`>>data/logs/bitcoind.sh.log) >>data/logs/bitcoind.sh.log)
module Wee VERSION = "2.3.0" Version = VERSION end
require 'errors/version' require 'multi_json' require 'ostruct' require 'json' module Errors class Base attr_accessor :data def initialize(code=nil) @code = code read_file end def read_file @data = JSON.parse(File.read("#{Dir.pwd}/lib/json/status-codes.json")) end def co...
<?php declare(strict_types=1); namespace Version\Tests; use PHPUnit\Framework\TestCase; use Version\Exception\CollectionIsEmptyException; use Version\Exception\InvalidVersionStringException; use Version\Tests\TestAsset\VersionIsIdentical; use Version\Tests\TestAsset\VersionsCollectionIsIdentical; use Version\Version...
import { QlikRepositoryClient } from "qlik-rest-api"; import { URLBuild } from "./util/generic"; import { IClassNodes, IServerNodeConfigurationCondensed } from "./Nodes"; import { ISelection } from "./types/interfaces"; import { IProxyCreate, IProxyService, IVirtualProxyConfigSamlAttributeMapItem, IVirtualPro...
#!/usr/bin/sh set -e export LD_LIBRARY_PATH=$1/lib; rm -rf $1/samples/src/* cd examples ./configure --prefix=$1 --enable-libntlm=$2 --enable-rampart=$3 make make install cd .. if ! test -d $1/samples/src; then mkdir $1/samples/src; fi if ! test -d $1/samples/src/c; then mkdir $1/samples/src/c; fi if ! te...
import { FC } from 'react'; import Modal from './Modal'; import styled from '@emotion/styled'; import HappySquid from '../icons/HappySquid'; import FancyButton from '../common/FancyButton'; import LeaderboardIcon from '../icons/Leaderboard'; import MapIcon from '../icons/Map'; import NavIconButton from '../common/NavIc...
SCHEMAS=./schemas LIB_MODULES=./ics_courier_lib find "${LIB_MODULES}" -name "*.py" -exec rm -r {} \; touch "${LIB_MODULES}/__init__.py" generateDS --no-namespace-defs -o "${LIB_MODULES}/services.py" "${SCHEMAS}/services.xsd"
import { FC } from 'react'; import { EmptyQuestionsImage } from '~/assets/icons'; import { Container } from './styles'; interface Props { adminView: boolean; } const EmptyQuestions: FC<Props> = ({ adminView }) => ( <Container> <EmptyQuestionsImage /> <h3>There are no questions...</h3> <p> {adm...
package com.karasiq.shadowcloud.api trait SCApiMeta { type EncodingT <: SCApiEncoding val encoding: EncodingT val payloadContentType: String }
## # Helper methods for table filters functionality. # # The recommended way of using this helper is # # filters_for admin_members_path do |filter| # filter.on :query the default is a text field # filter.on :answer, options: %w(Yes No) if given an options hash, a select will be u...
#include "igtlioFixture.h" #include "vtkImageData.h" #include "igtlioImageConverter.h" #include "vtkMatrix4x4.h" #include <vtksys/SystemTools.hxx> #include "igtlioSession.h" #include "igtlioTestUtilities.h" //--------------------------------------------------------------------------- void onReceivedEventFunc(vtkObjec...
@extends('layouts.app') @section('content') <div class="row"> <div class="col m12"> @can('odin') <a href="#">Odin level</a> @endcan </div> </div> @endsection
# frozen_string_literal: true # # Generic humanoid carbon unit # class User < ApplicationRecord include UserAdmin has_paper_trail default_scope { order(:login) } devise :omniauthable, omniauth_providers: [:github] has_many :interactions, dependent: :destroy has_many :participating, through: :interaction...