text
stringlengths
27
775k
import { autorun } from 'mobx'; import style from '../ItkVtkViewer.module.css'; import rotateIcon from '../icons/rotate.svg'; function createRotateButton( store, contrastSensitiveStyle, mainUIRow ) { const rotateButton = document.createElement('div'); rotateButton.innerHTML = `<input id="${store.id}-toggle...
<?php namespace Clickfwd\Yoyo\Services; use Clickfwd\Yoyo\Concerns\Singleton; class Response { use Singleton; protected $headers = []; protected $statusCode = 200; public function __construct() { } public function header($name, $value) { $this->headers[$name] = $value; ...
2020年08月12日08时数据 Status: 200 1.乌鲁木齐此次疫情有一半确诊无症状 微博热度:3143328 2.大连地铁回应两外国人攀爬扶手 微博热度:1493183 3.雷军十年演讲 微博热度:1317973 4.权珉娥发文道歉 微博热度:1253168 5.王思聪 鞠婧祎 微博热度:1243922 6.全球腰最细的人 微博热度:1222144 7.窦骁何超莲反手抱 微博热度:1095069 8.拜登提名美国副总统候选人 微博热度:1052520 9.小米透明电视 微博热度:923497 10.成都各影院上座率限制放宽 微博热度:906927 11.被陈婷气死 微博热度:7...
import 'package:flutter/material.dart'; import 'package:rate_my_app/src/core.dart'; import 'package:rate_my_app/src/style.dart'; import 'package:smooth_star_rating/smooth_star_rating.dart'; /// The Android rate my app dialog. class RateMyAppDialog extends StatelessWidget { /// The rate my app instance. final RateM...
import { renderHook, act } from '@testing-library/react-hooks'; import { useAccordion } from './use-accordion'; enum Accordions { one, two, } describe(' useAccordion', () => { it('should toggle accordion', () => { const { result } = renderHook(() => useAccordion<Accordions>({})); expect(result.current....
; Copyright 2022 Andreas Herzig ; Licence: MIT %macro OUTB 2 mov dx, %1 mov al, %2 out dx, al %endmacro %macro INB 2 mov dx, %1 in al, dx %endmacro check_cpu: ; Hersteller mov eax, 0 cpuid ; eax hat hier höchstmöglichen Wert für CPUID mov [cpuinfo + 0], ebx mov [cpuinfo + 4], edx mov [cpuinfo + 8], e...
#!/usr/bin/env bash set -o errexit set -o nounset set -o pipefail yum install --nogpgcheck --quiet -y -e 0 epel-release PACKAGES=( bind-utils net-tools ) yum install --nogpgcheck --quiet -y -e 0 "${PACKAGES[@]}" ln -sf /usr/share/zoneinfo/Europe/Brussels /etc/localtime systemctl enable firewalld systemctl ...
{-# LANGUAGE OverloadedStrings #-} module Network.Wai.ParseSpec (main, spec) where import Test.Hspec import Test.HUnit import System.IO import Data.Monoid import qualified Data.IORef as I import qualified Data.ByteString as S import qualified Data.ByteString.Char8 as S8 import ...
import 'dart:async'; import 'dart:math'; import 'dart:typed_data'; import 'package:cbl/cbl.dart'; import 'package:cbl/src/service/cbl_service_api.dart'; import 'api_variant.dart'; import 'database_utils.dart'; Uint8List randomRawEncryptionKey() { final random = Random.secure(); return Uint8List.fromList( Lis...
AFRAME.registerComponent('save-state', { schema: { on: {default: 'click'}, }, init: function () { console.log(`save-state.init: entered`); this.saveState = this.saveState.bind(this) }, play: function () { console.log(`save-state.play: entered`); this.updateEventListener(); }, updateE...
<?php include '../temp/header.php' ?> <title>文字数チェッカー|<?php echo $sitename;?></title> <?php include '../temp/nav.php' ?> <div id="app" class="contents" style="min-height:90vh"> <div class="inner contents-inner"> <?php include '../temp/ad.php'?> <div class="box"> <div class="box-content"> <h2>文字数チ...
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FlexibleContexts #-} module Kalium.Haskell.Imports where import Kalium.Prelude hiding (List) import Kalium.Util import Data.Data import qualified Data.Set as S import qualified Data.Map as M import Language.Haskell.Exts.Syntax import Language.Haskell.Exts.SrcLoc (noLoc) ...
class Scanner def self.generate_cart_item_list all_item_list cart_item_list = Array.new barcode_and_numbers = load_inputs.reduce(Hash.new(0)) { |a, b| a[b] += 1; a } barcode_and_numbers.map do |key, value| item = all_item_list.detect { |item| item.barcode == key} cart_item_list << CartIte...
<?php namespace MFiles\Model\Folder; class MFilesTraditionalFolder { /** @var int */ private $item; /** @var int */ private $version; /** @var string */ private $displayValue; /** * @return int */ public function getVersion(): int { return $this->version; }...
#ifndef CODEC_TURBO_HPP_ #define CODEC_TURBO_HPP_ #include <memory> #include <vector> #include <fstream> #include "Tools/Code/Turbo/Post_processing_SISO/Post_processing_SISO.hpp" #include "Module/CRC/CRC.hpp" #include "Module/Encoder/RSC/Encoder_RSC_sys.hpp" #include "Module/Decoder/Decoder_SISO.hpp" #include "Factor...
--- title: "【あなたへの贈り物】継がれる願いは、その先へと:仮プレ" date: '2011-12-09 04:35:01' tags: PBW, Playing --- 「 [【あなたへの贈り物】継がれる願いは、その先へと](http://t-walker.jp/eb/adventure/op.cgi?sceid=8779)」の仮プレイングになります。 **** 【今回の目的】 リカルドさんとラウラさんの形見の品を見つけ、リラさんに手渡すこと 【廃村へ向かう】 原則的に常時警戒を緩めません。 歩行樹からの不意打ちに注意し、特に後衛の人が襲われそうになった場合には身を呈しても防ぎます。 【廃村に着いた後...
import * as request from 'supertest'; import app from '../../'; import { post, waitForSync } from '../../models'; const api = '/api/board/v1/notice/'; beforeAll(async done => { await waitForSync; done(); }); describe('select all post', () => { beforeAll(async done => { await post.destroy({ where: {} }); ...
// Copyright (c) 2021, Very Good Ventures // https://verygood.ventures // // Use of this source code is governed by an MIT-style // license that can be found in the LICENSE file or at // https://opensource.org/licenses/MIT. import 'package:counter_repository/counter_repository.dart'; import 'package:flutter_counter_ex...
#region using System; using System.Linq.Expressions; #endregion namespace Vermeil.Core.Settings { public interface ISettingsManager { void Save(); void Clear(); void SetValue(Expression<Func<object>> property, Object value); void SetValue(string key, Object valu...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AbstractFactory { abstract class Sandwich { } abstract class Pizza { } abstract class RecipeFactory { public abstract Sandwich CreateSandwich(); public abstract...
module ActiveAdminAssociations module AssociationActions def association_actions controller do include InstanceMethods end member_action :unrelate, method: :put do unrelate_record end member_action :relate, method: :put do relate_record end memb...
package com.ouyeel.controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.servlet.ModelAndView; import java.util.Map; @Controller public class HelloController { @RequestMapping("/hello") public String hello(...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerUtil { public static Color GetColor(int playerIndex) { switch (playerIndex) { case 0: return Color.green; case 1: return new Color(1.0f, 0.75f, 0.26f); case 2: re...
module TestSplitBy include("preamble.jl") using Transducers: ReduceSplitBy, Bulk, End function just_bulk(x) if x isa Bulk Some(x[]) else x::End nothing end end @testset "ReduceSplitBy" begin @test 1:5 |> ReduceSplitBy(iseven, Map(getindex)'(string), "_") |> collect == ...
# Go benchmark analysis tools [![Go Reference](https://pkg.go.dev/badge/golang.org/x/perf.svg)](https://pkg.go.dev/golang.org/x/perf) This subrepository holds tools and packages for analyzing [Go benchmark results](https://golang.org/design/14313-benchmark-format), such as the output of [testing package benchmarks](h...
RSpec.shared_context "request maker", with_request_maker: true do # Custom way to mock Rack requests. Contrary to Rack::Test, it allows to # make incorrect requests with ease. And this is very useful in this test # suite as the tested gem is expected to filter out such requests. def make_request(method:, path...
package com.adven.concordion.extensions.exam.core.html import org.concordion.internal.OgnlEvaluator import org.joda.time.LocalDate.now import org.joda.time.Period import org.junit.Test import java.text.SimpleDateFormat import kotlin.test.assertEquals class RowParserTest { private val eval = OgnlEvaluator(null) ...
package day3 import java.io.File fun solveProblemOne(rawGrid: List<String>, slope: Pair<Int, Int> = Pair(1, 3)): Int { val grid = Grid(rawGrid) var x = 0 var y = 0 var trees = 0 while (y < grid.height) { if (grid.isTree(x, y)) { trees += 1 } x += slope.second ...
import { TwoSum } from "../src/two-sum"; const nums = [3,2,4]; const target = 6; describe("两数之和", () => { it("暴力算法", () => { expect(TwoSum.force(nums, target)); }); it("贪心算法", () => { expect(TwoSum.greedy(nums, target)); }) });
#![feature(drain_filter)] mod config; mod debootstrap; mod trace; use anyhow::Context; use std::path::{Path, PathBuf}; use structopt::StructOpt; #[derive(StructOpt, Clone)] struct Options { /// Template files dir tpls_dir: PathBuf, /// Out dir (without trailing opt, e.g. /home/jjs) out: PathBuf, ...
C Copyright(C) 1999-2020 National Technology & Engineering Solutions C of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with C NTESS, the U.S. Government retains certain rights in this software. C C See packages/seacas/LICENSE for details C==============================================================...
CREATE TABLE [portal].[Module] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Alias] NVARCHAR(255) NOT NULL, [UserId] INT NOT NULL, [HostId] INT NOT NULL, [StatusId] TINYINT DEFAULT (1) NOT NULL, CONSTRAINT [PK_Module_Id] PRIMARY KEY CLUSTERED ([Id] ASC)...
; calculate window size include win1_mac_oli include win1_keys_wwork include win1_keys_wdef_long section utility xdef xwm_wsiz xref ut_appr ;+++ ; calculate window size ; ; Entry Exit ; d1.l size (or -1 for max) new size ; a0 channel id ; a3 wdef ;--- xwm_wsiz subr d2/d3/a3 move.b wd_wattr+wda_shdd(a3),...
(ns cayenne.tasks.patent (:require [somnium.congomongo :as m] [org.httpkit.client :as hc] [cayenne.conf :as conf] [cayenne.ids.doi :as doi-id] [cayenne.util :as util] [cayenne.data.work :as work] [cayenne.ids.doi :as doi-id] [clojure....
package concurrency_in_practice import java.time.LocalTime object Utils { // Prefix with current time and thread name fun println(str: String) { println("(${LocalTime.now()}) Thread ${Thread.currentThread().name}: $str") } }
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class MilesController extends Controller { public function miles(Request $request){ $pick = str_replace(' ', '', $request->input('pick')); $delivery = str_replace(' ', '', $request->input('delivery')); $mileage_...
package main.java.com.byteshift.calculatorjfx.util; import javafx.application.Platform; import javafx.geometry.Rectangle2D; import javafx.scene.Cursor; import javafx.scene.Node; import javafx.scene.control.Label; import javafx.scene.input.MouseEvent; import javafx.stage.Screen; import javafx.stage.Stage; import main.j...
SELECT distinct(sa.ActivityId), sa.Description, sa.SRiskFactor, sa.ActivityNumber, TRY_CONVERT(int, ISNULL(sa.Location, 0)) as Location, CONVERT(datetime, sa.EarlyStart) as EarlyStart, CONVERT(datetime, sa.EarlyFinish) as EarlyFinish, sa.CheckListOk,( select sat2.FieldValue from om.P...
using System; using System.Collections.Generic; using System.Text; using System.Text.Json; namespace Plugin.LocalNotification { /// <summary> /// Cross platform INotificationService Resolver. /// </summary> public static partial class NotificationCenter { private static INotificationServi...
export class VideoStream { private _stream : any = null; getStream(needVideo : boolean, needAudio : boolean, c : Function) : void { if(this._stream == null) { var nav : any = navigator; nav.getUserMedia({ video: needVideo, audio: needAudio }, function(s) { this._stream = s; c(s); }...
package threeguys.http.signing.providers.cache; import org.bouncycastle.jce.provider.BouncyCastleProvider; import org.junit.jupiter.api.Test; import threeguys.http.signing.providers.MockKeys; import java.security.KeyPair; import java.security.NoSuchAlgorithmException; import java.security.NoSuchProviderException; imp...
subroutine tdrot(naxes,alpha) C subroutine tdrot 01.09.78 common/gfmatr/t(4,4),a(4,4),nt,nt1 dimension i(4) data i/2,3,1,2/ nt=2 naxe=iabs(naxes) alrad=alpha if (naxes.gt.0)alrad=3.141593/180.*alpha call hcunit(a) k=i(naxe) l=i(naxe+1) a(k,...
/* * pkt.h * ptunnel is licensed under the BSD license: * * Copyright (c) 2004-2011, Daniel Stoedle <daniels@cs.uit.no>, * Yellow Lemon Software. All rights reserved. * * Copyright (c) 2017-2019, Toni Uhlig <matzeton@googlemail.com> * * Redistribution and use in source and binary forms, with or without * modi...
#!/bin/bash sudo apt update sudo apt install -y setserial udev autoconf nano libceres-dev liblua5.2-dev make gcc sudo cp 10-usb.rules /etc/udev/rules.d sudo udevadm control --reload-rules sudo udevadm trigger sudo apt install -y build-essential git git clone --single-branch --branch v3.1.6 https://github.com/steph...
package com.xinshang.rest.modular.asmall.vo; import com.baomidou.mybatisplus.annotations.TableField; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.math.BigDecimal; /** * <p> * 商品规格 * </p> * * @author zhangjiajia * @since 2019-11-25 */ @D...
require "zenform/config_parser/csv_parser" require "zenform/config_parser/json_parser" require "yaml" module Zenform module ConfigParser DEFAULT_CONFIG_PATH = "./zendesk_config" TEMPLATE_PATH = File.expand_path("../../config/parse_format.yml", File.dirname(__FILE__)) class << self def parse(projec...
import 'package:flutter/cupertino.dart'; import 'package:get/get.dart'; import 'package:flutter_getx_boilerplate/app/data/errors/app_errors.dart'; class ApiInterfaceController extends GetxController { final Rx<AppErrors?> _error = Rx<AppErrors?>(null); AppErrors? get error => _error.value; set error(AppErrors? e...
// This module contains the definition of `KeyClocks`. mod keys; // This module contains the definition of `QuorumClocks`. mod quorum; // Re-exports. pub use keys::{ AtomicKeyClocks, KeyClocks, LockedKeyClocks, SequentialKeyClocks, }; pub use quorum::QuorumClocks;
// Copyright 2018 Larry Rau. All rights reserved // See Apache2 LICENSE /* Wkit provides a toolkit for the creation of a Warp9 object server that allows for the creation of a dynamic adjustable namespace of a hiearchical set of objects. The namespace allows for bind points to be added into the hierarchy that can supp...
use proc_macro2::TokenStream; use syn::{Generics, Ident, WherePredicate}; use crate::ast::{Data, Fields}; use crate::codegen::{ error::{ErrorCheck, ErrorDeclaration}, DefaultExpression, Field, FieldsGen, PostfixTransform, Variant, }; use crate::usage::{CollectTypeParams, IdentSet, Purpose}; #[derive(Debug)] p...
(function(){ 'use strict'; var unpackAll = require('./index.js'); var archive = 'test/abc (12).rar'; var options = { targetDir : 'tmp', indexes : [0], forceOverwrite: true, noDirectory: true, quiet: false }; unpackAll.list(archive, options, function (e...
require "spec_helper" API_URI = %r{https://commentanalyzer\.googleapis\.com/v1alpha1/comments:analyze} RSpec.describe PerspectiveAPI::AnalyseToxicity do def response_body(score) MultiJson.dump( "attributeScores" => { "TOXICITY" => { "spanScores" => [ { "begin"...
/** * Copyright 2007 Ye Zheng * Distributed under the BSD License */ package com.xruby.compiler.codegen; import org.objectweb.asm.Type; class ClassGeneratorForVarArgRubyMethod extends ClassGeneratorForRubyMethod { public ClassGeneratorForVarArgRubyMethod(String method_name, String fileName, String name, int a...
# cocacola демонстрационный репозиторий
/* 2. Write a program to report behaviour of Linux kernel including kernel version, CPU type and model. (CPU Information) Written by Anshul Verma */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main(){ printf("\nKernel Version:\n"); system("cat /proc/sys/kernel/osrelease"); printf("\n-- CPU ...
function load_friends() buf = open("county2county.binary") do io read(io) end len = length(buf) n = Int.(sqrt(len*2)) @assert n == 3142 X = zeros(n,n) # each entry is encoded in 4 bits for i=1:n for j=1:2:n # each byteno = (((i-1)*n) + (j-1)) ÷ 2 + 1 byte = buf[byteno] X[j,i] =...
package main import ( "log" ) type queue struct { players map[*player]interface{} join chan *player leave chan *player } func newQueue() *queue { return &queue{ players: make(map[*player]interface{}), join: make(chan *player), leave: make(chan *player), } } func (q *queue) startMatching() { f...
// Package tagrule implements some valis.Rule related to field tag. package tagrule import ( "math" "reflect" "strconv" "strings" "github.com/soranoba/henge/v2" "github.com/soranoba/valis" "github.com/soranoba/valis/is" "github.com/soranoba/valis/to" "github.com/soranoba/valis/when" ) type ( ValidateTagHan...
package com.brilliancesoft.mushaf.ui.common.dialog /** * Created by ${User} on ${Date} */ import android.app.Dialog import android.os.Bundle import android.view.View import androidx.appcompat.app.AlertDialog import androidx.fragment.app.DialogFragment import com.abed.magentaX.android.views.listeners.onClick import ...
require File.expand_path(File.join(File.dirname(__FILE__), "helper")) class VerbsTest < Test::Unit::TestCase def setup @agent = WWW::Mechanize.new end def test_put page = @agent.put('http://localhost/verb', { 'q' => 'foo' }) assert_equal('method: PUT', page.body) end def test_delete page = ...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; // using DigitalPlatform.Text; namespace DigitalPlatform.LibraryClient { #if NO /// <summary> /// 根据册条码号获得册记录路径的枚举器 /// </summary> public class ItemBarcodeLoader :...
import { fromEvent, Subscription } from 'rxjs'; import { map } from 'rxjs/operators'; import Presence from '@yomo/presencejs'; import Cursor from './cursor'; import { getScale } from '../helper'; import { CursorMessage, TextMessage, OfflineMessage } from '../types'; export default class Me extends Cursor { private...
import 'dart:typed_data'; import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:flutter/services.dart'; part 'ble_periphery.g.dart'; class BleCentralState extends EnumClass { static Serializer<BleCentral...
package app.surgo.data.resultentities import app.surgo.data.entities.* data class SearchResults( val artists: List<ArtistEntity> = emptyList(), val albums: List<AlbumEntity> = emptyList(), val playlists: List<PlaylistEntity> = emptyList(), val songs: List<SongEntity> = emptyList(), val videos: Lis...
package net.phaser4.feign; import com.google.common.collect.ImmutableList; import lombok.Getter; import lombok.Value; import lombok.val; import org.junit.Test; import java.util.List; import static java.util.Collections.singletonList; import static org.assertj.core.api.Assertions.assertThat; public class BeanToMapCo...
Pod::Spec.new do |s| s.name = 'FSI' s.version = '0.1.0' s.license = 'Apache' s.summary = 'A delightful iOS library.' s.homepage = 'https://github.com/tbaranes/FSI' s.authors = { 'Tom Baranes' => 'tom.baranes@gmail.com' } s.source = { :git => 'https://github.com/tbaranes/FSI.git', :tag => "0.1.0"...
package fcgiserver import ( "fmt" "net" "net/http" "net/http/fcgi" "github.com/s2ks/fcgiserver/logger" ) type Handler interface { Setup(string) error ServeHTTP(http.ResponseWriter, *http.Request) } type FcgiServer struct { ServeMux *http.ServeMux Address string Port string Protocol string } func (...
package Business::EDI::CodeList::TransferPositionCoded; use base 'Business::EDI::CodeList'; my $VERSION = 0.02; sub list_number {return "0323";} my $usage = 'B'; # 0323 Transfer position, coded # Desc: Indication of the position of a transfer. # Repr: a1 my %code_hash = ( 'F' => [ 'First message', 'Fi...
package com.kaesar.designpattern.zen.chp18; /** * 具体的策略角色 */ public class ConcreteStrategy2 implements Strategy { @Override public void doSomething() { System.out.println("具体策略2的运算法则"); } }
class ItemsController < ApplicationController def show item = Item.find(params[:id]) render json: ItemSerializer.new(item).to_serialized_json end def create meal = Meal.find_by(name: params[:meal]); item = Item.new(name: params[:name], calories: params[:calories], kind: para...
package com.mychaldea.api.servant.user.info.entity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.NamedStoredProcedureQuery; import javax.persistence.ParameterMode; import javax.persistence.StoredProcedur...
library(readr) library(data.table) mlogloss <- function(actual,pred){ actual <- as.integer(as.factor(actual)) probs <- rep(0,length(actual)) for(i in 1:length(actual)) { probs[i] <- pred[i,actual[i]]} probs <- as.numeric(probs) probs[which(probs>1-1e-15)] <- 1-1e-15 probs[which(probs<1e-15)] <- 1e-15 return(-(1/...
import Vue from 'vue'; import config from '../../../config'; import platform from '../../../utils/platform'; import VueInfiniteScroll from 'vue-infinite-scroll'; import checkLogin from '../../../checkLogin'; import Toast from 'vue-toast-mobile'; import Comment from '../../components/Comment'; import CommentAdd from '.....
<?php Template::addScript(' $().ready(function() { $("#usuario").focus(); }); '); ?> <form action="<?= Controller::url(Path::getClassMap('LoginAction').'/open') ?>" method="post"> <label for="usuario">Usuário:</label><input id="usuario" type="text" name="usuario" /><br /> <label for="senha">Senh...
using System; namespace Symon.AspNetCore.Mvc.ExceptionHandler.ExceptionHandler { /// <summary> /// ExceptionHandlerOptions /// </summary> public class ExceptionHandlerOptions { public MailOptions MailOptions { get; set; } public Action<System.Exception> ManualProcess { get; set; }...
# frozen_string_literal: true require 'rails_helper' RSpec.describe HomeController do it 'renders the homepage' do get :index expect(response.code).to eq('200') end end
<?php /* * This file is part of fof/polls. * * Copyright (c) 2019 FriendsOfFlarum. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace FoF\Polls; use Flarum\Database\AbstractModel; /** * @property int $id * @property st...
// const _ = require('lodash'); // exports.regex = /micah auth/; // // exports.example = 'micah <chuchada>: Le cuenta tu <secreto> al grupo.' // exports.onMsg = function(bot, msg) { // const chatId = msg.chat.id; // const userId = msg.from.id; // if (!this.db.is_admin(userId)) { // bot.sendMessage(chatId,...
interface ApiError { /** * High-level human-readable error message targeted at developers. */ message: string; /** * Unique error code, language specific */ code: string; } export interface StandardApiErrorResponse { /** * High-level human-readable error message targeted at developers. */ ...
import jsfeat from 'jsfeat'; @Inject('$q', 'FileReader') class HeightmapReaderService { constructor() { console.log( `Initializing HeightmapReaderService`); } from_file(file, scope) { let deferred = this.$q.defer(); this.FileReader.readAsDataURL(file, scope) .then((resp) => { ...
/* * This file is part of Lawnchair Launcher. * * Lawnchair Launcher 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, or * (at your option) any later v...
#!/bin/bash #script for uploading zips to upload.sf.net #you can pass an argument to specify the folder, if not all zip files in . will be uploaded #USAGE #./upload.sh zips/ #uploads all zip in the zips folder #./upload.sh #all zips in the current folder will be uploaded ############### #checking folder ZIP_DIR=$1 ...
pub mod peta_fusen_v1 { tonic::include_proto!("peta.fusen.v1"); } pub mod controller;
package com.github.mdr.mash.os import java.nio.file.Path trait EnvironmentInteractions { def home: Path }
namespace RelationalGit.Simulation { public static class SelectedReviewersType { public static string Core => "core"; public static string NonCore => "noncore"; public static string All => "all"; } }
'use strict'; function UI() { this.showSettingsBox = function(pluginInstance, updateDelegate, submitDelegate, removeDelegate) { this.clearSettingsBox(); if (!pluginInstance) { return false; } var settings = pluginInstance.settings; if (WebGameMaker.Game.getPlugi...
--- layout: watch title: TLP4 - 02/05/2020 - M20200502_081745_TLP_4T.jpg date: 2020-05-02 08:17:45 permalink: /2020/05/02/watch/M20200502_081745_TLP_4 capture: TLP4/2020/202005/20200501/M20200502_081745_TLP_4T.jpg ---
$('#submit').unbind().click(function(){ // alert('hello'); var data = _velidation($('#name'),'input'); if(data == false){ return false; } var data1 = _velidation($('#review'),'textarea'); if(data1 == false){ return false; } data.review = data1.review; _ajax('...
/* tags: shadows, fbo, advanced <p>This example shows how you can render a shadow map for a directional light source in regl.</p> */ const webglCanvas = document.body.appendChild(document.createElement('canvas')) const fit = require('canvas-fit') const regl = require('../regl')({ canvas: webglCanvas, extensi...
require 'active_support/core_ext/hash' require 'client_data/configuration' require 'client_data/before_render' require 'client_data/methods' require 'client_data/builder' require 'client_data/adapters' require 'client_data/railtie' if defined?(Rails) module ClientData class Error < StandardError; end @@configur...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.TeamFoundation.Migration.Toolkit; namespace Microsoft.TeamFoundation.Migration.SubversionAdapter { public class SubversionChangeActionHandlers : ChangeActionHandlers { public SubversionChangeActionHan...
import { actionStore } from '../stores/actionStore' export function Render(view: string) { return function(target: Object, propertyKey: string, descriptor: PropertyDescriptor) { actionStore.set(descriptor.value, { target, propertyKey, view, fn: descriptor.value, }) } }
// // Sample application for region graphics functions using Rects implementation // // Author: // Jordi Mas, jordi@ximian.com // // // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated document...
#!/usr/bin/env node import { Core } from '../Core'; import { isNaN } from 'lodash'; bootstrap(); function bootstrap() { const httpPort = getHttpPort(); const grpcPort = getGrpcPort(); Core.getInstance(httpPort, grpcPort); } function getHttpPort() { const value = process.env['PORT'] ?? '3000'; const port =...
package io.buoyant.linkerd.protocol.http.istio import com.twitter.conversions.time._ import com.twitter.finagle.buoyant.Dst import com.twitter.finagle.http.{Request => FRequest, Response => FResponse} import com.twitter.finagle.{Dtab, Path, Service} import com.twitter.util.Future import io.buoyant.grpc.runtime.GrpcSta...
--- title: Adding support for metrics to a language short_title: Implement a metrics framework tags: [devdocs, extending, metrics] summary: "PMD's Java module has an extensive framework for the calculation of metrics, which allows rule developers to implement and use new code metrics very simply. Most of the functional...
--- title: mom_hud_menu_hide category: command tags: - hud - hud menu --- Hides the currently open hud menu, if there is one.
namespace GameBoyServer { public enum GameState { WaitingForPlayers, BlackTurn, WhiteTurn } }
#!/usr/bin/env bash # Copyright 2020 Xuechen LIU # Apache 2.0. # # perform text-independent training & scoring on HIMIA set -e . ./path.sh . ./cmd.sh stage=8 lda_dim=200 nj=10 use_gpu=false . ./utils/parse_options.sh nnetdir=$1 sc_trial=$2 mc_trial=$3 # xvector embedding extraction if [ $stage -le 8 ]; then for ...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro; public class GameController : MonoBehaviour { [SerializeField] int lives = 3; [SerializeField] int score = 0; [SerializeField] Text scoreText; [SerializeField] Text livesText; [Seriali...