text stringlengths 27 775k |
|---|
Given(/^I navigate to the email repeat demo page$/) do
click_link('email-repeat/demo')
end
Given(/^I have not filled out the email field$/) do
# Nothing to do
end
Then(/^I do not see an email repeat hint$/) do
assert_no_selector('.email-hint', :text => 'Please ensure your email address is displayed correctly be... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Extract data from sqlite database, and convert into
dict, dataframe, ...
Tong Zhang <zhangt@frib.msu.edu>
2017-10-12 14:10:56 PM EDT
"""
from argparse import ArgumentParser
import os
import sqlite3
import sys
parser = ArgumentParser(prog=os.path.basename(sys.argv[0... |
@JS('Leaflet.Util')
library leafletjs_dart.bind.Util;
import 'dart:js';
import 'package:js/js.dart';
@JS()
external int stamp(var obj);
String toJSON(JsObject obj) {
JsFunction cntx = context['JSON']['stringify'];
return cntx.apply([obj]);
}
JsObject toJs(var obj){
return new JsObject.jsify(obj);
} |
#!/bin/bash
export ROOT_HOME=/home/jooho/dev/Managed_Git/operator-projects #Update (For demo, use "/tmp")
export TMP_HOME=/tmp
# Set the release version for operator sdk
export SDK_RELEASE_VERSION=v1.4.0 #Update latest version v1.4.0
export KUSTOMIZE_VERSION=3.10.0
export OPM_VERSION=1.16.1
# Operator Info
export... |
import { StackNavigator } from 'react-navigation';
import MainTab from './MainTab';
import Preview from '../views/Preview';
const AppModal = StackNavigator({
app: MainTab,
preview: {
screen: Preview,
navigationOptions: {
gesturesEnabled: false,
},
},
}, {
mode: 'modal... |
#!/usr/bin/perl
#
# Rootnode::Password
# Rootnode http://rootnode.net
#
# Copyright (C) 2009-2012 Marcin Hlybin
# All rights reserved.
#
package Rootnode::Password;
use warnings;
use strict;
use Exporter;
use Readonly;
our @ISA = qw(Exporter);
our @EXPORT = qw(apg);
Readonly my $MINLEN => 8;
Readonly my $MAXLEN =>... |
#ifndef BULLET_H
#define BULLET_H
#include <OgreException.h>
#include <OgreConfigFile.h>
#include <OgreSceneManager.h>
#include <OgreEntity.h>
#include <OgreMeshManager.h>
#include <OgreRoot.h>
#include "creep.h"
class bullet
{
public:
bullet(std::string id, Ogre::Vector3 destination, Ogre::SceneManage... |
import React, { useEffect, useState } from 'react';
import { useManageStatus } from '../../hooks';
import {
deriveStatus,
meetingStatus,
meetingStatusToClassName,
} from '../../util';
const { EXPIRED } = meetingStatus;
function SideBarEvent({
event,
forceRender,
setClickSelected,
showModal,
}) ... |
---
title: Microsoft.Windows.Kits.Hardware.DiagnosticSummary
description: Microsoft.Windows.Kits.Hardware.DiagnosticSummary
MSHAttr:
- 'PreferredSiteName:MSDN'
- 'PreferredLib:/library/windows/hardware'
ms.assetid: 252C2265-3173-4A16-8A60-FE07032B7C27
author: EliotSeattle
ms.author: eliotgra
ms.date: 10/15/2017
ms.topi... |
struct Invariant<'a> {
f: Box<dyn FnOnce(&mut &'a isize) + 'static>,
}
fn to_same_lifetime<'r>(b_isize: Invariant<'r>) {
let bj: Invariant<'r> = b_isize;
}
fn to_longer_lifetime<'r>(b_isize: Invariant<'r>) -> Invariant<'static> {
b_isize
//~^ ERROR lifetime may not live long enough
}
fn main() {
}
|
import * as React from 'react';
import keyboardManagerContext from './keyboard_manager_context';
interface Props {
/**
* Disables input. Used for visualization.
*/
disabled: boolean,
/**
* Value of intensity reading.
*/
intensity: number,
/**
* To be called by the component... |
/*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.plugin.ij.core;
import com.intellij.openapi.module.Module;
import gw.plugin.ij.util.GosuModuleUtil;
import org.jetbrains.annotations.NotNull;
public class IJModuleNode extends UnidirectionalCyclicGraph.Node<Module> {
public IJModuleNode(@NotNull Module m... |
module Lexer where
lexer :: String -> String -> [String]
lexer [] stack = [reverse stack | not $ null stack]
lexer ('\"':xs) stack = lexStr xs $ '\"':stack
lexer (x:xs) stack
| x == ' ' || x == '\n' = if null stack
then lexer xs []
else reverse stack:lexer xs []
| otherwise = lexer xs $ x:stack... |
(ns atom-geojson-viewer.helper)
(defn html-string->dom
[html]
(let [template (.createElement js/document "template")]
(set! (.-innerHTML template) html)
(.. template -content -firstChild)))
(defn export-module
[module]
(set! (.-exports js/module) module))
|
package com.reasec.certificatepinning.trustmanager
import com.reasec.certificatepinning.model.CertificatePinningSpec
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.catchThrowable
import org.junit.Test
import java.security.KeyStore
import java.security.cert.CertificateException... |
require 'spec_helper'
describe Spanx::Helper::Timing do
class TestClass
include Spanx::Helper::Timing
end
let(:tester) { TestClass.new }
describe '#period_marker' do
let(:time) { DateTime.parse('2001-02-02T21:03:26+00:00').to_time }
before { time.to_i.should == 981147806 }
it 'returns unix ... |
/// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 limita... |
! -*- Mode: Fortran; -*-
!
! (C) 2014 by Argonne National Laboratory.
! See COPYRIGHT in top-level directory.
!
subroutine PMPIR_Error_string_f08(errorcode, string, resultlen, ierror)
use, intrinsic :: iso_c_binding, only : c_int, c_char
use :: mpi_f08, only : MPI_MAX_ERROR_STRING
use :: mpi_f08, only... |
bits 64
mov rdx,[rax]
mov eax,[byte rsp+0x01]
mov eax,[byte rsp-0x01]
mov eax,[byte rsp+0xFF]
mov eax,[byte rsp-0xFF]
mov eax,[rsp+0x08]
mov eax,[rsp-0x01]
mov eax,[rsp+0xFF]
mov eax,[rsp-0xFF]
mov rax,[rsp+56]
mov [rsi],dl
mov byte [rsi],'-'
mov [rsi],al
mov byte [rsi],' '
|
using System.Collections.Generic;
using Entitas;
using UnityEngine;
public sealed class DestroySystem : ReactiveSystem<GameEntity>
{
public GameContext _gameContext;
private IGroup<GameEventEntity> _groupGameEvent;
public DestroySystem(Contexts contexts) : base(contexts.game){
_gameContext = c... |
using System.Linq;
using Model = Discord.API.AuditLog;
using EntryModel = Discord.API.AuditLogEntry;
namespace Discord.Rest
{
/// <summary>
/// Contains a piece of audit log data related to a webhook deletion.
/// </summary>
public class WebhookDeleteAuditLogData : IAuditLogData
{
priv... |
package io.ktor.metrics
import com.codahale.metrics.*
import com.codahale.metrics.jvm.*
import io.ktor.application.*
import io.ktor.pipeline.*
import io.ktor.routing.*
import io.ktor.util.*
import java.util.concurrent.*
class Metrics(val registry: MetricRegistry) {
val baseName: String = MetricRegistry.name("ktor... |
<!--|This file generated by command(leetcode description); DO NOT EDIT. |-->
<!--+----------------------------------------------------------------------+-->
<!--|@author awesee <openset.wang@gmail.com> |-->
<!--|@link https://github.com/awesee |-->
<!... |
class CounterCacheOnPostReshares < ActiveRecord::Migration
class Post < ActiveRecord::Base; end
def self.up
add_column :posts, :reshares_count, :integer, :default => 0
if postgres?
execute %{
UPDATE posts
SET reshares_count = (
SELECT COUNT(*)
FROM posts p2
... |
import 'package:flutter/material.dart';
//import 'package:qrcode_reader/QRCode_Reader.dart';
import 'package:qrcode_reader/qrcode_reader.dart';
import 'package:http/http.dart' as http;
import 'dart:async';
import 'dart:convert';
class HomeTab extends StatefulWidget {
@override
_HomeTabState createState() ... |
import React from 'react';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableRow from '@material-ui/core/TableRow';
function TableBodyEmpty() {
return (
<TableBody>
<TableRow >
<TableCell component="th" scope="... |
import React from 'react'
import PropTypes from 'prop-types'
import { NotFoundPageTemplate } from '../../templates/404-page'
const NotFoundPagePreview = ({ entry, getAsset }) => (
<NotFoundPageTemplate
title={entry.getIn(['data', 'title'])}
subtitle={entry.getIn(['data', 'subtitle'])}
photo={getAsset(ent... |
package de.htwg.se.SE_Chess_HTWG.model.gridComponent
import de.htwg.se.SE_Chess_HTWG.model.gridComponent.Turn.Turn
import de.htwg.se.SE_Chess_HTWG.model.pieceComponent.PieceColor
import play.api.libs.json.Json
case class TurnStatus(turn: Turn) {
def this() = this(Turn.IDLE)
def pieceColorMatchesTurnColor(square:... |
// Package stockstore defines a datastore for storing stock(-chart) data.
package stockstore
import (
"errors"
"stock-service/config"
)
// StockStore saves the stock and chart data fir each route,
type StockStore struct {
config.StockStore
gainers, losers, mostActive []config.StockInfo
gainersChar... |
{-# Language Safe #-}
{-|
Module : Intcode.Parse
Description : Intcode source file parser
Copyright : (c) Eric Mertens, 2019
License : ISC
Maintainer : emertens@gmail.com
This module implements a parser for the simple comma, separated format
used in the Advent of Code input files.
-}
module Intcode.Parse ... |
using System.Windows;
namespace GitHelper.UIExtension
{
public static class Utility
{
public static bool? ShowDialog(Window window)
{
window.Owner = Application.Current.MainWindow;
return window.ShowDialog();
}
}
}
|
/*-
* #%L
* anchor-core
* %%
* Copyright (C) 2010 - 2020 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche
* %%
* 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 ... |
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using System.Collections;
using System.Collections.Generic;
public class MagicLoadSceneOnClick : MonoBehaviour
{
public void LoadSceneProjectiles()
{
SceneManager.LoadScene("magic_projectiles");
}
public void LoadScene... |
Pour réaliser Bruce, vous aurez besoin de :
- Fourniture de base pour la couture
- Environ 1 m d'un tissu adapté ([voir Options de tissu](/docs/patterns/bruce/fabric/))
- Un élastique assez large (3cm ou plus)
- Unu surjeteuse, bien que vous puissiez survivre sans
|
#!usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Blockchain module.
"""
__author__ = 'Ziang Lu'
import json
import random
from multiprocessing import Process, Queue
from string import ascii_letters, digits
from block import Block
from mining import Miner
class BlockChain:
"""
Blockchain class.
"""
... |
---
lastname: Hjalmarsson
name: anna-hjalmarsson
title: Anna Hjalmarsson
---
|
// Package ansiparser is a package for parsing strings with ANSI or VT-100 control codes.
//
package ansiparser
const bel = 7
const st = "\u001B\\"
//go:generate stringer -type=TokenType
// TokenType represents the type of a parsed token.
type TokenType int
const (
// String represents a token containing a plain s... |
// Copyright (c) 2013, Dijji, and released under Ms-PL. This, with other relevant licenses, can be found in the root of this distribution.
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows;
using Mi... |
# simp-core additions to deps-namespaced targets
#
# This is a playground for tasks that may eventually be moved to
# simp-rake-helpers or simp-build-helpers
#
require_relative 'simp_core_deps_helper'
include Simp::SimpCoreDepsHelper
namespace :deps do
desc <<-EOM
Remove all checked-out dependency repos
Uses s... |
package knf.kuma.tv.exoplayer
import android.annotation.TargetApi
import android.content.Context
import android.net.Uri
import android.os.Build
import android.os.Bundle
import androidx.leanback.app.VideoSupportFragment
import androidx.leanback.app.VideoSupportFragmentGlueHost
import com.google.android.exoplayer2.Defau... |
# bosch-heatpump-canbus
A small project using a Raspberry Pi and PiCan to read canbus messages from a Bosch Compress 6000 heat pump
Heat pump controller: rego1000
|
import React, { useCallback, useState } from "react";
import { FaChevronDown, FaChevronRight, FaCube, FaRegSquare } from "react-icons/fa";
import { ObjectsAction } from "../../utils/Types";
import { ObjectTree, SceneObject, SceneObject2D } from "../../utils/SceneObject";
import "./Explorer.scss";
interface Props {
ob... |
DROP database if exists MMRS_Data;
create database if not exists MMRS_Data;
use MMRS_Data;
create table CUSTOMER
(Username varchar(20) primary key,
Fname varchar(10),
Lname varchar(10),
Address varchar(20),
Phone_No varchar(10),
Password varchar(16)
);
create table ADMIN
(Admin_Id int primary key AUTO_INCREMENT,
Adm... |
/*
* Hackas - HACK Assembler
* HACK Assembly Instructions
*/
package co.mrzzy.nand2tetris.p1.project6;
import Symbols.SymbolPattern;
import Symbols.BuiltinSymbols;
import javax.naming.NameAlreadyBoundException
/** Represents a HACK Assembly Instruction.
*
* Can either represent a real Hack Assembly assemable ... |
using System;
using FantasyCritic.Lib.Domain;
using NodaTime;
namespace FantasyCritic.Web.Models.Responses
{
public class QueuedGameViewModel
{
public QueuedGameViewModel(QueuedGame queuedGame, IClock clock)
{
MasterGame = new MasterGameViewModel(queuedGame.MasterGame, clock);
... |
# cache2k 1.3.2.Alpha
This is a preview release for evaluation purposes and should not be used in production.
## New and Noteworthy
- Synchronous execution of expiry listener
## Possible Breakages
`Cache2kBuilder.addListener` will execute an `EntryExpiredLister` synchronously. In version
1.2 an expiry listener was... |
/** Abstract, high-level layouts. */
import { Component, h } from 'preact';
import { Link } from './primitives';
/** A helper base for components with semantic children. */
class PickyParentComponent extends Component {
/** Return the child of the given type. */
_getChild(cType, optional=false) {
let existing = t... |
#!/usr/bin/env bash
DOCKER_PORT="8082"
DOCKER_HOST="$(ip route | awk '/default/ { print $3 }')"
export TZ="${TZ:-America/New_York}"
export HOSTNAME="${HOSTNAME:-casjaysdev-ympd}"
[ -n "${TZ}" ] && echo "${TZ}" >/etc/timezone
[ -n "${HOSTNAME}" ] && echo "${HOSTNAME}" >/etc/hostname
[ -n "${HOSTNAME}" ] && echo "127.0... |
class DurationModel {
String distanceDesc;
String durationDesc;
int distance;
int duration;
DurationModel(
this.distanceDesc, this.durationDesc, this.distance, this.duration);
static List<DurationModel> fromJson(Map<String, dynamic> json) {
print("parsing data");
List<DurationModel> rs = List... |
#!/usr/bin/env bash
rm bower_components.tar.gz >&/dev/null
tar -czvf bower_components.tar.gz ./bower_components |
//
// TileModel.cpp
// CGFLib-1
//
// Created by José Ricardo de Sousa Coutinho on 28/11/13.
// Copyright (c) 2013 me. All rights reserved.
//
#include "TileModel.h"
bool TileModel::initialized = false;
Appearance* TileModel::blank = NULL;
Appearance* TileModel::selected = NULL;
Appearance* TileModel::possible =... |
"""
Compose to Image Reparameterizations
apply_gam_to_gam(gamnew::Array, gam::Array)
:param gamnew: 3-D Array describing new gamma
:param gam:: 3-D Array describing current gamma
"""
function apply_gam_to_gam(gamnew::Array, gam::Array)
# gam \circ gam0
m, n, D = size(gam);
md = 8;
mt = md*m... |
require 'juke/api'
World(Juke::API)
When /^(?:|I )get ([^\s]+)$/ do |url|
get(url)
end
When /^(?:|I )post ([^\s]+)$/ do |url|
post(url)
end
When /^(?:|I )put ([^\s]+)$/ do |url|
put(url)
end
When /^(?:|I )delete ([^\s]+)$/ do |url|
delete(url)
end
When /^(?:|I )get (.+) with:$/ do |url,name_value_pairs|
... |
---
title: Grid 网格
---
# 网格
### 基础用法
<br/>
<ClientOnly>
<grid-demo/>
</ClientOnly>
```vue
<a-row class="demo-row">
<a-col span="8">
<div class="demo-col"></div>
</a-col>
<a-col span="8">
<div class="demo-col"></div>
</a-col>
<a-col span="8">
<div class="demo-col"></div>
... |
# coding=utf-8
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import os
from six.... |
; === utils.asm
; Utility subroutines from SRAM2.
; Mostly functions related to text processing and user input.
; Given a music pointer array in HL, play the music there.
_PlayMusicFromRAM:
ld bc, $0008
ld de, $C006
call CopyData
ld a, $00
ld bc, $0004
ld hl, $C016
call FillMemory
ld a... |
# 杂文列表
## MD语法
[MD语法](/essay/MD语法.md)
## 打包React组件库并上传npm
[打包React组件库并上传npm](/essay/打包React组件库并上传npm.md) |
#--
# Ruby Whois
#
# An intelligent pure Ruby WHOIS client and parser.
#
# Copyright (c) 2009-2011 Simone Carletti <weppos@weppos.net>
#++
require 'whois/record/parser/base_afilias'
module Whois
class Record
class Parser
# Parser for the whois.publicinternetregistry.net server.
class WhoisPublici... |
// Copyright (c) 2015, the Dartino 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.md file.
library dartino_compiler.verbs.options;
import '../diagnostic.dart' show
DiagnosticKind,
... |
{-# OPTIONS_GHC -Wall #-}
module CycleRecentWS where
import Test.Hspec
import Test.Hspec.QuickCheck
import Test.QuickCheck
import XMonad.Actions.CycleRecentWS (unView)
import XMonad.StackSet (view, greedyView, mapLayout)
import Instances
import Utils (tags)
spec :: Spec
spec = do
prop "prop_unView" prop_unView
... |
require 'spec_helper'
RSpec.describe Examples::ArrayDefinitions, type: :integration do
it_behaves_like 'a builder' do
let(:expected_json) do
{
type: :array,
definitions: {
positiveInt: {
type: :integer,
minimum: 0,
exclusiveMinimum: true
... |
#ifndef TSESSION_H
#define TSESSION_H
#include "TObject.h"
class TBuffer;
class TInterface;
struct TSessionData;
class TSession : public TObject {
T_OBJECT(TSession)
public:
TSession();
~TSession();
protected:
TSession(TSessionData* data);
public:
TBuffer* in();
TBuffer* out();
public:
... |
import { HORIZONTAL_GRIP, VERTICAL_GRIP } from './base64';
import styleListeners from './styleListeners';
export default (
leftPane,
topPane,
rightPane,
bottomPane,
verticalDivider,
horizontalDivider
) => {
const leftThreshold = 30, rightThreshold = 70;
verticalDivider.sdrag(function(el, pageX, startX... |
import NvDropmenu from './main'
import NvDropmenuItem from './item'
NvDropmenu.install = Vue => Vue.component(NvDropmenu.name, NvDropmenu)
NvDropmenuItem.install = Vue => Vue.component(NvDropmenuItem.name, NvDropmenuItem)
export default {
NvDropmenu,
NvDropmenuItem
} |
/**
* Copyright (c) 2021, Veepee
*
* Permission to use, copy, modify, and/or distribute this software for any purpose
* with or without fee is hereby granted, provided that the above copyright notice
* and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI... |
2020年10月03日06时数据
Status: 200
1.李荣浩 不是嫂子是歌手杨丞琳
微博热度:449890
2.彭斯夫妇新冠检测阴性
微博热度:319686
3.郭碧婷生女
微博热度:244995
4.小彩旗晏紫东拔丝吻戏
微博热度:243870
5.黄文秀生前最后的信息
微博热度:140442
6.拜登夫妇新冠检测呈阴性
微博热度:131008
7.周周帮死者涂冻疮膏
微博热度:91257
8.实拍飞鸟圆月
微博热度:91238
9.天津女排夺冠
微博热度:91208
10.演员请就位
微博热度:91143
11.我和我的家乡票房破5亿
微博热度:91132
12.倪虹洁马苏温... |
//! A data downloader to download the flatfile historical tick archives hosted by FXCM
#![feature(rustc_attrs, conservative_impl_trait, associated_consts, custom_derive, slice_patterns)]
extern crate uuid;
extern crate libflate;
extern crate hyper;
extern crate chrono;
extern crate tickgrinder_util;
#[macro_use]
exte... |
package doandkeep.com.practice.ablum.ui;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProviders;
import androidx.paging.PagedList;
import androidx.recyclerview.widget.GridLayoutMana... |
(cl:in-package drive_ros_msgs-msg)
(cl:export '(HEADER-VAL
HEADER
SYSID-VAL
SYSID
COMPID-VAL
COMPID
TIME_DELTA-VAL
TIME_DELTA
DIST_DELTA-VAL
DIST_DELTA
DIST_ABS-VAL
DIST_ABS
VELOCITY-VAL
VEL... |
/*
* simple ReadWriteLock, implemented by using mutex's
*
* by Albert Zeyer, code under LGPL
*/
#ifndef READWRITELOCK_H
#define READWRITELOCK_H
#include <SDL.h>
#include "ThreadPool.h"
#include "Debug.h"
class ReadWriteLock {
private:
SDL_mutex* mutex;
unsigned int readCounter;
unsigned short writerWaitingFla... |
TheBusinessGrid
Improvements:
Update logo and landing page
Change setup questions from bus list to drop-down
Change content of setup questions
Email authentication after create account
Forgot password functionality
Facebook and Gmail login
Restrict users from opening session-specific pages
URL aliases
Unique users at ... |
import numpy as np
import matplotlib.pyplot as plt
fn1 = 'week_spd.txt'
fn2 = 'week_visb.txt'
fn3 = 'week_temp.txt'
fn4 = 'week_prcp.txt'
fn5 = 'week_sd.txt'
fn6 = 'week_sdw.txt'
def open_file(fn):
f = open(fn)
content = f.readlines()
f.close()
return content
def getlist(content):
#52 weeks in a year
number =... |
#!/usr/bin/env ruby
system "find . -name '*.rb' | ctags -f .tags --languages=Ruby -L -"
if File.exist? './Gemfile'
require 'bundler'
paths = Bundler.load.specs.map(&:full_gem_path).join(' ')
system "ctags -R -f .gemtags --languages=Ruby #{paths}"
end
|
export const saveConfig = (config: any) => ({
type: 'saveConfig',
payload: { ...config },
});
export const changeTheme = (nameTheme: string) => ({
type: 'changeTheme',
payload: { nameTheme },
});
export const changeStatusNotifDebug = (enabled: boolean) => ({
type: 'changeStatusNotifDebug',
payload: { enabled },... |
// Copyright 2018 Esote. All rights reserved. Use of this source code is
// governed by an MIT license that can be found in the LICENSE file.
package matrix2d
// Point represents a point in the matrix, indexed by row and column.
type Point struct {
X int
Y int
}
// Search searches a rectangular, sorted (column-wis... |
/*
* Copyright 2018 Netflix, Inc.
*
* 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... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutoMatchingExchange
{
public class LimitPriceLevel
{
public decimal LimitPrice { get; private set; } //key
public decimal TotalLevelQuantity { get; private... |
class C {
@Foo(false)
static staticMethod() {}
}
|
using NodeCanvas.Framework;
using ParadoxNotion;
using ParadoxNotion.Design;
using System;
using UnityEngine;
namespace NodeCanvas.Tasks.Conditions
{
[Category("Mecanim"), Name("Check Mecanim Int")]
public class MecanimCheckInt : ConditionTask<Animator>
{
[RequiredField]
public BBParameter<string> parameter;
... |
// Copyright 2018 Istio 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 to i... |
import styles from './Footer.module.scss';
import { Box, Typography, Divider, Link, Input } from '@mui/material';
import TwitterIcon from '@mui/icons-material/Twitter';
import InstagramIcon from '@mui/icons-material/Instagram';
import LinkedInIcon from '@mui/icons-material/LinkedIn';
import LanguageIcon from '@mui/icon... |
package deltix.containers.interfaces;
/**
* Represents an operation that accepts a single input argument and returns no
* result.
* @param <T> the type of the input to the operation
*/
public interface Consumer<T> extends java.util.function.Consumer<T> {
}
|
class FollowSerializer < ApplicationSerializer
def attributes
{
id: model.id,
user: user,
followable: followable,
created_at: model.created_at,
updated_at: model.updated_at
}
end
private
def followable
if model.association(:followable).loaded? && model.followable.pres... |
---
title: "Gist 사용"
categories:
- Blog
tags:
- [Blog, jekyll, Github, minimal-mistake, Gist]
toc: true
toc_sticky: true
date: 2021-03-31 15:10:10 +1000
last_modified_at:
---
# Gist
`코드` 나 `로그` , `메모` 등을 남기는데 사용한다고 한다 .
`짧은 코드` 를 설명하는 것이 아닌 `긴 줄의 코드` 같은 경우
`MD` 파일에 `하이라이트` 를 주는 것 보단 낫다고 생각이 듦 .
앞으로 포... |
package com.testtube.gstreporter.workers
import android.content.Context
import android.graphics.Bitmap
import android.net.Uri
import android.util.Log
import androidx.work.Data
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.google.firebase.ktx.Firebase
import com.google.firebase.storage.kt... |
<?php
namespace tests\Illuminate\Queue;
use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Queue\QueueManager;
use Illuminate\Queue\Worker;
use Mockery as m;
class WorkerTest extends \PHPUnit_Framework_TestCase
{
/**
* @var \Mockery\MockInterface
*/
protected ... |
; 10. A string of bytes is given. Obtain the mirror image of the binary representation of this string of bytes.
; Ex: The byte string is given: s db 01011100b, 10001001b, 11100101b
; The result is the string: d db 10100111b, 10010001b, 00111010b.
assume cs:code, ds:data
data segment
s db 01011100b, 10001001b, 1110... |
/*
* $Id: asn.c,v 1.57.2.3 2000/05/15 17:27:21 wessels Exp $
*
* DEBUG: section 53 AS Number handling
* AUTHOR: Duane Wessels, Kostas Anagnostakis
*
* SQUID Internet Object Cache http://squid.nlanr.net/Squid/
* ----------------------------------------------------------
*
* Squid is the result of efforts b... |
// import optional from 'vet/optional';
// import exists from 'vet/exists';
import isBoolean from 'vet/booleans/isBoolean';
// import isNumber from 'vet/numbers/isNumber';
// import isShape from 'vet/objects/isShape';
import Assert from './Assert';
import CatchError from './CatchError';
import InSeries from './InSeri... |
require 'spec_helper'
describe "the README examples" do
it 'works as announced' do
grammar = Sexpr.load(<<-YAML)
rules:
# alternative rule
bool_expr:
- bool_and
- bool_or
- bool_not
- var_ref
- bool_lit
# non-terminal
bool_... |
package org.koin.test.android
import android.arch.lifecycle.ViewModel
import org.junit.Assert.assertEquals
import org.junit.Test
import org.koin.android.viewmodel.ViewModelFactory
import org.koin.android.viewmodel.ViewModelParameters
import org.koin.android.viewmodel.ext.koin.viewModel
import org.koin.core.parameter.e... |
package com.ericampire.android.androidstudycase.data.datasource.lottiefiles
import com.ericampire.android.androidstudycase.data.room.LottieFilesDao
import com.ericampire.android.androidstudycase.domain.entity.Lottiefile
import com.ericampire.android.androidstudycase.util.Result
import kotlinx.coroutines.flow.Flow
impo... |
mod color;
pub mod palette;
pub mod terminal_theme;
pub mod triplet;
pub use self::color::*;
|
kconfig_default_configure() {
yes '' | make oldconfig
}
kconfig_default_build() {
msg "Build procs: '$MK_NPROC'"
make -j $MK_NPROC
}
kconfig_default_install() {
local targets=install
if grep -q '=m$' .config; then
targets="modules_install $targets"
fi
mkdir -p $MK_DESTDIR/boot
make $targets \
INSTALL_PA... |
mod bystate;
mod digital_cypher_vol_3;
mod easy_diagonal;
mod float_point_approx;
mod position_average;
mod rainfall;
mod reducing_by_steps;
mod steps_in_primes;
fn main() {}
|
package br.com.andretortolano.shared.di
interface SharedDependenciesProvider {
fun getNumberTriviaURL(): String
fun isDebug(): Boolean
} |
use clap::Parser;
mod convert;
mod demux;
mod editor;
mod export;
mod extract_rpu;
mod generate;
mod info;
mod inject_rpu;
mod mux;
pub use convert::ConvertArgs;
pub use demux::DemuxArgs;
pub use editor::EditorArgs;
pub use export::ExportArgs;
pub use extract_rpu::ExtractRpuArgs;
pub use generate::GenerateArgs;
pub u... |
<?php
namespace App\Http\Controllers;
use App\Entities\Company;
use App\Entities\Country;
use App\Services\Company\CompanyIndex;
use App\Services\Company\CompanyStore;
use App\Services\Company\CompanyUpdate;
use Dingo\Api\Exception\StoreResourceFailedException;
use Session;
use Illuminate\Http\Request;
class Company... |
#include <sxc/tui.hpp>
TUI::TUI(std::wstring * input)
: m_input{input}
, m_container{ftxui::Container::Vertical({})}
, m_msg_count{0}
, m_index{-1}
, m_screen{ftxui::ScreenInteractive::Fullscreen()}
{
}
/**
* Initialize the interactive components of the renderer and display it
*
* @param on_enter Callback on ... |
cd src
bash run.sh ../examples/sample1.html ../examples/sample1.tex
cd ../examples/
pdflatex -interaction=nonstopmode sample1.tex
rm sample1.aux sample1.log sample1.out
cd .. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.