text stringlengths 27 775k |
|---|
#|
This file is a part of Maiden
(c) 2017 Shirakumo http://tymoon.eu (shinmera@tymoon.eu)
Author: Nicolas Hafner <shinmera@tymoon.eu>
|#
(in-package #:maiden-user)
(defpackage #:lichat-cmd
(:nicknames #:org.shirakumo.maiden.clients.lichat.cmd)
(:use)
(:export
#:update
#:ping
#:pong
#:connect
#... |
package com.mhuman.movieplot.data.local.setting
import com.mhuman.movieplot.data.local.SettingDataSource
import com.mhuman.movieplot.network.model.SettingInfoResult
import io.reactivex.disposables.Disposable
class SettingInfoRepository(
private val dataSource: SettingDataSource
) : SettingDataSource {
overri... |
class TutorsController < ApplicationController
before_action :find_tutor, only: [:show, :edit, :update]
def search
if params[:tutor]
methods = params[:tutor][:methods]
@tutors = Tutor.send_chain(methods)
else
@tutors = Tutor.all
end
end
def index
if params[:tutor]
meth... |
<?php
$file = 'templates/' . $_GET['name'];
$contents = file_get_contents($file);
$xml = simplexml_load_string($contents);
$resp = (string)$xml->ResponseType;
$attr=array();
foreach ($xml->QueryParams->Param as $param){
$attr[(string)$param->attributes()] = (string)$param;
}
ech... |
package snakesladders.consumers
import scala.concurrent.duration._
import scala.language.postfixOps
import akka.actor.ActorSystem
import akka.testkit.{ImplicitSender, TestKit}
import org.scalatest.{BeforeAndAfterAll, Matchers, WordSpecLike}
import snakesladders.domain.events.{CurrentPlayerChanged, GameEvent, PlayerMu... |
# Voids
Voids was created to match the existing PHP datatypes. It is 100% worthless don't use it. |
package conf
import (
"time"
)
type Looker interface {
Lookup(name string) Flag
}
type Mapper interface {
Looker
Parse()
GetUint16(name string) (uint16, bool)
GetDuration(name string) (time.Duration, bool)
}
type Flag interface {
Changed() bool
}
type mapper func(name string) Flag
type Uint16 interface {
... |
using System;
using System.Collections.Generic;
namespace IoTConnect.Model
{
/// <summary>
/// Device result.
/// </summary>
public class SingleResult
{
/// <summary>
/// Device guid.
/// </summary>
public string Guid { get; set; }
/// <summary>
/// ... |
//! CAN and FD-CAN support.
//!
//! The module implements CAN and CAN-FD support using the [fdcan] crate.
//!
//! # Message RAM
//!
//! The Message RAM allocation is fixed as follows
//!
//! | Section | Size
//! | --- | ---
//! | Standard 11-bit filters | 28
//! | Extended 29-bit filters | 8
//! | Rx FIFO 0 | 3 element... |
use ethabi;
use futures::{Async, Future, Poll};
use serde;
use std::mem;
use crate::contract;
use crate::contract::tokens::Detokenize;
use crate::helpers;
use crate::rpc;
use crate::types::Bytes;
use crate::Error as ApiError;
#[derive(Debug)]
enum ResultType<T, F> {
Decodable(helpers::CallFuture<Bytes, F>, ethabi... |
#ifndef _FACE_CENTERFACE_H_
#define _FACE_CENTERFACE_H_
#include <vector>
#include "MNN/Interpreter.hpp"
#include "MNN/ImageProcess.hpp"
#include "MNN/MNNDefine.h"
#include "MNN/Tensor.hpp"
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
struct FaceInfo {
cv::Rect face_;
float score_;
float keypoints_... |
default rel
section .data
extern _rax
extern _rcx
extern _rdx
extern _rbx
extern _rsp
extern _rbp
extern _rsi
extern _rdi
extern _r8
extern _r9
extern _r10
extern _r11
extern _r12
extern _r13
extern _r14
extern _r15
extern _rip
extern _reg_size8
extern __rax
extern __rcx
extern __rdx
extern... |
import { context, trace } from '@opentelemetry/api';
export function Span(name?: string) {
return (
target: any,
propertyKey: string,
propertyDescriptor: PropertyDescriptor,
) => {
const method = propertyDescriptor.value;
// eslint-disable-next-line no-param-reassign
propertyDescriptor.valu... |
import Diagrams.Prelude
import Diagrams.Backend.Cairo.CmdLine
type D = AnnDiagram Cairo V2 Double Any
p :: Trail V2 Double
p = fromOffsets [(1,2), (1,-5)]
burst n = close . mconcat . take n . iterate (rotateBy (-1/(fromIntegral n))) $ p
sun = (strokeT $ burst 25)
# lineJoin LineJoinRound
# fc yellow
... |
import { performance } from 'perf_hooks';
import { Context } from '@azure/functions';
import { Request, Response } from 'express';
export function setHeaders(res: Response, context: Context) {
context.res = context.res || ({} as Record<string, any>);
context.res.headers = Object.assign(
res.getHeaders() || {},... |
---
path: /blog/my-first-post
date: '2017-11-07'
title: My first blog post edited
---
|
# flappy-bird_clone
TAMZ course project in JS.
You can try it [here](http://cmoud94.tode.cz/).
# License
This project uses [MIT License](LICENSE).
|
package com.andres.multiwork.pc.utils;
public interface Importer {
public void importData();
}
|
import * as assert from 'assert'
import { configureWorkflow, MemoryPersistenceProvider, ConsoleLogger } from '@huksley/workflow-es'
import { emitter, SampleWorkflow } from '../src/main'
describe('main.ts', () => {
it('can start workflow', async () => {
return new Promise(async resolve => {
const config = ... |
const { Event } = require("klasa");
/*
* Event watches for deleted starboard messages and updates the data as not to cause
* Margarine to crash if another reaction was added to the original message.
*/
module.exports = class extends Event {
constructor(...args) {
super(...args, {
name: "st... |
const { prime, load, flush } = require('../lib/load')
const wait = t => new Promise(r => setTimeout(r, t))
module.exports = async (test, assert) => {
test('runs', async () => {
let i = 0
const loader = async () => {
await wait(100)
return { value: 'runs' }
}
function component () {
... |
---
layout: post
title: "Linux 操作系统:zip压缩"
subtitle: "《Linux 操作系统》zip 用法介绍"
date: 2020-04-04 15:36:00
author: "chanweiyan"
header-img: "img/cwy/post-bg/unix-linux.jpg"
catalog: true
tags:
- Linux
- Shell
---
#### 获取帮助信息
```bash
zip -h
unzip -h
man zip
man unzip
```
#### zip 压缩
```bash
# 压缩当... |
import { BagItem } from '@/types/bagItem'
import { useState, useContext, createContext } from 'react'
interface Result {
title: string
message: string
status: string
}
interface BagContextInterface {
bag: BagItem[]
fetchBag: () => Promise<void>
fetchBagOnSignIn: () => Promise<void>
addToBag: (item: BagI... |
namespace MyMovieDb.App.Common.Constants
{
public static class ActionNames
{
//public const string
}
}
|
# ACF Color Palette


|
using System;
namespace Qkmaxware.Geometry.Coordinates {
/// <summary>
/// 3D vector in cylindrical coordinates
/// </summary>
public class CylindricalCoordinate {
/// <summary>
/// Distance from the origin
/// </summary>
/// <value>distance</value>
public double Distance {get; private set;}
... |
function route(pathName) {
console.log("pathName:" + pathName);
}
exports.route = route; |
def read_file(file_name)
file = File.open(file_name, "r")
data = file.read
file.close
return data
end
file_name = "input.txt"
arr = read_file(file_name).split(",").map(&:to_i)
min_fuel = 999999999999999
for j in arr.min..arr.max
fuel = 0
for i in 0...arr.size
r = [arr[i], j].max - [arr[i], j].min
... |
class Symbol
def to_string(prev="")
"#{prev}#{self.to_s}"
end
def sanitize
self.to_s.sanitize
end
end |
// This file was generated by go generate; DO NOT EDIT
package language
// NumCompactTags is the number of common tags. The maximum tag is
// NumCompactTags-1.
const NumCompactTags = 710
var specialTags = []Tag{ // 2 elements
0: {lang: 0x61, region: 0x6d, script: 0x0, pVariant: 0x5, pExt: 0xe, str: "ca-ES-valencia"... |
//! A hash map implementation with consistent ordering.
//!
//! The types in this module are commonly used as the underlying data structure
//! of arbitrary objects found in JSON API data.
use std::fmt::{self, Debug, Formatter};
use std::hash::Hash;
use std::iter::FromIterator;
use std::ops::RangeFull;
use ordermap::... |
let playedDivs = [...document.getElementsByTagName("div")]
.filter(div => div.hasAttribute("played") && div.title)
.map(div => div.textContent)
// .map(element => console.warn('2', element))
let clipBoardValue = `// ${window.location}\n\n`
clipBoardValue += `let artistsToLoad = ${JSON.stringify(playedDivs)};\n\n`
cl... |
import { Component,Injectable } from '@angular/core';
import {HttpClient} from '@angular/common/http';
let url = 'ailab-manager/v1';
@Injectable()
export class TagService {
//url = 'ailab-manager/v1/';
//http;
constructor(private http:HttpClient) {
//this.http = HttpClient;
}
getTags(){
return this.ht... |
using Deltix.Timebase.Api.Utilities.Binding;
namespace TimebaseSample
{
public class TypeMap
{
public static readonly TypeLoader TYPE_LOADER = new TypeLoader();
static TypeMap()
{
TYPE_LOADER.AddType(typeof(Activity));
}
}
}
|
package com.lernoscio.rover;
import com.lernoscio.rover.Rover;
import com.lernoscio.rover.environment.Coordinates;
import com.lernoscio.rover.environment.Direction;
import com.lernoscio.rover.environment.Room;
import com.lernoscio.rover.environment.Door;
import com.lernoscio.rover.environment.Stair;
import org.junit.A... |
<?php
use Src\BookCrawlers\TenlongCrawler;
/**
* Class TenlongCrawlerTest
*
* 爬蟲的套件使用方式請參考:@link https://github.com/voku/simple_html_dom
*
* 請完成以下使用案例:
* 1. 使用者搜集的書籍名稱:「領域驅動設計」;系統透過爬蟲向天瓏圖書執行關鍵字搜尋;爬蟲找到書籍並擷取出書籍內容(單本)
* 2. 使用者搜尋「Object-oriented 物件導向」分類的書籍;系統透過爬蟲向天瓏圖書執行分類搜尋;爬蟲找到書籍並擷取出書籍內容(多本)
*
* 請依照使用案例開出來的需求規... |
<?
/* this ALL needs to be PHP!! otherwise it won't load in JS properly
and this doesn't do anything at all
*/
?> |
package etcd
import (
"context"
"github.com/rancher/support-bundle-kit/pkg/simulator/certs"
"go.etcd.io/etcd/clientv3"
"io/ioutil"
"os"
"testing"
"time"
)
// TestRunEmbeddedEtcdWithoutCerts will run an embedded ETCD server without TLS and try to create and read a kv pair
func TestRunEmbeddedEtcdWithoutCerts(t ... |
filterList([], [], _).
filterList([E|T], R, E) :- filterList(T, R, E).
filterList([H|T], [H|R], E) :- not(H = E), filterList(T, R, E).
listMember([H], H).
listMember([H|_], H).
listMember([H|T], M) :- not(H = M), listMember(T, M).
prod([], 1).
prod([_|T], N) :- prod(T, N).
prod([H|T], N) :- not(0 is N mod H), prod(T,... |
/*
* Copyright 2020 Google LLC.
*
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
*
* Code distributed by Google as part of this project is also subject to an additional IP rights
* grant found at
* http://polymer.github.io/PATENTS.txt
*/
package arcs.a... |
echo "MySQL Database Connection Configuration"
read -p "DB_HOST: " db_host
read -p "DB_NAME: " db_name
read -p "DB_USERNAME: " db_username
read -p "DB_PASSWORD: " db_password
echo "Creating database based on variables"
mysql << EOF
CREATE DATABASE IF NOT EXISTS $db_name;
EOF
echo "Database name created"
mysql << EOF
C... |
export default {
noWobble: { stiffness: 170, damping: 26 },
gentle: { stiffness: 120, damping: 14 },
wobbly: { stiffness: 180, damping: 12 },
stiff: { stiffness: 210, damping: 20 }
};
|
use seq_io::prelude::*; // needed to import necessary traits
use seq_io::fastq::{Reader};
use std::io;
use std::collections::HashMap;
use fasthash::RandomState;
use std::hash::{Hash, Hasher};
use fasthash::{sea, SeaHasher};
fn main() {
let mut reader = Reader::new(io::stdin());
let mut stdout = io::stdout();
let ... |
# SBX JSON-RPC library
A sub package of [sbx](http://www.github.com/techworker/sbx)
This is the JSON-RPC communication library of for the SBX family that provides
access to remote endpoints related to the [PascalCoin](https://www.pascalcoin.org)
BlockChain project.
## Installation
`npm install @pascalcoin-sbx/json... |
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Models\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
class ProfileController extends Controller
{
public function getProfile... |
<?php
/**
* Request.
*
* Handler to output ListTemplate.
*
* PHP Version 7
*
* @category Response
* @package Alexa
* @subpackage Response\Display
* @author Peter McDonald <tutorials@alexabible.com>
* @license https://opensource.org/licenses/MIT MIT
* @link https://alexabible.com
* @since... |
/*
* @Author: 时光弧线
* @Date: 2017-12-30 11:55:19
* @Last Modified by: 时光弧线
* @Last Modified time: 2017-12-30 13:13:07
*/
package tcplibrary
import (
"golang.org/x/net/websocket"
)
/* websocket的连接处理,涉及到包内容解析,所以单独新建文件 */
// 用于websocket的连接处理函数
func (ws *WebSocketServer) handleConn(conn *Conn) {
defer func() {
i... |
import { FolderListModule } from './folder-list.module';
describe('FolderListModule', () => {
let folderListModule: FolderListModule;
beforeEach(() => {
folderListModule = new FolderListModule();
});
it('should create an instance', () => {
expect(folderListModule).toBeTruthy();
});
});
|
object fmSizesPosition: TfmSizesPosition
Left = 258
Top = 262
BorderStyle = bsToolWindow
Caption = '{Sizes and position}'
ClientHeight = 184
ClientWidth = 370
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Name = 'Segoe UI'
Font.Size = 9
Font.Quality = fqClearTyp... |
namespace Platform.VirtualFileSystem
{
public interface ITempIdentityFileService
: IService
{
IFile GetTempFile();
IFile GetOriginalFile();
}
}
|
import { INotificationsState } from './notifications.state';
import { notificationsAdapter } from './notifications.adapter';
export const NotificationsDefaultState: INotificationsState = notificationsAdapter.getInitialState({
ids: [],
entities: {}
});
|
package com.soyle.stories.domain.scene.events
import com.soyle.stories.domain.scene.Scene
abstract class SceneEvent {
abstract val sceneId: Scene.Id
} |
import {React, useState } from "react";
import { useNavigate } from "react-router";
const Class = () => {
const [item, setItem] = useState({
class_id: 1,
class_name: "Morning Zen",
class_duration: "1 hour",
max_class_size: 15,
class_date: "2021-11-17T05:00:00.000Z",
start_time: "08:00:00",
... |
import * as React from 'react';
import { connect } from 'react-redux';
import { Redirect } from 'react-router-dom';
import { createSelector } from 'reselect';
import { redirected } from '../store/actions/redirect';
import { getSwipe } from '../store/selectors/swipe';
import { getRedirect } from '../store/selectors/use... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var InstructionType;
(function (InstructionType) {
InstructionType[InstructionType["set"] = 0] = "set";
InstructionType[InstructionType["add"] = 1] = "add";
InstructionType[InstructionType["remove"] = 2] = "remove";
})(InstructionT... |
# Copyright 2014 PerfKitBenchmarker Authors. 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 appli... |
package main
import (
"bufio"
"fmt"
"regexp"
"os"
"strconv"
)
func main() {
if len(os.Args) < 2 {
return
}
infile, err := os.Open(os.Args[1])
if err != nil { return }
defer infile.Close()
scanner := bufio.NewScanner(infile)
reOuter, _ := regexp.Compile(`^(\w+) \((\d+)\)(?: -> )?(.*)`)
re... |
package datasource
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNullDataSource(t *testing.T) {
d := NewNullDataSource()
assert.True(t, d.IsInitialized())
ch := make(chan struct{})
d.Start(ch)
_, ok := <-ch
assert.False(t, ok)
assert.Nil(t, d.Close())
}
|
;;;; Spy
;;;;
;;;; Peek into the internal state of the compositor.
(defpackage :mezzano.gui.spy
(:use :cl)
(:export #:spy #:spawn)
(:local-nicknames (:sync :mezzano.sync)
(:gui :mezzano.gui)
(:comp :mezzano.gui.compositor)
(:font :mezzano.gui.font)
... |
require 'rails_helper'
RSpec.describe TagsController, type: :controller do
describe '#index' do
before do
create(:blog)
@tag = create(:tag)
@tag.contents << create(:article)
end
describe 'normally' do
before do
get 'index'
end
specify { expect(response).to be... |
/*Lab2: Shell-Part2
Name: Kristian Villanueva
Last Modification: 10/8/17
*/
#ifndef MYTOC_H_
#define MYTOC_H_
char ** mytoc(char *str, char delim);
#endif /* MYTOC_H_ */
|
package provider
import (
"fmt"
)
type CodeError struct {
code int
message string
err error
}
func (e CodeError) Error() string {
return fmt.Sprintf(" [%d] :%s (%s)", e.code, e.message, e.err.Error())
}
|
(defproject freqt "0.3.1"
:description "Implementation of the freqt (frequent subtree discovery) algorithm."
:license "ljos.mit-license.org"
:dependencies [[org.clojure/clojure "1.5.1"]]
:profiles {:dev {:dependencies [[midje "1.5.1"]]}})
|
# Copyright 2014, Jeff Buttars, A10 Networks.
#
# 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 appli... |
package org.getalp.dbnary.languages.fra.morphology;
public class Utils {
public static String standardizePronunciation(String p) {
p = p.trim();
if (p.startsWith("\\"))
p = p.substring(1);
if (p.endsWith("\\"))
p = p.substring(0, p.length() - 1);
return p;
}
}
|
#!/bin/sh
#
# Copyright (c) 2015 Christian Couder
# MIT Licensed; see the LICENSE file in this repository.
#
test_description="Test docker image"
. lib/test-lib.sh
# if in travis CI on OSX, docker is not available
if ! test_have_prereq DOCKER; then
skip_all='skipping docker tests, docker not available'
test_done
... |
#!/bin/sh
###
set -e
#
if [ $(whoami) != "root" ]; then
echo "${0} should be run as root or via sudo."
exit
fi
#
INAME="badapple"
CNAME="${INAME}_container"
#
###
# Stop and clean up.
docker stop ${CNAME}
docker ps -a
docker rm ${CNAME}
docker rmi ${INAME}
#
|
class AddAutoIncrementInPodcast < ActiveRecord::Migration[6.0]
def change
change_column :podcasts, :id, :integer, limit: 8, auto_increment: true
end
end
|
class SpeedSource {
constructor(eegReceiver) {
this.eegReceiver = eegReceiver
this.speed = 0
this.eegReceiver.on('data', data => {
if (this.stopping) return
this.speed = data.eSense.attention
if (this.speed < 0) this.speed = 0
console.log(`eeg: attention=${data.eSense.attention}`)... |
+++
title = "Menu"
description = ""
weight = 1
+++
A slideout menu plugin for Advanced Slides to quickly jump to any slide by title.

{{%alert%}} To enable Menu you have to enable the Plugin in Advanced Slides Settings{{%/alert%}} |
package twitch
import (
"fmt"
"math/rand"
"time"
"github.com/maliur/sodaville/database"
)
func lsCmd(event *IRCEvent, db *database.Database) (string, error) {
msg, err := db.GetAllCommands()
if err != nil {
return "", err
}
return msg, nil
}
func addCmd(event *IRCEvent, db *database.Database) (string, er... |
________________________________________________________________________
This file is part of Logtalk <https://logtalk.org/>
Copyright 1998-2021 Paulo Moura <pmoura@logtalk.org>
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in ... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MeleeAttack : Move
{
public List<GameObject> HitBoxes;
// Start is called before the first frame update
void Start()
{
foreach (GameObject hitBox in HitBoxes)
{
hitBox.GetComponent... |
using UnityEngine;
public class AudioController {
private static AudioController INSTANCE;
private AudioSource source;
private Playlist playlist;
public static AudioController GetInstance() {
if (INSTANCE == null) {
INSTANCE = new AudioController();
}
return INSTANCE;
}
public void LoadPlaylist(Au... |
/*
State management for token persistence in the application mainly ACCESSTOKEN.
*/
import { StoreFromSlice, PersistOptionsSlice } from '../utils/store';
export interface TokenSlice {
// states
accessToken: string;
// actions
setAccessToken: (accessToken: string) => void;
// partial actions
_clearAccessTo... |
package utils;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;
public class ConnectionUtil {
private static ConnectionUtil cu = null;
private static Properties props;
//private co... |
## 1.3.2
- Updated `eslint-config-adidas-es8` semver to patch.
## 1.3.1
- Disabled `prefer-named-capture-group`.
# 1.3.0
- Updated ESLint to version 7.
- Added rules:
- `prefer-named-capture-group`
- `prefer-object-spread`
## 1.2.1
- Updated `eslint-config-adidas-es8` semver to patch.
# 1.2.0
- Updated ESL... |
/*
* Copyright (c) 2011, 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.
*/
/**
* @assertion We define inherited(J, K) to be
* the set of members m such that all of the fo... |
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.1.53-community-log - MySQL Community Server (GPL)
-- Server OS: Win64
-- HeidiSQL Version: 8.3.0.4694
-- ----------------------------------------------... |
# The name of our algorithm
image=$1
MODEL=$2
DATASET=$3
if [ "$image" == "" ]
then
echo "Usage: $0 <image-name>"
exit 1
fi
cd container
cp -r ../deployement .
cp -r ../pyproject.toml .
cp -r ../poetry.lock .
cp -r ../train deployement
cp -r ../src deployement/
pip install poetry
poetry export -f requireme... |
package org.comroid.spiroid.chat;
import org.comroid.api.Specifiable;
public interface Notifier extends Specifiable<Notifier> {
void sendMessage(MessageLevel level, String message);
}
|
import Vue from 'vue';
import Vuex from 'vuex';
import axios from 'axios';
import { groupBy, map } from 'lodash-es';
Vue.use(Vuex);
const store = new Vuex.Store({
state: {
funds: 0,
offer: [],
ticket: {},
tickets: [],
bonus: 0
},
getters: {
getFunds(state) {
return state.funds;
... |
package ru.qiwi.devops.mission.control.service.health.cluster
interface ClusterHealthMonitorSource {
fun getMonitor(clusterName: String): ClusterHealthMonitor
} |
<?php
use Norm\Schema\String;
use Norm\Schema\Date;
return array(
'schema'=> array(
'tanggal'=> Date::create('tanggal')
),
); |
#!/bin/bash
if [ $# != 1 ]; then
exit 1
fi
cd $(dirname $0)
mkdir -p tests
node ~/local/bin/TestGetter.js -t $(pwd)"/tests" -u $1
echo -e "cmake_minimum_required(VERSION 3.0.0)
project($(basename $(pwd)) VERSION 0.1.0)
include(CTest)
enable_testing()
add_executable($(basename $(pwd)) main.cpp)
set(CPACK_PROJECT... |
class SendNewCycleHasStartedEmailToCandidate
def self.call(application_form:)
return if already_sent_to?(application_form)
CandidateMailer.new_cycle_has_started(application_form).deliver_later
ChaserSent.create!(chased: application_form, chaser_type: :new_cycle_has_started)
end
def self.already_sent... |
#!/usr/bin/perl
##########
#The MIT License (MIT)
#
# Copyright (c) 2015 Aiden Lab
#
# 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 righ... |
# Changelog
## [0.2.1] - 2021-07-04
- Fix `genbu.usage`.
- `Genbu` now raises `UnsupportedCallback` if callback has no
signature.
- Added: `"..."` in the `params` list tells Genbu to infer `Param`s
from the callback's signature and to use the other `Param`s in the
list to override the default `Param... |
using System.Collections.ObjectModel;
using OpenQA.Selenium;
using Selenium.WebDriver.Equip;
namespace TestWebPages.UIFramework.Pages
{
public class AjaxyControlPage : BasePage , IPage
{
public static string Url = "http://rickcasady.com/SeleniumExtentions/v1.0/TestWebPages/AjaxyControl.html";
... |
---
title: Spreadsheet
description:
repourl: "/repo/spreadsheet"
---
|
from collections import Counter
from typing import List
import re
import random
class NgramLM(object):
"""N-Gram Language Model
:param n: Size of the n-gram, e.g., n=2 bigrams
:type n: int
:param nlp: Tokenizer, default spacy.lang.en.English
"""
def __init__(self, n: int=2, nlp: object=None)... |
---
"@zioroboco/phyla-task": minor
---
Clone the task generator's own package.json
|
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Nucleo.EventArguments
{
[TestClass]
public class ObjectPropertyChangedEventArgsTest
{
#region " Tests "
[TestMethod]
public void CreatingEventArgsAssignsValuesCorrectly()
{
... |
import javax.swing.{JFrame, JButton, JMenuItem, JMenuBar, JMenu}
import java.awt.event.{ActionListener, ActionEvent}
class Application{
def saveDocument(file: String, data: String) =
println(s"Save document to file $file")
def openFile(file: String) =
println(s"Open file = $file")
def printDocument()... |
import os
import subprocess
import tempfile
import pandas as pd
from dsc import dsc_io
import rpy2.robjects as robj
import rpy2.robjects.vectors as rvec
from rpy2.robjects.packages import importr
from rpy2.robjects.conversion import localconverter
from rpy2.robjects import numpy2ri
numpy2ri.activate()
from rpy2.robje... |
/**
* A mocked version of Onedata RPC service.
* For properties description see non-mocked `services/onedata-rpc`
*
* @module services/mocks/onedata-crpc
* @author Michal Borzecki
* @copyright (C) 2018 ACK CYFRONET AGH
* @license This software is released under the MIT license cited in 'LICENSE.txt'.
*/
import... |
class WeeklyIterationRecommender
def initialize(user:, sorted_recommendable_videos:)
@user = user
@sorted_recommendable_videos = sorted_recommendable_videos
end
def recommend
suggestor.
next_up.
present do |video|
create_recommendation(video)
enqueue_email_for(video)
... |
// Copyright © 2018 MG <mailtomasterg@gmail.com>
//
// 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, modify, me... |
/*****************************************************************************
* Copyright (C) Queen's University Belfast, ECIT, 2016 *
* *
* This file is part of libsafecrypto. *
* ... |
#!/usr/bin/env bash
pushd .
mkdir -p ~/dev
pushd dev
if [ ! -d or-tools ]; then
wget https://github.com/google/or-tools/archive/v6.7.1.zip --quiet -Omaster.zip \
&& unzip master.zip -d . \
&& rm master.zip \
&& mv or-tools-6.7.1 or-tools
fi
pushd or-tools \
&& export LD_LIBRARY_PATH=$LD_LIBRARY_PATH... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.