text
stringlengths
27
775k
# todos Please do not use this package in any kind of production product, it's just for experimenting.
part of fmvvm; /// When fmvvm is instatiated, this class is used to create fmmvm service objects. /// /// This class can be extended and any of the methods overridden to provide alternate /// implementations. Any class created in such a way should then be passed to the Core.initialize /// method. class Registrations {...
using System; namespace ExtractorSharp.Plugin.Download { // Token: 0x02000003 RID: 3 // (Invoke) Token: 0x0600000D RID: 13 public delegate byte[] Decoder(byte[] data); }
import 'reflect-metadata'; import { Field, ObjectType } from 'type-graphql'; import Hacker from './Hacker'; @ObjectType({ description: 'DTO for a Vaken Team' }) export class Team { @Field() public teamName!: string; @Field(() => [Hacker]) public teamMembers!: Hacker[]; @Field() public size: number = 0; } exp...
<?php include("../../inicioContenido.php"); ?> <h1>Galería de fotos</h1> <a href="/images/galeria/tienda01.jpg" target="_blank"> <img src="/images/galeria/miniaturas/tiendaPeque01.jpg" alt="Tienda01" /> </a> <a href="/images/galeria/tienda02.jpg" target="_blank"> <img src="/images/galeria/miniaturas/tiendaPeque02.j...
package com.wwdablu.soumya.simplypdfsample import android.content.Context import android.graphics.Typeface import android.text.Layout import com.wwdablu.soumya.simplypdf.composers.properties.TextProperties class TestTextComposer(context: Context) : CommonActions(context) { init { createSimplyPdfDocument(...
Formsg::Sdk.configure do |config| config.default_public_key = ENV["FORMSG_PUBLIC_KEY"] config.default_form_secret_key = ENV["FORMSG_FORM_SECRET_KEY"] config.default_post_uri = ENV["FORMSG_POST_URI"] end
import EVM from '../classes/evm.class'; import Opcode from '../interfaces/opcode.interface'; import * as BigNumber from '../../node_modules/big-integer'; import stringify from '../utils/stringify'; const parseMapping = (...items: any[]) => { const mappings: any = []; items.forEach((item2: any) => { if ...
use bevy::prelude::*; use crate::prelude::*; #[derive(Default)] pub struct ArenaPlugin; impl Plugin for ArenaPlugin { fn build(&self, app: &mut AppBuilder) { app.add_startup_system(spawn_arena_system.system()); } } pub struct Arena; fn spawn_arena_system( commands: &mut Commands, asset_serve...
package poussecafe.eclipse.plugin.core; import java.nio.file.Path; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Optional; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IFolder; import org.eclipse.core.resources.IResource; import org.eclipse....
require 'net/instagram/api/configuration' module Net module Instagram module Config def configure yield configuration if block_given? end def configuration @configuration ||= Api::Configuration.new end end end end
# Meteor Tracker 참고 링크: [매뉴얼](https://github.com/meteor/docs/blob/version-NEXT/long-form/tracker-manual.md), [공식문서](https://docs.meteor.com/api/tracker.html) 어떤 값을 모니터링하다가 값이 변할 때 특정 행동을 취할 수 있게 하는 라이브러리다. ## 1. 일반적인 해결 수단 - `Poll and diff`: 얼마나 자주 확인할 것인지. 예를 들어 초단위. -> 렉 걸린다(laggy) - `Events`: 값이 변할 때 발생하는 이벤트를 컨...
package day06; import java.util.*; import java.util.stream.Collectors; public class Group { private final List<String> declarations; public Group(List<String> declarations) { this.declarations = declarations; } public int getDeclarationsAnyoneCtr() { return countDeclarationsAnyone()...
# frozen_string_literal: true module Qonfig # @api public # @since 0.1.0 VERSION = '0.6.0' end
/** @jsx jsx */ import { jsx, keyframes } from '@emotion/core' import styled from '@emotion/styled' import { FaSpinner } from 'react-icons/fa' import * as colors from '../styles/colors' const spin = keyframes({ '0%': { transform: 'rotate(0deg)' }, '100%': { transform: 'rotate(360deg)' }, }) export const Centered...
/* * Copyright (c) 2021 Huawei Device 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 ...
pub fn square(s: u32) -> u64 { unimplemented!("grains of rice on square {}", s); } pub fn total() -> u64 { unimplemented!(); }
import React, { SFC } from 'react'; import { useHistory } from 'react-router-dom'; import { Paper, Typography, Button } from '@material-ui/core'; import history from '../History'; export interface Error404Props { }; const Error404: SFC<Error404Props> = (props) => { document.title = '-=- 404 -=-'; return ( <div ...
/* licences with a null start date are invalid and are being updated in NALD. Until then, we are removing them as they cause an issue with charging they should be re-imported in future when they have been corrected */ delete from water.charge_agreements a using water.charge_elements e, water.charge_versions v, water....
package com.datascience.education.tutorialCommon.lecture4 import org.scalatest.{FunSuite, Matchers} class CommonEmptySetSpec[EmptySet](implicit EmptySet: EmptySetTypeclass) extends FunSuite with Matchers { import EmptySet._ test("Sum of 1 through 10 inclusive should be 55; method sum") { sum((1 to 10).toList...
using System; namespace Elders.Cronus.IntegrityValidation { public interface IValidator<T> : IComparable<IValidator<T>> { IValidatorResult Validate(T candidate); uint PriorityLevel { get; } } }
(job-scripts)= # Job Scripts This page documents the basics of how to write job scripts for the HPC clusters. Cluster-specific details are kept in separate sub pages for each cluster: - [Fram job scripts](job-scripts-on-fram) - [Saga job scripts](job-scripts-on-saga) - {ref}`Betzy job scripts <job-scripts-on-betzy>`...
# typed: true module Datadog module Ext # Defines constants for Git tags module Git TAG_BRANCH = 'git.branch'.freeze TAG_REPOSITORY_URL = 'git.repository_url'.freeze TAG_TAG = 'git.tag'.freeze TAG_COMMIT_AUTHOR_DATE = 'git.commit.author.date'.freeze TAG_COMMIT_AUTHOR_EMAIL = 'gi...
package com.therealbluepandabear.pixapencil.fragments.newcolorpalette import com.therealbluepandabear.pixapencil.databinding.FragmentNewColorPaletteBinding import com.therealbluepandabear.pixapencil.listeners.NewColorPaletteFragmentListener var binding_: FragmentNewColorPaletteBinding? = null val binding get(): Frag...
using System; using System.Collections.Generic; using System.Text; namespace Laba3_ReverseInterpolation { public static class Utils { public static void PrintTable(List<(double, double)> points, int degreeOfPolynomial) { for (var i = 0; i < degreeOfPolynomial + 1; ++i) ...
// using System.Threading.Tasks; // using RestSharp; // namespace AnimalClient.Models // { // class ApiHelper // { // public static async Task<string> GetAll() // { // RestClient client = new RestClient("http://localhost:5000/"); // RestRequest requestCat = new RestRequest($"cats", Method.GET...
import datetime import sys sys.path.append("../..") def create(): from optimus import Optimus from optimus.tests.creator import TestCreator, default_configs op = Optimus("pandas") df = op.create.dataframe({ 'NullType': [None, None, None, None, None, None], 'attributes': [[...
# encoding: utf-8 require "logstash/devutils/rspec/spec_helper" require "logstash/filters/jdbc_static" require "sequel" require "sequel/adapters/jdbc" require "stud/temporary" module LogStash module Filters describe JdbcStatic, :integration => true do before(:all) do @thread_abort = Thread.abort_on_except...
var assertTrue = require('utils/assert').assertTrue; let trace = $.trace; let debugBool = trace.isDebugEnabled(); let errorBool = trace.isErrorEnabled(); let fatalBool = trace.isFatalEnabled(); let infoBool = trace.isInfoEnabled(); let warnBool = trace.isWarningEnabled(); if (debugBool) { trace.debug("Debug messa...
'use strict'; const cfg = require('./config'); const del = require('del'); const { cloneGitProject, applyOneTemplate, commitAndPush } = require('./utils'); async function run () { const templateFilepath = 'templates/exherbo/clever-tools-bin.exheres-0'; const gitPath = './git-exherbo'; const gitCleverToolsDir =...
import React from "react"; import ReactAutosizeTextarea from "react-autosize-textarea"; import styled from "styled-components"; import palette from "../../styles/palette"; const StyledTextarea = styled(ReactAutosizeTextarea)` position: relative; width: 100%; min-height: 216px; padding: 11px; border: 1px soli...
#include <psp2/kernel/clib.h> #include <psp2/kernel/iofilemgr.h> #include "common.h" #include "fs.h" SceBool FS_FileExists(const char *path) { SceUID file = 0; if (R_SUCCEEDED(file = sceIoOpen(path, SCE_O_RDONLY, 0777))) { sceIoClose(file); return SCE_TRUE; } return SCE_FALSE; } SceBool FS_DirExists(cons...
CREATE TABLE STUDENT ( SNO VARCHAR(3) NOT NULL, SNAME VARCHAR(4) NOT NULL, SSEX VARCHAR(2) NOT NULL, SBIRTHDAY DATETIME, CLASS VARCHAR(5) ); CREATE TABLE COURSE ( CNO VARCHAR(5) NOT NULL, CNAME VARCHAR(10) NOT NULL, TNO VARCHAR(10) NOT NULL ); CREATE TABLE SCORE ( SNO VARC...
package heiqi.com.greenfoodapp.service; import heiqi.com.greenfoodapp.model.User; import java.util.Map; public interface UserService { public Map<String, Object> login(User user); public Map<String, Object> register(User user); }
;============================================================================== ; Contents of this file are copyright Phillip Stevens ; ; You have permission to use this for NON COMMERCIAL USE ONLY ; If you wish to use it elsewhere, please include an acknowledgement to myself. ; ; https://github.com/feilipu/ ; ; https:...
require "spec_helper" describe Shamu::JsonApi::ErrorBuilder do let( :builder ) { Shamu::JsonApi::ErrorBuilder.new } describe "#exception" do before( :each ) do builder.exception NotImplementedError.new( "Nope, we haven't done that yet" ) end it "applies message to details" do expect( buil...
const index = async (req, res) => { res.send("rules index"); }; const store = async (req, res) => { res.send("rules store"); }; const update = async (req, res) => { res.send("rules update"); }; const rulesController = { index, store, update, }; export default rulesController;
use crate::{AuthProvider, User}; #[test] fn integration_test() { let mut provider: AuthProvider<Vec<User>> = AuthProvider::default(); let uid = provider.create_user("hunter42").unwrap(); assert!(provider.exists(&uid)); assert!(provider.verify(&uid, "hunter42")); assert!(!provider.verify(&uid, "hu...
package env import ( "github.com/jinzhu/gorm" "planet/env" "planet/pkg/gmysql" ) var SelectDB = make(map[string]*gorm.DB,0) func New(name string) *gorm.DB { if db, ok := SelectDB[name]; ok { return db }else{ var ConnConfig gmysql.ConnConfig env.ScanConfig("Mysql."+name,&ConnConfig) oneDB := gmysql.New(...
package Paws::Greengrass::CreateSoftwareUpdateJob; use Moose; has AmznClientToken => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'X-Amzn-Client-Token'); has S3UrlSignerRole => (is => 'ro', isa => 'Str', required => 1); has SoftwareToUpdate => (is => 'ro', isa => 'Str', required => 1)...
#!/bin/sh -x # train_pred2.sh # David Rowe Jan 2019 # Train multi-stage VQ for LPCNet PATH=$PATH:/home/david/codec2-dev/build_linux/misc/ if [ $# -lt 1 ]; then echo "usage: ./train_pred2.sh [-w] VQprefix" echo " $ ./train_pred2.sh pred2_v1" exit 1 fi VQ_NAME=$1 echo $VQ_NAME K=18 STOP=1E-2 echo "...
#include "gl/GLUtil.h" // STL #include <iostream> namespace vidrevolt { namespace gl { bool GLLogCall(const char* function, const char* file, int line) { while (GLenum err = glGetError()) { std::cerr << "[OpenGL Error] (" << err << "): " << function << " " <...
using HotChocolate.Language; using HotChocolate.Types; #nullable enable namespace HotChocolate.Resolvers; public interface IOperation { /// <summary> /// Gets the parsed query document that contains the /// operation-<see cref="Definition" />. /// </summary> /// <value></value> DocumentNode D...
inherited frmWordlistEditor: TfrmWordlistEditor Left = 0 Top = 0 Caption = 'frmWordlistEditor' ClientHeight = 299 ClientWidth = 635 Font.Name = 'Tahoma' ExplicitWidth = 635 ExplicitHeight = 299 PixelsPerInch = 96 TextHeight = 13 end
import 'package:flutter_dapp/data/enums.dart'; import 'package:mobx/mobx.dart'; import 'package:web3dart/web3dart.dart'; part 'actor_store.g.dart'; class ActorStore = _ActorStoreBase with _$ActorStore; abstract class _ActorStoreBase with Store { @observable EthereumAddress address; @observable EthPrivateKey...
<?php namespace hamburgscleanest\DataTables\Models; use hamburgscleanest\DataTables\Facades\SessionHelper; use Illuminate\Database\Eloquent\Builder; /** * Class DataComponent * @package hamburgscleanest\DataTables\Models */ abstract class DataComponent { /** @var bool */ protected $_rememberState = false...
module IndexConfigHelper def configure_index(&block) block.call(index_config) index_config end def index_config @config ||= IndexConfiguration.new end def write(doc) index_config.write(doc) end end
use strict; use warnings; use Test::More import => ['!pass']; use Dancer ':syntax'; plan tests => 1; # This isn't really a test, but simply to produce some diagnosis output showing # the versions of various modules in one place. Some modules, e.g. Test::TCP, # aren't a dependency, we simply skip tests if it's not av...
#! /bin/sh set -e if [ "${SCHEDULE}" = "**None**" ]; then echo "You must set a backup schedule." exit 1 fi echo "Performing an immediate backup..." sh backup.sh # perform an immediate backup echo "${SCHEDULE} backup.sh >> /var/log/script.log" > crontab.txt echo "Adding a scheduled job" /usr/bin/crontab crontab.t...
// Based on https://github.com/tattwei46/flutter_login_demo/blob/master/lib/services/authentication.dart import 'dart:async'; import 'dart:developer'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:firebase_auth/firebase_auth.dart'; abstract class BaseAuth { Future<String> signIn(String emai...
#[macro_use] extern crate json_in_type_derive; #[macro_use] extern crate serde_derive; use criterion::{AxisScale, Criterion, Fun, ParameterizedBenchmark, PlotConfiguration, Throughput}; use json_in_type::*; fn simple_json_in_type(n: f64) -> Vec<u8> { let obj = json_object! { void: (), list: json_l...
## HTML Text Formatting ### Apa Itu HTML Text Formatting ? HTML Text Formatting adalah elemen yang mendefinisikan teks dengan arti khusus. Ada 10 elemen text formatting yang dirancang untuk menampilkan jenis teks khusus. - `<b>` - Teks Bold - `<strong>` - Teks Penting - `<i>` - Teks miring / Italic - `<em>` - Teks ya...
import Base.copy import Base.== import Random.randperm include("MOKP.jl") include("tools.jl") function copy(x::solution) return solution(copy(x.val_objectif), copy(x.sol), copy(x.cout)) end function ==(x::solution, y::solution) return x.sol == y.sol end # C = [1 2 0 1; 1 1 1 2] # A = [1 5 3 ...
--- id: 13B08892-8DDC-CDDE-63A1-9994E1569249 title: "Configure Segments (UISegmentedControl)" brief: "This recipe shows how to create a UISegmentedControl." sdk: - title: "UISegmentedControl Class Reference" url: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UISegmentedControl_Class/ --- ...
using System; using System.Collections.Generic; using System.Text; namespace HARTIPC { /*interface IHARTIPFrame { byte Version { get; set; } MessageType MessageType { get; set; } MessageID MessageID { get; set; } byte StatusCode { get; set; } ushort SequenceNumber { get...
require 'repositories/base' module Repositories module Actors class SSHUpdater def initialize(options) @options = options end def update(source_repository, target_repository) success = true source_ssh = source_repository.ssh_url target_ssh = target_repository.s...
package currencies import ( "context" protos "github.com/ancalabrese/MicroGo/Currency/protos/currency" "github.com/hashicorp/go-hclog" ) //TODO: Create currency obj and cache currencies. //TODO: Have a bi direction stram to be notified if more currencies are added to refresh cache type CurrencyDB struct { log ...
package serg.chuprin.finances.feature.onboarding.domain import java.math.BigDecimal /** * Created by Sergey Chuprin on 13.04.2020. * * Class that holds money account parameters retrieved from money accounts creation onboarding step. */ data class OnboardingMoneyAccountCreationParams( val accountName: String, ...
using Microsoft.EntityFrameworkCore.Migrations; namespace CleanArchMvc.Infra.Data.Migrations { public partial class SeedProducts : Migration { protected override void Up(MigrationBuilder mb) { mb.Sql("INSERT INTO Products(Name,Description,Price,Stock,Image,CategoryId) " + ...
Module.new do def unicode_string 'こんにちは' end def ascii_string 'ohayo' end def byte_string "\270\236\010\210\245".force_encoding("ASCII-8BIT") end Bacon::Context.send :include, self end
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
#![allow(clippy::wrong_self_convention, non_snake_case, clippy::type_complexity)] use super::manager::Assets; use super::storage::AssetStorage; use crate::app::App; use crate::graphics::Graphics; use crate::plugins::Plugins; use std::any::TypeId; use std::rc::Rc; pub(crate) type LoaderParams<'a, S> = (&'a mut App, &...
import java.io.DataOutputStream; import java.io.IOException; import java.net.Socket; import java.text.SimpleDateFormat; import java.util.Date; import java.util.logging.Level; import java.util.logging.Logger; /** * * @author Jaime Andres Rojas Ocampo * */ public class ServidorHilo extends Thread { private Socke...
#!/bin/bash set -e if [ $EUID != 0 ]; then echo "This script requires sudo, so it might not work." fi if [ -z "$PCDUINO_SD" ]; then echo "Please set PCDUINO_SD and try again." exit 1 fi if [ ! -b "$PCDUINO_SD" ]; then echo "$PCDUINO_SD is not a block device or doesn't exist." exit 1 fi images_path=$BUILD...
/* Copyright JS Foundation and other contributors, http://js.foundation * * 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 * * ...
N_unmapped 3923296 3923296 3923296 N_multimapping 4744338 4744338 4744338 N_noFeature 7139988 33270651 33156258 N_ambiguous 1645981 65852 67182 LOC115497387 3 2 1 LOC100221041 70 417 357 DCBLD2 2251 1432 1523 CMSS1 1309 691 640 FILIP1L 5722 2829 2917 TBC1D23 2888 1443 1445 NIT2 4205 2127 2081 TOMM70 4254 2172 2088 LNP1...
--- permalink: /DerekNonGeneric redirect_to: https://github.com/DerekNonGeneric short_name: DerekNonGeneric name: Derek Lewis ---
import React from "react" import styled from "styled-components" import posed from "react-pose" import Typing from "react-typing-animation" const StyledHero = styled.div` display: flex; flex-direction: column; align-items: flex-start; margin: 30vh 15vw; font-family: "Montserrat", sans-serif; @media (max-w...
/* * Copyright (c) 2011 Matteo Trotta * * 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...
# _Word Puzzle_ #### _Word Puzzle, 4-12-2019_ #### By _**BM**_ ## Description _Takes user input, removes the vowels, and displays a word puzzle with the result._ ## Setup/Installation Requirements * _Load page_ * _Input sentence_ * _Submit_ * _Get someone else to try to solve it_ ## Technologies Used _Javascr...
################################################################################ module Strategy @enum Choice begin Military Corruption end function Base.string(s::Choice) s == Military && return "military" s == Corruption && return "corruption" return nothing end function parse(s::AbstractString) for strat i...
#include "catch.h" #include <flash_storage/encoding.h> using namespace flash_storage; TEST_CASE("required bits") { REQUIRE(required_bits(0) == 0); REQUIRE(required_bits(1) == 1); REQUIRE(required_bits(2) == 2); REQUIRE(required_bits(7) == 3); REQUIRE(required_bits(8) == 4); REQUIRE(required_bits(15) == 4); REQ...
/* * MarchingCubes.cpp * MedialAxisTransform * * Initially created by Erik Smistad. * * Modified by Beau Johnston on 07/09/11. * Copyright (C) 2011 by Beau Johnston. * * Please email me if you have any comments, suggestions or advice: * beau@inbeta.org * * Permission is ...
module Util (binToInt, binToDouble) where import Genes binToInt::Chromosome->Int binToInt chromosome = binToInt' 0 base chromosome where base = 2^(length chromosome-1) binToInt'::Int->Int->Chromosome->Int binToInt' acc 0 [x] = acc+x binToInt' acc base (x:xs) = binToInt' (acc+x*base) newBase xs where newBase =...
#!/bin/bash # SPDX-FileCopyrightText: 2021 Joshua Mulliken <joshua@mulliken.net> # # SPDX-License-Identifier: Apache-2.0 mkdir -p .test git clone git@github.com:home-assistant/core.git .test/core mkdir -p .test/core/config/custom_components cp -R custom_components/wyzeapi .test/core/config/custom_components/wyzeapi c...
import { Utils } from "../Core/index.js"; export class Game_Message { _texts; _choices; _speakerName; _faceName; _faceIndex; _background; _positionType; _choiceDefaultType; _choiceCancelType; _choiceBackground; _choicePositionType; _numInputVariableId; _numInputMaxDig...
{-# LANGUAGE OverloadedStrings #-} module Main where import Evaluate import Control.Lens import Control.Monad (void) import Control.Monad.IO.Class import Data.Aeson (Value) import Data.Aeson.Lens import Data.Maybe (fromMaybe, listToMaybe) import Data.Monoid ((<>)) import qualified Data.Text as T import qualified Data...
BEGIN; DROP TABLE IF EXISTS users; CREATE TABLE users ( uid INTEGER PRIMARY KEY AUTOINCREMENT, user_name VARCHAR(40) NOT NULL UNIQUE, password CHAR(60) NOT NULL, name TEXT, description TEXT ); CREATE UNIQUE INDEX users_user_name_idx ON users (user_name); COMMIT;
package logger import "io" type Return struct{ err error } func (rtn Return) Err() error { return rtn.err } func (rtn Return) HasErr() bool { return rtn.err != nil } type ErrSub struct{ error } type onErrLogger struct { b *baseLogger err error } func (e *onErrLogger) Flags() int { return e.b.flags } func ...
class Solution { public: bool checkIfPangram(string sentence) { return unordered_set(begin(sentence), end(sentence)).size() == 26; } };
const pkgDir = require('pkg-dir') const { logInstallLocalPluginsDeps } = require('../log/main') const { installDependencies } = require('./main') // Install dependencies of local plugins. const installLocalPluginsDependencies = async function({ pluginsOptions, buildDir, mode }) { const localPluginsOptions = getLoc...
<?php class WispSocketClientData { public $socket; public $ipAddress = "N/A"; public $userName = ""; public $connected = false; /* function __get(){ return $this->var1; } function __set($key,$value){ $this->$key = $value; } */ } ?>
import multer from 'multer'; import Queue from 'bull'; import { compose } from 'compose-middleware'; const multerUpload = multer({ dest: '/tmp' }); const REDIS_URL = process.env.REDIS_URL || 'redis://127.0.0.1:6379'; // Create / Connect to a named work queue const workQueue = new Queue('processing-jobs', REDIS_URL); ...
hxbonjour ========= Wrapper for Bonjour library for Haxe Still in early development!
#!/bin/bash gcc -O3 dft.c -static -lgsl -lgslcblas -lm -o dft.out gcc -O3 data_test.c -static -lgsl -lgslcblas -lm ./a.out for ((i = 1; i <= 3; i++)) do ./dft.out ${i}-cos.dat done gnuplot dft.plt rm *.dat rm *.out rm ../dat/dft/*.dat clear echo "made it!"
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); require APPPATH . '/libraries/aes.php'; class aes_m extends My_Model{ private $aes; function __construct() { parent::__construct(); $this->aes = new AES('aa','WeCodeWithLove15', 128); } function encrypt($text){ $this->aes->setData($...
package com.auto.user.dao.impl; import com.auto.commons.core.dao.impl.BaseDao; import com.auto.commons.core.sql.dto.DataRecord; import com.auto.commons.core.util.JavaBeanMap; import com.auto.user.dao.UserInfoDao; import com.auto.user.pojo.UserInfo; import org.apache.ibatis.session.SqlSessionFactory; import org.springf...
package grpcinfo import ( dpb "github.com/gogo/protobuf/protoc-gen-gogo/descriptor" "github.com/prasek/protoer/proto" ) var ( _ Extention = &serviceExtention{} _ Extention = &methodExtention{} ) type Extention interface { Get(ext interface{}) (interface{}, error) Has(ext interface{}, ifnotset bool) bool } typ...
#!/usr/local/bin/env bash # Positoinal arguments -- see action.yml BACKEND=$1 PLANDIR=$2 COMPFILE=$3 # exit codes determine the result of the CheckRun # https://docs.github.com/en/actions/creating-actions/setting-exit-codes-for-actions SUCCESS=0 FAILURE=1 echo hello, action echo $BACKEND $PLANDIR $COMPFILE exit $SU...
using System.IO.Pipelines.Networking.Sockets; using System.Net; using System.Threading; using System.Threading.Tasks; using JsonRpcLib.Server; namespace PerfTest { public class MyServer : JsonRpcServer { readonly SocketListener _listener; public ManualResetEventSlim ClientConnected { get; } = new...
import * as React from 'react'; export interface AdvertisementProps { [key: string]: any; /** An element type to render as (string or function). */ as?: any; /** Center the advertisement. */ centered?: boolean; /** Primary content. */ children?: React.ReactNode; /** Additional classes. */ classNa...
## CHAPITRE IV: L’AFFAIRE DES DIAMANTS Appels de sirènes, tintements de cloches, grincements de poulies, halètement des grues à vapeur, roulement sourd des trains du Métropolitain aérien, vibrations aiguës du réseau télégraphique tendu sur le ciel ainsi qu’une toile d’araignée, telle est l’harmonie bruyante de New-Yor...
import axios from 'axios'; export default class Recipe { constructor(id) { this.id = id; } async getResults() { try { const result = await axios( `https://forkify-api.herokuapp.com/api/get?rId=${this.id}` ); this.image_url = result.data.recipe.image_url; this.ingredients...
using System.Collections.Generic; using UnityEngine; public class PartMeshInfo { private readonly List<Vector3> vertices = new List<Vector3>(); private readonly List<int> triangles = new List<int>(); private readonly List<Vector2> baseUuv = new List<Vector2>(); private readonly List<Vector2> effectUuv ...
;; https://raw.githubusercontent.com/homma/cl-misc/master/lem-misc/init.lisp ;; (lem-vi-mode:vi-mode) ;; lower case for messages in pprint (setq *print-case* :downcase) ;; enter lisp mode (define-key *global-keymap* "C-x l" 'lem-lisp-mode:lisp-mode) ;; color theme (lem:define-color-theme "soft-light" ("emacs-light...
/*---------------------------------------------------------------- Copyright (C) 2021 QingRain 文件名:ISmsSender.cs 文件功能描述:短信发送者接口 创建标识:QingRain - 20211113 ----------------------------------------------------------------*/ using System.Threading.Tasks; namespace QingStack.IdentityServer.API.Services ...
import React, { useEffect, useState } from 'react' import { UserAvatar } from '@xrengine/common/src/interfaces/UserAvatar' import { AvatarEffectComponent } from '@xrengine/engine/src/avatar/components/AvatarEffectComponent' import { hasComponent } from '@xrengine/engine/src/ecs/functions/ComponentFunctions' import { u...
function _generate_precompile_execution_content(config::Config) pkgs = config.pkgs no_test = config.no_test exclude_packages_from_sysimage = config.exclude_packages_from_sysimage precompile_execution_env_vars = config.precompile_execution_env_vars pkg_names_to_import = Vector{String}(undef, 0) p...
import tornado.web from tornado.template import Loader class MainHandler(tornado.web.RequestHandler): def get(self): loader = Loader("./templates") #print(loader.load("base.html")) self.write(loader.load("base.html").generate()) def post(self): self.set_header("Content-Type", ...
# frozen_string_literal: true require 'spec_helper' module ElasticAPM RSpec.describe Filters do subject { described_class.new(Config.new) } it 'initializes with config' do expect(subject).to be_a Filters::Container end describe '#add' do it 'can add more filters' do expect do ...