text stringlengths 27 775k |
|---|
///////////
// This file is a part of the ATools project
// Some parts of code are the property of Microsoft, Qt or Aeonsoft
// The rest is released without license and without any warranty
///////////
#ifndef LANDSCAPE_H
#define LANDSCAPE_H
#include "World.h"
class CLandscape;
class CObject;
struct WaterHeight
{
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Database\Eloquent\ModelNotFoundException as ModelNot... |
; RUN: llc -mtriple=aarch64-linux-gnu -verify-machineinstrs -relocation-model=pic %s -o - | FileCheck %s
@var = global i32 0
define i32 @get_globalvar() {
; CHECK-LABEL: get_globalvar:
%val = load i32, i32* @var
; CHECK: adrp x[[GOTHI:[0-9]+]], :got:var
; CHECK: ldr x[[GOTLOC:[0-9]+]], [x[[GOTHI]], :got_lo12:var]
... |
# frozen_string_literal: true
class Primer::TabContainerComponentStories < ViewComponent::Storybook::Stories
layout "storybook_preview"
story(:tab_container) do
content do
<<~HTML.html_safe
<div role="tablist">
<button type="button" role="tab" aria-selected="true">Tab one</button>
... |
import { InputHTMLAttributes, useCallback, useEffect, useState } from 'react';
import { Container } from './styles';
import paramFactory from '~/utils/paramFactory';
interface SearchInputProps extends InputHTMLAttributes<HTMLInputElement> {
defaultValue?: string;
name: string;
}
const SearchInput = ({
name,
... |
#include "whatever.hpp"
int main() {
int a = 10;
int b = 152;
char c = 'h';
char d = 'c';
std::string s1 = "Hoha";
std::string s2 = "Hello";
std::cout << max<int>(a, b) << std::endl;
std::cout << max<char>(c, d) << std::endl;
std::cout << ::max<std::string>(s1, s2) << std::endl;
std::cout << ::min<i... |
package org.neo4j.qa.util
import java.io.{FilenameFilter, File}
object Neo4jHelper
{
def neo4jIsInstalledIn(directory:File) =
{
if (directory.exists)
{
true
}
else false
}
def badlyVersionedJarsIn(dir:File, version:String) =
{
val badlyVersionedJars = for (lib <- dir.listFiles(new... |
{-# LANGUAGE FlexibleContexts #-}
import Test.Tasty
import Test.Tasty.HUnit
import AST
import Data.Set as Set
import Interp
import qualified Parser
import qualified Text.Parsec as Parsec
main = defaultMain tests
pr p s = Parsec.parse p "Sample Input" s
... |
[](https://jitpack.io/#ansen360/FrameAnimation)
[](https://www.codacy.com/app/ansen360/FrameAnimation?utm_source=github.com&utm_medium=referral&utm_content=ansen360/Fr... |
import time, cv2, pyautogui, mediapipe as mp
import UDPDataSender, GeneralAttribute, time, threading
def start_webcam():
#thread_sender = threading.Thread(target=HandPositionSender.SendPosition)
#thread_sender.start()
widthScreen, heightScreen= pyautogui.size()
winName = 'NumberPedia-HandTracking'
... |
using System;
using System.Xml.Serialization;
namespace Aop.Api.Response
{
/// <summary>
/// ZhimaCustomerZmcardInfoQueryResponse.
/// </summary>
public class ZhimaCustomerZmcardInfoQueryResponse : AopResponse
{
/// <summary>
/// 被查看人的信用等级,范围[信用极好,信用优秀,信用良好,信用中等,信用较差]。用户已... |
import { Injectable, UnauthorizedException } from '@nestjs/common';
import { PassportStrategy } from '@nestjs/passport';
import * as Strategy from 'passport-http-bearer';
import { AuthService } from '../../services/auth.service';
@Injectable()
export class BearerTokenStrategy extends PassportStrategy(Strategy) {
c... |
use futures::channel::mpsc;
use futures::executor;
use futures::future;
use futures::prelude::*;
use futures::task;
use future_ext::{Breaker, FutureWrapExt};
use module::{flow, Module};
use jack::*;
use ndarray::{Array, Array2, Axis};
use std::sync::Arc;
pub struct Frame {
pub rate: f32,
pub data: Array2<f... |
#!/bin/sh
set -e
mv /etc/nginx/conf.d/nginx.conf /etc/nginx/nginx.conf
exit 0 |
import * as constants from './constants'
import {fromJS} from 'immutable';
const defaultState =fromJS({
focus : false,
list : []
}) ;
export default(state = defaultState,action) =>{
if(action.type === constants.SEARCH_FOCUS){
return state.set('focus',true);
}
if(action.type === constants.S... |
function ping(){
print("jjs --language=es6 -ot -scripting -J-Djava.class.path=../target/jetty-router-0.1.0-shaded.jar zjdbc.js");
print("java -jar ../target/jetty-router-0.1.0-shaded.jar zjdbc.js");
return 'zjdbc ping invoked from js';
}
let dao = {};
(function(dao, load){
var DataSource = Packages.o... |
package my.example.domain
import org.scalatest._
import org.scalatest.matchers.should.Matchers
import my.example.domain.Config._
import kafka.admin.TopicCommand
class KafkaTest extends FlatSpec with Matchers {
def createTopic(topicName: String, replicationFactor: Int = 1, partitions: Int = 4): Unit = {
val t... |
package vpc
import (
"context"
"log"
"github.com/hashicorp/hcl/v2/hcldec"
"github.com/hashicorp/packer-plugin-sdk/communicator"
"github.com/hashicorp/packer-plugin-sdk/multistep"
"github.com/hashicorp/packer-plugin-sdk/multistep/commonsteps"
"github.com/hashicorp/packer-plugin-sdk/packer"
)
const BuilderId = ... |
describe 'Calabash IDeviceInstaller' do
let(:ipa_path) {
ipa_path = File.expand_path('./xtc-staging/CalSmoke-cal.ipa')
unless File.exist?(ipa_path)
system('make', 'ipa-cal')
end
ipa_path
}
let(:udid) { 'device udid' }
let(:device) { RunLoop::Device.new('denis', '8.3', udid) }
let(:fa... |
module Fog
module OpenStack
module Auth
class CredentialsError < RuntimeError; end
module Domain
attr_accessor :domain
def identity
data = {}
if !id.nil?
data.merge!(to_h(:id))
elsif !name.nil? && !domain.nil?
data.merge!(to_h(:na... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace EmployeeManager.Models.DTO.Invoice
{
public class Cart
{
public int Id { get; set; }
public IList<CartItem> CartItems { get; set; }
pu... |
import { TreeNode } from "../common";
export function sortedArrayToBST(nums: number[]): TreeNode | null {
return addNode(nums, 0, nums.length - 1);
}
function addNode(nums: number[], left: number, right: number): TreeNode | null {
if (left > right) {
return null;
}
let temp = new TreeNode();
let index =... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace Randomizer.SMZ3
{
/// <summary>
/// Provides extension methods for <see cref="Type"/> objects.
/// </summary>
public static class TypeExtensions
{
/// <summary>
/// Returns the val... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Aircraft : MonoBehaviour
{
/* Initial state */
const float initAirspeedmps = 15.0f;
const float initPitchAngleRadians = 5.0f * DEGTORAD;
const float initAltitudem = 100.0f;
const floa... |
-module(person).
-export([fields/0, type_field/0]).
fields() ->
[name, age, country].
type_field() ->
type.
|
import { assert } from '@ember/debug';
import { DEBUG } from '@glimmer/env';
import { Helper, VMArguments } from '@glimmer/interfaces';
import { PathReference } from '@glimmer/reference';
let helper: Helper;
if (DEBUG) {
class InElementNullCheckReference implements PathReference {
constructor(private inner: Pat... |
<nav class="navbar navbar-default">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span ... |
function createBroker(number=1)
initstring = "-f $number --name=mainbroker --loglevel=0"
@test_throws h.HELICSErrorInvalidArgument broker = h.helicsCreateBroker("mq", "", initstring)
broker = h.helicsCreateBroker("zmq", "", initstring)
@test broker isa h.Broker
@test h.helicsBrokerIsConnected(broker... |
# slua-luajit2.1-build
The build project for tolua plugins with luajit2.1.
##简介
为了方便使用 Luajit2.1 的开发者编译适用于 tolua 的 Unity 插件。
##包含内容:
Luajit2.1
Lpeg
SLua
sproto
##注意事项
未使用命令行或 Makefile 来编译;
仅支持 XCode(3.1及以上) 与 Visual Studio 2015 来编译生成所有的文件(Android 项目的生成请确保安装了正确版本的 NDK)。
Visual Studio 2015 已经免费将所有强大的功能提供给开源社区和小企业... |
---
title: "小标题"
desc: "描述"
order: 0
---
```vue
<template>
<Tooltip content="Top center" placement="top">
<button class="button">Dark</button>
</Tooltip>
<Tooltip content="Bottom center" placement="bottom" effect="light">
<button class="button">Light</button>
</Tooltip>
</template>
```
|
// Copyright (c) 2012, the ANTLR Dart backend project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
part of dartlr_common;
/** A semantic predicate failed during validation. Validation of... |
## 0.2.0+3
- add support for linux
## 0.1.2+2
- longer pub description
## 0.1.2+1
- fix for macOS flipped content views
## 0.1.2
- fix native context menu positioning regression
## 0.1.1+2
- windows implementation
## 0.1.0
- macOS implementation
|
module Ergvein.Core.Worker.Rates
(
ratesWorker
) where
import Data.Functor
import Data.List
import Data.Maybe
import Data.Time
import Ergvein.Core.Currency
import Ergvein.Core.Node.Monad
import Ergvein.Core.Settings
import Ergvein.Core.Wallet.Monad
import Ergvein.Index.Protocol.Types hiding (CurrencyCode(..))
... |
// Copyright (c) 2021 Siberian, Inc. All rights reserved.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
import { MessageEmbed, TextChannel } from 'discord.js'
import { style } from '../../lib/config'
import { IRoleMessage } from '../../lib/types'
import { pronousRo... |
import * as React from 'react';
import JSONPretty from 'react-json-pretty';
import { useSelector } from 'react-redux';
import GenericSection from '~components/Sections/GenericSection';
const themeProps = {
keyStyle: 'color: #3298dc;',
};
/**
* Stringify errors
* @param key
* @param value
*/
const replacer = (k... |
Program v13;
Var s:string;
left,right,i:integer;
ans:real;
num:array[1..11] of real;
symbol:array[1..10] of char;
procedure delete(left,right:integer);
Var i:integer;
begin
for i:=left to right-1 do
begin
num[i]:=num[i+1];
symbol[i-1]:=symbol[i];
end;
end;
begin
readln(s);
num[1]:=StrToInt(s[1]);
for i:=1 to length(s... |
import {Component, Optional, SkipSelf} from '@angular/core';
import {moduleMetadata} from '@storybook/angular';
// NOTE: Do direct import instead of library (allows to watch component and easy to develop)
import {AtftModule} from '../../../projects/atft/src/lib/atft.module';
import {AbstractObject3D} from '../../../pro... |
require_relative '../test_helper'
class TestVisitProperties < Minitest::Test
def setup
request = MiniTest::Mock.new
@visit_properties = Ahoy::VisitProperties.new(request)
end
def test_keys
with_geocode(true) do
assert_equal @visit_properties.keys, Ahoy::VisitProperties::KEYS
end
end
d... |
package com.skoumal.teanity.list
import android.util.Log
import androidx.annotation.AnyThread
import androidx.annotation.MainThread
import androidx.recyclerview.widget.DiffUtil
import com.skoumal.teanity.extensions.applySchedulers
import com.skoumal.teanity.extensions.subscribeK
import com.skoumal.teanity.viewmodel.Te... |
import * as AWS from 'aws-sdk';
import * as iam from './iam';
import * as sqs from './sqs';
// Inits AWS SDK
AWS.config.update({region: process.env.AWS_DEFAULT_REGION});
console.info(`AwsRegion:${process.env.AWS_DEFAULT_REGION}`);
const handlers = new Map([
['sqs:send', sqs.sendMessage],
['iam:usr', iam.getUser]
... |
import { presenter } from '../../presenter-mock';
import { runAction } from 'cerebral/test';
import { setTrialSessionsFiltersAction } from './setTrialSessionsFiltersAction';
describe('setTrialSessionsFiltersAction', () => {
it('call the use case to get the eligible cases', async () => {
const result = await runA... |
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using AlternateLife.RageMP.Net.Helpers;
using AlternateLife.RageMP.Net.Interfaces;
namespace AlternateLife.RageMP.Net.Scripting.ScriptingClasses
{
internal class Utility : IUtility
{
private readonly Plugin... |
---
title: Taro.onAccelerometerChange(callback)
sidebar_label: onAccelerometerChange
---
监听加速度数据,频率:5次/秒,接口调用后会自动开始监听,可使用 `Taro.stopAccelerometer` 停止监听。
> [参考文档](https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.onAccelerometerChange.html)
## 类型
```tsx
(callback: Callback) => void
```
##... |
#!/bin/sh
#
# Homebrew
#
# This installs some of the common dependencies needed (or at least desired)
# using Homebrew.
# Check for Homebrew
if test ! $(which brew)
then
echo " Installing Homebrew for you."
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" > /tmp/homebrew-install.log
fi
... |
# frozen_string_literal: true
class IndexCollectionDecorator < Valkyrie::ResourceDecorator
def iiif_manifest_attributes
[]
end
end
|
package org.jetbrains.intellij.dependency
import groovy.transform.CompileStatic
import org.gradle.api.Action
import org.gradle.api.Project
import org.gradle.api.artifacts.Dependency
import org.gradle.api.artifacts.repositories.MavenArtifactRepository
import org.jetbrains.intellij.debug
import org.jetbrains.intellij.ut... |
# frozen_string_literal: true
RSpec.describe "reap_orphans.lua" do
subject(:reap_orphans) do
call_script(
:reap_orphans,
keys: redis_keys,
argv: argv,
)
end
let(:redis_keys) do
[
SidekiqUniqueJobs::DIGESTS,
SidekiqUniqueJobs::SCHEDULE,
SidekiqUniqueJobs::RETRY,
... |
---
title: TECHSとは
---
TECHS(Tech Study)とはウェブ歴10年のプロが運営する技術系情報を発信するブログです。
まだ始めたばかりですが、これからはウェブ制作について様々な情報を共有して行きたいと思いますので、ぜひチェックしてみてください。 |
package _examples
import (
"fmt"
"testing"
)
func TestCatIndices(t *testing.T){
result,err:= esClient.Cat.Indices(
esClient.Cat.Indices.WithIndex(indexAlias+"*"),
esClient.Cat.Indices.WithColumns("index,health","pri"),
esClient.Cat.Indices.WithFormat("json"),
)
if err==nil{
fmt.Println(result.ResultStrin... |
# frozen_string_literal: true
require 'date'
require 'json'
module Grunnbeløp
@grunnbeløp_data = JSON.parse(File.read('./grunnbeløp.json'), object_class: OpenStruct)
@date_format = '%Y-%m-%d'
def self.by_date(needle)
datoer = @grunnbeløp_data.grunnbeløp.map { |obj| DateTime.strptime(obj.dato, @date_format)... |
#include <string>
#include <alsa/asoundlib.h>
#include <stdint.h>
#include <math.h>
#ifndef M_PI
static const double M_Pi = 3.14159265358979323846;
#endif
void check(const std::string & function_name, int error) {
if (error) {
fprintf(stderr, "function %s returned error code %d (%s)\n",
function_na... |
package com.hopovo.mobile.android.prepexam.app.main
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.ActionBar
import com.hopovo.mobile.android.prepexam.app.BuildConfig
import com.hopovo.mobile.android.prepexam.app.R
import com.hopovo.mobile.android.pr... |
package com.david.todo.api.model.repository
import com.david.todo.api.model.entity.Todo
import org.springframework.data.repository.reactive.ReactiveCrudRepository
interface TodoRepository : ReactiveCrudRepository<Todo, Long> |
#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
name... |
import { compose } from './utils'
export default class IO {
constructor(effect) {
if (!_.isFunction(effect)) {
throw new TypeError('IO Usage:function required')
}
this.effect = effect
}
// ----- Pointed IO
static of(a) {
return new IO(() => a)
}
// ---... |
package com.parimatch.codegenextension
import javax.annotation.processing.ProcessingEnvironment
import javax.tools.Diagnostic
fun ProcessingEnvironment.isHasOption(key: String): Boolean {
return this.options[key] != null
}
/**
* Call [isHasOption] for check availability.
* @throws NullPointerException if optio... |
/*
* Copyright 2010-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
package org.jetbrains.kotlin.backend.konan.ir.interop
import org.jetbrains.kotlin.backend.common.ir.createParameterDeclarations
import org.jetbrains.kotlin.backend.kona... |
#!/bin/bash
#SBATCH --mem=8g
#SBATCH --output=results/gtv_retinanet/%a.out
#SBATCH --error=results/gtv_retinanet/error%a.error
#SBATCH --mail-type=FAIL,ARRAY_TASKS
#SBATCH -t 1:30:00
module load miniconda
conda activate mg
python3 scene_baseline.py
|
using System;
using System.Linq;
using System.Windows;
using Microsoft.VisualStudio.Shell;
using Spect.Net.Assembler.Assembler;
using Spect.Net.SpectrumEmu;
using Spect.Net.SpectrumEmu.Machine;
using Spect.Net.VsPackage.ToolWindows.SpectrumEmulator;
using Spect.Net.VsPackage.Vsx;
using Spect.Net.VsPackage.Vsx.Output;
... |
/*
* Copyright (c) 2008-2011 by Paul Seiferth,
* Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
package org.xtreemfs.mrc;
public interface MRCStatusListener {
public void MRCConfigChanged(MRCConfig config);
public void volumeCreated();
... |
import mongoose, { Document } from 'mongoose'
interface AACIRecordDocument extends Document {
poiVersion: string
available: number[]
triggered: number
items: number[]
improvement: number[]
rawLuck: number
rawTaiku: number
lv: number
hpPercent: number
pos: number
origin: string
}
export interface... |
use stm32f3xx_hal as stm32f303;
use stm32f303::{
gpio::{gpiob, AF2},
hal::PwmPin,
pwm::{self, PwmChannel, WithPins, TIM3_CH2},
rcc,
stm32::TIM3,
time::Hertz,
};
#[allow(unused_imports)]
use log::{debug, error, info, trace, warn};
pub fn init_tim3_pwm_on_pb5(
freq: Hertz,
tim3: TIM3,
... |
# Customer Management CLI
Command line interface for managing task. Use pouchy-store, Commander.js and Inquirer.js
### Version
1.0.1
## Usage
### Installation
Install the dependencies
```sh
$ npm install
```
### Create Symlink
```sh
$ npm link
```
### Commands
Sync Task (sync or s)
```sh
$ efishery-cli sync
`... |
#!/bin/bash
[[ ! -d $HOME/.vim/after/ftplugin ]] && mkdir -p $HOME/.vim/after/ftplugin
[[ ! -d $HOME/.vim/plugin ]] && mkdir -p $HOME/.vim/plugin
[[ ! -d $HOME/.vim/autoload ]] && mkdir -p $HOME/.vim/autoload
if [[ ! -f "$HOME/.vim/after/ftplugin/js.vim" ]]; then
cat <<EOT >> $HOME/.vim/after/ftplugin/js.vim
... |
module.exports = (api, options, rootOptions) => {
console.log('elmc generator');
};
|
package com.health.covid19tracker.activity
import android.content.Context
import android.graphics.Color
import android.os.Bundle
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.google.android.material.snackbar.Sna... |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Lib
import Network.Wai
import Network.HTTP.Types
import Network.Wai.Handler.Warp (run)
import Data.ByteString.Lazy.Char8 ()
app :: Application
app req f = f $ responseLBS status200 [("Content-Type", "text/html")] hello
main :: IO ()
main = do
let port =... |
package com.example.spark
import com.example.aws.credentials.CredentialsFactory
import com.typesafe.scalalogging.LazyLogging
import com.example.utils.AppConfig
import org.apache.spark.SparkConf
import org.apache.spark.sql.SparkSession
import scala.collection.JavaConverters._
object Spark extends LazyLogging {
privat... |
namespace Thrift.Net.Compilation.Symbols
{
/// <summary>
/// Represents a Thrift Base type (string, bool, i32, etc).
/// </summary>
public interface IBaseType : IFieldType
{
}
} |
<?php namespace Meral\Setup\Components;
use Cms\Classes\ComponentBase;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Validator;
use meral\setup\models\Numberform;
use October\Rain\Support\Facades\Flash;
class Numberfor... |
/**
* Copyright (c) 2000,1,2,3,4,5 syntazo
*
* @author thanos vassilakis
*
*/
package org.visualtrading.gui.widgets;
import org.visualtrading.xml.nanoxml.XMLElement;
import org.zaval.lw.LayoutContainer;
import org.zaval.lw.Layoutable;
import org.zaval.lw.LwCanvas;
import org.zaval.lw.LwScroll;
import... |
#### Nodejs和其它语言比较
###### 优点
- node.js的对象/语法跟JavaScript一模一样,利于前端人员学习使用;
- 性能还不错.比PHP强很多;
- 前后台配合方便.
###### 缺点
- Java有及其丰富的库支持.
###### Nodejs用处
- 可以搭一个小型的后台系统/中间层;
- 工具:测试,构建(grunt/gulp/webpack...),抓取工具.
#### 搭建web服务器
- 首要前提:遵循http协议.
- 依赖模块.
> 说明:
1.nodejs和js一样,是单进程,单线程;
2.性能上在向多线程靠拢:主要靠非阻塞异步交互;
> nodejs做中间层目的:
1.安全... |
import React, { useState } from 'react'
import { deleteSong } from '../actions';
import { connect } from 'react-redux';
import Button from 'react-bootstrap/Button';
//refactor to functional
const Song = (props) => {
const handleOnClick = () => {
props.deleteSong(props)
}
return (
... |
/*** Copyright (c), The Unregents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* regDataObj.h
*/
#ifndef UNREG_DATA_OBJ_HPP
#define UNREG_DATA_OBJ_HPP
/* This is Object File I/O type API call */
#include "rods.hpp"
#include "rcMisc.h... |
#! /usr/bin/env dcli
import 'dart:async';
import 'dart:io';
import 'package:dcli/dcli.dart';
import 'package:fsm2/src/util/file_util.dart';
import 'package:fsm2/src/visualise/smcat_folder.dart';
import 'package:fsm2/src/visualise/svg_file.dart';
/// dcli create show.dart
///
/// See
/// https://pub.dev/packages/dcli#... |
using System;
namespace LangaugeDetect
{
class Lang
{
static void Main()
{
Console.WriteLine("You do not need this file, it is bsing used by GitHub to detect project language");
Console.WriteLine("Press any key to exit.");
Console.ReadKey();
}
}... |
var searchData=
[
['ue4_5flocal_2ecc_1252',['ue4_local.cc',['../ue4__local_8cc.html',1,'']]]
];
|
-- Revert schemas/app_jobs/procedures/release_scheduled_jobs from pg
BEGIN;
DROP FUNCTION app_jobs.release_scheduled_jobs;
COMMIT;
|
#pragma once
#include "../CaCommon/DeferredActionBase.h"
class CTelemetry :
public CDeferredActionBase
{
public:
HRESULT AddPost(LPCWSTR szUrl, LPCWSTR szPage, LPCWSTR szMethod, LPCWSTR szData, BOOL bSecure);
protected:
// Execute the command object (XML element)
virtual HRESULT DeferredExecute(IXMLD... |
package co.early.password123.ui.about
import android.content.Context
import android.content.Intent
import android.support.v4.app.Fragment
import co.early.password123.ui.common.BaseActivity
class AboutActivity : BaseActivity() {
override val fragmentInstance: Fragment
get() = AboutFragment.newInstance... |
SET NAMES UTF-8;
DROP DATABASE IF EXISTS
xiaofeiniu;
CREATE DATABASE xiaofeiniu
CHARSET=UTF8;
USE xiaofeiniu; |
import { SpecialAbilityGroup } from "../../Constants/Groups"
import { SpecialAbility } from "../../Models/Wiki/SpecialAbility"
import * as Wiki from "../../Models/Wiki/wikiTypeHelpers"
const { gr } = SpecialAbility.AL
export const isCombatStyleSpecialAbility =
(e: Wiki.EntryWithCategory) =>
SpecialAbility.is (e... |
import { GraphNode } from '../lib/graph'
import { LinkedList } from '../lib/linked-list'
interface Node {
num: number
isVisited?: boolean
}
export const bfs = (node: GraphNode<Node>, toSearch: Node): boolean => {
if (!node) { return false }
if (node.value == toSearch) { return true }
const queue =... |
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Mic... |
namespace UglyToad.PdfPig.Graphics.Core
{
/// <summary>
/// The line cap style specifies the shape to be used at the ends of open subpaths (and dashes, if any) when they are stroked.
/// </summary>
public enum LineCapStyle
{
/// <summary>
/// The stroke is squared off at the endpoi... |
using Xunit;
namespace Globkit.Tests
{
public class SearchTest
{
[Fact]
public void FindLeaves_On_Leaf_Exists_Returns_One_Result()
{
const string leafPath = "/branch/branch/leaf";
var searchTree = new TestSearchTree(leafPath);
var search = new Search(... |
require 'rails_helper'
feature 'Home page', js: true do
let(:user) { create :user, first_name: 'John' }
let!(:support) { create :support, user: user, receiver: receiver, body: 'help me!', created_at: 1.day.ago }
let!(:support2) { create :support }
let(:receiver) { create :user }
before do
authenticate_... |
---
title: "(12)課程記錄"
layout: post
category: class
order: 7
tags: [hw]
excerpt: "第4週課程。"
---
網頁系統開發課程記錄
github帳號及使用github做blog。。
# 課程目標
- Ajax
- RWD:Responsive Design
# 我的學習
##建立表單(php)
``` php
<div class="container-fluid">
<?php
$voteNo = 0;
$rowMax = $studentNum/4;
for ($rowNo = 0; $rowNo <$rowMax && $voteNo < $st... |
using System;
using System.Data.Common;
using Microsoft.EntityFrameworkCore;
using NadekoBot.Core.Services;
using Serilog;
namespace NadekoBot.Modules.Xp.Services
{
public sealed class XpConfigMigrator : IConfigMigrator
{
private readonly DbService _db;
private readonly XpConfigService _gss;
... |
const externals = [
// KNEX ignore not postgress drivers
/sqlite3/,
/mysql2/,
/mssql/,
/mariasql/,
/mysql/,
/oracle/,
/strong-oracle/,
/oracledb/,
/pg-native/,
/pg-query-stream/,
// KNEX artifacts
/import-file/,
];
export default externals;
|
-- file:numeric.sql ln:126 expect:true
INSERT INTO num_exp_mul VALUES (2,5,'-563049578578.769242506736077')
|
import { Directive } from '@angular/core';
import { ColumnChooserItemBaseDirective } from '../column-chooser-item-base';
import { IBaseEventArgs } from '../../core/utils';
export interface IColumnVisibilityChangedEventArgs extends IBaseEventArgs {
column: any;
newValue: boolean;
}
/** @hidden */
@Directive({... |
package v1alpha5
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
)
type endpointAccessCase struct {
vpc *ClusterVPC
endpoints *ClusterEndpoints
Public *bool
Private *bool
Expected bool
}
var _ = Describe("VPC Configuration", func() {
Des... |
package sgl.android.util
import sgl.util.JsonProvider
import org.json._
import scala.language.implicitConversions
trait AndroidJsonProvider extends JsonProvider {
object AndroidJson extends Json {
type JValue = Any
override def parse(raw: String): JValue = new JSONTokener(raw).nextValue()
class A... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package edu.secprog.dto;
import java.io.Serializable;
/**
*
* @author Mark Christian Sanchez
*/
public class Customer... |
; Arquivo: LCDletraGrupo.nasm
; Curso: Elementos de Sistemas
; Criado por: Rafael Corsi
; Data: 28/3/2018
;
; Escreva no LCD a letra do grupo de vocês
; - Valide no hardawre
; - Bata uma foto!
leaw $255, %A
movw %A, %D
leaw $17053, %A
movw %D, (%A)
leaw $65535, %A
movw %A, %D
leaw $17054, %A
movw %D, (%A)
leaw $49... |
#! /bin/bash
source "$(dirname ${BASH_SOURCE[0]})/common.sh"
###
# reset a user's password
###
user="${1}"
shift
prev_keys="$(aws iam list-access-keys --user-name "${user}" | jq .AccessKeyMetadata[].AccessKeyId)"
echo "user has $(echo "${prev_keys}" | wc -l) existing keys"
while read key;
do
echo "removing acces... |
# -*- coding: utf-8 -*-
from mlob.user_input import get_input
from mlob.output import write_output
from mlob.analysis import analyze_vehicle
import timeit
import pdb
import matplotlib.pyplot as plt
def manager():
"""Controls the global program execution.
Calls the user_input module to get the input from the u... |
<?php
namespace DFSClientV3\Entity\Custom;
use DFSClientV3\Entity\Custom\CategoriesForDomainLiveEntityMainTasksResultItemsMetricsOrganic;
use DFSClientV3\Entity\Custom\CategoriesForDomainLiveEntityMainTasksResultItemsMetricsPaid;
class CategoriesForDomainLiveEntityMainTasksResultItemsMetrics
{
/**
* @va... |
// Copyright 2021 Peter Williams <pwil3058@gmail.com> <pwil3058@bigpond.net.au>
//use std::cmp::Ordering;
use std::{
cmp::Ordering,
fmt::Debug,
ops::{Div, Mul},
};
use crate::{impl_prop_to_from_float, impl_to_from_number};
use crate::{
debug::{AbsDiff, ApproxEq, PropDiff},
fdrn::{FDRNumber, IntoP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.