text
stringlengths
27
775k
# frozen_string_literal: true require 'lic/vendor/molinillo/lib/molinillo/compatibility' require 'lic/vendor/molinillo/lib/molinillo/gem_metadata' require 'lic/vendor/molinillo/lib/molinillo/errors' require 'lic/vendor/molinillo/lib/molinillo/resolver' require 'lic/vendor/molinillo/lib/molinillo/modules/ui' require 'l...
package com.acme.verification.confroles; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.Matchers.empty; import static org.hamcrest.Matchers.hasItem; import static org.hamcrest.Matchers.hasItems; import static org.junit.Assert.assertThat; import static org.mockito.Mockito.mock; import static org...
package com.sk.outlay.ui.transactions import androidx.compose.material.Text import androidx.compose.runtime.Composable @Composable fun AddTransactionUI(value: String) { Text(value) }
#!/usr/bin/env ruby # Encoding: utf-8 # # Copyright:: Copyright 2020, Google LLC # # License:: 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....
import os import numpy as np import tensorflow as tf from cwb.common.config_parser import construct_single_distribution g_num_gaussians = 5 g_num_mixtures = 3 g_num_components = 3 g_num_cubes = 3 g_data_dir = 'data/' g_result_dir = 'result/' g_stats_dir = 'stats/' g_evolve_dir = 'evolve/' g_vis_dir = 'vis/' g_cwb_w...
package golib import ( "encoding/json" "flag" "fmt" "io/ioutil" "os" "path/filepath" ) var ( executable, pathError = os.Executable() configDir = flag.String("conf", filepath.Dir(executable), "config.json at directory") ) // LoadConfig is read the configuration from the JSON file into the structur...
# For face related tests, look in the spec/unit/faces/module folder. # For integration tests, which test the behavior of module, look in the # spec/unit/integration folder.
/* * Copyright 2020 The Android Open Source Project * * 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 applic...
import { NavigationContainer } from "@react-navigation/native" import { createStackNavigator, StackScreenProps, TransitionPresets } from "@react-navigation/stack" import { OnboardingPersonalization_highlights } from "__generated__/OnboardingPersonalization_highlights.graphql" import { OnboardingPersonalizationListQuery...
(ns ring.middleware.file-info "Middleware to add Last-Modified and Content-Type headers to file responses. This middleware is deprecated. Prefer the ring.middleware.content-type and ring.middleware.not-modified middleware instead." (:require [ring.util.response :as res] [ring.util.mime-type :refer ...
/** * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * * The Apereo Foundation licenses this file to you under the Educational * Community License, Version 2.0 (the ...
<?php /** * @package Fuel\FileSystem * @version 2.0 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2015 Fuel Development Team * @link http://fuelphp.com */ namespace Fuel\FileSystem; abstract class Handler { /** * @var string */ protected $path; /** * @...
package it.enlea.chirper.unit.logic; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import it.enlea.chirper.logic.service.PostService; import it.enlea.chirper.logic.service.SocialNetworkService; import it.enlea.chirper.logic.se...
// Copyright (c) 深圳云企微商网络科技有限公司. All Rights Reserved. // 丁川 QQ:2505111990 微信:i230760 qq群:774046050 邮箱:2505111990@qq.com // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. using System.Linq; using DBlazor.Storage; namespace Microsoft.Extensions.DependencyInject...
(ns multiformats.varint "Implementation of an MSB unsigned variable-size integer. Unsigned integers are serialized 7 bits at a time, starting with the least-significant bits. The highest bit (msb) in each output byte indicates if there is a continuation byte. https://github.com/multiformats/unsigned-varint"...
import play.api.db.Database import play.api.test.{FakeRequest, PlaySpecification, WithApplication} import sd.Uid2Name class SmsChargeSpec extends PlaySpecification { "/1pay/charge" should { "signature error when the Form not contain enough data" in new WithApplication { val req = FakeRequest(GET, "/1pay/ch...
// Copyright (c) Lykke Corp. // See the LICENSE file in the project root for more information. namespace Donut.Services { using System.Net.Http; public class ProxyService { public ProxyService() { this.Client = new HttpClient(new HttpClientHandler { AllowAutoRedirec...
import java.util.Scanner; public class Controller { public static final String HELLO_PATTERN = "Hello"; public static final String WORLD_PATTERN = "world!"; private Model model; private View view; public Controller(Model model, View view) { this.model = model; this.view = view; ...
package scappla import scala.language.experimental.macros trait AbstractReal extends Value[Double, Unit] { override def field = BaseField.doubleBaseField override def shape = () }
export const SERVER_URL = 'http://localhost:3005' export const IMAGE_PATH = `${SERVER_URL}/images/`
This repository is intended to house some simple AVR C projects and examples for those just getting started with the Atmel AVR line of microcontrollers.
package com.takusemba.cropmesample.ui.adapters import android.content.Context import android.graphics.Point import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.view.WindowManager import android.widget.TextView import androidx.recyclerview.widget.GridLayoutManager im...
/* Fortran routine ortho_obl rewritten in C, Thomas Roatsch, DLR 7-Mar-2001 CONVERT L,S TO LAT LONG OR LAT,LONG TO L,S FOR THE ORTHOGRAPHIC PROJECTION FOR AN OBLATE SPHEROID 11SEP96 -LWK- CODE ADAPTED FROM SUBR. TRANV, FOR USE BY MP_ROUTINES 23Oct97 -Scholten- added check for THR near 90 deg. return 0=O....
#!/bin/bash domain="antinex.com" imagename="certbot-nginx" full_imagename="jayjohnson/${imagename}" archive_dir="/opt/antinex/archive" certs_dir="/opt/antinex/certs/release" lets_encrypt_dir="/opt/antinex/letsencrypt/${domain}" shared_dir="/opt/antinex/shared" splunk_dir="/opt/antinex/splunk" static_dir="/opt/antinex/...
{-# LANGUAGE OverloadedStrings #-} module HERMIT.API.Dictionary.Debug where import Data.Aeson import HERMIT.API.Types -- | give a side-effect message as output when processing this command trace :: String -> Rewrite LCoreTC trace str = Transform $ method "trace" [toJSON str] -- | give a side-effect message as output...
package co.temy.securitysample.extentions import android.content.res.Resources import android.support.v4.content.res.ResourcesCompat fun Resources.getDrawableCompat(id: Int, theme: Resources.Theme? = null) = ResourcesCompat.getDrawable(this, id, theme) fun Resources.getColorCompat(id: Int, theme: Resources.Theme? = n...
import React from 'react' import { useEditorState, useRefEditorState } from '../../editor/store/store-hook' import { usePropControlledRef_DANGEROUS } from '../../inspector/common/inspector-utils' import { getControlStyles, SelectOption, Utils } from '../../../uuiui-deps' import * as EP from '../../../core/shared/elemen...
package com.vicpin.krealmextensions import android.support.test.runner.AndroidJUnit4 import com.google.common.truth.Truth import com.vicpin.krealmextensions.model.TestEntity import com.vicpin.krealmextensions.model.TestEntityAutoPK import com.vicpin.krealmextensions.model.TestEntityPK import com.vicpin.krealmextension...
namespace MvcGrabBag.Web.Caching { /// <summary> /// Defines how an item is stored in the cache /// </summary> public enum CacheScope { /// <summary> /// Cache a unique copy of the item for each user /// </summary> User, /// <summary> /// C...
using DataStructures using Logging import Base.show # package code goes here Logging.configure(level=DEBUG) typealias TT_TYPE Array{UInt,1} typealias IDX_TYPE UInt typealias TV_TYPE Array{Real,1} function __init__() println("loading MJPlayGround.jl") Logging.configure(level=DEBUG) end function init() global vval...
@extends('master') @section('content') <h2>New Quote</h2> <form method="post"> <div class="form-group"> <label for="person">Person</label> <input type="text" class="form-control" id="person" name="person" placeholder="Name"> </div> <div class="form-group"> ...
// DO WHATEVER YOU WANT HERE const createEnumerableProperty = (index) => { return index; }; const createNotEnumerableProperty = (index) => { Object.defineProperty(Object.prototype, index, { get: function(){ return Object.prototype._value; }, set: function(val){ Object.prototype._...
module Frikandel module BindSessionToIpAddress extend ActiveSupport::Concern include SessionInvalidation included do if respond_to?(:before_action) append_before_action :validate_session_ip_address else append_before_filter :validate_session_ip_address end end pri...
<?php namespace App\Http\Controllers; use App\Helpers\Helper; use App\Helpers\Status; use App\Http\Requests\StoreBadgeRequest; use App\Http\Requests\UpdateBadgeRequest; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; class BadgeController extends Controller { /** * Display a listing of the re...
PROGRAM decay_chain ! The following line below may be used to compile this program: ! gfortran -o decay_chain decay_chain.f -ffree-form implicit none integer, parameter :: max_size = 2000 integer, parameter :: output = 7 integer :: i real :: hl_1,hl_2 real :: lambda_1,lambda_2 real :: N_0 real :: time(max_size) real...
package test func test1() (foo int) { return // want "return values not explicitly specified" } func test2() (foo int) { if false { return 1 // not naked } if false { return // want "return values not explicitly specified" } return // want "return values not explicitly specified" } func test3() func() int ...
<?php namespace MainSettings\Repositories; use MainSettings\Models\MainSetting; use File; class MainSettingRepository implements MainSettingRepositoryInterface { public function allData(){ return MainSetting::all(); } public function dataWithConditions( $conditions){ $wheres = ''; ...
package games; import heroes.Hero; import java.util.ArrayList; import java.util.List; public class Game { private List<Hero> heroesPlayed = new ArrayList<>(10); private int timePlayed = 0; }
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'dart:ffi'; import 'dart:io'; import 'dart:typed_data'; import 'package:ffi/ffi.dart'; import 'p...
/** * Atlas REST API * Atlas exposes a variety of REST endpoints to work with types, entities, lineage and data discovery. * * OpenAPI spec version: 2.0.0-SNAPSHOT * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit...
namespace {{$nameSpace}} use {{$package}}AppController as Controller; class {{$className}} extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // } }
<?php namespace mycryptocheckout; /** @brief Handles the setup of menus. @since 2017-12-09 07:05:04 **/ trait menu_trait { /** @brief Init! @since 2017-12-07 19:34:05 **/ public function init_menu_trait() { $this->add_action( 'admin_menu' ); $this->add_action( 'network_admin_menu' ); } /** @bri...
import { AvatarSizeValue, AvatarTokenSet } from './Avatar.types'; /** * Additional state properties needed by Avatar's styling */ export interface AvatarStyleProps { size?: AvatarSizeValue; tokens?: AvatarTokenSet; inactive?: boolean; activeRing?: boolean; activeShadow?: boolean; activeGlow?: ...
import Strategy from "./strategy/Strategy.js"; import JSONStrategy from './strategy/JSONStrategy.js'; import Config from "./Config.js"; Strategy.registerForFiles("json", JSONStrategy); try { require.resolve("yaml"); Strategy.registerForFiles(["yaml", "yml"], require("./strategy/YAMLStrategy.js").default) } catch (e...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RecyclingStation.BusinestLayer.Factories { using System.Reflection; using RecyclingStation.BusinestLayer.Contracts.Factories; using RecyclingStation.WasteDisposal.Interfaces; ...
{ @abstract(This file is part of the KControls component suite for Delphi and Lazarus.) @author(Tomas Krysl) Copyright (c) 2020 Tomas Krysl<BR><BR> <B>License:</B><BR> This code is licensed under BSD 3-Clause Clear License, see file License.txt or https://spdx.org/licenses/BSD-3-Clause-Clear.html. } unit kla...
{-# LANGUAGE TypeFamilies #-} module Books.HaskellInDepth.DataFamily () where import Control.Conditional (if') import Data.Word data family XList a newtype instance XList () = XListUnit Word -- List of units isomorphic to number data instance XList Bool = XBits Word32 Word -- Bit set class XListable a where xem...
using System; using System.Text.RegularExpressions; class Program { static void Main() { string url = Console.ReadLine(); Regex regex = new Regex(@"(?<protocol>.+)\:\/\/(?<server>\w+\.\w+)(?<resource>.+)*"); Match urlElements = regex.Match(url); Console.WriteLine("[protocol] ...
package com.example.util import java.io.InputStream import play.api.libs.json._ import play.api.libs.json.Json._ import org.scalactic._ package object json { /** [[play.api.libs.json.Json#parse(String)]] normally throws an exception if there's an error * during parsing.. This function does the same thing witho...
require_relative '../_lib' class FilterTest < Critic::Unit::Test include Configatron::Integrations::Minitest class FakeFilter def generate_xml_properties 1 end end class FakeFilterSet def filters [FakeFilter.new] end end class FakeRequestor attr_reader :create_filter_coun...
namespace Chushka.App.Controllers { using System.Linq; using Chushka.Models; using Models.BindingModels; using SoftUni.WebServer.Common; using SoftUni.WebServer.Mvc.Attributes.HttpMethods; using SoftUni.WebServer.Mvc.Attributes.Security; using SoftUni.WebServer.Mvc.Interfaces; public ...
package jp.numero.dagashiapp.data import android.content.Context import androidx.datastore.core.DataStore import androidx.datastore.preferences.core.Preferences import androidx.datastore.preferences.core.booleanPreferencesKey import androidx.datastore.preferences.core.edit import androidx.datastore.preferences.core.st...
const readFile = require('fs-readfile-promise'); var fs = require('fs'); var readline = require('readline'); var google = require('googleapis'); var googleAuth = require('google-auth-library'); var characterBuilder = require('./characterBuilder.js'); var SCOPES = ['https://www.googleapis.com/auth/spreadsheets.readonl...
/** * @Author : yantodev * mailto: ekocahyanto007@gmail.com * link : http://yantodev.github.io/ */ function updateSalary(title,id, qty, price) { Swal.fire({ title: `Update ${title}`, html: ` <div> <input type="hidden" id="id" class="swal2-input" placeholder="id" value="${id}"...
# frozen_string_literal: true source "https://rubygems.org" gemspec gem 'rails', '< 4' gem 'test-unit', '~> 3.0'
# git - the simple guide - - - ## git - the simple guide ### just a simple guide for getting started with git - - - ## download and install * [dowload git for OSX](http://code.google.com/p/git-osx-installer/downloads/list?can=3) * or use [homebrew](http://mxcl.github.com/homebrew/): * install brew: `$> /u...
package panda.mvc.view.ftl; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.Map.Entry; import java.util.Properties; import javax.servlet.ServletContext; import freemarker.cache.TemplateLoader; import freemarker.ext.jsp.TaglibFactory; import freemarker.te...
""" Arguments for configuring loss surface computation. # Parameters - `xmin::Float32`, `xmax::Float32`, `xnum::Int32`: define span of the surface and amount of point in the `x` direction. - `ymin::Float32`, `ymax::Float32`, `ynum::Int32`: define span of the surface and amount of point in the `y` direction. - `use_gpu...
(ns ajax.edn (:require [ajax.core :refer [map->ResponseFormat]] [ajax.protocols :refer [-body]] #?@ (:cljs [[cljs.reader :as edn]] :clj [[clojure.edn :as edn] [clojure.java.io :refer [reader]]])) #? (:clj (:import (java.io ByteArra...
(ns vip.data-processor.validation.db.v3-0.jurisdiction-references (:require [vip.data-processor.validation.db.util :as util] [korma.core :as korma] [vip.data-processor.errors :as errors])) (defn unmatched-jurisdiction-references [tables from-table] (let [table (tables from-table) ta...
var acoes = new Dictionary<string, Action<int>> { {"Criar", (parametro) => Criar(parametro) }, {"Editar", (parametro) => Editar(parametro) }, {"Apagar", (parametro) => Apagar(parametro) }, {"Imprimir", (parametro) => Imprimir(parametro) } }; acoes["Criar"](1); //executará o método Criar //https://pt.st...
struct Fitab { Int ndata; Doub a, b, siga, sigb, chi2, q, sigdat; VecDoub_I &x, &y, &sig; Fitab(VecDoub_I &xx, VecDoub_I &yy, VecDoub_I &ssig) : ndata(xx.size()), x(xx), y(yy), sig(ssig), chi2(0.), q(1.), sigdat(0.) { Gamma gam; Int i; Doub ss=0.,sx=0.,sy=0.,st2=0.,t,wt,sxoss; b=0.0; for (i=...
const shim = require('./shim'); const Buffer = require('./buffer') const parse = require('./parse') const { pbkdf2 } = require('./settings') // This internal func returns SHA-256 hashed data for signing const sha256hash = async (mm) => { const m = parse(mm) const hash = await shim.s...
const MobileAppNav = () => { return <nav className="mt-5 flex flex-wrap lg:flex-nowrap justify-center gap-2 gap-x-2"> <a href="/" className="transition-all transform hover:scale-105"> <img src="https://getir.com/_next/static/images/appstore-tr-141ed939fceebdcee96af608fa293b31.svg...
public class BlockingQueueImpl<T> implements BlockingQueue<T> { private final Queue<T> q = new LinkedList<T>(); private final int maxSize; private final Object mutex = new Object(); public BlockingQueueImpl(int maxSize) { if (maxSize <= 0) throw new IllegalArgumentException("maxSize=" + maxSize); ...
using IntervalArithmetic, IntervalRootFinding, StaticArrays using Base.Test @testset "1D roots" begin rts = roots(sin, -5..5) @test length(rts) == 4 @test length(find(x->x==:unique, [root.status for root in rts])) == 2 rts = roots(sin, -5..6, Bisection) @test length(rts) == 3 rts = roots(sin,...
package com.twitter.chill import scala.collection.immutable.{HashMap, HashSet, ListMap, ListSet, Queue, TreeMap, TreeSet, WrappedString} import scala.collection.mutable import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpec class StandardDataRegistrationsSpec extends AnyWordSpec with...
module.exports = function (center, footer) { return { reserveSpace: function () { center.reserveSpace(); } } };
use std::fmt::Display; use askama::Template; use graphql::{Query as GraphQLQuery, Pageable, HasPageInfo, HasTotalCount, PageInfo, Paged}; use author::Author; #[derive(Template)] #[template(path = "pull_requests.graphql")] pub struct Query<S> where S : AsRef<str> + Display { pub owner: S, pub repository: S, ...
import { useInfiniteQuery } from "react-query" import { request } from "../utils/axios" const fetchImages = (input: string, pageParam: number) => { return request({ url: `/search/photos?per_page=20&page=${pageParam}&query=${input}` }) } export const useSearchImages = (input: string) => { return useInfiniteQuery([...
require "active_support/core_ext/class/subclasses" module Muhimbi class Converter attr_accessor :file_content, :file, :options def initialize(opts={}) unless opts[:file].blank? self.file_content = encode_file(opts[:file]) self.file = opts[:...
require_relative 'helper' require 'sidekiq/api' class TestScheduler < Sidecloq::Test describe 'scheduler' do let(:specs) do {test: {'cron' => '1 * * * *', 'class' => 'DummyJob', 'args' => []}} end let(:schedule) { Sidecloq::Schedule.new(specs) } let(:scheduler) { Sidecloq::Scheduler.new(schedul...
# 悟空笔记 <!-- {docsify-ignore-all} --> <p align='center'>同学们,</p> <p align='center'>该文档定位<span>Spring Boot</span>进阶篇,</p> <p align='center'>上一篇为「青铜篇」,故该篇称为「白银篇」。</p> ## 开发环境 - jdk 8.0 - Spring Boot 2.x - Maven 3.x - JetBrain Idea 旗舰版 ## 笔记目录 - [MD 目录结构-Github专属](SUMMARY.md) ## 参考文献 <br> <br> <br> ## 关于作者 <br...
// +build js package fs import ( "os" "syscall/js" "github.com/hack-pad/hackpad/internal/process" "github.com/pkg/errors" ) func open(args []js.Value) ([]interface{}, error) { fd, err := openSync(args) return []interface{}{fd}, err } func openSync(args []js.Value) (interface{}, error) { if len(args) == 0 { ...
import { IUser } from "./user"; import { ITweet } from "./tweet"; export interface IUserLookup { data:[IUser], includes:{ tweets: ITweet[], } }
(ns json-rpc.client (:refer-clojure :exclude [send])) (defprotocol Client "A JSON-RPC client." (open [this url] "Opens a connection to the given URL") (send [this conneciton message] "Sends a JSON-RPC request to the open connection") (close [this conneciton] "Closes the connection"))
import React from "react"; import { NodeProps } from "react-flow-renderer"; import Node from "components/Node"; import useConstantSourceNode from "hooks/nodes/useConstantSourceNode"; function ConstantSource({ data, id, selected, type }: NodeProps) { const { offset = 1, onChange } = data; useConstantSourceNode(id, ...
import { Repository, getConnection } from 'typeorm'; import { Arg, Mutation, Query, Resolver, Int } from 'type-graphql'; import { InjectRepository } from 'typeorm-typedi-extensions'; import { Experience } from '../entity/experience'; import { Skill } from '../entity/skill'; @Resolver() export class ExperienceResolver ...
/* * Copyright 2016 Google Inc. All Rights Reserved. * * 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 applica...
// authentication export const LOGIN = "LOGIN"; export const LOGOUT = "LOGOUT"; export const SET_ACCESS_TOKEN = "SET_ACCESS_TOKEN"; // entities export const SET_ENTITIES = "SET_ENTITIES"; export const SET_ENTITY = "SET_ENTITY"; export const UPDATE_ENTITY = "UPDATE_ENTITY"; // app export const SET_CURRENT_USER_ID = "S...
using System.Collections.ObjectModel; using System.Threading.Tasks; using Too_Many_Things.Core.DataAccess.Models; using Too_Many_Things.Core.ViewModels; namespace Too_Many_Things.Core.Services { public interface ILocalDataStorageService { Task<ObservableCollection<List>> RetrieveStoredObjectAsync(); ...
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.rust.toml.inspections import com.intellij.openapi.application.runWriteAction import com.intellij.openapi.vfs.VirtualFile import org.rust.* import org.rust.cargo.project.model.cargoProjects import org...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Serialization; using UnityEngine.UI; public class UIManager : MonoBehaviour { [SerializeField] private GameObject HomeGo; [SerializeField] private GameObject InGameGo; [SerializeField] private GameObject GameOv...
var searchData= [ ['position',['position',['../structALF__jit__buf.html#a6a35d3d3e3a0033c118119bdec30df10',1,'ALF_jit_buf']]] ];
# Examples This document will show you several examples of KiKit CLI for panelization. Note that this is **not an exhaustive description** of everything that KiKit can do, nor proper documentation. For further details, please refer to: - [installation guide](installation.md) - [description of all panelization option...
require "haml" module HamlI18nLint # Run lint and report the result. class Runner # @param options [Options] options # @return [Runner] new runner to run lint with given options def initialize(options) @options = options @config = ::HamlI18nLint::Config.new(@options) @linter = HamlI18...
#!/bin/bash if test ! -d $HOME/fish/bin; then cd $HOME wget $FISH_RELEASE tar -xzf $(basename $FISH_RELEASE) rm $(basename $FISH_RELEASE) pushd $(basename ${FISH_RELEASE%.tar.gz}) ./configure --prefix=$HOME/fish make make install popd rm -rf $(basename ${FISH_RELEASE%.tar.gz}) else echo Using cac...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Housekeeping extends Model { protected $fillable = [ 'guest_id', 'order_date', 'bed_sheets', 'cleaning', 'minibar', 'blanket', 'toiletries', ...
/* ************************************************************************ * * Zen [and the art of] CMS * * https://zenesis.com * * Copyright: * 2019-2022 Zenesis Ltd, https://www.zenesis.com * * License: * MIT (see LICENSE in project root) * * Authors: * John Spackman (john.spackman@zenesis.com, @johnsp...
/* This code is part of the WhiteboxTools geospatial analysis library. Authors: Dr. John Lindsay Created: 27/09/2018 Last Modified: 27/09/2018 License: MIT */ use super::Point2D; const MULTIPLICATIVE_EPSILON: f64 = 1f64 + 1e-14; #[derive(Default, Copy, Clone, Debug, PartialEq)] pub struct Circle { pub center: Po...
(ns example.core (:require [cljs.spec.alpha :as s] [clojure.string :as string] [expound.alpha :refer [expound]])) (s/def ::left-paren #(= % "(")) (s/def ::right-paren #(= % ")")) (s/def ::space (fn [x] (and (string? x) (pos? (count x)) (string/blank? x)))) (s/def ::token (fn [x] (contains? #...
//bit shifting fun main(args: Array<String>) { var number = 5 var count = 1 var result = number.shl(count) println("$number : After Left shift $count times = $result") count = 3 result = number shl count println("$number : After Left shift $count times = $result") number = 5 cou...
# code-to-image 자바스크립트를 이용해 소스코드를 이미지로 변환합니다. - [데모 페이지](https://soma0sd.github.io/code-to-image/) 아래 도구를 사용하였습니다. - [highlight.js](https://highlightjs.org/): 소스코드 하이라이팅 - [html2canvas](https://html2canvas.hertzen.com/): 이미지 변환
/** * Simple direct parent function to scroll a node into view for its direct parent * @param {HTMLElement} el */ export function scrollIfNeeded(el: HTMLElement): void { let parent = el.parentElement; if (!parent) { return; } let pHeight = parent.offsetHeight; let pScroll = parent.scrollTop; let eH...
package digitalhouse.com.revisao.helpers; import android.view.View; public interface RecyclerViewClickListener { void onClick (View view, int position); void onLongClick (View view, int position); }
package ledger_model import "github.com/blockchain-jd-com/framework-go/crypto/framework" /* * Author: imuge * Date: 2020/5/27 下午1:22 */ type LedgerInfo struct { Hash framework.HashDigest LatestBlockHash framework.HashDigest LatestBlockHeight int64 }
package network.commands; import game.multiplayer.OnlineLocalGame; import game.multiplayer.OnlineRemoteGame; import game.multiplayer.powerUps.PowerUp; import game.player.MultiModePlayer; import network.Command; /** * Comunica l'attivazione di un powerup */ public class PowerUpCommand extends Command { private ...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class FilmsCategory extends Model { public $table = 'films_category'; public $timestamps = false; public function category(){ return $this->hasOne(Categoris::class,'id','category_id');//->select('name', 'id')->where('name','action'); ...
// Code generated by "stringer -type=LF_Type"; DO NOT EDIT package logflags import "fmt" const ( _LF_Type_name_0 = "LF_dateLF_time" _LF_Type_name_1 = "LF_microseconds" _LF_Type_name_2 = "LF_longfile" _LF_Type_name_3 = "LF_shortfile" _LF_Type_name_4 = "LF_functionname" _LF_Type_name_5 = "LF_prefix" _LF_Type_na...
using System.Globalization; namespace MusicStore.Shared.Extensions { public static class StringExtensions { public static string ToSnake(this string text) { return string.Concat(text.Select((x, i) => i > 0 && char.IsUpper(x) ? "_" + x : x.ToString(CultureInfo.In...