text
stringlengths
27
775k
package com.example.gamecatalogue.core.domain.usecase import com.example.gamecatalogue.core.domain.model.Game import com.example.gamecatalogue.core.domain.repository.IGameRepository class GameInteractor (private val gameRepository: IGameRepository): GameUseCase { override fun getAllGame() = gameRepository.getAll...
# the data bags that are loaded on the Chef server are tracked in the various # mcs-databags-* files with their items and md5 sums because this is much faster # than making a full scrape of the Chef server every run. If these files are # removed, they'll re-upload to the Chef server which shouldn't be an issue resourc...
import scala.collection.immutable.SeqMap import org.scalacheck._ import Arbitrary.arbitrary import Prop._ import Gen._ import scala.collection.mutable.ListBuffer object SeqMapTest extends Properties("SeqMap") { property("overrides stringPrefix") = { new SeqMap[Int, String] { def removed(key: Int): SeqMa...
--! Previous: sha1:36079d84b0bd4d4d1d51e94a787c5e3eb08ee72b --! Hash: sha1:390d812ebd4ef8587ec33b228b3318d58b70af60 -- Enter migration here DROP POLICY IF EXISTS anonymous_select_address ON address; CREATE POLICY anonymous_select_address ON address FOR SELECT TO anonymous USING (public = 'true');
DROP TABLE IF EXISTS customers CASCADE; DROP TABLE IF EXISTS addresses CASCADE; DROP TABLE IF EXISTS streets CASCADE; CREATE TABLE addresses( id INT PRIMARY KEY ); INSERT INTO addresses VALUES (0); INSERT INTO addresses VALUES (1); INSERT INTO addresses VALUES (2);
import { Component, OnInit } from '@angular/core'; import {TagsService} from "../../../services/tags.service"; import {CommonService} from "../../../services/common.service"; @Component({ selector: 'app-tags-list', templateUrl: './tags-list.component.html', styleUrls: ['./tags-list.component.scss'] }) export cla...
import 'package:tba_api_client/api.dart'; import 'package:test/test.dart'; // tests for EliminationAllianceBackup void main() { var instance = new EliminationAllianceBackup(); group('test EliminationAllianceBackup', () { // Team key that was called in as the backup. // String in_ (default value: null) ...
#!/bin/bash set -x echo "Init kibana dashboard" curl -XPOST -H "kbn-xsrf: true" \ --form file="@kibana.ndjson" \ ${KIBANA_HOST}/api/saved_objects/_import
# frozen_string_literal: true module OAuth class AuthorizedApplicationsController < ApplicationController before_action :authenticate_user! def index applications = Doorkeeper::Application.authorized_for(current_user) hash = applications.map do |application| { id: application.i...
module Parsley.Internal.Core.Primitives ( Parser, Reg, module Parsley.Internal.Core.Primitives ) where import Prelude hiding (pure) import Parsley.Internal.Core.CombinatorAST (Combinator(..), ScopeRegister(..), Reg(..), Parser(..)) import Parsley.Internal.Core.Defunc (Defunc(B...
import type { Plugin, RBS } from "../types"; import parseSync from "../parser/parseSync"; const parser: Plugin.Parser<RBS.AnyNode> = { // This function is responsible for taking an input string of text and // returning to prettier a JavaScript object that is the equivalent AST that // represents the code stored ...
<?php namespace Checkout\Instruments; final class CreateInstrumentRequest { public string $type; public string $token; public InstrumentAccountHolder $account_holder; public InstrumentCustomerRequest $customer; }
package handler import ( "time" "github.com/mikudos/mikudos_message_deliver/clients" pb "github.com/mikudos/mikudos_message_deliver/proto/message-deliver" ) func (s *Server) handleDelChan() { for { req := <-s.deleteChan clients.RemoveMessage(clients.GenRemoveRequest(req)) } } func (s *Server) waitAndPushTo...
import React, { useState } from 'react'; import { useCurrentTask, useTasks } from '../../store'; import { Task } from '../../types'; import { TasksModal } from '../TasksModal'; import { Check } from '../../common/Check'; import { DotsMenu } from '../../common/DotsMenu'; import { FadeTransition } from '../../common/Tran...
using System.Collections.Generic; using System.Net; using Microsoft.AspNetCore.Mvc; using TodoService.Models; using TodoService.Services; namespace TodoService.Controllers { [ApiController] [Route("api/[controller]")] public class TodosController : ControllerBase { private readonly ITodosServic...
export class GameConfig { public static x = 30; // 横向个数 public static y = 30; // 纵向个数 }
module Effective class ApplicantReference < ActiveRecord::Base acts_as_tokened acts_as_addressable :reference acts_as_statused( :submitted, # Was submitted by the applicant :completed # Was completed by the reference. ) log_changes(to: :applicant) if respond_to?(:log_changes) be...
<?php namespace App\Http\Controllers\Cart; use Illuminate\Support\Facades\Mail; use Illuminate\Support\Facades\Auth; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Models\OrderItem; use App\Models\Order; use App\Models\Product; use App\Models\Cart; use App\Models\User; use App\Helpers\Helpe...
fun main(args:Array<String>) { checkTrue() checkFalse() } fun checkTrue(){ if(8 == 8){ println("8 is 8")} else{ println("it's false")} } fun checkFalse(){ if(1 == 2){ println("1 is wierdly 2")} else{ println("1 is not 2")} }
# Manuscript media For media that shouldn't be exported alongside every manuscript. Therefore, the contents are placed here instead of in `content/images`.
package com.hason.dtp.tcc.capital.entity.constant; /** * 资金账户的订单状态 * * @author Huanghs * @since 2.0 * @date 2017/12/4 */ public enum CapitalOrderStatus { /** 创建 */ CREATE, /** 完成 */ SUCCESS, /** 失败 */ FAIL }
New-UDPage -Name "ADUsers" -Icon users -Content { New-UDGrid -Title "Active Directory Users ($env:USERDNSDOMAIN)" -Endpoint { Get-ADSIUser -NoResultLimit | Foreach-Object { $sam = [string]$_.SamAccountName [pscustomobject]@{ DisplayName = [string]$_.DisplayName ...
<?php namespace App\Http\Controllers; use App\Brand; use App\FAQ; use App\PageSettings; use App\SplitSection; use Illuminate\Support\Facades\Auth; use Validator; use Illuminate\Http\Request; use Illuminate\Support\Facades\Session; class PageSettingsController extends Controller { /** * Display a listing of ...
; Make sure we don't detect devirtualization on inlining a function with a direct call ; RUN: opt -abort-on-max-devirt-iterations-reached -passes='cgscc(devirt<0>(inline))' -S < %s | FileCheck %s define i32 @i() noinline { ret i32 45 } ; CHECK-NOT: call i32 @call() define i32 @main() { %r = call i32 @call() re...
package com.knight.kotlin.library_util.toast.callback /** * Author:Knight * Time:2021/12/17 10:24 * Description:ToastInterceptorInterface */ interface ToastInterceptorInterface { /** * * 根据显示的文本决定是否拦截该 Toast */ fun intercept(text:CharSequence) :Boolean }
@model CCIA.Models.SeedApp <div class="form-group"> <label>Class to be Produced</label><em class="required">•</em> @{ ViewBag.name = "ClassProducedId"; } <div> @await Html.PartialAsync("Shared/_HorizClassRadioButtons", Model.AppViewModel) </div> @Html.ValidationMessage("ClassProduced", "", n...
use v5.14; use strict; use warnings FATAL => 'all'; no warnings qw(void once uninitialized numeric); package MooX::Aspartame::ImportSet; our $AUTHORITY = 'cpan:TOBYINK'; our $VERSION = '0.005'; use Moo; use Module::Runtime qw(use_package_optimistically); use namespace::sweep; has imports => (is => 'ro'); has iden...
# Tag operations ## Delete tags ``` bash # Delete local git tag -d released/aug2002 # Push empty tag to remote git push origin :refs/tags/released/aug2002 # More explicit git push --delete origin tag ```
iconv -c -f BIG5 -t UTF-8 臺北捷運每日分時各站OD流量統計資料_202008.csv
#!/usr/bin/env python # Small wrapper script for weeder2, which needs the FreqFiles directory # where it is executed. This script allows running weeder2 from anywhere. import os import sys import argparse import subprocess as sp # Weeder install dir weeder_dir = os.path.realpath(os.path.join(os.path.dirname(__file__),...
#ifndef THREAD_SAFE_QUEUE_H #define THREAD_SAFE_QUEUE_H #include <common/PrecompiledHeader.h> template<typename T> class ThreadSafeQueue { public: ThreadSafeQueue() {} ThreadSafeQueue(const ThreadSafeQueue& copy) { std::lock_guard<std::mutex> lock(m_mutex); m_dataQueue = copy.m_dataQueue; } void Push(T val...
/********************************************************************/ /** Microsoft LAN Manager **/ /** Copyright(c) Microsoft Corp., 1987-1991 **/ /********************************************************************/ #define API_WShareEnum ...
# @!attribute [r] items # @return [Array<Argyle::Component::MenuItem>] # # @!attribute [r] cols # @return [Integer] # # @!attribute [r] rows # @return [Integer] # # @!attribute [r] menu # @return [Curses::Menu, nil] # # @!attribute [r] window # @return [Curses::Window, nil] # class Argyle::Component::Menu < A...
val scalaV = "2.12.1" name := "suite-scala-sdk" organization := "com.emarsys" version := "0.1.2" scalaVersion := scalaV scalacOptions ++= Seq( "-deprecation", "-encoding", "UTF-8", "-unchecked", "-feature", "-language:implicitConversions", "-language:postfixOps", "-Ywarn-dead-code", "-Xli...
import 'package:devfest_levante_2019/model/DevFestNotification.dart'; import 'package:devfest_levante_2019/repository/NotificationsRepository.dart'; import 'package:devfest_levante_2019/utils/DateTimeHelper.dart'; import 'package:devfest_levante_2019/utils/LoadingWidget.dart'; import 'package:flutter/material.dart'; c...
// main function fun main() { val color: Color = Color.GREEN when(color){ Color.RED -> print("Color is Red") Color.BLUE -> print("Color is Blue") Color.GREEN -> print("Color is Green") } } enum class Color(val value: Int) { RED(0xFF0000), GREEN(0x00FF00), BLUE(0x0000FF)...
// // SmallXmlParser.cs // // Author: // Atsushi Enomoto <atsushi@ximian.com> // // Copyright (C) 2005 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Softwa...
object filepropFrm: TfilepropFrm Left = 0 Top = 0 Caption = 'filepropFrm' ClientHeight = 401 ClientWidth = 393 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'Tahoma' Font.Style = [] KeyPreview = True OldCreateOrder = False Position =...
require 'spec_helper' describe 'borgbackup::install' do context "without any parameters" do it { is_expected.to compile.with_all_deps } it { is_expected.to have_package_resource_count(0) } end context "with package_name => [ 'python3-borgbackup', 'python3-atticmatic']" do let (:params) { { :package_...
:- module(pcla,[]). :- expects_dialect(sicstus),bb_put(cnt,0). :- op(1200,xfx,⊦), op(650,xfy,[==>,=>]). {A} :- call(A). main :- current_prolog_flag(argv,[File|_]),read_file_to_terms(File,Ds,[]),!, declRun(env{thms:[],types:[],proof:[],coms:[],decls:[]},Ds,G),!, writeln('= Constants ='),maplist(writeln,G.types),...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Maverick.Azure.ApplicationInsightsManager { public sealed class AppInsightsConfigs { public bool disablePageviewTracking { get; set; } public bool disablePageLoadTimeTr...
class DigestRunSubscriberQuery def self.call(digest_run:) content_changes_exist = SubscriberList .joins(matched_content_changes: :content_change) .where("subscriptions.subscriber_list_id = subscriber_lists.id") .where("content_changes.created_at >= ?", digest_run.starts_at) ....
(function(INIT, $, undefined) { $(document).ready(function() { $("#sidebar, #server-info").hide(); $("#main, #content").css("width", "100%"); $("#init-container #submit").click(function() { var params = $("#init-container form").serializeObject(); $.post(action("ini...
package simpleini import ( "regexp" "runtime" "strings" ) type configurationSection map[string]string // Configuration provides a method `Get` to access configuration fields. type Configuration map[string]configurationSection // Get a configuration field by providing section name and key name. // The default sec...
pub mod native; mod loader; use self::loader::LibAAudio; use std::rc::Rc; use std::ffi::CStr; use std::ptr::NonNull; use std::mem::MaybeUninit; use std::pin::Pin; use libc::c_void; pub type ResultCode = native::aaudio_result_t; pub type StreamState = native::aaudio_stream_state_t; pub struct DisplayableResultCode(Res...
require 'thread' gems = IO.readlines("remote_gems_list.txt").shuffle gem_names = gems.map {|gem| gem.split(/\s+/)[0] } work_q = Queue.new gem_names.each{|x| work_q.push x } workers = (0..9).map do Thread.new do begin while gem_name = work_q.pop(true) puts `gem fetch #{gem_name}` end re...
import { inject } from '@vue/composition-api'; export default function useCartProvider() { return { cart: inject('cart'), addItem: inject('addItem'), removeItem: inject('removeItem'), updateItem: inject('updateItem'), incrementItem: inject('incrementItem'), decrementItem: inject('decrementIte...
package akka.dispatch.verification import akka.actor.{Actor, Cell, ActorRef, ActorSystem, Props} import akka.dispatch.Envelope import scala.collection.mutable.Queue import scala.collection.mutable.HashMap import scala.collection.mutable.SynchronizedQueue import scala.collection.immutable.Set import scala.collection.m...
#!/usr/bin/env bash # Install command-line tools using Homebrew. . "$( pwd )/utils.exclude.sh" # Golang version if [ -z "$GO_VERSION" ] then echo "Enter Golang version. Ex: 1.10" read input_version export GO_VERSION=$input_version fi # Install brew which brew 1>&/dev/null if [ ! "$?" -eq 0 ] ; then echo_with...
# kilo * https://github.com/ccc-c/kilo * https://viewsourcecode.org/snaptoken/kilo/
import os import fileinput import config from helpers.copy_file import copy_file from helpers.apachectl import apachectl from vhost.HostsFileManager import HostsFileManager from vhost.StarterSite import StarterSite class VHostCreate: def __init__(self, arguments, working_directory): self.arguments = argume...
import AdmZip from 'adm-zip' import fs from 'fs' import * as os from 'os' import { basename, extname, join, sep } from 'path' import { promisify } from 'util' const readFile = promisify(fs.readFile) const writeFile = promisify(fs.writeFile) const mkdtemp = promisify(fs.mkdtemp) const realpath = promisify(fs.realpath) ...
package Test01::CommandB; use Moose; use MooseX::App::Command; extends qw(Test01); use Moose::Util::TypeConstraints; has 'param_a' => ( isa => 'Str', is => 'rw', ); option 'param_b' => ( isa => enum([qw(aaa bbb ccc ddd eee fff)]), is => 'rw', required => 1, )...
import test from 'ava'; import { isAutoExplainJsonMessage, } from '../../../src/utilities/isAutoExplainJsonMessage'; test('recognizes notice containing JSON', (t) => { t.true(isAutoExplainJsonMessage('duration: {}')); });
-- Hedwig db access control -- Call it under DBA user DROP USER hedwig CASCADE; CREATE USER hedwig IDENTIFIED BY hedwig -- DEFAULT TABLESPACE DBMAIL_TS_DATA -- TEMPORARY TABLESPACE TEMP -- ACCOUNT UNLOCK ; GRANT CONNECT, RESOURCE TO hedwig;
package com.paperclip.osworksapi.domain.models; public enum StatusOrdemServico { ABERTA, FINALIZADA, CANCELADA }
using System; namespace SharpVk.Generator.Generation.Marshalling { public class ParsedExpressionTokenCheck : ILenExpressionVisitor<TokenCheckResult> { public void Visit(LenExpressionReference reference, TokenCheckResult state) { reference.LeftOperand.Visit(this, state); ...
require 'spec_helper.rb' require 'ctl-helpers/delivery_config' require 'ctl-helpers/exceptions' describe CtlHelpers::DeliveryConfig do # delivery.rb configuration values let(:delivery_fqdn) { 'delivery-server.example.com' } let(:delivery_user) { 'delivery-user' } let(:delivery_user_key) { 'delivery-user.pem'...
module Rhouse::Models::Media class MediaSubType < ActiveRecord::Base set_table_name 'MediaSubType' set_primary_key "PK_#{MediaSubType.table_name}" end end
$(function () { $.ajax("destinos.json", { dataType: 'json', contentType: 'application/json', cache: false //para no utilizar el cache del navegador y se conecte al servidor obligatoriamente. }).done(function (respuesta) { $.each(respuesta, function () { v...
<?php /** * Created by PhpStorm. * User: Inhere * Date: 2018/1/20 0020 * Time: 18:43 */ use PhpPkg\Annotations\Annotations; require dirname(__DIR__) . '/test/boot.php'; $an = Annotations::make([ 'nameAsKey' => true, ]); // var_dump($an);die; $ret = $an->yieldMethodsAnnotations(\User::class); // var_dump($...
module Furnace::AVM2::Tokens class IndexToken < Furnace::Code::NonterminalToken include IsSimple def to_text "#{@children[0].to_text}[#{@children[1].to_text}]" end end end
@file:Suppress( "KDocMissingDocumentation", "ObjectPropertyName", "RemoveRedundantBackticks", "unused", "NonAsciiCharacters", "SpellCheckingInspection", "DANGEROUS_CHARACTERS" ) package com.bkahlert.kommons.kaomoji.categories import com.bkahlert.kommons.kaomoji.Category import com.bkahlert...
# rubocop:disable Style/GuardClause module UsersHelper def cover_image(user) if user.cover_image.present? image_tag(user.cover_image, class: 'b_image w-100') else image_tag('background_image', alt: 'Cover image', class: 'b_image w-100') end end def photo_image(user) if user.photo.pres...
package dev.cchilds.repositories import me.koddle.repositories.Repository import me.koddle.tools.DatabaseAccess class InventoryRepo(da: DatabaseAccess) : Repository("inventories", da) { }
$(document).ready(function($) { // set panel min-height to full browser height $(window).bind("load resize", function(){ var h = $(window).height(); $("#wrapper, #grid, #navBg").css({ "min-height" : (h) }); $("#content").css({ "min-height" : (h-147) }); }); // toggle gri...
use bevy::prelude::*; use direction::Direction; use leafwing_input_manager::prelude::*; use strum::EnumIter; fn main() { App::new() .add_plugins(MinimalPlugins) // This plugin maps inputs to an input-type agnostic action-state // We need to provide it with an enum which stores the possible ...
#[macro_use] extern crate log; #[macro_use] extern crate futures; extern crate tokio_core; extern crate tokio_io; extern crate tokio_retry; extern crate tokio_timer; extern crate tokio_codec; #[macro_use] extern crate state_machine_future; extern crate bytes; pub mod conn; pub mod framing; #[cfg(test)] mod tests { ...
module LLVMSpec where import Test.Tasty.Hspec import Data.BitCode as BC import Data.BitCode.Reader as BC import Data.BitCode.LLVM.FromBitCode as BC import Data.BitCode.LLVM as LLVM import Data.BitCode.LLVM.Reader.Monad as LLVM import Data.BitCode.LLVM.Pretty import qualified Data.BitCode.LLVM.Instruction as I import ...
object ScalaPartialFunc { // 偏函数:PartialFunction // [] 中的第一个参数为输入类型,第二个参数为输出类型 def fun: PartialFunction[String,Int]={ case "a" =>20 case _ => 0 } def fun1: PartialFunction[Any,Int]={ // 只要输入的是Int就执行条件 case i :Int => i*10 } def main(args: Array[String]): Unit = { var ar = Array[Any](...
#!/usr/bin/python import sys, glob, os, getopt import matplotlib.pyplot as plt class simple_plot: singlePlot = [] count = 0 figures = [] figure = plt.figure(1) X = [] Y = [] xLabels = [] yLabels = [] legends = [] names = [] def new_plot(self, singlePlot, filename): ...
<?php define("MAX_SUBJECT_NAME_LENGTH", 150, true); define("MAX_LECTURE_NAME_LENGTH", 200, true); define("MIN_DESCRIPTION_LENGTH", 10, true); define("MIN_CREDITS", 0, true); define("MAX_CREDITS", 20, true); if ($_POST) { $errors = array(); $subjectName = $_POST['subjectName']; $lecturerName = $_POST['lecturerNam...
require 'datamappify/data/criteria/sequel/criteria_method' module Datamappify module Data module Criteria module Sequel class Order < CriteriaMethod # @param scope [Sequel::DataSet] # # @return [Sequel::DataSet] def records(scope = nil) order_cond...
package com.android.ui.moodSelection import android.net.Uri import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentTransaction import com.android.ui.fluidSimulation.R import kotlinx.a...
// Code generated by protoc-gen-go. DO NOT EDIT. // source: google/ads/googleads/v2/resources/topic_constant.proto package resources import ( fmt "fmt" math "math" proto "github.com/golang/protobuf/proto" wrappers "github.com/golang/protobuf/ptypes/wrappers" _ "google.golang.org/genproto/googleapis/api/annotati...
#!/bin/bash -x export QMAKE_PATH=/usr/bin/qmake export X_SOURCE_PATH=$PWD export X_BUILD_NAME=xopcodecalc_linux_portable export X_RELEASE_VERSION=$(cat "release_version.txt") source build_tools/linux.sh check_file $QMAKE_PATH if [ -z "$X_ERROR" ]; then make_init make_build "$X_SOURCE_PATH/xopcodecalc_source...
RetroSticks =========== Connect two C64 joysticks to a PC via USB. Introduction: ------------- An Arduino Leonardo can act as a HID device when connected to a PC. Using MHeironimus' excellent ArduinoJoystick library (https://github.com/MHeironimus/ArduinoJoystickLibrary), you can build a simple interface to old C64 ...
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANG...
package cn.merryyou.product.enums; import lombok.Getter; /** * 商品上下架状态 * Created on 2018/4/6 0006. * * @author zlf * @email i@merryyou.cn * @since 1.0 */ @Getter public enum ProductStatusEnum { UP(0,"在架"), DOWN(1,"下架"), ; private Integer code; private String message;...
using System; using System.Collections.Generic; namespace GeoTime.Demo { class Program { static void Main() { TZAbbrLookup lookup = new TZAbbrLookupFactory().GetLookup(); while ( true ) { Console.Write( "Type in a timezone abbreviation: " ); string abbr = Console.ReadLine(); bool tzsFound = looku...
#!/bin/bash # Usage: setup-environment-essentials.sh # Setup things that are needed before build environment initialization can begin. set -e ROOTDIR=`dirname "$0"` ROOTDIR=`cd "$ROOTDIR/../.." && pwd` source "$ROOTDIR/internal/lib/library.sh" run mkdir -p /work/pkg run ln -s /work/pkg ~/pbuilder run mkdir -p /var/ca...
# Tags: Array, Matrix # 一行代码的ruby解决方案,可以看出ruby的表达能力很强,代码非常简洁,而且可读性也很高 # @param {Integer[][]} matrix # @return {Void} Do not return anything, modify matrix in-place instead. def rotate2(matrix) matrix.replace(matrix.reverse.transpose) end # Rotating clockwise equals flipping diagonal then flipping horizontal. def rot...
<?php namespace app\models; use Yii; /** * This is the model class for table "viaje". * * @property string $idviaje * @property string $pasajes * @property string $hospedaje * @property string $comestibles */ class Viaje extends \yii\db\ActiveRecord { /** * @inheritdoc */ public...
require_relative 'point' require_relative 'labels' require_relative 'external_line' module IDEF0 class ExternalInputLine < ExternalLine def self.make_line(source, target) source.left_side.each_anchor do |anchor| yield(new(source, target, anchor.name)) if target.left_side.expects?(anchor.name) ...
/** * Http response codes */ const responseCodes = { ok: 200, created: 201, noContent: 204, badRequest: 400, notAuthorized: 401, notFound: 404, serverError: 500, }; export default responseCodes;
import 'package:bloc_test/bloc_test.dart'; import 'package:fake_cloud_firestore/fake_cloud_firestore.dart'; import 'package:firefuel/firefuel.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_counter/counter/counter.dart'; import 'package:firefuel_counter/firefuel_counter.dart'; void mai...
#!/usr/bin/env ruby require 'gosu' # gem install gosu $width, $height = 200, 200 $number_of_v_lines,$number_of_h_lines = 10, 10 $chars = ('a'..'z').to_a class Entity def initialize(x,y,vel, win) @pos, @vel = {x:x, y:y}, vel @font = Gosu::Font.new(win, Gosu::default_font_name, rand(20)+10) @char = rand($...
import { List, LocalStorage, showToast, Toast } from "@raycast/api"; import { useEffect, useState } from "react"; import { getVendors } from "../../api/api"; import { IVendorData } from "../../model/vendorData"; import PackageItem from "./PackageItem"; export interface IItems { [key: string]: string; } interface St...
package com.gautamastudios.currencyexchange.utils; import android.text.TextUtils; import java.math.BigDecimal; import java.text.NumberFormat; public class CalculationUtil { private static BigDecimal ONE_HUNDRED = new BigDecimal(100); private static BigDecimal ONE_HUNDRED_THOUSAND = new BigDecimal(100000); ...
require 'gem_config' module Aptible module Auth include GemConfig::Base with_configuration do has :root_url, classes: [String], default: ENV['APTIBLE_AUTH_ROOT_URL'] || 'https://auth.aptible.com' end def self.public_key Agent.new.public_key end end end require...
using Svelto.ECS; #if DEBUG using System; using System.Collections.Generic; using System.Reflection; public static class ExclusiveGroupDebugger { static ExclusiveGroupDebugger() { Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); foreach (Assembly assembly in assemblies) ...
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeSynonymInstances #-} {-# OPTIONS_GHC -Wno-missing-signatures #-} module XMonad.Custom.Layout ( layoutHook , selectLayoutByName , toggleLayout , CustomTransformers(..) ) where import XMonad ...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'raw/metadata.ui' # # Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setO...
require "rails/railtie" module Webpacker module Svelte class Engine < ::Rails::Engine initializer :webpacker_svelte do ActiveSupport.on_load(:action_controller) do ActionController::Base.helper ::Webpacker::Svelte::Helpers end ActiveSupport.on_load :action_view do ...
module LDAPSetup def ldap_setup @server_details = ['127.0.0.1', 8389, 'admin', 'Qqb8QC_wBeK!gch'] host, port, username, password = @server_details ldap_params = {:host => host, :username => username, :password => password, :port => port, :method => :simple} @mock_ldap = mock(:bind => true) @mock_l...
import { functions, storage } from '../firebase'; //////////////////////////////////////////////////////////////////////////////// // getAllSchools export const getAllSchools = functions.https.onCall(async (data, context) => { let schools: object[] = []; try { const response = await storage.bucket().file('sch...
// // DDPPlayView.h // DDPlayMacPlayer // // Created by JimHuang on 2019/9/13. // Copyright © 2019 JimHuang. All rights reserved. // #import <Cocoa/Cocoa.h> NS_ASSUME_NONNULL_BEGIN @interface DDPPlayView : NSView @property (copy, nonatomic) void(^ _Nullable keyDownCallBack)(NSEvent *event); @property (nonatomic...
#!/bin/bash # Run Agis.py for prod and analysis in US # Output files in /etc/autopyfactory/ # ACTS="production analysis" CMD="python /usr/lib/python2.7/site-packages/autopyfactory/plugins/factory/config/Agis.py" DEFAULTSFILE="/etc/autopyfactory/agisdefaults.conf" LOGFILE="/var/log/agisconfig.log" ARGS=" --trace --vo a...
module Audit class User < Base self.table_name = 'audit.users' end end
INSERT INTO PERSON_EDITABLE_FIELDS (FIELD_NAME, ACTIVE_FLAG, UPDATE_TIMESTAMP, UPDATE_USER, VER_NBR, OBJ_ID) VALUES ('multiplePi', 'Y', now(), 'admin', 1, uuid()); COMMIT;