text
stringlengths
27
775k
// Copyright (c) 2019 Georg Brandl. Licensed under the Apache License, // Version 2.0 <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> // or the MIT license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at // your option. This file may not be copied, modified, or distributed except // according to...
//! Compiled peephole optimizations. use crate::error::Result; use crate::instruction_set::InstructionSet; use crate::integer_interner::IntegerInterner; use crate::linear::{Action, MatchOp, MatchResult}; use crate::optimizer::PeepholeOptimizer; use crate::paths::PathInterner; use peepmatic_automata::Automaton; use ser...
--- title: Gamesplanet description: Buy games & digital codes with Bitcoin. homepage: https://gamesplanet.com/ twitter: ---
namespace Menees.RpnCalc { #region Using Directives using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Text; using Menees.RpnCalc.Internal; #endregion public class EntryLineParser { #region Private Data Members privat...
import { TypeApiItem } from './TypeApiItem'; import { TypeActionData } from './TypeActionData'; import { TypeApiRequestGenerator } from './TypeApiRequestGenerator'; import { TypeApiResponseGenerator } from './TypeApiResponseGenerator'; export type TypeApiGenerator<TApi extends TypeApiItem> = { [TApiName in keyof TAp...
<?php /** * Copyright (c) 2015, Chris Harris. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this l...
<?php /** * MediatorTest.php * PHP version 5.4 * 2015-09-29 * * @package Foundry\Masonry * @category Tests * @author Daniel Mason <daniel.mason@thefoundry.co.uk> * @copyright 2015 The Foundry Visionmongers */ namespace Foundry\Masonry\Tests\PhpUnit\Core; use Foundry\Masonry\Core\Mediator; use Foundry\...
@{ ViewBag.Title = "TimeLine"; Layout = "~/Views/Shared/_amChartLayout.cshtml"; } <script src="https://www.amcharts.com/lib/4/plugins/timeline.js"></script> <script src="https://www.amcharts.com/lib/4/plugins/bullets.js"></script> <div class="row pt-3 px-4"> <div class="col-md-12"> <div class="ca...
package org.tools4j.fix import java.util.Arrays /** * User: ben * Date: 13/06/2017 * Time: 6:49 AM */ class SplitString(private val splitValues: Array<String>?) : Iterable<String> { fun allElementsOnwards(indexIncludingAndOnwards: Int, delimiter: String): String? { if (splitValues!!.size <= indexInc...
package com.temp.cube.model; import com.temp.cube.enums.Color; import com.temp.cube.enums.CubeTurnEnum; import com.temp.cube.enums.Direction; import com.temp.cube.enums.SideTurnEnum; import com.temp.cube.output.OutputManager; import com.temp.cube.turn.TurnFactory; /** * 整个立方体的抽象 */ public class Cube { /** ...
/* * Copyright 2017 The Hyve * * 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 to in writ...
using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; namespace SpaceShipSurvival { public class ShopController : MonoBehaviour { [SerializeField] private GameObject _upgradeButtonPrefab; [SerializeField] private Transform _upgradeButtonsParent; [SerializeF...
What do we mean by menu? A set of options, a selection using buttons. • Add a simple hero card, which we can add to later in the sequence, as the default • Get the current weather for Seattle. o https://graphical.weather.gov/xml/rest.php  listZipCodeList, ndfdBrowserClientByDay • Can the weather service handle ZIP c...
package user type User struct { Id string `json:"id"` Name string `json:"name"` } func (this *User) String() string { return "User(id: " + this.Id + ", Name: " + this.Name + ")" }
// pyCstruct_ptrtype.c // This file is generated by Shroud nowrite-version. Do not edit. // Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and // other Shroud Project Developers. // See the top-level COPYRIGHT file for details. // // SPDX-License-Identifier: (BSD-3-Clause) // #include "pystructmodul...
package com.lacolinares.jetpicexpress.util.navigation import android.app.Activity import androidx.compose.animation.* import androidx.compose.animation.core.FastOutSlowInEasing import androidx.compose.animation.core.tween import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.material.Exp...
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using Split.Models; namespace ...
#include "ComboBox.h" bool comboSelectItem(QComboBox* combo, const QVariant& value) { int n = combo->count(); for (int i = 0; i < n; i++) { if (combo->itemData(i) == value) { combo->setCurrentIndex(i); return true; } } return false; } QVariant comboSelectedItem(...
#!/bin/bash SESSION_BUS="org.workrave.Workrave" METHOD_ROOT="/org/workrave/Workrave" CORE_INTERFACE="$METHOD_ROOT/Core org.workrave.CoreInterface" CONTROL_INTERFACE="$METHOD_ROOT/UI org.workrave.ControlInterface" APPLET_INTERFACE="$METHOD_ROOT/UI org.workrave.AppletInterface" CONFIG_INTERFACE="$METHOD_ROOT/Core org.w...
package com.github.prologdb.async import io.kotlintest.matchers.beGreaterThanOrEqualTo import io.kotlintest.matchers.should import io.kotlintest.matchers.shouldBe import io.kotlintest.matchers.shouldThrow import io.kotlintest.specs.FreeSpec import java.util.* import java.util.concurrent.CompletableFuture import kotlin...
import execa from 'execa' import fs from 'fs-extra' import Listr from 'listr' import ncu from 'npm-check-updates' import { IProjectJson } from '..' import { writeToDest } from './copy' export const run = async ( srcDir: string, destDir: string, result: IProjectJson, isWorkSpace: boolean = false, spaceName: string...
<?php declare(strict_types=1); namespace GabrielDeTassigny\Blog\Tests\Controller\Admin; use GabrielDeTassigny\Blog\Controller\Admin\BlogInfoController; use GabrielDeTassigny\Blog\Service\Authentication\AdminAuthenticator; use GabrielDeTassigny\Blog\Service\BlogInfoService; use Phake; use Phake_IMock; use PHPUnit\Fra...
import { getCurrentHub } from '@sentry/core'; import { flush } from '@sentry/node'; import { Integration, SessionStatus } from '@sentry/types'; import { app } from 'electron'; /** Tracks sessions as the main process lifetime. */ export class MainProcessSession implements Integration { /** @inheritDoc */ public sta...
# encoding: utf-8 require 'digest/sha1' class Invite < ActiveRecord::Base belongs_to :user validates_presence_of :email, :user_id attr_accessor :used DEFAULT_EXPIRATION = 14.days validate :validate_email_registered before_create :set_token before_create :set_expires_at after_create :revoke_invite ...
using System; using System.Collections.Generic; using System.Text; namespace SistemaSolar { enum Planets { Mercury, Venus, Earth, Mars, Jupiter, Saturn, Neptune, Uranus, Pluton } public struct Position { public float x; public float y; public float z; ...
import { useControl } from '../hooks' import { Wrapper, RadioContainer, LabelContainer, RadioInput, StyledRadio } from './styles' import { GroupProps } from './Group' import React, { FC } from 'react' export type RadioProps = { checked?: boolean onChange?: (event: React.ChangeEvent<HTMLInputElement>) =...
# termanteus.com #### Special thanks A very big thanks to tiulpin and broccolini.
--- layout: custom_category author_profile: true title: Linux permalink: /categories/linux/ header: image: assets/images/banner.jpg ---
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved. package jodd.json; import jodd.datetime.JDateTime; import jodd.introspector.ClassDescriptor; import jodd.introspector.ClassIntrospector; import jodd.json.impl.ArraysJsonSerializer; import jodd.json.impl.BooleanArrayJsonSerializer; import jodd.json...
/*! * @author electricessence / https://github.com/electricessence/ * Licensing: MIT https://github.com/electricessence/TypeScript.NET/blob/master/LICENSE.md */ import {Type} from "../Types"; import {OrderedStringKeyDictionary} from "../Collections/Dictionaries/OrderedStringKeyDictionary"; import {isEnumerableOrArr...
import I18n from '../src' const mockedTranslations = { en: { hello: 'hello %{name}', not_translated: 'translate me!', beers: { one: '%{count} beer', other: '%{count} beers' }, role: { admin: 'admin', basic: 'basic' }, current: { another: 'other', curren...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Mediator { public interface IChatRoom { void Join(IParticipant participant); void Send(ChatMessage message); } public interface IParticipant { stri...
#!/usr/bin/env ruby # f(x) = x^2 + ax + b # f(0) = b; b needs to be prime and positive # f(1) = 1 + a + b; unless b = 2, |a| < b && a needs to be odd require 'prime' LIMIT = 1_000 def prime_length(a, b) prime = n = 0 begin n += 1 prime = n**2 + a*n + b end while prime.prime? n end product = max_p...
package com.packt.javapath.ch18demo; import java.util.List; public class Exercise { public static void main(String... args) { List<Integer> list = List.of(2, 3, 4); int r = list.stream().reduce(1, (x, y) -> x * y); System.out.println(r); //prints: 24 } }
Site pour immobilier, by nabz used Bootstrap Je me suis aider des lignes de https://github.com/BlackrockDigital
import istype from './istype'; class EventEmitter { private _listeners: Map<string, Function>; constructor() { this._listeners = new Map(); } on(eventKey, callback) { this._listeners.set(eventKey, callback); } remove(eventKey) { this._listeners.delete(eventKey); } trigger(eventKey, ....
import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { Subject } from 'rxjs/Subject'; @Injectable() export class pagesToggleService { //Search Toggle private _searchToggle = new Subject(); searchToggle = this._searchToggle.asObservable(); //Quickview Toggle private _quickVie...
<meta http-equiv="refresh" content="0; URL='https://twitter.com/_digitalrights'" /> You are being redirected, if that didn't work [click here](https://twitter.com/_digitalrights)
#nullable disable using System.Threading; using System.Threading.Tasks; namespace WWT.Providers { [RequestEndpoint("/wwtweb/weblogin.aspx")] public class WebloginProvider : RequestProvider { public override string ContentType => ContentTypes.Text; public override bool IsCacheable => false...
# Building a container To build the container, you must first [download the games](../games). Next, copy the downloaded games to this directory: ``` cp -r ../games/downloaded_games . ``` Now you can run `docker build`: ``` docker build --tag muniverse:VERSION . ```
#ifndef __CAMERA_H__ #define __CAMERA_H__ #include <iostream> #include <GL/gl.h> #include <assimp/cimport.h> #include <assimp/scene.h> #include <assimp/postprocess.h> #include <vectors.h> /* Camera class */ class Camera { private: Vec3 eyePos; Vec3 centerPos; Vec3 upVector; public: ...
##!/bin/bash # ############################################################################## ## ## Puropse: ## Help implement Open-Close mechanism for bash files - open for extension, ## closed for modification. Changes the PATH for the executing script and ## its child processes to include all directories ...
import scalafx.scene.input.KeyCode class Controller { private var buttons = Array.fill(8)(false) private var index = 0 private var strobe = 0 def setButtons(b: Array[Boolean]): Unit = { buttons = b } def read: Int = { var value = 0 if (index < 8 && buttons(index)) { value = 1 } ...
/** * 判断B树是不是A的子树 * 本质上树的中序遍历,判断函数是--判断两个树是否相等的变形 */ struct BinaryTreeNode{ double m_dbValue; BinaryTreeNode* m_pLeft; BinaryTreeNode* m_pRight; }; bool equalDouble(double a, double b){ if((a-b>-0.0000001)&&(a-b<0.0000001)) return true; else return false; } ...
const SYMBOL_MATCH = 'SYMBOL_MATCH' export default class TokenStream { index = 0; nodes; functionName; lastValue; rewindIndex; constructor(nodes, parent = null) { this.index = 0 this.nodes = nodes this.functionName = parent != null ? parent.value : null this.lastValue = null this.rewind...
// $Id$ // Author: Sijtsche de Jong // (c) COPYRIGHT MIT, ERCIM and Keio, 2003. // Please first read the full copyright statement in file COPYRIGHT.html package org.w3c.css.css; import java.util.ArrayList; import java.util.List; import org.w3c.css.parser.AtRule; import org.w3c.css.util.Messages; public class CssRul...
# # (c) Jan Gehring <jan.gehring@gmail.com> # # vim: set ts=3 sw=3 tw=0: # vim: set expandtab: package Rex::Cloud::Jiffybox; use strict; use warnings; use Rex::Logger; use LWP::UserAgent; use HTTP::Request::Common; use JSON::XS; use Data::Dumper; use Rex::Cloud::Base; use base qw(Rex::Cloud::Base); sub ...
DROP TABLE IF EXISTS `stats`; DROP TABLE IF EXISTS `survey`; CREATE TABLE `survey` ( `cookie` char(80) character set latin1 default NULL, `ip` char(40) character set latin1 NOT NULL, `ip4` char(40) character set latin1 default NULL, `ip6` char(40) character set latin1 default NULL, `status_a` enum('ok','slow'...
import {isTraversable} from "../../../helpers/is-traversable"; import {iteratorToMap} from "../../../helpers/iterator-to-map"; import {TwingErrorRuntime} from "../../../error/runtime"; import {isPlainObject} from "../../../helpers/is-plain-object"; /** * Return the values from a single column in the input array. * ...
<?php namespace App\Services; use App\Services\Interfaces\UserServiceInterface; use App\Services\Interfaces\ReportServiceInterface; use Illuminate\Support\Facades\Auth; use App\User; use App\Models\Role; use App\Models\TimeSheet; use App\Models\Task; use App\Models\Report; use Illuminate\Support\Facades\Hash; use Lar...
;; Maps: conj ;; When operating on a map, the conj function returns a new map with one or more key-value pairs "added". (def result {:a 1, :b 2, :c 3}) ;; Tests (println (= {:a 1, :b 2, :c 3} (conj {:a 1} result [:c 3])))
class CacheMaster ################### # CLASS METHODS ################### def self.expire_caches(work_ids) work_ids.each { |id| self.new(id).expire } end def self.record(work_id, owner_type, owner_id) self.new(work_id).record(owner_type, owner_id) end ################### # INSTANCE METHODS...
echo "printing something on the screen" echo -e "this script also has newlines.\n\nIsn't is something?" sleep 2 echo "This something went to sleep for 2 seconds!"
# 大数据相关练习、代码、实例记录(Spark,Kafka,Hadoop,Zookeeper,HBase,Hive) ## Spark练习代码 ## SparkSQLPrac 练习代码 ## SparkStreamingKafka实时计算相关代码 # 良心友情链接 [腾讯QQ群快速检索](http://u.720life.cn/s/8cf73f7c) [软件免费开发论坛](http://u.720life.cn/s/bbb01dc0)
({ "insertResponse": function (cmp, a) { $A.createComponent("actionsTest:transactionsEntry", { "transactionId":$A.getCurrentTransactionId(), "actionId":a.getId(), "state":a.getState() }, function (newCmp) { i...
--- layout: page title: About me subtitle: Make it simple, but significant! --- My name is Doãn (English name: John). I have the following qualities: - I'm good at cooking my code - I'm extremely loyal to my family What else do you need? ### mail me @ doannx@gmail.com
// Package xmlx extends the features of the encoding/xml package with a // generic unmarshallable xml structure. // // It provides a new structure, Node, which can unmarshal any xml data. This node has two useful // methods: Map and Split. // // The Map method returns a map of name, data, attributes and subnodes to //...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use\App\Models\AdminModel; use\App\Models\MasyarakatModel; use\App\Models\BeritaModel; use\App\Models\PengaduanModel; class SuperAdmin_dashboardController extends Controller { public function index() { $admins = AdminModel::count(); ...
class IncreaseLengthOfTargetUrlInAlerts < ActiveRecord::Migration def change change_column :alerts, :target_url, :string, :null=>true, :limit => 1000 end end
import { XSampleWebComponent } from './packages/showcase-sample-web-components'; customElements.define('x-sample-web-component', XSampleWebComponent);
# slacker ## NOTE: this project is unmaintained. Rust wrapper over the slack API.
INSERT INTO raw_home_data (rec_territory, cases, deaths, recovered, severe, tested, active) VALUES (%s, %s, %s, %s, %s, %s, %s) ON CONFLICT ON CONSTRAINT unique_home_entry DO NOTHING
import {ObjectMeta} from "@mittwald/kubernetes/types/meta/v1"; import {PoolSpec} from "./pool"; import {Placement} from "./placement"; export interface Gateway { type: "s3"; sslCertificateRef?: string; port?: number; securePort?: number; instances?: number; allNodes?: boolean; placement?: P...
using Revise, ScatteringTransform, Plots, LinearAlgebra pyplot() k = 2^9 t = (-1+1/k):1/k:1; size(t) # interval n = 20 # degree of polynomial testSignal = hcat([t.^i for i=0:n]...)* randn(n+1) plot(t, testSignal) layers = stParallel(2, length(testSignal)) # 11 is *way* too far out layers = stParallel(2, length...
## Sample 2: Popover Placement The `Popover` control has also the `Placement` property. Use this property to specify on which side the overlay appears. The `Placement` property can be set to `Top`, `Bottom`, `Left`, `Right` and `Auto`.
USE master IF DB_ID('cheshire') IS NOT NULL DROP DATABASE cheshire GO CREATE DATABASE cheshire GO USE cheshire CREATE TABLE tblDM ( idDM INT IDENTITY(1,1) PRIMARY KEY, tenDM NVARCHAR(100) ) GO CREATE TABLE tblTG ( idTG INT IDENTITY(1,1) PRIMARY KEY, tenTG NVARCHAR(100), imgTG NVARCHAR(100), tgVN BIT DEFAULT 1...
require 'opal' def a b end def b 2 + 2 == 5 c end def c nomethoderror end a
// Copyright (c) 2015, 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:async'; import 'dart:io'; import 'package:crypto/crypto.dart'; final _usage = 'Usage: da...
using System; using System.Globalization; using System.Text; namespace Sylphe.Utils { /// <summary> /// Separate a text string into individual tokens (lexical scanning). /// Token types: Name, String, Number, Operator, End (of input). /// Operators always use ordinal, names the given string comparison. ...
#!/bin/bash echo "This is a simple password generator" echo "Please enter the length of the password: " read PASS_LENGTH for p in $(seq 1 10); do openssl rand -base64 48 | cut -c1-$PASS_LENGTH done echo "Successfully Generated!"
const {ApolloGenerator, loadRemoteSchema} = require("graphql-ts-client-codegen"); const path = require("path"); const generator = new ApolloGenerator({ schemaLoader: async() => { return loadRemoteSchema("http://localhost:8080/graphql"); }, targetDir: path.join(__dirname, "../src/__generated"), /*...
import showModal from "discourse/lib/show-modal"; export default Ember.Component.extend({ classNames: ["bulk-select-container"], actions: { showBulkActions() { const controller = showModal("topic-bulk-actions", { model: { topics: this.get("selected"), category: this.get("cate...
package com.ge.verdict.attackdefensecollector.model; import java.util.Optional; /** Confidentiality, Integrity, or Availability (the CIA triad). */ public enum CIA { C("Confidentiality"), I("Integrity"), A("Availability"); private String fullName; private CIA(String fullName) { this.full...
import 'package:dashbook/dashbook.dart'; import 'package:flame/game.dart'; import '../../commons/commons.dart'; import 'follow_object.dart'; import 'zoom.dart'; void addCameraAndViewportStories(Dashbook dashbook) { dashbook.storiesOf('Camera & Viewport') ..add( 'Follow Object', (context) { r...
using System.Collections.Generic; using NuPattern.VisualStudio.Extensions; using NuPattern.VisualStudio.Solution.Templates; namespace NuPattern.Runtime { /// <summary> /// Represents an installed extension that provides a toolkit. /// </summary> public interface IInstalledToolkitInfo : IToolkitInfo ...
using MediatR; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity; using Opendentity.Database.Entities; using Opendentity.Domain.Models; using Opendentity.Domain.RequestPipeline; using Opendentity.OpenId.Extensions; using Opendentity.OpenId.Services; using Shamyr.Exceptions; namespace Opendentity.Do...
import pandas as pd from tklearn.datasets.base import Dataset examples = [ 'That\'s one small step for man, one giant leap for mankind.', 'When life gives you lemons, make lemonade.' ] data = { 'id': [i for i in range(len(examples))], 'text': examples, 'target': [1, 0], 'tokens': [x.split() f...
// Copyright 2021 The LUCI 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...
using System; using System.ComponentModel.DataAnnotations; namespace HotelListingAppVersion2.Models { public class CreateHotelDTO { [Required] [StringLength(maximumLength:150, ErrorMessage = "Country Name is Too Long")] public string Name { get; set; } [Required] [Strin...
import { Field, ID, Int, ObjectType } from '@nestjs/graphql'; import { CollectionModel } from './collection.model'; import { PlaceModel } from '../../places/models/place.model'; import { Collection, CollectionPlace, Place } from '.prisma/client'; @ObjectType() export class CollectionPlaceModel implements CollectionPl...
using System.Collections.Generic; using System.Linq; using System.Web; using Newtonsoft.Json; public class Ipfs { [JsonProperty("ipfsHash")] public string ipfsHash { get; set; } }
import { GameObjectType } from '../common/gameobjecttype'; export interface IGameObject { id: number; x: number; y: number; width: number; height: number; objecttype: GameObjectType; updatePos(x: number, y: number): void; }
--- layout: tagpage title: "Tag: IntelliJ" tag: IntelliJ ---
package com.journaldev.files; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.nio.file.attribute.PosixFilePermission; import java.util.HashSet; import java.util.Set; public class FilePermissions { /** * File Permissions Java Example using ...
//! //! Precision of the Measurement being Stored/Loaded //! use crate::InfluxError; use std::fmt; /// The time resolution the bucket is to keep its measurements #[derive(Debug, Clone)] pub enum Precision { /// Self explanatory nanoseconds Nanoseconds, /// Self explanatory microseconds Microseconds,...
import sha1 from 'crypto-js/sha1'; import * as sdk from '../../../dist'; const authDataObj: any = { // 测试环境鉴权参数 dev: { access_key: '6374106c5eb449a4ad6c2430f30796e6', access_secret: 'defb3f69277340d5a0b55dc4831b5edb', }, }; export default { /** * @param authMode 是否开启鉴权 * @description 初始化鉴权 和 rea...
#!/bin/bash # # Copyright (c) 2019-2020 P3TERX <https://p3terx.com> # # This is free software, licensed under the MIT License. # See /LICENSE for more information. # # https://github.com/P3TERX/Actions-OpenWrt # File name: diy-part1.sh # Description: OpenWrt DIY script part 1 (Before Update feeds) # # Uncomment a feed...
import { ScaleLinear } from "d3-scale"; import { Container } from "../../../renderer/display"; import { Text } from "../../../renderer/text"; import { AXIS_HEIGHT } from "../depth-chart"; import { FONT_SIZE } from "../depth-chart"; /** * Draws a horizontal axis at the bottom of the chart */ export class HorizontalA...
import os import numpy as np from loguru import logger import time import math import torch from torch import nn, optim from torch.nn import functional as F from torch.distributions import Normal import utils from utils.checker import * from functools import partial from utils import ph_helper from utils.ph_helper im...
# Custom Iterator look at creating a custom iterator over pages which are represented as lines. # TODO - [ ] use Enumerable as per [Design patterns in ruby - Iterator example](https://github.com/davidgf/design-patterns-in-ruby/blob/master/iterator.md) - [ ] more on pattern http://www.informit.com/articles/art...
## TODO - d.ts 文件合并 - ts-config 详细设置
package test.collections import stdhack.test.* import std.io.* import std.util.* import java.io.* import java.util.* class IoTest() : TestSupport() { fun testLineIteratorWithManualClose() { val reader = sample().buffered() try { val list = reader.lineIterator().toArrayList() assertEquals(arrayL...
#! /bin/bash docker exec -it mongo mongodump --db swipe --collection names --out /tmp/mongo-backup docker cp mongo:/tmp/mongo-backup/ .
/* libpe - the PE library Copyright (C) 2010 - 2017 libpe authors This file is part of libpe. libpe 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 version 3 of the Lic...
package gulajava.speedcepat.hitungkecepatan import android.app.Application import android.arch.lifecycle.AndroidViewModel import android.arch.lifecycle.LiveData import android.arch.lifecycle.MutableLiveData import android.content.Context import android.location.Address import android.location.Location import gulajava....
// <copyright file="SequenceStep.cs" company="natsnudasoft"> // Copyright (c) Adrian John Dunstan. 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://w...
# frozen_string_literal: true require 'rails_helper' RSpec.describe 'My::Blogs', type: :request do describe 'GET /my/blogs' do context 'When user does not logged in' do it 'is returned 302' do get my_blogs_path expect(response).to have_http_status(302) end end context 'When ...
# Класс DocumentFactory Класс `Mekras\OData\Client\DocumentFactory` позволяет создавать новые документы OData. Вместо самостоятельного создания экземпляров этого класса используйте метод [Service::getDocumentFactory](service.ru.md#getDocumentFactory). ## createEntityDocument Создаёт новый документ OData, содержащий...
package com.twllio.video.quickstart.kotlin.utils import android.media.AudioManager class AudioUtils(val audioManager: AudioManager) { }
package com.dante.kfa.ui.activity import android.app.Activity import android.content.Intent import android.os.Bundle import android.support.v7.app.AppCompatActivity import com.dante.kfa.presenter.base.BasePersenter /** * create date: 2018/12/20 */ abstract class BaseActivity<P : BasePersenter<*>> : AppCompatActivit...