text
stringlengths
27
775k
program ocean use mod_data use mpdata_adiff #ifdef USE_MPI use mpi #endif implicit none integer start_time, stop_time, clock_rate, clock_max integer ierr, myrank real*8 t1 #ifndef USE_MPI ! General procedure. ! ************************************************************* write (*,*) "[...
(function() { var EMap = { VERSION : '1.2', Map:{}, Utils : {}, Layers:{}, Controls:{}, Widget:{} }; if (typeof window != 'undefined') { window.EMap = EMap; } }());
export class Producto { id?: number; nombre: string; precio: number; imagen: string; descripcion: string; cantidadExistencias: string; fechaVencimientoPublicacion?: string; categoria: string; idUsuarioVendedor?: number; constructor( id: number, nombre: string, ...
#pragma once /* * Copyright (C) 2005-2013 Team XBMC * http://xbmc.org * * This Program 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 2, or (at your option) * any later ve...
import sublime_plugin import re from sublime_lib import show_selection_panel TRANSFORMS = { "hyphen": lambda words: '-'.join(words), "underscore": lambda words: '_'.join(words), "shouty": lambda words: '_'.join([word.upper() for word in words]), "pascal": lambda words: ''.join([word.capitalize() for...
{-# LANGUAGE BlockArguments #-} module Main where import HelperSpec( helperSpec ) import TypesSpec( typesSpec ) import InfererSpec( infererSpec ) import Test.Hspec main :: IO() main = hspec helperSpec <> hspec typesSpec <> hspec infererSpec
<?php require_once 'config.php'; require_once 'funcoes.php'; require_once DBAPI; $email = $_POST["email-atualizacoes"]; $query = "INSERT INTO newsletter (email) VALUES ('" . $email . "')"; $conexao = open_database(); $resultado = $conexao->query($query); if($resultado){ echo "Sucesso!"; }else{ echo "Falha"; }...
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD Lic...
package io.github.wykopmobilny.ui.modules.input.link.edit import dagger.Module import dagger.Provides import io.github.wykopmobilny.api.links.LinksApi import io.github.wykopmobilny.base.Schedulers @Module class LinkCommentEditModule { @Provides fun provideEditLinkCommentPresenter(schedulers: Schedulers, links...
package maps // Map implements the behavior of a map. type Map interface { Size() (size int) Empty() (empty bool) Get(key interface{}) (value interface{}, ok bool) Set(key interface{}, value interface{}) Delete(key interface{}) Keys() (keys interface{}) }
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Dashboard extends Base_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this co...
export interface ChatMessage { roomId?: string | number; email?: string; displayName?: string; photoURL?: string; content?: string; uid?: string | number; createdAt: number; }
splitWhen :: (a -> Bool) -> [a] -> ([a], [a]) splitWhen _ [] = ([], []) splitWhen p (x:xs) | p x = ([], x:xs) | otherwise = let (ys, zs) = splitWhen p xs in (x:ys, zs) -- >>> splitWhen even [1,2,3] -- ([1],[2,3]) group :: Eq a => [a] -> [[a]] group [] = [] group (x:xs) = let (group1,...
#!/bin/bash cd /app # Create a .npmrc file with a GitHub token echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" >> ~/.npmrc #npm ci npm run start:dev
#include <gtest/gtest.h> #include <Scheduler/Common/Console.h> #include <Scheduler/Lib/UUID.h> #include <iostream> #include <vector> using namespace Scheduler; using Scheduler::Lib::UUID; TEST(UUIDInit, Initialize) { UUID uuidA(true), uuidB(true); Console(std::cout) << "UUID: " << uuidA << '\n'; Console(...
import `fun`.kotlingang.deploy.Deploy import `fun`.kotlingang.deploy.DeployConfiguration import org.gradle.api.Project import org.gradle.kotlin.dsl.apply import org.gradle.kotlin.dsl.configure import org.gradle.util.GUtil.loadProperties import java.io.File /** * Enabling maven publish task for library. * if `deploy....
use robespierre_models::{ autumn::Attachment, id::{ServerId, UserId}, servers::{Ban, Member, MemberField, PartialMember}, users::User, }; use super::impl_prelude::*; impl Http { /// Fetches member in server pub async fn fetch_member(&self, server_id: ServerId, user_id: UserId) -> Result<Member...
package learn.ktor.data.models import org.jetbrains.exposed.dao.id.IntIdTable import org.jetbrains.exposed.sql.Column object Rooms : IntIdTable() { val roomKey: Column<String> = varchar("room_key", 40) }
export interface ViewMembersModel{ createdDate: Date; district: string; email: string; fullName: string; id: number; password: string; phoneNumber: string; region: string; role: string; street: string; username: string; ward: string; }
'use strict'; const _ = require('lodash'); const debug = require('debug'); const { EventEmitter } = require('events'); const validateConfigs = require('terafoundation/lib/validate_configs'); const { loggerClient } = require('terafoundation/lib/logger_utils'); const registerApis = require('terafoundation/lib/api'); con...
package com.alibaba.alink.operator.batch.similarity; import org.apache.flink.ml.api.misc.param.Params; import com.alibaba.alink.operator.common.similarity.TrainType; import com.alibaba.alink.params.similarity.VectorNearestNeighborTrainParams; /** * Find the nearest neighbor of query vectors. */ public class Vector...
<!DOCTYPE html> <html> <head> <title>Pratikum Web 2021</title> <link rel="stylesheet" type="text/css" href="../css/style.css"> </head> <body> <div class="header"> <h2>PERPUSTAKAAN MALANG JAWA TIMUR</h2> </div> <div class="nav"> <p>Jadwal Buka : Senin - Kamis (08.00 - 16.00) &Jum'at - Sabtu (08.00 - 13.00)</...
use Bits; use BlockType; use iter::BlockIter; use traits::get_masked_block; /// Emulates a constant-valued bit-vector of a given size. #[derive(Debug, Clone)] pub struct BitFill<Block> { len: u64, block: Block, } impl<Block: BlockType> Bits for BitFill<Block> { type Block = Block; fn bit_len(&self) ...
export default class Input { constructor() { window.document.addEventListener("keydown", this.onKeyDown); } onKeyDown(e) { if (e.altKey) { e.preventDefault(); } // if (e.key === "ArrowLeft") { // if (e.altKey) { // this.config.keysOverlay.offsetX -= 1; // } else { /...
#!/usr/bin/env bats . test/helpers.sh cwd= setup () { cwd=$PWD } @test "destinations maintains a stack of locations" { [ "$(destination)" = $cwd ] [ "$(destination size)" -eq 0 ] destination push $HOME [ "$(destination)" = $HOME ] [ $PWD = $HOME ] [ "$(destination size)" -eq 1 ] destination push $c...
/** * +---------------------------------------------------------------------- * | CodeEngine * +---------------------------------------------------------------------- * | Copyright 艾邦 * +---------------------------------------------------------------------- * | Licensed ( http://www.apache.org/licenses/LICENSE-2....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const admin = require("firebase-admin"); class FirebaseHelper { /** * Initialize Firebase App * * @param {any} serviceAccount * @param {any} databaseURL */ initializeApp(serviceAccount, databaseURL) { a...
use std::{fmt, fs::OpenOptions, io::Read, path::Path}; use anyhow::Context; use littlefs2::fs::{Attribute, Filesystem}; use sha2::Digest; use crate::Flash; const CERT_ROOT_DIR: &'static str = "/fobnail_client/dat/cert"; // These constants must match with definitions in certmgr/store.rs const ATTRIBUTE_CERTIFICATE_FL...
var BitSet = require('../lib/bitset'); var _ = require('underscore'); var NR_OF_BITS=100000000; var bs = new BitSet(); console.time("set "+NR_OF_BITS+" bits"); _(NR_OF_BITS).times(function(n){ bs.set(n); }); console.timeEnd("set "+NR_OF_BITS+" bits"); console.time("cardinality"); console.log("cardinality", bs.c...
#pragma once #include "stdafx.h" #include "SceneNode.h" using namespace irr; using namespace System; namespace IrrlichtLime { namespace Scene { ref class Mesh; ref class ShadowVolumeSceneNode; public ref class MeshSceneNode : SceneNode { public: ShadowVolumeSceneNode^ AddShadowVolumeSceneNode(S...
import Component from '@ember/component'; import { action, computed } from '@ember/object'; import { bool } from '@ember/object/computed'; import { guidFor } from '@ember/object/internals'; import { tagName, layout as templateLayout } from '@ember-decorators/component'; import { errorId, helpTextId } from '@smile-io/em...
package main import ( "./grovepi" "fmt" "time" ) func main() { var g grovepi.GrovePi g = *grovepi.InitGrovePi(0x04) for { time.Sleep(2 * time.Second) t, h, err := g.ReadDHT(grovepi.D4) if err != nil { fmt.Println(err) } fmt.Println(t) fmt.Println(h) } g.CloseDevice() }
test_number=01 description="input on stdin" expected=1 index=`$bin -l f0 -d '\t' << "END_INPUT" f0 f1 f2 00 001 002 END_INPUT` if [ $? -ne 0 ] || [ $index -ne $expected ]; then test_status $test_number 1 "$description" FAIL else test_status $test_number 1 "$description" PASS fi
/* eslint-disable no-console */ /* sends messages to the content script, using portFromAPP, when the user clicks the extension's browser action. The background script is the extension's event handler; it contains listeners for browser events that are important to the extension. It lies dormant until an event is fired ...
# Detail page Let's complete the sample by implementing the details page. This example won't introduce any new concept, just grab the right id from the query string, fetch the user detailed data and display it. # Steps - We will take as starting point sample _05-friendly-url_. - Let's install the dependencies. ``...
./demo.exe 1 1 -v &> /tmp/11.txt diff 11.txt /tmp/11.txt ./demo.exe 1 2 -v &> /tmp/12.txt diff 12.txt /tmp/12.txt ./demo.exe 2 1 -v &> /tmp/21.txt diff 21.txt /tmp/21.txt ./demo.exe 2 2 -v &> /tmp/22.txt diff 22.txt /tmp/22.txt
#!/bin/bash # SYNOPSIS # quoteSubst <text> quoteSubst() { IFS= read -d '' -r < <(sed -e ':a' -e '$!{N;ba' -e '}' -e 's/[&/\]/\\&/g; s/\n/\\&/g' <<<"$1") printf %s "${REPLY%$'\n'}" } SCRIPTPATH=$(dirname $(realpath $0) ) cd $SCRIPTPATH/.. if [ ! -f "build/qikkDB/qikkDB_community" ]; then echo "Error: qikkDB_...
# frozen_string_literal: true require_relative 'base' # Responsible expose subsection endpoints # class SubsectionsController < ApiController # GET /subsections/1 get '/:id' do subsection = Subsection.find(params[:id]) jsonapi(subsection, is_collection: false) end # GET /subsections get '/' do s...
#!/usr/bin/perl my @dirs = qx{ls -1p | grep /}; foreach my $dir(@dirs) { chomp($dir); chop($dir); chdir($dir); my @files = qx{ls *.txt}; foreach my $file(@files) { chomp($file); my $new = $file; $new =~ s/NOR_//g; $new =~ s/-/_/g; print "$new\n"; system("mv $file $new"); } chdir(".....
package com.psenchanka.comant.service.impl import com.psenchanka.comant.dao.AbstractDao import com.psenchanka.comant.service.AbstractService import java.io.Serializable open class AbstractServiceImpl<T, Id : Serializable>(val dao: AbstractDao<T, Id>) : AbstractService<T, Id> { override fun save(t: T) = dao.save(...
# # Copyright 2021 Red Hat Inc. # SPDX-License-Identifier: Apache-2.0 # """Accessor for Customer information from koku database.""" import logging from django.db import transaction from django.db.models import Subquery from tenant_schemas.utils import schema_context from masu.config import Config LOG = logging.getL...
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE TemplateHaskell #-} module QC.PeopleSpec (spec) where import Test.QuickCheck import Test.Hspec import QC.Generators.Import import TestImport import People.Import ( knownLink, flipRelation ) import People.Opinion ( OpinionReport(..), reportResult...
# TimerIssue Swift 解决Timer引起的循环应用的几种方式
# merge all columns of the csv file in current directory into a single 'merge.csv' file. # requires pandas librairy to be installed. # you can customize the merge in many ways: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.concat.html import pandas as pd import glob dfs = glob.glob('*.csv') resul...
package me.itzg.mcadmin; import org.hamcrest.CoreMatchers; import org.junit.Test; import org.junit.matchers.JUnitMatchers; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.not; import static org.junit.Assert.*; /** ...
package com.chengjie.recyclerview import androidx.annotation.LayoutRes /** * @author chengjie.jlu@qq.com */ interface ItemData { @LayoutRes fun getLayoutResId(): Int }
--- layout: post title: '_Contra_ implicit declarations of struct types' date: 2018-05-16 00:01:00 +0000 tags: language-design pitfalls rant --- Today one of my coworkers ran into this snippet of code: namespace N { struct sockaddr *Foo(); } #include <sys/socket.h> int main() { ...
# frozen_string_literal: false require_relative "../auto_ext.rb" headers = %w[sys/param.h sys/mount.h sys/vfs.h].select {|h| have_header(h)} if have_type("struct statfs", headers) have_struct_member("struct statfs", "f_fstypename", headers) have_struct_member("struct statfs", "f_type", headers) have_struct_membe...
"use strict"; const tape = require("tape"); const tapes = require("tapes"); const tests = tapes(tape); const jsdom = require("jsdom"); const { JSDOM } = jsdom; const d3 = require("../../fixtures/build/d3.min.js"); const sucrose = require("../../fixtures/build/sucrose.js"); const data = require("../../files/pie_data....
Trash.define "test_lights" do leds = %i(normal reset a x home shiny not_shiny) 5.times do leds.each do |led| light(led, true) sleep(0.5) end leds.each do |led| light(led, false) sleep(0.5) end end end
package org.apoka.tenprintcover; import org.apoka.graphics.Image; import org.kohsuke.args4j.CmdLineException; import org.kohsuke.args4j.CmdLineParser; import org.kohsuke.args4j.Option; import java.io.IOException; public class TenPrintCover { @Option(name = "-t", usage = "Book title", required = true, metaVar = "...
import App from "./app"; import * as dotenv from "dotenv"; import { fileNestedStatic } from "./utils/util"; dotenv.config(); let files = fileNestedStatic('./src/routes') .filter(f => (f.indexOf('.route.ts') > 0)); (async () => { let routes = []; for (let file of files) { file = file.replace('.ts', ...
/* * Copyright 2021 HM Revenue & Customs * * 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 a...
<?php /** * Copyright (c) 2019. Zhang Di <zhangdi_me@163.com> */ namespace ZhangDi\Sdk\DingTalk; use ZhangDi\Sdk\DingTalk\Robot\RobotServiceProvider; use ZhangDi\SdkKernel\Application as BaseApplication; /** * Class Application * @package ZhangDi\Sdk\DingTalk * * @property Robot\Client $robot */ class Applica...
// categories.go package main import ( "fmt" "github.com/keltia/ssllabs" ) var ( tlsKeys = []string{ "A+", "A", "A-", "B", "C", "D", "E", "F", "T", "X", "Z", "Total", "Issues", "PFS", "OCSP", "HSTS", "Sweet32", } httpKeys = []string{ "A+", "A", "A-", "B-", "B", "B-...
package roleController import ( roleService "gin-web-admin/app/service/v1/role" "gin-web-admin/common" "gin-web-admin/utils" "gin-web-admin/utils/code" "gin-web-admin/utils/com" "github.com/gin-gonic/gin" "net/http" ) // @Summary 删除角色 // @Description 删除角色 // @Accept json // @Produce json // @Security ApiKeyAut...
// Copyright 2018 Developers of the Rand project. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // https://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed /...
import {ProfileService} from "../profile/profile.service"; import {CredentialService} from "../credential/credential.service"; import {ResolveField, Parent} from "@nestjs/graphql"; import {AccountRootEntity} from "./account-root.entity"; import {RootResolver} from "./root.resolver"; import {UserService} from "../user/u...
/** * Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com> */ package akka.crdt import org.scalatest.{ BeforeAndAfterAll, WordSpec } import org.scalatest.matchers.MustMatchers import akka.remote.testkit.{MultiNodeSpec, MultiNodeSpecCallbacks} import akka.testkit.ImplicitSender import scala.concurrent.d...
--- title: 测试文章 subtitle: 测试文章 date: 2021-10-14T10:09:41.942Z summary: 一个测试 draft: false featured: false image: filename: featured focal_point: Smart preview_only: false --- # this is H1 ## this is H2 ### this is H3 #### this is H4 ##### this is H5 ###### this is H6 **这是加粗** __这也是加粗__ *这是倾斜* _这也是倾斜_ ***这是加粗倾斜***...
using ResotelApp.ViewModels.Entities; namespace ResotelApp.ViewModels.Events { class OptionChoiceEntityChange { public OptionChangeKind Kind { get; set; } public OptionChoiceEntity OptionChoiceEntity { get; set; } public OptionChoiceEntityChange(OptionChangeKind kind, OptionChoiceEnti...
function specialPythTriplet() { var b = 0; while (true) { b++; for (var j = 1; j < b; j++) { var a = j; var c = a*a + b*b; c = Math.sqrt(c); if (a+b+c == 1000) { return a*b*c; } } } };
<?php /** * @author h.woltersdorf */ namespace Fortuneglobe\IceHawk\Tests\Unit\Requests; use Fortuneglobe\IceHawk\RequestInfo; use Fortuneglobe\IceHawk\Requests\GetRequest; class GetRequestTest extends \PHPUnit_Framework_TestCase { /** * @param array $getData * @param string $key * @param string $expectedV...
export '3d/3d_button.dart'; export 'custom/animated_checkbox.dart'; export 'custom/anime_press_button.dart'; export 'custom/hover_button.dart'; export 'custom/like_button.dart'; export 'custom/opacity_button.dart'; export 'fabs/custom_fab.dart'; export 'fabs/menu_fab.dart'; export 'fabs/star_fab.dart'; export 'fabs/ima...
{-# LANGUAGE TypeOperators , MultiParamTypeClasses , FlexibleInstances , UndecidableInstances #-} module SessionCheck.Backend.HTTP.Instances where import Test.QuickCheck import Text.Read import Data.Maybe import SessionCheck.Backend.HTTP.Types import SessionCheck.Classes class IsHTTP...
# coding: utf-8 # @author {mailto:cuihaiqin@gmail.com cuihq} class String # string colors. # @see http://www.termsys.demon.co.uk/vtansi.htm ANSI/VT100 Control sequences. COLOR = { black: 30, red: 31, green: 32, yellow: 33, blue: 34, magenta: 35, cyan: 36, light_gray: 37, defau...
using UnityEngine; using System.Collections; public class RegisterData : MonoBehaviour { public string user_name; public string user_email; public string user_type; }
-module(mqttgw_ratelimit). %% API -export([ read_config/0, read_config_file/1 ]). %% Types -type config() :: mqttgw_ratelimitstate:constraints(). %% ============================================================================= %% API %% ========================================================================...
package main import ( "fmt" "strings" "syscall" "time" "golang.org/x/sys/unix" ) var wscol = 30 func init() { ws, err := unix.IoctlGetWinsize(syscall.Stdout, unix.TIOCGWINSZ) if err != nil { panic(err) } wscol = int(ws.Col) } func renderbar(count, total int) { barwidth := wscol - len("Progress: 100% []...
size = attribute.dna[:environment][:instance_size] || ec2_instance_size default['collectd'] = (default_collectd(size)) meminfo = Mixlib::ShellOut.new("cat /proc/meminfo").run_command.stdout default['swap_total_bytes'] = meminfo.scan(/^SwapTotal:\s+(\d+)\skB$/).flatten.first.to_i * 1024 default['swap_warn_threshold'] = ...
import { getDataFromSpreadsheet } from './spreadsheet_helper'; // Running: // npx ts-node -r tsconfig-paths/register packages/utility-scripts/ethic-groups-spreadsheet.ts type EthicScale = 'violence' | 'control' | 'individualism' | 'mind'; interface EthicCondition { scale: EthicScale; conditionMin: number; co...
class Printer { public Printer() { var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false }; Console.SetOut(sw); } ~Printer() => flush(); public void println(string a) => Console.WriteLine(a); public void println<T>(IEnumerable<T> a) => println(string.Join(" ", a)); public v...
{ let result = null console.log("") console.log(`-- 10回繰り返す -----------------`) let sum = 0 for (let i = 0; i < 10; i++) { sum += i } console.log(sum) console.log("") console.log(`-- 10回繰り返す(for文を使用しない場合) -----------------`) sum = 0 sum += 0 sum += 1 sum += 2 sum += 3 sum += 4 sum ...
# Lesson 13 - Rhythm 6 - Twist # Stand By Me - Ben E King require "#{Dir.home}/ruby/pianoforall/section01/lesson13/twist" use_synth :piano 2.times do twist(:C4) end 2.times do twist(:A3, chord_type: :minor) end twist(:F3) twist(:G3) 2.times do twist(:C4) end
# Jamf contrib app ## API permissions Permissions needed for the Jamf contrib app. Extra permissions needed for the **machine group** and **computer extension attribute** actions are marked with a <sup>*</sup>. The webhooks permissions are only needed during setup and teardown. |Objects|Create|Read|Update|Delete|Not...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Volley.Matches; using Volley.Matches.Competitors; using Volley.Players; using Volley.Pointing; using Volley.Rules; using Volley.Sets; using Volley.Team; namespace Volley.Games { /// <summary> /// Defines a base infrast...
// // Created by huangtiebing_vendor on 2021/3/7. // #include <jni.h> #include "JNIEnvPtr.h" JNIEnvPtr::JNIEnvPtr(JavaVM *m_javavm) : env_{nullptr}, need_detach_{false} { this->m_javavm = m_javavm; if (m_javavm != nullptr && m_javavm->GetEnv((void **) &env_, JNI_VERSION_1_6) == JNI_EDETACHED) { m_java...
#ifndef ROOT_Gem_H #define ROOT_Gem_H #include "TObject.h" #include "enums/GemConditionSummary.h" class GemTileList : public TObject { public: GemTileList() { Clear(); } GemTileList (UShort_t xzm, UShort_t xzp, UShort_t yzm, UShort_t yzp, UInt_t xy, UShort_t rbn, UShort_t na) : ...
#!/bin/sh TIMEOUT=$1 if [ -z "$TIMEOUT" ]; then echo "No timeout given, won't sleep" exit 0 fi echo "Sleeping for $TIMEOUT seconds" sleep $TIMEOUT exit 0
; ModuleID = '/home/david/src/c-semantics/tests/llvm-unit/2006-12-07-Compare64BitConstant.c' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" @Large = global...
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'dart:async'; import 'dart:convert'; import 'package:file/file.dart'; import 'package:file/memory.dart'; import 'package:flutter_tools/src/asset.d...
using bS.Sked.Model.Interfaces.Jobs; using System; using System.Collections.Generic; using bS.Sked.Model.Interfaces.Elements; using bS.Sked.Model.Interfaces.Tasks; using bS.Sked.Model.Interfaces.Triggers; using FluentNHibernate.Mapping; using bS.Sked.Model.Elements; using bS.Sked.Model.Tasks; using bS.Sked.Model.Trigg...
CREATE TABLE [dbo].[SearchAuditRecord] ( [SearchAuditRecordId] INT IDENTITY (-1, -1) NOT FOR REPLICATION NOT NULL, [CandidateId] INT NOT NULL, [RunDate] DATETIME NOT NULL, [SearchCriteria] NVARCHAR (500) NULL, [RunTime] DATETIME ...
module Lapidarist class Outdated def initialize @bundle = BundleCommand.new end def run Lapidarist.logger.header('Detecting outdated gems') gems = outdated_gems.each_with_object([]) do |gem, results| reason = reason_to_skip(gem) if reason.nil? Lapidarist.logge...
# Notepad ## How to run the code ``` javac NotePad.java java NotePad ```
require 'spec_helper' describe 'ztpserver::source' do context 'with defaults for all parameters' do it { should contain_class('ztpserver::source') } it { should contain_package('git') } it { should contain_vcsrepo('/home/ztpsadmin/src/ztpserver') } it { should contain_exec('Python install ztpserver')...
module Type ALL = [ Fleet = 'fleet', Army = 'army', ] end
--- title: "소스트리 (Sourcetree) 사용하기" categories: git tags: git toc: true --- ## Intro 다음엔 소스트리 사용법 및 이클립스 연동 방법을 기록해보겠습니다.. <br> 공부하는것도 힘든데 기록으로 남기려니 피곤하다.. <br> 일 그만두고 블로그나 하고싶구만.. ## 소스트리 란? - Free Git GUI for Mac and Windows ## 소스트리설치하기 ## 소스트리 로컬저장소 설정하기 ## 소스트리 커밋 하기 ## 소스트리 원격저장소 설정하기 ## 이클립스 플러그인 설치 - Fr...
<?php namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class ChartMaster extends Model { /** * The attributes that are mass assignable. * * @var array */ protected $guard_name = 'api'; // 使用任何你想要的守卫 protected $table = 'chartmast...
package helios.instances import helios.arrow.UnitSpec import helios.test.generators.bigDecimal import helios.test.generators.jsString import io.kotest.assertions.arrow.either.beLeft import io.kotest.assertions.arrow.either.beRight import io.kotest.properties.Gen import io.kotest.properties.assertAll import io.kotest.p...
/******************************************************************************* * Copyright (C) 2020 Snigdha Athaiya, Animesh Kumar * * 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 Software wi...
--- title: Creación de un plan Prémium de Azure Functions en el portal description: Aprenda a usar Azure Portal para crear una aplicación de funciones que se ejecute en el plan Prémium. ms.topic: how-to ms.date: 10/30/2020 ms.openlocfilehash: e510eb85cb0e30cd6cd0fcfa1a1979dd421dd266 ms.sourcegitcommit: f6e2ea5571e35b9e...
export { default as G } from './g'; export { default as Path } from './path.js'; export { default as SVG } from './svg';
#!/bin/bash #python3 train.py resnet cifar10 --use_swap_cuda_gpu python3 train.py alexnet cifar10 --use_swap_cuda_gpu
#!/usr/bin/env bash # Script Name: remove_branch.sh # Description: Removes a branch from a git repository, both locally and remotely. # Usage: remove_branch.sh [<branch_name>] # [<branch_name>] - the name of the branch to remove. # Example: ./remove_branch.sh test main() { if [ $# -eq 0 ]; then ec...
class ChatMessage < ActiveRecord::Base unloadable include Redmine::I18n belongs_to :issue belongs_to :user def as_json(options = {}) { id: id, issue_id: issue_id, created_at: format_time(created_at), user: user.name, message: message } end end
#!/bin/sh sudo chown -R www-data:users files/ sudo chmod -R 774 files/
package command import ( "github.com/f110/discord-bot/pkg/config" "github.com/f110/discord-bot/pkg/handler" ) var Manager = newManager() type Plugin interface { Enable(conf *config.Config) error Subscribe(handler *handler.Handler) } type manager struct { plugins map[string]Plugin } func newManager() *manager ...
package org.rcsb.cif.api.generated; import org.rcsb.cif.model.*; import javax.annotation.Generated; import java.util.Map; /** * Data items in the IHM_GEOMETRIC_OBJECT_HALF_TORUS category records the parameters of * half-torus that represents a membrane. */ @Generated("org.rcsb.cif.generator.SchemaGenerator") publ...
/*********************************************************************** * Copyright (c) 2013-2021 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and...