text
stringlengths
27
775k
require 'date' require 'json' require 'time' require 'mixpanel-ruby/consumer' require 'mixpanel-ruby/error' module Mixpanel # Handles formatting Mixpanel group updates and # sending them to the consumer. You will rarely need # to instantiate this class directly- to send # group updates, use Mixpanel::Tracker...
package heap //HeapSort sorts a given integer array in ascending order func HeapSort(array []int) { /* * We will first build the heap * Then one by one we will swaps the root and last element */ //Building the heap buildHeap(array) //swaping the root and last element for length := len(array); length > 1; l...
UNIT UGetFile; INTERFACE Uses Graph, Crt, MyMouse, Button, Rolls, Boxs, TextBoxs, RollBoxs, Objects, Labels, Config, SysUtils; TYPE PGetFile = ^OGetFile; OGetFile = Object (OBox) FileName : Str12; RollFile : ORollBox; btclick : TypeButtons; Title : String; ...
#!/bin/bash set -e cd src/Magick.Native ./create-nuget-config.sh $1 $2 ./install.sh macos
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect, ReactReduxContext } from 'react-redux'; import reduce from 'lodash/reduce'; import { Label } from 'semantic-ui-react'; import { filtersTransformer } from '../../../filters'; import { actions as filterActions, selectors as f...
// The MIT License (MIT) // Copyright (c) 2015 Ben Abelshausen // 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 limitation the rights // to use, co...
-------------------------------------------------------------------------------- -- Copyright © 2011 National Institute of Aerospace / Galois, Inc. -------------------------------------------------------------------------------- -- | Generates a C99 header from a copilot-specification. The functionality -- provided by...
#!/bin/bash # C sudo apt install tcc sudo apt install gcc-10 sudo apt install clang-10 # C++ sudo apt install g++-10 sudo apt install clangxx-10 # Ada sudo apt install gnat-10 # D `dmd` ./install-dmd.sh # D `gdc` sudo apt install gdc-10 # Go: `gccgo` sudo apt install gccgo-10 # Go: `go` `gotype` sudo add-apt-rep...
<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It is a breeze. Simply tell Lumen the URIs it should respond t...
<?php namespace Concrete\Core\Express\Event; use Concrete\Core\Entity\Express\Entry; use Symfony\Component\EventDispatcher\Event as AbstractEvent; class Event extends AbstractEvent { /** * @var Entry */ protected $entry; protected $entityManager; /** * @return mixed */ public...
// PowerShellFar module for Far Manager // Copyright (c) Roman Kuzmin using FarNet; using System; using System.IO; using System.Management.Automation; namespace PowerShellFar.Commands { [OutputType(typeof(SetFile))] sealed class NewFarFileCommand : BaseCmdlet { #region [ Any parameter set ] [Pa...
module QASM export @qasm_str using RBNF using ExprTools using OpenQASM using OpenQASM.Types using OpenQASM.Types: Gate using ..YaoCompiler mutable struct VirtualRegister type::Symbol address::UnitRange{Int} end mutable struct RegisterRecord map::Dict{String,VirtualRegister} nqubits::Int ncbits::...
--- author: tim comments: true date: 2011-02-11 18:35:44+00:00 dsq_thread_id: '243134417' layout: post link: '' slug: a-note-on-magento-and-multiple-nodes-using-memcached title: A note on Magento and multiple nodes using Memcached wordpress_id: 831 category: Code tags: - magento - Memcached - php - xml --- If you have...
/* Author - Aykut Asil(@aykuttasil) */ package com.aykuttasil.sweetloc.util import android.Manifest import android.annotation.SuppressLint import android.content.Context import android.content.pm.PackageManager import android.location.Location import android.os.Looper import androidx.core.content.ContextCompat import ...
name := "bitcoin-s-cli-test" publish / skip := true
#include "stm32f4xx_hal.h" #ifndef NEOPIXEL_HANDLER_H #define NEOPIXEL_HANDLER_H #define NEOPIXEL_DATA_Pin GPIO_PIN_7 #define NEOPIXEL_DATA_Port GPIOB void neoPixel_initLeds(); void neoPixel_turnOffLeds(); void neoPixel_light(int strength); void neoPixel_reverse(); void neoPixel_Welcome(); void neoPixel_WelcomeOff...
<?php class Signin_controller extends CI_Controller{ function __construct() { parent::__construct(); $this->load->helper('url'); $this->load->library('form_validation'); $this->load->library('session'); $this->load->model('user_model'); } public function index() { $this->load->view('login'); } ...
#!/usr/bin/env ruby require "digest/md5" class Miner def initialize(prefix) @prefix = prefix end def find n = 0 begin n += 1 input = @prefix + n.to_s hex = Digest::MD5.hexdigest(input) end until hex =~ /^0{5}/ n end end p Mi...
package org.jemiahlabs.skrls.view.main.context; import org.jemiahlabs.skrls.core.Channel; import org.jemiahlabs.skrls.core.Message; import org.jemiahlabs.skrls.core.Producer; import org.jemiahlabs.skrls.core.TypeMessage; public class ProducerImpl extends Producer { public ProducerImpl(Channel channel) { super(chan...
/** * Created by 郑晓辉 on 2017/3/30. */ var templateUrl = '/questionnaireManage/templateMultiQuestionnaire'; var delTemporaryUrl = '/questionnaireManage/delTemporaryMultiQuestionnaire'; var shareUrl = '/questionnaireManage/shareMultiQuestionnaire'; $(function () { $('#multiShareBtn').click(function () { v...
class PublicationModelGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) argument :model_name, type: :string, default: :article def generate create_model create_controller create_migration print_routing_instruction end private def create_model l...
use anyhow::{bail, Result}; use prost_types::compiler::{code_generator_response::File, CodeGeneratorResponse}; use protoc_gen_prost::{utils::*, Generator}; fn main() { let res = match gen_files() { Ok(file) => CodeGeneratorResponse { file, ..Default::default() }, Err(e) => CodeGeneratorResponse { e...
use std::path::{Path, PathBuf}; use std::io; pub trait ImportResolver { fn resolve(&mut self, import_name: &str) -> Result<ResolvedImport, io::Error>; } pub struct ResolvedImport { pub reader: Box<dyn io::Read>, pub source: String, } impl ResolvedImport { pub fn text(&mut self) -> String { le...
Set-Location C:\ Clear-Host # Syntax for creating a hashtable is the at-sign (@) followed by curly brackets {}. # Keys and values are inside the curly brackets. # Use a semicolon to separate multiple key/value sets entered on the same line $Hashtable = @{FirstName = "Michael"; LastName = "Simmons"} $Hashtable ...
(require '[babashka.pods :as pods]) (pods/load-pod 'tzzh/mail "0.0.2") (require '[pod.tzzh.mail :as m]) (m/send-mail {:host "smtp.gmail.com" :port 587 :username "kylian.mbappe@gmail.com" :password "kylian123" :subject "Subject of the email" :from "k...
package com.tszj.chain.sdk.start; import com.tszj.chain.sdk.service.LockCoinsService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.ApplicationArguments; import org.springframew...
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) # only load pry for MRI > 1.8 require 'pry' if RUBY_ENGINE == 'ruby' rescue nil require 'popen4' require 'rspec' require 'rspec/mocks/standalone' require 'set' require 'librato/metrics' RSpec.configure do |config| # purge all metrics from test acc...
package ml.jannik.pmc.friendchat import org.bukkit.Bukkit import org.bukkit.plugin.java.JavaPlugin import ml.jannik.pmc.friendchat.commands.other.* import ml.jannik.pmc.friendchat.commands.friends.* import ml.jannik.pmc.friendchat.commands.guilds.* import ml.jannik.pmc.friendchat.commands.teams.* import ml.jannik.pmc...
SUBROUTINE GAZMML ( mproj, msppj, np, dlat, dlon, polat, + polon, rotat, azmsav, xl, yl, iret ) C************************************************************************ C* GAZMML * C* * C* This subroutine converts a point from latitude longitude * C* coordinates to linear intermediate coo...
import React, { useState } from 'react'; import { useHistory } from 'react-router-dom'; import { Divider } from 'antd'; import LandingCard from './LandingCard'; import TextInput from '../TextInput'; import Button from '../Button'; import '../../scss/landing.scss'; import API from '../../api/API'; import VerifyEmailModa...
/* See LICENSE for licensing and NOTICE for copyright. */ package org.ldaptive.extended; import org.ldaptive.LdapUtils; import org.ldaptive.asn1.DERBuffer; /** * LDAP unsolicited notification defined as: * * <pre> ExtendedResponse ::= [APPLICATION 24] SEQUENCE { COMPONENTS OF LDAPResult, responseName ...
# frozen_string_literal: true require 'wordsapi/base' class WordsAPI < Base def service_url 'https://wordsapiv1.p.rapidapi.com/words' end def has_types?(word) response = connection.get has_types_endpoint(word) response = process_response(response) OpenStruct.new(success?: true, body: response)...
# Lightweight ASGI Web Framework This is a web framework for [ASGI](user-guide/asgi) servers in Python 3.8. The goal is to provide a minimal implementation, with other facilities (serving static files, CORS, sessions, etc.) being implemented by optional packages in an attempt to keep the implementation clear and ligh...
import java.util.* fun foo() { val al = ArrayList<String>() al.size al.<!TYPE_INFERENCE_ONLY_INPUT_TYPES!>contains<!>(1) al.contains("") al.remove("") al.removeAt(1) val hs = HashSet<String>() hs.size hs.<!TYPE_INFERENCE_ONLY_INPUT_TYPES!>contains<!>(1) hs.contains("") hs....
wd=$(pwd) # Set up git configurations. ln -s $wd/gitconfig $HOME/.gitconfig ln -s $wd/gitignore $HOME/.gitignore ln -s $wd/git $HOME/.config/git # Set up ideavimrc. ln -s $wd/ideavimrc $HOME/.ideavimrc # Set up chemacs. git clone https://github.com/plexus/chemacs2.git ~/.emacs.d ln -s $wd/emacs-profiles.el $HOME/.em...
<?php namespace Troupe\File; class Php extends Common { function getType() { return 'php'; } }
cd /bin if test -e ./bash then echo "File exist" else echo "File not exist" fi
package com.aialias.hlibraries.utils import java.text.ParseException import java.text.SimpleDateFormat import java.util.* /** * * @author HERB * @date Created on 2018/2/12 20:44 * @function: */ object AppDateMgr { val YYYYMMDD_FORMAT = SimpleDateFormat("yyyy-MM-dd", Locale.getDefault()) val HHMMSS_FORM...
using System; using UniRx; using UniRx.Triggers; using UnityEngine; using Zenject; namespace Characters.Enemies { public class EnemyAI : MonoBehaviour { [SerializeField] double dueTimeSeconds; [SerializeField] double updateLogicSpanMillis; [SerializeField]...
# Pregel A single-node [pregel](https://dl.acm.org/citation.cfm?id=1584010) implementation. ## Implemented * Combiner support * Aggregators support * Multi-thread computing * Functional API ## Usage See [examples](https://github.com/nickyc975/Pregel/tree/master/src/main/java/examples). ## License [MIT](./LICE...
/* * Copyright 2020-2021 Photos.network developers * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
/* * MIT License * * Copyright (c) 2021 Hell Hole Studios * * 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 limitation the rights * to use, copy...
<?php namespace Database\Seeders; use App\Models\Course; use App\Models\Schoolclass; use Illuminate\Support\Str; use App\Models\Subjectmatter; use Illuminate\Database\Seeder; class SchoolclassCourseSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function r...
import { Component , Element , Prop} from '@stencil/core'; import { MDCTextField } from "@material/textfield"; @Component({ tag: 'o-mdc-text-field', styleUrl: 'o-mdc-text-field.scss', shadow: true }) export class MdcTextFieldComponent { private mdcTextFields: any; @Element() el: HTMLElement; @Prop() label ...
#!/usr/bin/env python # Licensed to Pioneers in Engineering under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Pioneers in Engineering licenses # this file to you under the Apache License, Version 2.0 (the #...
package io.github.dreamylost.websocket import akka.actor.ActorRef import io.github.dreamylost.model.entities.Message import io.github.dreamylost.util.Jackson import io.github.dreamylost.model.Mine /** @author 梦境迷离 * @version 1.0,2021/11/25 */ object Protocols { sealed trait ImProtocol { self => @inline...
package org.ggp.base.util.gdl.model.assignments; import java.util.HashSet; import java.util.List; import java.util.Set; import org.ggp.base.util.gdl.GdlUtils; import org.ggp.base.util.gdl.grammar.GdlSentence; import org.ggp.base.util.gdl.grammar.GdlTerm; import org.ggp.base.util.gdl.grammar.GdlVariable; public class...
class Api::V1::ApplicationController < ApplicationController respond_to :json layout "api_v1.json" # Handle errors rescue_from BSON::InvalidObjectId, with: :api_error_400 rescue_from Mongoid::Errors::DocumentNotFound, with: :api_error_400 # Authorization with CanCan load_and_authorize_resource # Ski...
export const getTypeById = (id) => new Promise((resolve) => { fetch(`https://pokeapi.co/api/v2/type/${id}`).then((data) => resolve(data.json()) ); }); export const getTypeByName = (name) => new Promise((resolve) => { fetch(`https://pokeapi.co/api/v2/type/${name}`).then((data) => resolve(d...
import React, { Component, ReactElement } from 'react'; import { Container, Nav, Navbar } from 'react-bootstrap'; import { GoMarkGithub } from 'react-icons/go'; type Props = Readonly<{ onAbout: () => void }>; /** * Header component with application's name. * @inheritdoc */ export class AppHeader extends Component<...
package es.odavi.mandyville import common.entity.Player import common.Comparison import scala.math.BigDecimal.RoundingMode /** The base predictor providing shared predictor functionality * and an interface for all predictors. * * @constructor create a new predictor for a player in a context * @param player t...
-- -- Copyright 2017, 2018 Warlock <internalmike@gmail.com> -- -- 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 a...
const { Types } = require('mongoose'); module.exports = (Joi) => { /** * @static * @type {string} * @memberof JoiSchema */ const messageObjectId = 'Argument passed in must be a single String of 12 bytes or a string of 24 hex characters'; return Joi.extend({ type: 'objectId', messages:...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Model\Admin\Newsletter; use App\Model\Order; use App\Model\Admin\Site_Setting; use App\Model\Contact; use App\Model\Admin\Product; use App\User; use Auth; // use Image; use Intervention\Image\Facades\Image; class FrontController extends Co...
package gistova import ( "fmt" "io" "net/http" ) func bodyWrap(d io.Reader) (rc io.ReadCloser, l int64) { if d == nil { // nil means no body, so return nil rc and zero length return } // if the underlying type has Close, use it rc, ok := d.(io.ReadCloser) if !ok { // otherwise wrap with NopCloser rc =...
import { IHelperSchema } from '../../utils'; export interface Schema extends IHelperSchema { /** * Target platforms to generate helpers for. */ platforms?: string; }
import { Box, Checkbox } from "@chakra-ui/core"; import React from "react"; const Retake = ({ retake, setRetake }) => { return ( <Box> <Checkbox variantColor="green" value={retake} onChange={e => setRetake(!retake)} name="assessmen...
package com.example.mymoviememoir.network.interfaces; /** * A data model belong to a Get request should implement this interface * @author sunkai */ public interface RestfulGetModel extends RestfulParameterModel { }
CREATE OR REPLACE TRIGGER TRIG_VDSMS_METAINFO AFTER INSERT ON VerDatasetMetaString FOR EACH ROW BEGIN INSERT INTO DatasetMetaInfo (MetaName, ValueType) SELECT :new.MetaName, 'S' FROM DUAL WHERE NOT EXISTS (SELECT 1 FROM DatasetMetaInfo d WHERE d.MetaName = :new.MetaName and d.ValueType = 'S'); END; CRE...
# Copyright 2014 Modelling, Simulation and Design Lab (MSDL) at # McGill University and the University of Antwerp (http://msdl.cs.mcgill.ca/) # # 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...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.github.fbdo.geomodel; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonProperty; /** * @author <a href="mailto:fabio.braga@gmail.com">Fabio Oliveira</a> ...
# How do I ... ## ... setup custom Domains w/ SSL? See: [":rocket: __Domains, SSL, & YOU!__"](domains-ssl-you.md) ## ... start up the Healthify Rails app? * Follow the [Readme](github.com/healthify/healthify) in that repo. * Ask for help if you get stuck.
<?php /** * Default theme options. * * @package CoverNews */ if (!function_exists('covernews_get_default_theme_options')): /** * Get default theme options * * @since 1.0.0 * * @return array Default theme options. */ function covernews_get_default_theme_options() { $defaults = array(); // Preloader ...
using FlexOleoTerminais.DAO; using FlexOleoTerminais.Modelos; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace FlexOleoTerminais.Repositorios { public class ComandoRepositorio : IRepositorio<Coman...
""" read_walz(file) Import a Walz GFS-3000 output file. # Examples ```julia file = joinpath(dirname(dirname(pathof(PlantBiophysics))),"test","inputs","data","P1F20129.csv") read_walz(file) ``` """ function read_walz(file) df = CSV.read(file, DataFrame, header = 1, datarow = 3) if hasproperty(df, :Ttop) ...
# Stenography # Stenography is a small node application that is useful for testing a series of client requests that expect a 200 response body back. Stenography records all requests coming in (except those to: `/fetch_recording`), simply responding with 200 OK, and an empty body. From there you can call: `/fetch_reco...
(load "../day10/day10.lisp") (defun set-bits (val offset array) (dotimes (bit 8) (setf (elt array (+ (* offset 8) (- 7 bit))) (logand (ash val (- bit)) 1)))) (defun to-bit-array (seq) (let ((arr (make-array (* (length seq) 8) :element-type 'bit :initial-element 0))) (dotimes (i (length seq)) (set-bi...
require File.expand_path(File.dirname(__FILE__) + '/test_helper.rb') class TestFakerMarkdown < Test::Unit::TestCase def setup @tester = Faker::Markdown end def test_headers test_trigger = @tester.headers.split(' ') assert(test_trigger.length == 2) assert(test_trigger.first.include?('#')) end ...
namespace ProtobufMapper { internal class PropertyConfiguration { public ulong Order { get; internal set; } } }
<?php declare(strict_types=1); /* * The MIT License (MIT) * * Copyright (c) 2013 John Judy * * 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 li...
// // Copyright 2016 gRPC authors. // // 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 t...
/** * @license Use of this source code is governed by an MIT-style license that * can be found in the LICENSE file at https://github.com/cartant/eslint-plugin-rxjs */ import { stripIndent } from "common-tags"; import { fromFixture } from "eslint-etc"; import rule = require("../../source/rules/no-unsafe-subject-next...
#!/usr/bin/env bash # This is process id, parameter passed by user ppid=$1 ps -o pid,ppid -ax | awk "{ if (\$2 == $ppid) { print \$1 }}" | xargs kill -2 >/dev/null
<?php namespace App\Http\Controllers\Auth; use App\Http\Controllers\Controller; use App\Models\Client; use Illuminate\Http\Request; class ClientAuthController extends Controller { public function showlog(){ return view('client.login'); } public function clientLogin(Request $request){ ...
<?php namespace App\Uploaders; class VideoUploader extends Uploader { public function baseDir() { return config('app.video_upload_path'); } }
module Stripe class CheckoutsController < ApplicationController def show current_user.processor = :stripe current_user.customer @payment = current_user.payment_processor.checkout(mode: "payment", line_items: "price_1ILVZaKXBGcbgpbZQ26kgXWG") @subscription = current_user.payment_processor....
from transformers import modeling_bert as mb import torch from torch import nn import math # 15/06/2020 class BertModelNeuron(mb.BertModel): def __init__(self, config): config.output_attentions = True super().__init__(config) self.encoder = mb.BertEncoder(self.config) self.en...
package lt.petuska.kvdom.core.module.hooks import lt.petuska.kvdom.core.domain.* import kotlin.reflect.* private val store = Hooks.store("useState") typealias GetState<T> = () -> T typealias SetState<T> = (value: T) -> Unit class UseStateDelegate<T> internal constructor(val getState: GetState<T>, val setState: SetS...
/** * @todo Enlarge part of the image to display * @param {String} url * @param {HTMLElement} [children] * @param {String} [className] * @param {Object} [normalStyle={width:600}] Normal display image width and height * Equal scale scaling,You must fill in either width or ...
#!/bin/bash set -u -e USER=$(whoami) # i3WALLPATH="$HOME/.config/i3/walli3" i3WALLPATH="/media/$USER/projectid/programming/walli3/" if [ -d "$i3WALLPATH" ]; then wallpaperI3="$(find "$i3WALLPATH"/* -type f -name '*.jpg' | sort -R | head -1)" # feh --bg-center "$wallpaperI3" "$HOME"/.local/bin/wal -i "$wall...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BitForByteSupport { public class PressureModifier { public string pressureCmd; public Double oldPressureValue; public Double newPressureValue; } }
require 'active_resource' class ActiveResource::Connection attr_writer :basic_auth_user, :basic_auth_password def authorization_header if (@basic_auth_user || @basic_auth_pass) build_auth_header(@basic_auth_user, @basic_auth_password) elsif (@site.user || @site.password) # remain backwards compatible buil...
using Cvl.ApplicationServer.Core.Database.Contexts; using Cvl.ApplicationServer.Core.Model; using Cvl.ApplicationServer.Core.Repositories; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Cvl.ApplicationS...
Module stateVar_Mod ! Module for loading and validating internal state variables ! Maximum possible state variables defined Integer, parameter :: nstatev_max = 33 ! Stores the state variables Type stateVars Integer :: nstatev ! Number of state variables ! Always stored Double Pr...
# -------------------------------------------------------------------------- # # Copyright 2002-2021, OpenNebula Project, OpenNebula Systems # # # # Licensed under the Apache License, Version 2.0 (the "License"); you may # # no...
using System.Threading.Tasks; using Confuser.Core; using Confuser.Core.Project; using Confuser.UnitTest; using Xunit; using Xunit.Abstractions; namespace VisualBasicRenamingResx.Test{ public sealed class RenamingTest : TestBase { public RenamingTest(ITestOutputHelper outputHelper) : base(outputHelper) { } [Fact]...
using System; using System.Collections.Generic; using System.Text; namespace FlatFileParser.Core.Enums { /// <summary> /// The type of processing to conduct on a line in the file. /// </summary> public enum LineProcessingType { /// <summary> /// Process the entire line. ///...
<div class="form-group row"> <label class="col-lg-3 col-form-label">Questionnaire:<span class="text-danger">*</span></label> <div class="col-lg-9"> <input type="text" name="question_name" value="{{ old('question_name') }}" class="form-control"> @error('question_name') <span class="text-d...
package org.rsultan.bandit.algorithms import kotlin.math.exp import kotlin.math.ln class AnnealedSoftmax(nbArms: Int) : AbstractSoftmaxAlgorithm(nbArms) { override fun selectArm(): Int { val time = counts.sum().toFloat() + 1.0f val temperature = 1.0f / ln(time + 0.0000001f) val sum = valu...
package FigureControls; import Utils.XCommand; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class PaintPanel extends JPanel implements MouseListener, MouseMotionListener, KeyListener { private XCommand cmd; private Point point; public String title; FigurePaintPanel current = null; ...
--- layout: post title: Bintray... The Github of Binaries categories: Tools tags: Java Programming --- Debriefing These are some things I saw in me... and some things I saw in others. This is simply a bunch of cliches, but you don't realize them until you see or do them. I enjoyed beeing involved in the team creati...
package com.marknkamau.unipool.domain.authentication import com.google.android.gms.auth.api.signin.GoogleSignInResult interface AuthenticationService { fun signIn(result: GoogleSignInResult, listener: SignInListener) fun signOut(listener: SignOutListener) fun isSignedIn(): Boolean fun currentUserId():...
# exportlivescript - janklab.mlxshake Export a Matlab Live Script (.mlx) file to Markdown or other formats. mdFile = janklab.mlxshake.exportlivescript(mlxFile, opts) Exports a Matlab Live Script `.mlx` file to Markdown or other presentation file formats. Defaults to Markdown format. Depending on the output form...
/* * ov23850.c - ov23850 sensor driver * * Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. ...
package com.common.api; import rx.android.schedulers.AndroidSchedulers; import rx.Observable; import rx.Subscription; import rx.functions.Action1; import rx.functions.Func1; import rx.schedulers.Schedulers; public class RxApiCallHelper { public static <T> Subscription call(Observable<T> observable, final RxApiCa...
import { ReactNode } from "react"; import { Grid, Paper } from "@material-ui/core"; import { analyze } from "."; interface AnalyzedSectionProps { id?: string; values: any; visible: boolean; type: string; children: ReactNode | Array<ReactNode>; } export const AnalyzedSection = ({ children, values, id, ...
/* * Rustの型(文字)。 * CreatedAt: 2019-05-31 */ fn main() { let c1 = 'A'; let c2: char = 'B'; // let c3 = 'AB'; // error: character literal may only contain one codepoint // let c4: char = "A"; // error[E0308]: mismatched types println!("{} {}", c1, c2); if c1 == c2 { println!("c1 == c2"); } el...
# coding: utf-8 require 'iciba/tools' require 'iciba/fanyi' class String def contains_cjk? !!(self.force_encoding("UTF-8") =~ /\p{Han}/) end end
module.exports = { // ...other vue-cli plugin options... pwa: { name: 'Get Peeps', themeColor: '#fff', msTileColor: '#fff', appleMobileWebAppCapable: 'yes', appleMobileWebAppStatusBarStyle: 'black', // configure the workbox plugin workboxPluginMode: 'GenerateSW', workboxOptions: { ...
#include "stdafx.h" #include "pseudo_gigant_step_effector.h" CPseudogigantStepEffector::CPseudogigantStepEffector(float time, float amp, float periods, float power) : CEffectorCam(eCEPseudoGigantStep, time) { total = time; max_amp = amp * power; period_number = periods; this->power = power; } BOOL CP...