text
stringlengths
27
775k
<?php namespace App\Http\Controllers\Api\Auth; use App\Http\Controllers\Api\BaseController; use App\Notifications\StaffRegisterSuccess; use App\Repositories\User\UserRepository; use Illuminate\Auth\Events\Verified; use Illuminate\Foundation\Auth\VerifiesEmails; use App\Http\Resources\User as UserResource; use Illumin...
#!/bin/bash installer_target_path="dist" if [ -d $installer_target_path ]; then rm -rf $installer_target_path fi mkdir -p $installer_target_path cp -r "docker-compose/oss" $installer_target_path cp -r "docker-compose/proxy" $installer_target_path
--- layout: archive title: "Curriculum Vitae" permalink: /cv/ author_profile: true redirect_from: - /resume --- {% include base_path %} Education ====== * 2009-2013, B.S. in Geology, Tongji University * 2013-2019, Ph.D in Geophysics, Tongji University, Advisors: Jian Lin Professional Appointments ====== * 2019-Now,...
<h1>Realizado... {{ $impuestos->desde }} </h1> <a href="{{ route('IngresoImpuestos') }}">Volver</a>
# frozen_string_literal: true module JsonapiErrorsHandler module Errors # Handles serialization of invalid HTTP error (422 status code) # class Invalid < ::JsonapiErrorsHandler::Errors::StandardError def initialize(errors: {}) @errors = errors @status = 422 @title = 'Invalid...
package com.bayapps.android.robophish import org.kodein.di.Kodein import org.kodein.di.generic.bind import org.kodein.di.generic.instance import org.kodein.di.generic.singleton val releaseModule = Kodein.Module("Release Module") { bind<AppInitializer>() with singleton { ReleaseAppInitializer() } } val buildSpeci...
#!/bin/sh VERSION="dev_version" if [ "$1" != "" ]; then VERSION=$(echo "$1" | sed -e "s/^v//") perl -pi -e "s/VERSION_NUMBER_HERE/$1/" src/hey/version.cr fi echo "building hey..." if [ "$1" != "" ]; then crystal build --release src/hey.cr else crystal build src/hey.cr fi if [ "$1" != "" ]; then perl -pi -e "s...
// Copyright 2021 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. #include "ash/quick_pair/ui/fast_pair/fast_pair_presenter.h" #include <string> #include "ash/public/cpp/system_tray_client.h" #include "ash/quick_pair/c...
module Stock module Data class QuotedPrice include Comparable attr_reader :date, :bid, :ask def initialize(args) validate(args) @date = validate_datetime(args[:date]) @bid = validate_number(args[:bid]) @ask = validate_number(a...
# sexy-zsh-prompt ### To use with Zsh: ```bash setopt PROMPT_SUBST source ~/.zsh_prompt ``` Zsh prompt with colors, git statuses, and git branches. ## License Copyright (c) 2013 Todd Wolfson Licensed under the MIT license.
using Core.ViewModels.Settings; using Foundation; using MvvmCross.Platforms.Ios.Views; using System; using UIKit; namespace iOS.Views.Settings { public partial class SettingsTextView : MvxViewController<SettingsTextViewModel> { [Export("initWithCoder:")] public SettingsTextView(NSCoder coder)...
package mime import ( "mime" "reflect" qspec "github.com/qiniu/goplus/exec.spec" "github.com/qiniu/goplus/gop" ) // func mime.AddExtensionType(ext string, typ string) error func execAddExtensionType(_ int, p *gop.Context) { args := p.GetArgs(2) ret := mime.AddExtensionType(args[0].(string), args[1].(string)) ...
<?php // application/models/Pics_model.php class Pics_model extends CI_Model { public function __construct(){} public function get_pics($tag = NULL) { if ($tag) { $api_key = 'b722d5f18421ff913c8875622690f2a9'; $tags = $tag; $perPage = 25; ...
const [mongoose, bcrypt, dotenv] = [require("mongoose"), require("bcryptjs"), require('dotenv').config()]; const {hash, compare} = require('bcryptjs') const {sign, verify} = require('jsonwebtoken') // user schema const schema = mongoose.Schema( { username: { type: String, required: [true, `username c...
/* * 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...
export NpyHeader, NpyDescr, readnpy, readnpyheader, readnpydata, writenpy using ..PyObjects, ..PyExprIO, ..PickleIO const NPY_MAGIC = b"\x93NUMPY" const BIGENDIAN = ENDIAN_BOM == 0x01020304 """ NpyDescr The descr portion of a .npy header. """ struct NpyDescr eltype :: DataType bigendian :: Bool end ""...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AIDecisionMaker : DecisionMaker { public AIBehavior[] behaviors; public override void Start() { base.Start(); } void Update() { if (!ship.CanTakeAction()) { return;...
module Magnifique ( Zipper , moveUp, moveDown, moveLeft, moveRight , _unzip, _zip, cozip , expr , Expr(..) , CommaSeparated(..) , expressionParse , exprToText ) where import Text.Pretty.Simple.Internal import Magnifique.Internal
package org.hexworks.kotlincode.stdlibexplore.wellknown fun main(args: Array<String>) { class UserBuilder() { private var name: String = "unknown" private var age: Int = 0 fun name(name: String) = also { this.name = name } fun age(age: Int) = also { ...
<?php namespace Bitty\Security\Authorization; use Bitty\Security\Exception\AuthorizationException; use Bitty\Security\User\UserInterface; interface AuthorizerInterface { /** * Authorizes a user. * * @param UserInterface $user * @param string[] $roles * * @return bool * * @...
using GraphQL.Types; namespace Orb { class IndividualInputType : InputObjectGraphType<IndividualEntity> { } }
#!/bin/bash set -e -o pipefail until nc -z -v -w 10 db 5432; do echo "Waiting for database connection..." sleep 3 done echo "Applying changelog" liquibase --changeLogFile=/opt/test_liquibase_postgres/changelog.xml updateTestingRollback
from train_model import extract_data, train_model def test_extract_data(): extract_data() def test_train_model(): train_model()
using System.Collections.Generic; namespace TwitterQuiz.ViewModels.Quiz { public class QuizIndexViewModel { public List<QuizListViewModel> Quizzes { get; set; } public QuizIndexViewModel() { Quizzes = new List<QuizListViewModel>(); } } }
! Objetivo: Calcular a probabilidade de um caminhante, apos N passos, ! parar em determinada posicao. PROGRAM caminhadas_aleatorias USE nrtype USE ran_state, ONLY: ran_seed USE nr, ONLY: ran0 IMPLICIT none INTEGER :: iseed = 1234 INTEGER, PARAMETER :: passos_total = 20, total_c...
module TwimlResponseCreator module_function def create(message, media_url = nil) body = Twilio::TwiML::Body.new(message) twiml_message = Twilio::TwiML::Message.new twiml_message.media media_url if media_url twiml_message.append(body) response = Twilio::TwiML::MessagingResponse.new response....
'use strict'; /** * The Options is responsible for behavior of the methods * @typedef {Object} Verbose */ /** * The Options is responsible for behavior of the methods * @typedef {Object} Options * @property {Number} [retry=0] - Maximum number of retries * @property {Boolean} [ignoreExceptions=false] - Ignore e...
my-website updating example branch <<<<<<< HEAD changes in local for tags =======
Pod::Spec.new do |s| s.name = 'GLPermission' s.version = '1.0.0' s.summary = '系统权限管理工具' s.description = '系统权限管理工具,采用Swift编写' s.homepage = 'https://github.com/liujunliuhong/Permission' s.license = { :type => 'MIT', :file => 'LICENSE' } s.author ...
package com.example.quickactivity import android.app.Activity import android.os.Bundle import kotlinx.android.synthetic.main.activity_main.* import org.quick.startactivity.StartActivity class TestActivity : Activity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceSta...
module Md2key module Nodes class Slide < Struct.new(:title, :lines, :image, :code, :table, :note, :level) def initialize(*) super self.lines ||= [] end end end end
// $Revision: 1.10 $ // $Date: 2009-01-16 19:40:36 $ // $Source: /usr/local/cvs/OpenSees/SRC/material/nD/soil/PressureDependMultiYield02.h,v $ // Written: ZHY // Created: May 2004 // Description: This file contains the class prototype for PressureDependMultiYield02. // // What: "@(#) PressureDependMultiYield02.h, re...
require 'nkf' class PostsController < ApplicationController before_action :set_post, only: [:show, :edit, :update, :destroy, :slideshow, :watch] include RV::Mailer # GET /posts/1 # GET /posts/1.json def show set_meta_tags title: @post.title current_user.visit_post!(@post) @post.tags.each do |...
import { configureFetch } from '@meeco/sdk'; import { Command, flags as _flags } from '@oclif/command'; import { IConfig } from '@oclif/config'; import { CLIError } from '@oclif/errors'; import cli from 'cli-ux'; import nodeFetch from 'node-fetch'; import { stringify } from 'yaml'; import { AuthConfig } from '../config...
/** * xrdp: A Remote Desktop Protocol server. * * Copyright (C) Jay Sorg 2004-2012 * * 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 ...
require 'nori' class Jcs::InboundTransmissionFactory attr_reader :request_body_string def self.from_xml(request_body_string) new(request_body_string).from_xml end def initialize(request_body_string) begin Nokogiri::XML(request_body_string) do |config| config.options = Nokogiri::XML::Par...
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "1.6.0" `maven-publish` } group = "us.phoenixnetwork" version = "1.0.0-SNAPSHOT" repositories { mavenCentral() maven(url = "https://repo.spongepowered.org/maven") maven(url = "https://jitpack.io") } dependen...
using System; namespace FeatureToggle { public interface IDateTimeToggleValueProvider { DateTime EvaluateDateTimeToggleValue(IFeatureToggle toggle); } }
require 'spec_helper' describe 'role::dataprep_dataset' do it_behaves_like 'profile::base' it_behaves_like 'role::defined', 'dataprep_dataset' describe service('dataprep-dataset') do it { should be_running } end describe 'should have java process with correct arguments' do subject { command('/usr/b...
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} module Main where import Lib import Options.Applicative hiding ((<>)) import qualified Options.Applicative as OA ((<>)) data QuotaSyncArgs = QuotaSyncArgs { mediaDir :: String , apiKey :: String , folderId :: String , port :: Integer , ...
#!/bin/bash set -e deploySpire() { kubectl apply -f certs/spire_setup.yaml } deleteSpire() { kubectl delete -f certs/spire_setup.yaml } echo "Installing SPIRE Server and Agent" if [ "$1" == "deploy" ]; then deploySpire elif [ "$1" == "delete" ]; then deleteSpire fi
// // Copyright 2018 Vinicius Jorge Vendramini // // 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 ...
/* * Copyright 2014-2020 The Ideal Authors. All rights reserved. * * Use of this source code is governed by a BSD-style * license that can be found in the LICENSE file or at * https://developers.google.com/open-source/licenses/bsd */ package ideal.development.values; import ideal.library.elements.*; import idea...
package com.brilliantzhao.andframework import android.content.Context /** * description: * Date: 2018/2/2 10:28 * User: BrilliantZhao */ fun Context.getMainComponent() = SampleApplicationLike.instance.apiComponent
using System; using Fasterflect; namespace Xpand.Extensions.AppDomainExtensions { public static partial class AppDomainExtensions { public static object CreateTypeInstance(this AppDomain domain, string fullName, params object[] parameters) => domain.GetAssemblyType(fullName).CreateInstance(par...
package com.android.code.lib.hilt import android.app.Application import com.android.code.lib.network.MarvelService import com.android.code.lib.network.provideAPIClientService import com.android.code.repository.MarvelRepositoryImpl import com.android.code.repository.MarvelRxRepositoryImpl import com.android.code.ui.mai...
require 'rest-client' require 'builder' RestClient.log = Rails.logger module Endicia module Request class Base attr_accessor :debug, :response_hash TEST_URL = 'https://elstestserver.endicia.com/LabelService/EwsLabelService.asmx' PRODUCTION_URL = 'https://labelserver.endicia.com/LabelSe...
# BLOGSMARTER ## Brief Description #### Python app that enables one to blog an provides quotes in the process, March 2022 ## Author #### *Kelvin Karanja* ## Screenshot <img src='https://github.com/KaranjaK/BloggerSmarter/blob/master/app/static/photos/Screenshot.png'> ## User Stories The user would like to.... : * A...
""" Return the rotation angle between two vectors of any number of dimensions. Note that if at least one of the vector is the zero vector, then it returns 0. by convention. Arguments ---------- :Type{RotationAngle} must be type ``RotationAngle`` vector_1:AbstractArray vector 1 vector_2:AbstractArray ...
TERMUX_PKG_HOMEPAGE=https://github.com/servo/mozjs TERMUX_PKG_DESCRIPTION="Rust bindings for SpiderMonkey for use with Servo." TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_VERSION=78 TERMUX_PKG_SRCURL=https://github.com/ptomato/mozjs.git TERMUX_PKG_GIT_BRANCH=mozjs$TERMUX_PKG_VERSION TERMUX_PKG_BUILD_IN_SRC=true termux_step...
// Copyright (C) 2021 European Spallation Source, see LICENSE file //===----------------------------------------------------------------------===// /// /// \file /// /// \brief Freia detector base plugin interface definition /// //===----------------------------------------------------------------------===// #pragma o...
package com.github.htdangkhoa.nexterp.ui.settings import androidx.lifecycle.ViewModel import com.github.htdangkhoa.nexterp.data.remote.config.ConfigResponse import com.github.htdangkhoa.nexterp.data.remote.location.LocationResponse import com.github.htdangkhoa.nexterp.data.remote.user.GetMeResponse import com.github.h...
# frozen_string_literal: true require 'spec_helper' RSpec.describe API::Entities::PlanLimit do let(:plan_limits) { create(:plan_limits) } subject { described_class.new(plan_limits).as_json } it 'exposes correct attributes' do expect(subject).to include( :conan_max_file_size, :generic_packages_...
n,x,y=map(int,input().split()) li=[0]*(n-1) for i in range(1,n+1): for j in range(i+1,n+1): d=min(j-i, abs(x-i)+abs(y-j)+1) li[d-1]+=1 for l in li: print(l)
/*! * b70.js - bip70 for bcoin * Copyright (c) 2016-2017, Christopher Jeffrey (MIT License). * https://github.com/bcoin-org/bcoin */ 'use strict'; exports.certs = require('./certs'); exports.PaymentACK = require('./paymentack'); exports.PaymentDetails = require('./paymentdetails'); exports.Payment = require('./pa...
/** # Keystroke Leverages the modern browser's `event.code` to identify keystrokes, and uses a normalized representation of modifier keys (in alphabetical) order. * **alt** represents the alt or option keys * **ctrl** represents the control key * **meta** represents the windows, command, or meta keys * **shift** repr...
-- | -- Module : DobutokO.Sound.Effects.Classes.FourthParam -- Copyright : (c) OleksandrZhabenko 2020 -- License : MIT -- Stability : Experimental -- Maintainer : olexandr543@yahoo.com -- -- Helps to create experimental music. -- Can be used for applying the SoX effects. -- {-# OPTIONS_GHC -threa...
<?php require_once 'conexion.php'; $id = $_POST['id_alumno']; $idCategoria = $_POST['id_categoria']; $idPeso = $_POST['id_peso']; $idEvento = $_POST['id_evento']; $idAcademia = $_POST['id_academia']; $estado = $_POST['estado']; $sentencia_sql = "CALL pa_actualizar_alumno_en_evento" . "...
let websock = new WebSocket("ws://" + location.host + window.location.pathname); let uploadId = ''; websock.onmessage = (e) => { let data = JSON.parse(e.data); console.log(e.data); if (data.uploadId === uploadId) { if (data.action === "import") { $('#panelheader').text('Importing ' + ...
//! CKB verification contextual //! //! This crate implements CKB contextual verification by newtypes abstraction struct mod contextual_block_verifier; #[cfg(test)] mod tests; mod uncles_verifier; pub use crate::contextual_block_verifier::{ContextualBlockVerifier, VerifyContext}; const LOG_TARGET: &str = "ckb_chain";
/** * © 2021. CoVerified GmbH **/ package info.coverified.extractor.analyzer import net.ruippeixotog.scalascraper.browser.JsoupBrowser.JsoupDocument import org.jsoup.Jsoup import org.jsoup.nodes.Document trait BrowserHelper { val coverifiedUrl = "https://www.coverified.info" val coverifiedUrlId = "1" val va...
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.Linq; using ProceduralWorlds.Core; namespace ProceduralWorlds { public partial class BaseNode { Anchor GetAnchorFromField(string fieldName, int index = 0) { if (anchorFieldDictionary.ContainsKey(fieldName)) { ...
## PART 4 println("\nPart 4"); bvals = [b-3:b+3]; println("\n\tEstimating σ for f1..f3 with bin around b=$b"); σf1jack = Float64[]; σf2jack = Float64[]; σf3jack = Float64[]; for bb in bvals jestb = jacknife(v, N2, bb); push!(σf1jack, jacknifeσ(f1, jestb)); push!(σf2jack, jacknifeσ(f2, jestb)); push!...
{-# LANGUAGE FlexibleInstances #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module AlgebraicNumberTests where import AlgebraicNumber import Polynomial (fromList) import Interval (interval) import Data.Ratio ((%)) import PolynomialTests() import Test.Tasty import Test.Tasty.QuickCheck genFieldExtension :: Gen (Root Rat...
# frozen_string_literal: true RSpec.shared_examples "basic logger" do subject { Moleculer::Support::LogProxy.new(logger) } let(:prefix) { "" } let(:log_line) { "#{prefix} test #{{ foo: 'bar' }}".strip } it "passes fatal to the logger" do subject.fatal("test", foo: "bar") expect(logger).to have_receive...
<?php namespace app\modules\simplegridview\models; use Yii; use yii\behaviors\TimestampBehavior; use yii\db\ActiveRecord; use yii\helpers\ArrayHelper; use yii\helpers\Url; /** * This is the model class for table "category". * * @property integer $id * @property integer $parent_id * @property stri...
// link https://github.com/falmar/ego // author David Lavieri (falmar) <daviddlavier@gmail.com> // copyright 2016 David Lavieri // license http://opensource.org/licenses/MIT The MIT License (MIT) package main import ( "log" "net/http" "github.com/julienschmidt/httprouter" ) func main() { router :=...
/***************************************************************************** * * ReoGrid - .NET Spreadsheet Control * * https://reogrid.net/ * * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES O...
from collections import deque def solve_deque(players, last_marble): marbles = deque([0]) scores = [0]*(1+players) for marble in range(1, last_marble+1): if marble % 23 == 0: p = marble%players scores[p] += marble marbles.rotate(7) scores[p] += marble...
(cl:in-package #:sicl-boot-phase-5) (defun load-fasl-e6 (relative-pathname global-environment) (format *trace-output* "Loading file ~s~%" relative-pathname) (let* ((client (make-instance 'sicl-boot:client)) (prefixed (concatenate 'string "ASTs/" relative-pathname)) (pathname (asdf:system-relative...
# Wiktionary *zlw-opl http://wiktionary.org/ CC BY-SA 11501381-n *zlw-opl:lemma deżdż
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Infiltrate { public class EnemyHoming : Enemy { public readonly EnemyHomingState homingState = new EnemyHomingState(); protected override void Start() { base.Start(); Star...
# SIMPLE-AUTH SIMPLE user authorization service ## Support 3rd party - Google+ - Facebook - Twitter
# Use msbuild restore before dotnet restore is used msbuild "$APPCENTER_SOURCE_DIRECTORY/src/Xamarin/XamForms/UWP/XamForms.UWP.csproj" /t:restore
/* ** Copyright 2020 Bloomberg Finance L.P. ** ** 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...
Cache ============= This is a WebView cache plugin for Phonegap 3.3.0 / Cordova 3.3.1 supporting Android (>=2.3.3) and iOS(>=6.0). It allows to clear the cordova webview cache. There is one method: * clear(successCallback, errorCallback) Installation ====== You may use phonegap CLI as follows: <pre> ➜ phonegap loc...
import { Injectable } from '@angular/core'; import { Http} from "@angular/http"; @Injectable() export class AuthService { data: any = {}; user: any = {}; constructor(private http: Http) {} authorizeUser(authInfo) { return this.http.post('http://localhost:8080/api/login', authInfo).map( data => {...
<div> @php $icon = App\Models\Settings::where('name', 'site_logo')->first()->val @endphp <img src="{{ asset('storage/images/245/'.$icon) }}" alt="logo" width="100" class="shadow-light rounded-circle"> </div>
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $this->call(UsersTableSeeder::class); $this->call(TblCamasTableSeeder::class); $this->call(TipoHabitacionTableS...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { Commit, Error as GitError, Repository, Reset, TreeEntry, ...
/** Use this when constructing a [`MonoTypeLayout`] when manually implementing StableAbi. This stores indices and ranges for the type and/or const parameter taken from the [`SharedVars`] stored in the same [`TypeLayout`] where this is stored. # Syntax `tl_genparams!( (<lifetime>),* ; <convertible_to_startlen>; <co...
-- #hide -------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.GL.RenderMode -- Copyright : (c) Sven Panne 2003 -- License : BSD-style (see the file libraries/OpenGL/LICENSE) -- -- Maintainer : sven_panne@yahoo.com -- Stability : ...
//---------------------------------------------------------------------------- // // Copyright (c) 2013-2017, Thierry Lelegard // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // 1. Redistri...
#include <gtest/gtest.h> #include "converter/fixml2fix_converter.hxx" #include "converter/xml_element_helper.hxx" #include "converter/fix_helper.hxx" #include "util/fix_env.hxx" #include "tools/test_util.hxx" #include <boost/log/trivial.hpp> #include <quickfix/fix50sp2/ApplicationMessageRequestAck.h> #include <list...
<?php namespace Phpactor\WorseReflection\Bridge\TolerantParser\Parser; use Microsoft\PhpParser\Node\SourceFileNode; use Microsoft\PhpParser\Parser; use Phpactor\WorseReflection\Core\Cache; use Phpactor\WorseReflection\Core\Cache\TtlCache; class CachedParser extends Parser { /** * @var Cache */ priv...
import test from 'ava' import { connect } from '../src/index' import { start } from '@saulx/selva-server' import { wait } from './assertions' import './assertions' import getPort from 'get-port' let srv let port: number test.before(async t => { port = await getPort() srv = await start({ port }) const cli...
import 'package:angular/angular.dart'; import 'package:fo_components/fo_components.dart'; import 'package:angular_components/angular_components.dart'; @Component( directives: [ MaterialTooltipDirective, MaterialIconComponent, NgIf, NgClass, ], pipes: [CapitalizePipe], selector: ...
# gets statistics on how often different tags are used in pre-filtered reports import datetime import csv import h5py as h5 import datasets_lib as ds # store starting time for calculating total processing time time_start = datetime.datetime.now() # set path to folder Datasets/ path = 'D:/DataSets/' # initialize tag...
# angular-beautiful-dnd ## Intention The intention of this project is to eventually create an Angular port of this amazing library.
# frozen_string_literal: true require 'spec_helper' require 'yarr/bot' require 'yarr/query' RSpec.describe Yarr::Bot do let(:bot) { subject } before do array = create :klass, name: 'Array' create :method, flavour: 'instance', name: 'size', klass: array origin = create :origin, name: 'abbrev' crea...
package io.github.rsookram.rlauncher.router import android.content.ComponentName import android.content.Context import android.content.Intent import io.github.rsookram.rlauncher.entity.App class Router(private val context: Context) { fun start(app: App) { val intent = newIntent(app) context.start...
// var T = require('timbre') // function playChord(noteArray: number[]) { // // borrowed from the timbre.js library // // will play an array of frequencies sent to it // // not sure what env does // var env = T('perc', { a: 50, r: 2500 }) // // pluck is the timbre.js synthesis of a guitar string being plucked /...
package main import ( "fmt" "html" "log" "net/http" "io" "strings" "bytes" ) // curl http://localhost:8081/upload -F "fileupload=@journal.pcbi.1005413.pdf" -vvv func main() { log.SetFlags(log.LstdFlags | log.Lshortfile) http.HandleFunc("/", func(w http.ResponseWriter, r *http.R...
module Fog module Associations # = Fog Default Association # # This class has the shared behavior between all association models. class Default attr_reader :model, :name, :aliases, :as, :association_class def initialize(model, name, collection_name, options) @model = model ...
use std::time::Duration; use anyhow::Context; use async_std::prelude::FutureExt; use async_std::channel::{Sender, Receiver, RecvError}; use colorful::Colorful; use edgedb_client::client::Connection; use edgedb_protocol::server_message::TransactionState; use crate::async_util::timeout; use crate::connect::Connector; u...
import java.io._ // Print the input with line numbers. object Controls { def loop(file: File) (f: (Int, String) => Unit) = { val reader = new BufferedReader(new FileReader(file)) def doLoop(lineNumber: Int): Unit = { val line = reader.readLine() if (line != null) { f(lineNumber, line) ...
export * from './input-output.component'; export * from './input-output.routes';
lock '3.3.5' set :rbenv_type, :system set :rbenv_ruby, '2.2.2' set :pty, true set :application, 'prelaunchr' set :repo_url, 'https://github.com/AlJohri/thenosacrificediet-prelaunchr' set :deploy_to, '/home/thenosacrificedi/rails_apps/prelaunchr' set :default_env, { path: "/usr/local/rbenv/shims:$PATH"} # /home/th...
use core::arch::asm; use crate::{ config::{MEMORY_END, MMIO, PAGE_SIZE, TRAMPOLINE, TRAP_CONTEXT, USER_STACK_SIZE}, sync::UniProcSafeCell, }; use alloc::{collections::BTreeMap, sync::Arc, vec::Vec}; use lazy_static::lazy_static; use riscv::register::satp; use super::{ address::{PhysAddr, PhysPageNum, Step...
// vars hold primitive data types or references // immutable by default // block-scoped pub fn run() { let name = "Chris"; // let age = 45; // age = 46; // cannot assign twice to immutable variable let mut age = 45; // warning: value assigned to `age` is never read // = note: `#[warn(unused_assignments)]`...