text
stringlengths
27
775k
import unittest from katas.kyu_7.zip_it import lstzip class ZipItTestCase(unittest.TestCase): def setUp(self): self.a = [1, 2, 3, 4, 5] self.b = ['a', 'b', 'c', 'd', 'e'] def test_equals(self): self.assertEqual(lstzip(self.a, self.b, lambda c, d: str(c) + str(d)), ...
fun foo(vararg x: Char) {} fun bar() { foo(*<caret>charArrayOf('a', 'b')) }
import {featherStart} from './test-head' import {expect} from 'chai' import * as sinon from 'sinon' describe('XHR', () => { let window, feather, sandbox, document before(async () => featherStart().then((w: any) => ( window = w, feather = w.feather, document = w.document ))) be...
using System; using NUnit.Framework; namespace CollabEdit.VersionControl.Tests { [TestFixture] public class TestCommitMetadata { [TestCase("", "", ExpectedResult = true)] [TestCase("text", "text", ExpectedResult = true)] [TestCase("text", "", ExpectedResult = false)] [TestCa...
package hk.edu.polyu.datamining.pamap2.actor /** * Created by beenotung on 1/21/16. */ class ClassifyActor { }
import datetime import math import numpy import pathlib import random import string from cryptography import x509 from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives.asymm...
use std::ops::Mul; pub mod data_type { pub fn execute() { // let i8 = 0; // let u8 = 0; // let i16 = 0; // let u16 = 0; // let i32 = 0; // let u32 = 0; // let i64 = 0; // let u64 = 0; // let i128 = 0; // let u128 = 0; // let isi...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Subject; class SubjectController extends Controller { public function index(){ $data = Subject::all(); return view('subject.subject')->with('data', $data); } public function newForm(){ return view('subject.subject_ne...
require 'spec_helper' describe LogicalQueryParser do it 'has a version number' do expect(LogicalQueryParser::VERSION).not_to be nil end it 'walks on tree' do result = LogicalQueryParser.new.parse("aa AND bb") LogicalQueryParser.walk_tree(result) do |node| expect(node).to be_a_kind_of Treetop::...
using System.Collections.Generic; using System.Drawing; using System.IO; using System.Net.Http; using System.Net.Http.Headers; using System.Threading.Tasks; using System.Web; using ImageProcessor; using Newtonsoft.Json; using Umbraco.Core.Models; namespace Gibe.Umbraco.IntelligentMedia.Azure { public class AzureVisi...
// @flow import "./setup"; import { app, Menu, ipcMain } from "electron"; import menu from "./menu"; import { createMainWindow, getMainWindow } from "./window-lifecycle"; import "./internal-lifecycle"; const gotLock = app.requestSingleInstanceLock(); if (!gotLock) { app.quit(); } else { app.on("second-instance", ...
object exports: class BitMap class InkJet class Printer { type PrinterType def print(bits: BitMap): Unit = ??? def status: List[String] = ??? } class Scanner { def scan(): BitMap = ??? def status: List[String] = ??? } class Copier { private val printUnit = new Printer { type Pri...
using System; using DeltaEngine.Core; using DeltaEngine.Datatypes; using DeltaEngine.Extensions; namespace DeltaEngine.Rendering3D.Particles { public struct ValueRange : Lerp<ValueRange> { public ValueRange(float value) : this(value, value) {} public ValueRange(float minimum, float maximum) ...
using System; using System.Net.Http; using Bit.Owin; using Microsoft.Owin.Testing; using OpenQA.Selenium.Remote; namespace Bit.Test.Server { public class OwinEmbeddedTestServer : TestServerBase { private TestServer _server; public override void Dispose() { _server.Dispose(...
package dto; import java.math.BigDecimal; import java.util.Date; import lombok.Getter; import lombok.Setter; import lombok.ToString; @ToString @Getter @Setter public class Balance { private String amountType; private BigDecimal amount; private String ccy; private Date date; private String description; }
package org.json4s private[json4s] object Segments { private[json4s] var segmentSize: Int = ParserUtil.defaultSegmentSize def apply(): Segment = { Segment(new Array(segmentSize)) } def release(s: Segment): Unit = () private[json4s] def clear(): Unit = () } private[json4s] final case class Segment(seg:...
<?php use OpenConext\Component\EngineBlockMetadata\Entity\AbstractRole; class EngineBlock_Corto_Module_Service_ProcessedAssertionConsumer extends EngineBlock_Corto_Module_Service_Abstract { public function serve($serviceName) { $response = $this->_server->getBindingsModule()->receiveResponse(); ...
require 'mgnu/sequence' module MgNu class Genbank class Location InvalidLocation = Class.new(StandardError) LocationWithRemoteAccession = Class.new(StandardError) BASERANGE_REGEX = / (?<complement>complement)?\(? (?<remote_accession>[A-Z\d\.]+:)? (?<start_continues><)? ...
# # autorake/configure.rb -- Configure scripts # require "autorake/directories" require "yaml" module Autorake class Configuration CONFIG_FILE = ".configure" attr_reader :directories attr_reader :features, :parameters attr_reader :incdirs, :headers, :macros, :libdirs, :libs def initialize...
@rule Transition(:out, Marginalisation) (q_in::Categorical, q_a::MatrixDirichlet) = begin a = clamp.(exp.(logmean(q_a) * probvec(q_in)), tiny, Inf) return Categorical(a ./ sum(a)) end @rule Transition(:out, Marginalisation) (m_in::Categorical, q_a::MatrixDirichlet) = begin a = clamp.(exp.(logmean(q_a)) * ...
package groupnet.recomposition import groupnet.euler.AbstractZone import groupnet.euler.Description import groupnet.euler.L import groupnet.euler.Label /** * Single recomposition step. * A valid step has following features: * * 1. The added contour data must be a single curve * 2. Added curve must NOT be present...
import 'package:cobble/domain/calendar/calendar_pin_convert.dart'; import 'package:cobble/domain/calendar/calendar_syncer.db.dart'; import 'package:cobble/domain/connection/connection_state_provider.dart'; import 'package:cobble/domain/db/dao/timeline_pin_dao.dart'; import 'package:cobble/domain/entities/pebble_device....
import {CommonModule} from '@angular/common'; import {NgModule} from '@angular/core'; import {RouterModule, Routes} from '@angular/router'; import {HomepageComponent} from './main/homepage.component'; const routes: Routes = [ {path: '', redirectTo: '/main', pathMatch: 'full'}, {path: 'main', component: HomepageCom...
require "rails_helper" RSpec.describe SendArticleUpdateJob do it "sends an ArticleMailer" do article = create(:article) user = create(:user) mailer = double("ArticleMailer", deliver: true) expect(ArticleMailer).to receive(:send_updates_for) .with(article, user).and_return(mailer) desc...
module Crypto.Hash.Equihash ( Proof(..) , checkProof , findProof ) where import Control.Exception import Data.Vector.Storable (Vector) import qualified Data.Vector.Storable as V import Foreign.C.Types import Foreign.ForeignPtr import Foreign.Marshal.Alloc import Foreign.Ptr import Foreign.Storable import Crypto.Hash....
module Horbits.Rematch where import Control.Lens (Getting, (^.)) import Control.Rematch import Control.Rematch.Formatting import Control.Rematch.Run import Test.QuickCheck has :: (String, Getting a s a) -> Matcher a -> (String, Matcher s) has (n, g) m = ...
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ApplicativeDo #-} module Crik.Commands.Library.Info ( libraryInfoCommandParser ) where import Control.Applicative ((<|>)) import Data.Semigroup ((<>)) import Options.Applicative import Crik.Commands.Library.Types libraryInfoCommandParser :: Mod CommandFields Library...
package com.example.mdoming15.campusalma; import android.content.Context; import android.content.res.AssetManager; import android.database.Cursor; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; impor...
using MemorizingWordsV2.Domain.Models; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace MemorizingWordsV2.Infrastructure.Configurations { public class EnglishWordConfiguration : IEntityTypeConfiguration<EnglishWord> { public void Configure(EntityTyp...
#!/bin/env bash INSTALL_BASE="/opt" INSTALL_DIR="${INSTALL_BASE}/KSP_linux" BASE_DIR="${HOME}/KSPSetup" SCRIPT_DIR="${BASE_DIR}/scripts" CKAN_LISTS="${BASE_DIR}/config" FILES_DIR="${BASE_DIR}/files" # Remove old installations ${SCRIPT_DIR}/header.sh "Removing old installations." ${SCRIPT_DIR}/rm_old_ksp.sh $INSTALL_D...
module Evaluator where import Syntax import Language import PrettyPrinter import Utils import Compiler import Data.Map as Map import Data.List as List import Control.Monad.State import Text.PrettyPrint as PP -- | Evaluates compiled program from initial state and returns all states. eval :: TiState -> ([T...
# react-native-copy-image Copy images for Android and iOS in React Native, use image from local project. ## Install - Create folder __scripts/__ from root project. ```bash mkdir scripts ``` - Clone project: ```bash cd scripts git clone https://github.com/tuantvk/react-native-copy-image.git; cd react-native-copy-im...
<?php namespace App\Models; use Core\{Model,DB,H}; class Harddelete extends Model{ protected static $_table = 'transactions'; protected static $_softDelete = true; public static function findTransactionById($id){ return self::findFirst([ "conditions" => "id = ?", "bind" => [$id] ]); } ...
#!/bin/bash # the json command here is an npm package #: here it is: https://www.npmjs.com/package/json echo 'Please fill in youe data!' read -p 'username: ' username read -p 'email: ' email read -sp 'password: ' pass1 read -sp 'password again: ' pass2 echo '' if [ $pass1 != $pass2 ]; then echo 'you passwrod_1 doe...
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Text; using Roslyn.Compilers.Internal.MetadataReader.PEFileFlags; using Roslyn.Compilers.Internal.MetadataReader.UtilityDataStructures; namespace Roslyn.Compilers.Internal.MetadataReader.PEFile { internal struc...
import Ajv from 'ajv' test('solidarity.example.json fits local schema', () => { const ajv = new Ajv() const localSchema = require('../../solidaritySchema.json') const solidarityExample = require('../../.solidarity.example.json') const valid = ajv.validate(localSchema, solidarityExample) expect(valid).toBe(t...
package org.firstinspires.ftc.teamcode.mechanisms; import com.qualcomm.robotcore.hardware.Servo; import org.firstinspires.ftc.robotcore.external.Telemetry; class QQ_TestServo extends QQ_Test { private double offLocation; private double onLocation; private Servo servo; /** * @param description s...
from utils import get_data, answers, print_answers from operator import itemgetter data = get_data(2020, 5).split('\n') find_highest = [] for ticket in data: count = 10 find_row = list(range(0, 128)) find_col = list(range(0, 8)) for t in ticket: if count > 0: r_ind = int(len(find_r...
import {Forecast} from "./Forecast"; class SpeechForecast extends Forecast { constructor( text: string, lang: number, public url: string ) { super(text, lang) } } export { SpeechForecast }
# andrew roy chen's portfolio Andrew R Chen's portfolio page circa 2015, aka Fun with Jekyll era. WIP on new page! <3
<?php namespace App\Logs; use Illuminate\Database\Eloquent\Model; class ErrorLog extends Model { const UPDATED_AT = null; protected $table = "error_log"; protected $connection = 'error'; }
using UnityEngine; using System.Collections; public class GameInfoScripts : MonoBehaviour { public void setGenderMale() { GameInformation.SpriteString = "Base Male"; GameInformation.IsMale = true; } public void setGenderFemale() { GameInformation.SpriteString...
//! # boticordrs //! //! Crate for [Boticord](https://boticord.top/) API //! ## Usage //! //! Add this to your `Cargo.toml` //! ```toml //! [dependencies] //! boticordrs = "0.1.3" //! ``` //! //! ## Example //! //! ```no_run //! use boticordrs::{BoticordClient}; //! use boticordrs::types::{BotStats}; //! //! #[tokio::m...
module LambdaCoucou.Parser where import qualified LambdaCoucou.Cancer as LC.Cancer import qualified LambdaCoucou.Command as LC.Cmd import qualified LambdaCoucou.Crypto as LC.C import qualified LambdaCoucou.Help as LC.Hlp import qualified LambdaCoucou.ParserUtils as LC.P import qualified LambdaCoucou.Remind as LC.R imp...
import React, { memo } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import { useSnackbar } from 'notistack'; import { useFetchApproval } from '../../../redux/hooks'; import Button from 'components/CustomButtons/Button.js'; import { useConnectWallet } from 'features/home/redux/hooks'; import { r...
module Parakeet.Linguistics.Misc ( isKanji , isChoonpu , isMacron , fromMacron , toMacron , toMacron' , isVowel , separator , isSeparator ) where import Data.Char (ord) import Data.List (find) import Control.Monad.Choice isKanji :: Char -> Bool isKanji = (\x -> (x >= 0x4e00 && x <= 0x9fbf) || x == k) . ord where ...
--- layout: page --- Hello this is Helen's site! You can read more [about me](/about/), have a look at my [blog](/blog/) or see my [work info](/work/)
<?php declare(strict_types=1); namespace QR\TeamleaderApiClient\Model\LevelTwoArea; /** * Class LevelTwoAreaListView. */ class LevelTwoAreaListView extends LevelTwoAreaBase { }
import warnings class ShapeError(Exception): def __init__(self, name, input_dims, expected_dims): msg = "Data fed into '{}' has {} dims; should be {}-D array".format( name, input_dims, expected_dims) super().__init__(msg) class DisconnectedError(Exception): def __init__(self, mis...
--- title: cheese categories: - lunch - dinner description: cheese for dinner type: raw bar price: '40' ---
#!/bin/bash # This script attempts to build MIMIC on an Oracle instance. # You will likely need to modify it to fit your own system, for example, # you may need to change the authentication, e.g. replace '\ as SYSDBA' with 'myusername/mypassword' # The script requires sqlldr and sqlplus # Create the tables sqlplus ...
# PHP-библиотека DiskSpace **\* Только для Unix-based систем** Проверка свободного места на диске ## Установка ```bash composer require lemurro/lib-diskspace ``` ## Использование ```php $disk_space = new \Lemurro\Lib\DiskSpace\DiskSpace(); // Лимит свободного места, в бинарной системе основанной на 1024-байтах в к...
-- file:macaddr.sql ln:28 expect:true SELECT a, b, trunc(b) FROM macaddr_data ORDER BY 2, 1
--- layout: post title: "Further Testing" date: 2021-08-16 06:11:07 -0400 permalink: testing --- #Further Testing
@include('mage2-ecommerce::forms.text',['name' => 'name','label' => 'Name']) @include('mage2-ecommerce::forms.text',['name' => 'slug','label' => 'Slug']) @include('mage2-ecommerce::forms.textarea',['name' => 'content', 'label' => 'Content', ...
package tech.mlsql.plugins.canal.util import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.scala.DefaultScalaModule import scala.util.control.NonFatal object JacksonUtil { private val _mapper = new ObjectMapper() _mapper.registerModule(DefaultScalaModule) def toJson[T](obj: ...
package edi import ( "os" "strings" "testing" ) func TestNewReader(t *testing.T) { reader := NewReader(strings.NewReader("")) if reader.Comma != '*' { t.Errorf("Reader.Comma is %c, but should be ','", reader.Comma) } } func TestNewWriter(t *testing.T) { writer := NewWriter(os.Stdout) if writer.Comma != '*'...
<?php namespace App\Helpers\Loggers; /** * Class VipLogger * * @package App\Helpers\Loggers */ class VipPostLogger extends Logger { protected static $postId = 0; protected static $loggerName = 'vipPost'; protected static function config() { static::$path = storage_path() . '/logs/vip_posts.log'; } ...
#define _GNU_SOURCE #include <assert.h> #include <ctype.h> #include <stdarg.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <stdnoreturn.h> #include <string.h> #define STR(var) #var enum { TK_NUM = 256, // numeric token TK_IDENT, // operator token TK_EOF, // e...
#!/usr/bin/env bash rm -rf lib ./node_modules/.bin/babel src --out-dir lib; chmod +x lib/simtron-cli.js;
/* MIT License Copyright 2016 Comcast Cable Communications Management, LLC 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, cop...
import { decorateVertexEvents } from '@/events/decorators'; import V from '@/utilities/Vector'; import SVG from 'svg.js'; import { GRAPHIC_TYPES, ISlideRenderer, IVertexRenderer, VERTEX_ROLES } from '../types'; type VertexRendererArgs = { slide: ISlideRenderer; scale: number; role: VERTEX_ROLES; center...
package com.devshed42.quient; import android.app.Dialog; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.CompoundButton; import android.widget.LinearLayout; import android.widget.Radi...
CREATE INDEX [WorkQueueItem_SelectByQueueStatusPage] ON [dbo].WorkQueueItem ( [WorkQueueId] ASC, [AssignedToSecurityAuthorityId] ASC, [CompletionDate] ASC, [MilestoneDate] ASC, [DueDate] ASC, [LastWorkedDate] ASC, [AddedDate] ASC, [WorkQueueItemId] ASC )
# Armadillo [![Clojars Project](http://clojars.org/armadillo/latest-version.svg)](http://clojars.org/armadillo) [![Circle CI](https://circleci.com/gh/Rumel/armadillo.svg?style=svg)](https://circleci.com/gh/Rumel/armadillo)
require 'spec_helper' describe 'mysql::server::backup' do let(:default_params) { { 'backupuser' => 'testuser', 'backuppassword' => 'testpass', 'backupdir' => '/tmp', 'backuprotate' => '25', 'delete_before_dump' => true, } } context 'standard conditions'...
/** * Flags that can be applied to item prototypes. */ declare type ItemPrototypeFlag = "draw-logistic-overlay" | "hidden" | "always-show" | "hide-from-bonus-gui" | "hide-from-fuel-tooltip" | "not-stackable" | "can-extend-inventory" | "primary-place-result" | "mod-openable" | "only-in-cursor" | "spa...
extern crate amd; // A simple test that illustrates the use of the interface to AMD. // // Identical to order.rs, except that it operates on an input matrix // that has unsorted columns and duplicate entries. fn main() { // The symmetric can_24 Harwell/Boeing matrix (jumbled, and not symmetric). // Since AMD o...
var unit__test_8h = [ [ "test_all", "unit__test_8h.html#aa1c715cac916839a95e25b65b4071c4a", null ] ];
import qualified Duce.Test.Suites.Transducer as TransducerSuite import Test.QuickCheck.Instances import Test.Tasty import Test.Tasty.HUnit import Test.Tasty.QuickCheck import Prelude main = defaultMain . testGroup "All" $ [ testGroup "Transducer" TransducerSuite.tests ]
using System.Linq; using Dapper; using StudentFollowingSystem.Models; namespace StudentFollowingSystem.Data.Repositories { public class CounselingRepository : RepositoryBase<Counseling> { /// <summary> /// Get a counseling by the appointment id joined with the appointment. /// </summar...
package bsnlp /** * Copyright 2011 The Open Source Research Group, * University of Erlangen-Nürnberg * * 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 * * ht...
abstract class TennisGame { void wonPoint(String playerName); String getScore(); }
using MonitoringApp.XF.Managers; using MonitoringApp.XF.ViewModels; using System; using System.Threading.Tasks; using Xamarin.Forms; namespace MonitoringApp.XF.Components.PnL { public class PnLPageVM : BaseViewModel { private PnLViewModel pnl; public PnLViewModel PnL { get ...
#!/bin/bash python -m sagas.graph.graph_manager create_lang_feeds it /pi/ai/seq2seq/ita-eng/ita.txt ./data/graph/ita_eng_feed.json python -m sagas.graph.graph_manager create_lang_feeds pt /pi/ai/seq2seq/por-eng/por.txt ./data/graph/por_eng_feed.json
using Test using TerminalClock using TerminalClock: n2d, COLON_LARGE, setup_timer using Dates using TOML # Taken from Prefernces.jl/test/runtests.jl function with_temp_depot(f::Function) mktempdir() do dir saved_depot_path = copy(Base.DEPOT_PATH) empty!(Base.DEPOT_PATH) push!(Base.DEPOT_PA...
# Tutorial: Versioning The goal of this example is to give you some hands-on experience with a basic machine learning version control scenario: working with multiple versions of datasets and ML models using DVC commands. We'll work with a [tutorial](https://blog.keras.io/building-powerful-image-classification-models-u...
/* * This file is part of the bladeRF project: * http://www.github.com/nuand/bladeRF * * Copyright (C) 2014 Nuand LLC * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either *...
package it.app.cie.activity.pin import android.app.Activity import android.content.Context import android.content.DialogInterface import android.os.Bundle import android.widget.Button import android.widget.EditText import androidx.appcompat.app.AlertDialog import androidx.appcompat.app.AppCompatActivity import it.app....
package models import java.util.Date case class Employee(name: String, email: String, dob: Date, companyName: String, id: Option[Int] = None)
import * as React from "react"; import styles from "./Content.module.scss"; import { Panel } from "./Panel"; import { useStores } from "../../hooks/useStores"; import { useObserver } from "mobx-react-lite"; import { Button } from "react-bootstrap"; import { Icon } from "../Icon"; export const Content: React.FC = () => ...
# Table of contents * [Introduction](README.md) ## Support * [Log Files](support/log-files.md) * [Updating](support/update.md) ## Installation * [Create Media](installation/create-media.md) * [Add-Ons](installation/add-ons.md) * [Containers](installation/docker.md) ## Hardware * [Allwinner](hardware/allwinner.md...
package org.learning.server.entity import com.fasterxml.jackson.annotation.JsonIgnore import org.learning.server.entity.base.OrganizationBase import java.io.Serializable import java.util.* import javax.persistence.* /** * 表示一个组织,一个组织下有若干的部门。 */ @Entity @Deprecated("") class Organization: Serializable { @Id ...
"""This file contains the custom exceptions necessary for the game.""" class Impossible(Exception): """Attempted the impossible"""
import {Page} from "ui/page"; import * as trace from "trace"; import tests = require("../testRunner"); trace.enable(); trace.addCategories(trace.categories.Test + "," + trace.categories.Error); let page = new Page(); page.id = "mainPage"; page.on(Page.navigatedToEvent, onNavigatedTo); function onNavigatedTo(args) ...
<?php /* * This file is part of prooph/link. * (c) prooph software GmbH <contact@prooph.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * Date: 06.12.14 - 21:26 */ namespace Application; use Application\Service\ActionController...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace PacmanWinForms { public partial class frmScores : Form { DataTable dtDriveFil...
#!/bin/sh # (C) Copyright 2005- ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # # In applying this licence, ECMWF does not waive the privileges and immunities granted to it by # virtue of its status as an in...
package com.lzhlyle.leetcode.week.no189; public class RotateArray_BruteForce { public void rotate(int[] nums, int k) { int len = nums.length; k %= len; while (k-- > 0) { int forward = nums[len - 1]; System.arraycopy(nums, 0, nums, 1, len - 1); nu...
curl -OL https://github.com/derailed/k9s/releases/download/v0.24.2/k9s_Linux_x86_64.tar.gz mkdir -p tmp/ && tar -C tmp/ -xvf k9s_Linux_x86_64.tar.gz rm k9s_Linux_x86_64.tar.gz mv tmp/k9s /usr/local/bin rm -rf tmp/
<?php declare(strict_types=1); namespace OpenIDConnect\Claims; interface Claimable { /** * @return string[] */ public function getClaims(): array; }
#!/bin/bash echo "Killing process on port 8080" sudo kill -9 $(sudo lsof -t -i:8080) echo "Done killing the process"
package me.hellofwy.v2ex.domain.interactors.impl; import java.io.IOException; import me.hellofwy.v2ex.domain.executor.Executor; import me.hellofwy.v2ex.domain.executor.MainThread; import me.hellofwy.v2ex.domain.interactors.GetMemberInfoInteractor; import me.hellofwy.v2ex.domain.interactors.base.AbstractInteractor; im...
// +build !amd64 // Package etime provides extended time primitives for systems where available. package etime import "time" // Now returns the current nanosecond. func Now() int64 { return time.Now().UnixNano() } // Duration returns the time duration between two etime.Now calls, ignoring the // second argument. f...
#!/usr/bin/perl # # tofascn.pl v1.7.4 # vim: ts=2 nowrap # # # Usage: ./tofascn.pl <FASC-N in 200-bit format> # # Converts 200-bit format FASC-N to human-readble form # use strict; use warnings; use FindBin; use lib $FindBin::Bin . '/../lib/perl/lib'; use Getopt::Long qw(GetOptions); use LogParser qw(&cook &clean); ...
/* * @flow */ import { DateTime } from 'luxon'; import type { UUID } from 'lattice'; const SEARCH_PREFIX = 'entity'; const getSearchTerm = ( propertyTypeId :UUID, searchString :string ) => `${SEARCH_PREFIX}.${propertyTypeId}:"${searchString}"`; const getSearchTermNotExact = ( propertyTypeId :UUID, searchS...
#!/bin/sh g++ -fpic -Wall -O3 -o fastmerkle.sox fastmerkle.cc -std=c++11 -shared -lpthread && \ sudo cp fastmerkle.sox /usr/local/bin
#if !defined _grab_lib_hack_h #define _grab_lib_hack_h #include <basic/bool.h> namespace omega { bool lib_hack(Conjunct *c, DNF *d, Rel_Body *rb); extern bool WANT_SEGM_FAULT; class grab_lib_hack { public: grab_lib_hack() { if (WANT_SEGM_FAULT) lib_hack(NULL, NULL,NULL); ...
/** * Created by iamhosseindhv on 04/10/2017. */ $(document).ready(function () { const newcol = $('.newcol'); const column4 = $('.column-4'); const column6Header = $('.column-6-header'); const listingScrollSummary = $('.listing-scroll-summary--inner'); const imageHeight = $('.listing-images').heig...
# # Helpers for the cookbook # # Author:: Andrew Coulton (<andrew@ingenerator.com>) # module Ingenerator module Mysql # Assigned as the default privileges for a mysql_local_admin # The ||= is to prevent warnings when chefspec reloads the helper in each run DEFAULT_ADMIN_PRIVS ||= [ 'CREATE TEMPORAR...