text
stringlengths
27
775k
/* * @(#)NumberedViewFactory.java 1.0 October 10, 2005 * * Copyright (c) 2005 Werner Randelshofer * Staldenmattweg 2, Immensee, CH-6405, Switzerland. * All rights reserved. * * This software is the confidential and proprietary information of * Werner Randelshofer. ("Confidential Information"). You shall not ...
#!/bin/bash # # This script converts selected inputs from a MIDI source to keyboard shortcuts. # Inspired by https://superuser.com/a/1170232 # by https://superuser.com/users/157027/cl # Author Florian Mayer https://github.com/florianm # # Setup ----------------------------------------------------------------------- # 1...
import spray.json._ import models._ trait ExampleJsonProtocol extends DefaultJsonProtocol with AutoProductFormat { import nozzle.jsend.dsl._ implicit val campingFormat = AutoProductFormat.autoProductSerialize[Camping] implicit val campingJSendable = `for`[Camping].serializeOneAs("camping").andMultipleAs("campi...
library change_detection.proto_watch_group; import "proto_record.dart" show ProtoRecord; import "watch_group.dart" show WatchGroup; class ProtoWatchGroup { ProtoRecord head, tail; WatchGroup instantiate() => null; }
## <font color="red">そうです。</font> ### 今回のスライドはNuxt.jsと ### Firebaseを使用しています。
#!/bin/sh sh cleanup.sh pdflatex PyPlotter_Doc.tex pdflatex PyPlotter_Doc.tex #latex2html -local_icons PyPlotter_Doc.tex python3 ../docs/latex2html.py PyPlotter_Doc.tex #tar -cvf PyPlotter_Doc.html.tar PyPlotter_Doc #gzip PyPlotter_Doc.html.tar mv PyPlotter_Doc html_docs rm PyPlotter_Doc.log rm PyPlotter_Doc.aux rm...
import sqlite3 class Debate(): def __init__(self, dokid): self.dokid = dokid self.title = None self.debateName = None self.debateDate = None self.debateType = None self.url = None self.fromChamber = None self.thumbnailUrl = None self.debateSe...
# https://quizlet.com/269175534/mastering-arabic-2-unit-4-flash-cards/ تَرفيه : Leisure : 4 وَقت الفِراغ : Free time : 4 نَشاط (أنشِطة) : Activity (activities) : 4 هِواية (هِوايات) : Hobby (hobbies) : 4 صِحّة : Health : 4 كُرة (كُرات) : Ball(s) : 4 كُرة القَدَم : Football (soccer) : 4 كُرة السَلّة : Basketball : 4 كُرة...
//! Monitor based on tui-rs use crossterm::{ event::{self, DisableMouseCapture, EnableMouseCapture, Event, KeyCode}, execute, terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, }; use hashbrown::HashMap; use tui::{backend::CrosstermBackend, Terminal}; use std::{ ...
package influxdb import ( "context" ) // LookupService provides field lookup for the resource and ID. type LookupService interface { // FindResourceName returns the name for the resource and ID. FindResourceName(ctx context.Context, resource ResourceType, id ID) (string, error) }
// Libraries import React, {PureComponent} from 'react' import {connect} from 'react-redux' // Components import FluxEditor from 'src/shared/components/FluxEditor' import { Button, ComponentColor, ComponentSize, ComponentStatus, } from 'src/clockface' import Threesizer from 'src/shared/components/threesizer/Th...
package com.blogspot.mowael.theImage.modules.home.response data class Links( val download: String, val download_location: String, val html: String, val self: String )
module JDBCLoader # https://github.com/JuliaDatabases/JDBC.jl using JDBC # v0.5.0 using DataFrames: DataFrame using Octo: Repo, AdapterBase, DBMS, SQLElement, Structured using .Repo: SQLKeyword, ExecuteResult using Octo.Backends: UnsupportedError # db_dbname function db_dbname(nt::NamedTuple)::String nt.connecti...
desc 'Alias to spec:spec' task :spec => 'spec:spec' namespace :spec do require 'rspec/core/rake_task' desc "Run all specs" RSpec::Core::RakeTask.new(:spec){|task|} desc "Run specs with RCov" RSpec::Core::RakeTask.new(:rcov) do |task| task.rcov = true task.rcov_opts = ['--exclude', 'spec'] end end...
unit UOneSidedPlatform; interface {$I ..\..\Physics2D\Physics2D.inc} uses UMain, UPhysics2DTypes, UPhysics2D, SysUtils; type TState = (e_unknown, e_above, e_below); TOneSidedPlatform = class(TTester) private procedure PreSolve(var contact: Tb2Contact; const oldManifold: Tb2Manifold); override; ...
@using BrowserGame.ModelUtils @using BrowserGame.Models @inject ApplicationDbContext DbContext @{ var city = (City)ViewData["City"]; } @if (await city.IsBuildInProgressAsync(DbContext)) { <div class="text-center pt-5 text-info"> Currently building level @city.BuildQueue.TargetLevel @city.BuildQueue.Ta...
using UnityEditor; using UnityEngine; namespace Assets.UnityFoundation.Systems.DialogueSystem.Editor { class OnSelectDialogueNodeEvent : DialogueEditorEvent { public OnSelectDialogueNodeEvent(DialogueEditor editor) : base(editor) { } public override bool IsActive(Event current) => ...
import 'dart:convert'; import 'package:sigepweb/sigepweb.dart'; import 'package:sigepweb/src/constants.dart'; /// Model para retorno do servico calcPrecoPrazo class CalcPrecoPrazoItemModel { String? nome; String? codigo; double? valor; int? prazoEntrega; double? valorMaoPropria; double? valorAvisoRecebime...
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using Microsoft.Data.DataView; using Microsoft.ML.Data; using Microsoft.ML.SamplesUtils; using Microsoft.ML.Trainer...
def no_repeat(lista): unico = set() for m in lista: if m not in unico: unico.add(m) return unico from numpy import array import matplotlib.pyplot as plt import os import sys import scipy import pylab import scipy.cluster.hierarchy as sch import numpy as np INPUT =[m.strip() for m in open(sys.argv[1]).readlin...
# Frontend Mentor - Manage landing page ![Design preview for the Manage landing page coding challenge](./design/desktop-preview.jpg)
class Admin::BigCategoriesController < ApplicationController before_action :authenticate_admin! layout 'admin/application' before_action :set_big_category, only: [:show, :edit, :update, :destroy] def index @big_categories = BigCategory.all.paginate(:page => params[:page]) end def show end def new...
<div> <div x-data="{ showApi: false, copyToast: false }" class="flex justify-end items-center"> <input x-bind:type="!showApi ? 'password' : 'text'" name="apikey" readonly="readonly" value="{{ $token }}" class="bg-white mr-2 text-gray-800 px-2 py-1 rounded-md" /> ...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ControlledRotator : MonoBehaviour { [SerializeField] private string axis = "Horizontal"; [SerializeField] private Vector3 amount; [SerializeField] private bool rotateX, rotateY, rotateZ; [SerializeF...
module Main ( main ) where import System.IO ( IO(..), putStrLn, hPutStrLn, stderr ) import System.Exit ( exitWith, ExitCode(..) ) import System.Environment ( getArgs ) import System.Console.GetOpt ( getOpt, OptDescr(..), ArgDescr(..) , ArgOrder(..), usageInfo ) imp...
#region Copyright Notice // Copyright (c) by Achilles Software, All rights reserved. // // Licensed under the MIT License. See License.txt in the project root for license information. // // Send questions regarding this copyright notice to: mailto:todd.thomson@achilles-software.com #endregion #region Namespaces us...
"use strict"; const mongoose = require("mongoose"); const PurchaseOrder = mongoose.model("PurchaseOrder"); exports.list_all_order = (req, res) => { PurchaseOrder.find({}, (err, order) => { if (err) res.send(err); res.json(order); }); }; exports.create_purchase = (req, res) => { const order = req.body; if (orde...
class Vector4{ constructor(x, y, z, w){ this.x = x; this.y = y; this.z = z; this.w = w; } set(x, y, z, w){ this.x = x; this.y = y; this.z = z; this.w = w; } length(){ return Math.sqrt(this.x ** 2 + this.y ** 2 + this.z ** 2 + this.w ** 2); } distanceTo(vec){ let dx = vec.x - this.x; le...
package de.uni.leipzig.uncolored; import java.util.*; import java.util.Map.Entry; import java.util.stream.Collectors; import com.google.common.annotations.VisibleForTesting; import com.google.common.collect.Sets; import de.uni.leipzig.Util; import de.uni.leipzig.model.*; import de.uni.leipzig.model.edges.DiEdge; imp...
{-# LANGUAGE QuasiQuotes #-} module Hyperpipe.Tests.ConfigParser where import Data.ByteString.Lazy (ByteString) import Data.List (isInfixOf) import Data.String.Interpolate (i) import Test.Tasty import Test.Tasty.HUnit import Hyperpipe tests :: TestTree tests = testGroup "Hyperpipe.ConfigParser" [ testCase "Vali...
using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using Newtonsoft.Json; using Vulcan.Core.DataAccess.Validations; namespace Vulcan.Core.DataAccess.Models { public class Field { public int Id { get; set; } [Required] [MaxLength(64)] ...
package me.jguyjoggy.twofactor.utils; import me.jguyjoggy.twofactor.TwoFactor; import org.bukkit.ChatColor; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.util.Scanner; import java.util.function.Consumer; import java.util.logging.Level; public class Update { private int res...
"""Pattern class. """ from __future__ import unicode_literals import re from .utils import pick class PatternUnit(object): """Sub-piece of pattern.""" __slots__ = ('pattern_unit_string', 'rules', 'num', '_fuzzy_rule') def __init__(self, pattern_unit_string): self.pattern_unit_string = pattern_...
package Pod::Usage::Return; # ABSTRACT: pod2usage that returns instead of exits use strict; use warnings; use Pod::Usage (); use base 'Exporter'; our @EXPORT = qw( pod2usage ); sub pod2usage { my $exitval = 2; my %args; if ( @_ == 1 ) { if ( ref $_[0] eq 'HASH' ) { %args = %{$_[0]}; ...
twitter_user = TWITTER.get_user('elonmusk') tweets = twitter_user.timeline(count=200, exclude_replies=True, include_rts=False,mode=extended) tweets[0].text ebedding = BASILICA.embed_sentence(tweet[0].text, model= 'twitter')
package goproject import ( "fmt" "os" "path" "github.com/mitchellh/go-homedir" "github.com/spf13/viper" ) // SourceControl configuration sets the default upstream initializing git projects type SourceControl struct { URI string } // Go sets various Go Modules related options type Go struct { Vendor bool } /...
import { dirSlash, readFile } from '../utils'; export function handleAnswerPart2() { const inputText = readFile(`${dirSlash}inputs${dirSlash}mygosity${dirSlash}input001.txt`); const list = inputText.split('\n').map((e) => parseInt(e)); let answer = 0; for (let i = 1; i < list.length; ++i) { // } console.log({...
#!/bin/bash # Script cleans inventory fispact run. wdr="$r2s_scratch"/r2s_i/$1/$2/$3 # Inventory working folder scr="$r2s_scratch"/r2s_r # Scratch foder, where resulting tab4 files are moved scw="$r2s_scratch"/r2s_w # Scratch foder, where parts of the inventory input are written...
# This file is auto-generated by AWSMetadata.jl using AWS using AWS.AWSServices: health using AWS.Compat using AWS.UUIDs """ describe_affected_accounts_for_organization(event_arn) describe_affected_accounts_for_organization(event_arn, params::Dict{String,<:Any}) Returns a list of accounts in the organization ...
package neu.edu.controller.input; public class DonorDonationBean { private int donationAmount; private String projectName; private String expiryDate; private int cvv; private int cardNumber; public String getExpiryDate() { return expiryDate; } public void setExpiryDate(String expiryDate) { t...
package org.clustering4ever.clustering.kfamily.clusterwise import breeze.linalg.DenseMatrix import scala.collection.mutable trait ClusterwiseTypes { final type ClassID = Int final type ID = Int final type Xvector = Array[Double] final type Yvector = Array[Double] final type IDXYtest = Seq[(Int, (Xvector, Yvecto...
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2017 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
; Sord M5 ROM crt0 ; ; Sord memory starts from 0x7000 and is 4k long ; im2 interrupt vectors from 0x7000 defc CRT_ORG_CODE = 0x2000 defc CRT_ORG_BSS = 0x7100 defc TAR__clib_exit_stack_size = 0 defc TAR__register_sp = 0x7fff INCLUDE "crt/classic/crt_rules.inc" EX...
use Test; grant select, insert, update, delete on Test.* to 'root'@'localhost' identified by '1'; drop table if exists surgery_0; create table surgery_0 ( `patient_id` varchar(20) default '', `resection_way` varchar(20) default '', primary key(patient_id) ) engine=innodb default charset=utf8; ...
package models import "encoding/json" // Asset defines asset data models. type Asset struct { ID string `json:"id,omitempty"` SKU string `json:"sku,omitempty"` Name string `json:"name,omitempty"` Type string `json:"type,omitempty"` Info string `json:"info,omitempty"` Cost fl...
/* * Copyright (c) 2019 Håkan Edling * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. * * https://github.com/piranhacms/piranha.core * */ using System; using System.Collections.Generic; namespace Piranha.Manager.Models { /// <summar...
import pageScript from 'raw-loader!./js'; let node = document.head || document.documentElement; let injectables = [ { name: 'page-script', label: 'aofljs page script', content: pageScript, attributes: { 'data-id': chrome.runtime.id } } ]; let injectScript = (injectable, elem = node) => {...
using System; using System.Collections.Generic; using System.Net.Http; using System.Net.Http.Json; using System.Threading.Tasks; using BlazorWOL.Shared; namespace BlazorWOL.Client { public class DeviceService { private HttpClient HttpClient { get; } public DeviceService(HttpClient httpClient)...
require "test_helper" require "rack/test" require "printer/backend_server" require "printer/remote_printer" ENV['RACK_ENV'] = 'test' describe Printer::BackendServer::Settings do include Rack::Test::Methods def stub_printer(id="printer-id") stub("remote_printer", id: id, type: "printer-type", version: "printe...
#!/usr/bin/env perl use strict; use warnings; use Crypt::Random::TESHA2 qw/random_bytes/; use Time::HiRes qw/gettimeofday/; use Test::More; my @rbytes; # Measure approximate speed my $bps; { push @rbytes, random_bytes(1); my $t1 = gettimeofday(); push @rbytes, random_bytes(1) for 1..100; my $t2 = gettimeofda...
package at.ac.uibk.fiba.wang.spring4uli.jpa.repository; import at.ac.uibk.fiba.wang.spring4uli.jpa.ontology.Person; import at.ac.uibk.fiba.wang.spring4uli.jpa.ontology.Picture; import at.ac.uibk.fiba.wang.spring4uli.jpa.ontology.PictureProjection; import at.ac.uibk.fiba.wang.spring4uli.jpa.ontology.Project; import org...
<?php defined("IN_FUSION") or die("FU"); if (isset($_GET['id']) && isnum($_GET['id'])) ?>
import { primes } from '../math/primes' export const initializeArrayForCapacity = <T>(capacity: number) => { for (const p of primes) { if (p >= capacity) { return new Array<T>(p) } } /* istanbul ignore next */ throw Error('too large') }
Description ----------- Simple tool for the execution of migration scripts. Requirements ------------ Java6+, maven Configuration -------- Copy `src/main/resources/db.sample.properties` to `src/main/resources/db.properties` and modify with your local settings to configure how the script will connect to your fluxtrea...
using TaleWorlds.Core; using TaleWorlds.Library; using TaleWorlds.MountAndBlade; namespace EnhancedBattleTest.Data { public interface ISpawnableCharacter { BasicCharacterObject Character { get; } bool IsFemale { get; } FormationClass FormationIndex { get; } bool IsPlayer { get;...
<?php namespace App\Http\Controllers\backend; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\Models\{News}; use Arr; use Auth; use Carbon\Carbon; class AboutController extends Controller { public function index() { } public function edit($id) { $data[...
// // This unit is part of the GLScene Project, http://glscene.org // // ARBProgram {: Some useful methods for setting up ARB vertex and fragment programs.<p> <b>History : </b><font size=-1><ul> <li>11/10/04 - SG - Creation </ul></font> } unit ARBProgram; interface uses SysUtils, OpenGL1x, GLContext; ...
package com.czbix.v2ex import com.facebook.stetho.Stetho @Suppress("unused") class DebugAppCtx : AppCtx() { override fun init() { Stetho.initializeWithDefaults(this) super.init() } override val debugHelpers = DebugHelpersImpl() }
class Advent2020 { val helloWorld = "Hello Advent of Code 2020!" }
--- title: Basic weight: 411 menu: notes: name: Basic identifier: notes-python-basics-types parent: notes-python-basic weight: 411 --- <!-- 基础 --> {{< note title="函数" >}} 在 python 中,类型属于对象,变量是没有类型的: ```python a=[1,2,3] a="ormissia" ``` 以上代码中,`[1,2,3]`是`List`类型,`"ormissia"`是`String`类型,而变量`a`是没有类型,...
/*- * #%L * kvm-reader * %% * Copyright (C) 2016 - 2020 Frederik Kammel * %% * 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 * ...
<?php declare(strict_types=1); namespace Zce71\OOP\Modifiers; use PHPUnit\Framework\TestCase; /** * @TODO Describe ClassPropertyTest */ class ClassPropertyTest extends TestCase { }
print('Hello') num = 1000 msg = 'hello' auth = 'tom'
import { HorizontalNavigation } from "@hyperobjekt/material-ui-website" import { withStyles } from "@material-ui/core" export default withStyles((theme) => ({ root: { display: "none", [theme.breakpoints.up("md")]: { display: "block", }, }, list: { display: "flex", flexDirection: "row", ...
/* * Since working awk is not present on every supported platform * (notably Solaris), and nawk is not the same on Solaris and Linux, * this program is a replacement for it to extract test parameter from the. * string specified in the command line. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #inc...
module.exports = { operation: "create-file", path: "/home/office/docs/", identifier: "myFS", files: { type: "ObjectExpression", properties: [ { type: "ObjectProperty", method: false, key: { type: "Identifier", name: "dir" }, value: { type: "StringLiteral", value: "p...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> INFO - 2021-11-12 11:24:33 --> Config Class Initialized INFO - 2021-11-12 11:24:33 --> Hooks Class Initialized DEBUG - 2021-11-12 11:24:33 --> UTF-8 Support Enabled INFO - 2021-11-12 11:24:33 --> Utf8 Class Initialized INFO - 2021-11-12 11:24:33 ...
package oauth2Utils var predefinedOauthClients_ByClientId = map[string]*OAuth2Client_NonDb{} var predefinedOauthClients_ById = map[int64]*OAuth2Client_NonDb{} type OAuth2Client_NonDb struct { Id int64 //Do not get confused with the ClientId field which is a string ClientId string ClientSecr...
package cn.ucloud.ufs.model; import cn.ucloud.common.pojo.BaseResponseResult; import com.google.gson.annotations.SerializedName; import java.math.BigDecimal; import java.util.List; /** * @description: 获取文件系统价格 结果类 * @author: codezhang * @date: 2018-10-08 16:19 **/ public class DescribeUFSVolumePriceResult exten...
CREATE TABLE [dbo].[Tickets] ( [TicketId] INT IDENTITY (1, 1) NOT NULL, [RowNumber] INT NOT NULL, [SeatNumber] INT NOT NULL, [EventId] INT NOT NULL, [SectionId] INT NOT NULL, [TicketPurchaseId] ...
# Contributing We are welcome to contribute, and you can contribute following steps. 1. Fork the repo, develop your code changes. 2. Submit a pull request.
BITS 32 section .text foo: invlpg [dword 300+8*esi+esp] lgdt [dword 300+8*esi+esp] sgdt [dword 300+8*esi+esp] lidt [dword 300+8*esi+esp] sidt [dword 300+8*esi+esp]
#!/usr/bin/env python import os import sys from subprocess import STDOUT, CalledProcessError, check_output MODELS_PY = "migrate_test/app/models.py" def main(): """ This script runs a migration procedure from django-modeltranslation to django-moeltrans. `pre_migrate_tests` run before the migration t...
class ActiveRecord::Base include DbContext::MethodDefiner def method_missing(method_name, *args, &block) definers = { /^belongs?_to(_[0-9a-zA-Z_]+)?$/ => 'belongs_to___association_name__', /^makes?_([0-9a-zA-Z_]+)$/ => 'makes___associa...
# All casting considered 2 ## Dynamic cast ``` class Dog { public: virtual ~Dog() { std::cout << "Dog destructed!\n"; } }; class YellowDog: public Dog { int age; public: void bark() { std::cout << "Woof!\n"; } }; // -------------------------------------------------------------------- int main() { ...
class Chat class << self def configure yield config end def config @config ||= Config.new end end def client Twilio::REST::Client.new( config.twilio_api_key, config.twilio_api_secret, config.twilio_account_sid ) end private def config self.class....
module BadlyFormedResolution include TabsTabs::Resolutionable extend self end module WellFormedResolution include TabsTabs::Resolutionable extend self PATTERN = "%Y-%m-%d-%H-%M-%S" def name :seconds end def serialize(timestamp) timestamp.strftime(PATTERN) end def deserialize(str) dt...
/* Copyright 2015-present MongoDB Inc. * * 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 in wr...
#!/usr/bin/env python -O # # Copyright (c) 2011-2013 Kyle Gorman, Max Bane, Morgan Sonderegger # # 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 without restriction, including # without limit...
require_relative 'boot' require 'uri' # require 'rails/all' require "rails" [ 'active_record/railtie', #'active_storage/engine', 'action_controller/railtie', 'action_view/railtie', #'action_mailer/railtie', 'active_job/railtie', #'action_cable/engine', #'action_mailbox/engine', #'action_text/engine',...
import type { FilterFunction } from '../settings'; import type Settings from '../settings'; import type { Errno } from '../types'; export function isFatalError(settings: Settings, error: Errno): boolean { if (settings.errorFilter === null) { return true; } return !settings.errorFilter(error); } export function ...
#![no_std] use serde::{Serialize, Deserialize}; #[derive(Debug, Serialize, Deserialize, PartialEq)] pub struct TimeIsNow { pub seconds: u8, pub minutes: u8, pub hours: u8 } #[derive(Debug, Serialize, Deserialize, PartialEq)] pub struct SetTime { pub seconds: u8, pub minutes: u8, pub hours: u8...
# Stock Lookup App This is a simple tool to lookup stocks and get data using the IEX API. To run this app locally, go to the (iexCloud)[https://iexcloud.io] website and generate an API key. Create a file called `.env` in the root directory of this project and add the API key like this: ``` REACT_APP_IEX_API_KEY= "Y...
<?php /* * Copyright 2004-2015, AfterLogic Corp. * Licensed under AGPLv3 license or AfterLogic license * if commercial version of the product was purchased. * See the LICENSE file for a full license statement. */ /** * @package Api */ class CPost { /** * @var bool */ static $bIsMagicQuotesOn = false; p...
namespace PerimeterX { public interface IPXCookieValidator { bool Verify(PxContext context, IPxCookie pxCookie); } }
import 'package:flutter_rocket_launcher/features/rockets/data/storage/database/rockets/launches_database_sqflite.dart'; import 'package:flutter_rocket_launcher/features/rockets/data/storage/mapper/launches_to_table_mapper.dart'; import 'package:flutter_rocket_launcher/features/rockets/domain/model/launch.dart'; import ...
from .db_main import db, controller from .model_used import Model_used from .connection import Connection from .model import Model import json class Agent(db.Model): id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(80), unique=True, nullable=False) def __init__(self, name): ...
bash "copy" do user "root" code <<-EOH cp /etc/localtime /etc/localtime.org cp /etc/my.cnf /etc/my.cnf.org ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime cd /vagrant php composer.phar self-update php composer.phar update php oil refine install cp fuel/core/bootstrap_phpunit.p...
using System; namespace Thor.Core.Transmission.Abstractions { /// <summary> /// A transmitter for telemetry data. /// </summary> public interface ITelemetryTransmitter<in TData> where TData : class { /// <summary> /// Enqueues a single telemetry data object for transmission...
/** * Copyright 2013 BigML * Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package com.bigml.histogram; import com.bigml.histogram.Histogram.TargetType; import java.io.IOException; import java.text.DecimalFormat; import org.json.simple.JSONArray; public class Numer...
//$Id$ package org.hibernate.test.annotations.generics; import java.io.Serializable; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Transient; /** * @author Emmanuel Bernard */ @Entity public class WildEntity implements Serializable { ...
import numpy as np from skimage.io import imread from skimage.feature import blob_dog from skimage.transform import hough_circle def extract(image): # used with default parameters, play around with params for other results blob_dog_feature = blob_dog(image, min_sigma=1, max_sigma=50, sigma_ratio=1.6, thresh...
using UnityEngine; using UnityEngine.UI; using System.Collections; namespace Hobscure.UI { [CreateAssetMenu(fileName = "Data", menuName = "Hobscure/IconButtonStyle", order = 2)] public class IconButtonStyle : GeneralButtonStyle { public Color iconColor; public Color iconColorDisa...
use lexer::Token; #[derive(Debug)] pub enum ChunkValue { Source(String), Tokens(Vec<Token>), Block(Branch), } #[derive(Debug)] pub struct Chunk { value: ChunkValue, } impl Chunk { pub fn new(value: ChunkValue) -> Chunk { Chunk { value, } } pub fn value(&self) ...
import numpy as np import matplotlib.pyplot as plt from mriseqplot.core import Sequence from mriseqplot.style import SeqStyle from mriseqplot.shapes import adc, rf_sinc, trapezoid t = np.linspace(-0.2, 20, 10000)[:, None] sequence = Sequence(t, ["RF", "ADC", "Slice", "Phase", "Frequency"]) sequence.add_element( "...
import AppError from "@shared/errors/AppError"; import Car from "../infra/typeorm/entities/Car"; import ICarsRepository from "../repositories/ICarsRepository"; import CarsRepositoryInMemory from "../repositories/in-memory/CarsRepositoryInMemory"; import CreateCarUseCase from "./CreateCarUseCase"; let carsRepository: ...
namespace JsonToEnum.Export { public enum GroupAttributeType { Computed = 0, Point = 1, Range = 2 } }
=head1 NAME Neverhood::Scene - the base class for all scenes =cut class Neverhood::Scene { use Symbol qw/qualify/; rw_ items => sub { [] }; rw_ background => coerce => 1; rw_ cursor =>; rw_ movie => coerce => 1; rw_ music => coerce => 1; rw_ klaymen =>; rw_ rect_list => sub { [] }; method BU...
package models.mproj import models.mctx.Context import play.twirl.api.Html /** * Suggest.io * User: Konstantin Nikiforov <konstantin.nikiforov@cbca.ru> * Created: 03.06.19 11:52 * Интерфейс для возможности задания моделей, умеющих рендер в html. */ trait IRenderable { /** Запуск рендера в контексте ренде...
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DcssePortal.Model { [Table("tResult")] public class Result { [Key] ...