text stringlengths 27 775k |
|---|
import { connect } from 'react-redux'
import { generate } from 'shortid'
import { setOrderDelivered, addOrder } from './ordersActions'
import OrderList from './OrderList'
const mapStateToProps = ({ orders, environments }, { match }) => {
const environment = match.params.environment
if (!environments[environment])... |
from concurrent.futures.process import ProcessPoolExecutor
class Book(object):
def __init__(self, book_path, book_output, pool: ProcessPoolExecutor, base_assets):
self._book_path = book_path
self._book_output = book_output
self._summary_path = "SUMMARY.md"
self._summary_json = {}
... |
require 'shipitron'
require 'shipitron/consul_keys'
require 'json'
module Shipitron
module Server
module Docker
class Configure
include Metaractor
include ConsulKeys
required :application
optional :registry
before do
configure_consul_client!
end
... |
// Load modules
var Rule = require('./controller/rule'),
Product = require('./controller/product'),
Static = require('./static');
// API Server Endpoints
exports.endpoints = [
{ method: 'GET', path: '/{somethingss*}', config: Static.get },
{ method: 'POST', path: '/rule', config: Rule.create},
{ meth... |
<?php namespace Modules\User\Entities\Usher;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use Maatwebsite\Usher\Contracts\Roles\Role as RoleInterface;
use Maatwebsite\Usher\Domain\Roles\Role as UsherRole;
/**
* @ORM\Entity
* @ORM\Table(name="roles")
* @ORM\HasLifecycleCallbacks... |
---
title: Counters.Remove method
description: Removes a CounterItem instance from the collection.
ms.assetid: 88e5907a-8c8f-4a24-9c5d-0c592f61dac0
keywords:
- Remove method SysMon
- Remove method SysMon , Counters class
- Counters class SysMon , Remove method
topic_type:
- apiref
api_name:
- Counters.Remove
api_locati... |
#!/usr/bin/env bash
#
# Summary: Adds the public key (for the current user) to github. This script is
# intended to be hosted somewhere, downloaded (wget) and modified to add
# github token.
#
# This script should be called from:
# `scripts.pub/Bash/provision/ubuntu/bootstrapper.sh`
#
# See README.md in ... |
require File.expand_path(File.dirname(__FILE__) + '/acceptance_helper')
feature 'display deals' do
context 'guest' do
scenario 'no deals' do
visit '/'
find('#deals_button').click
page.should have_content 'No deals yet'
end
scenario 'one or more deals' do
deal = Deal.make!(:comp... |
<?php
declare(strict_types = 1);
namespace Bakabot\Payload\Processor\Firewall\Rule;
use Amp\Failure;
use Amp\Promise;
use Amp\Success;
use Bakabot\Payload\PayloadInterface;
use Bakabot\Payload\Processor\Firewall\RuleViolation;
final class IgnoreDirectMessages implements RuleInterface
{
public function getDetail... |
'use strict';
require('angular').module('app')
.factory('PageResource', require('./PageResource'))
;
|
package com.kevalpatel2106.brew.repo
import androidx.paging.ExperimentalPagingApi
import androidx.paging.LoadType
import androidx.paging.PagingState
import androidx.paging.RemoteMediator
import androidx.paging.rxjava2.RxRemoteMediator
import com.kevalpatel2106.brew.repo.db.BreweryDao
import com.kevalpatel2106.brew.rep... |
# fuge-runner
[![npm version][npm-badge]][npm-url]
[![npm downloads][npm-downloads-badge]][npm-url]
[![Build Status][travis-badge]][travis-url]
Process and container runner and watcher for the fuge tool.
If you're using this module, and need help, you can:
- Post a [github issue][],
- Reach out on twitter to @pelger... |
# msslib
The aim of `msslib` is to make it easy to work with Landsat MSS data in Earth
Engine. It assembles image collections across the five satellites that carried
the MSS sensor, filters images for quality, calculates TOA reflectance, and
calculates the MSScvm cloud mask.
## Guide
### Module import
In... |
import 'dart:convert';
class HttpMethod {
final String name;
const HttpMethod._(this.name);
@override
String toString() => 'HttpMethod.$name';
static const httpGet = HttpMethod._('GET');
static const httpPost = HttpMethod._('POST');
static const httpDelete = HttpMethod._('DELETE');
}
/// Request data... |
package com.yapp.web2.domain.remind.entity.dto
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
@ApiModel(description = "리마인드 읽음처리 할 북마크 ID 리스트")
class ReadRemindListRequest(
@ApiModelProperty(
value = "북마크 ID 리스트",
required= true,
example = "bookmarkI... |
# ~FC015
define :manual_installer do
include_recipe 'ohai'
include_recipe 'build-essential'
include_recipe 'rbenv::default'
include_recipe 'rbenv::ruby_build'
include_recipe 'awscli'
ark 'download-codedeploy' do
url node['aws-codedeploy-agent']['git-archive']
path '/opt'
action :put
end
li... |
// Code generated by monitor-code-gen. DO NOT EDIT.
package vsphere
import (
"github.com/signalfx/golib/v3/datapoint"
"github.com/signalfx/signalfx-agent/pkg/monitors"
)
const monitorType = "vsphere"
const (
groupCPU = "cpu"
groupDatastore = "datastore"
groupDisk = "disk"
groupHbr ... |
RSpec.describe Message do
describe "validations" do
it "cannot have a nil sender" do
message = build(:message)
message.sender = nil
expect(message).not_to be_valid
end
it "can have a zero sender_id to represent site messages" do
message = build(:message)
message.sender_id = ... |
#!/bin/bash
# This script installs mongodb
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list
apt-get update
apt-get install -y mongodb-org
#Wait for mon... |
unit Anon.Interfaces;
interface
uses
System.SysUtils, Data.DB;
type
TParameters = record
FileName: string;
Password: string;
end;
TDatabaseConfig = record
Engine: string;
ConnectionString: string;
UserName: string;
Password: string;
AutoCreateDatabase: Boolean;
end;
TLogLeve... |
# https://practice.geeksforgeeks.org/problems/sequence-of-sequence1155/1
# Recusive calls
# start with 1
# find a greatest 1,2,4,8...k (k<=m), count = 1
# revert back to last 2^p and increase it by 1 and try to find a string again
# if not possible return
# if there it count +=1, repeate step 3
class Solution:
de... |
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Linq;
using System.Linq.Expressions;
using Xunit;
namespace Tests.ExpressionCompiler.New
{
public static unsafe class NewTests
{
... |
<?php
/**
* Created by PhpStorm.
* User: david
* Date: 23/01/15
* Time: 20:42
*/
class CountryController extends Controller
{
private $countryFolder = "country/";
/** @var CountryService $countryService */
private $countryService;
function __construct(CountryService $countryService)
{
... |
import { SFCWithInstall } from '@vue-cesium/utils/types'
import { App } from 'vue'
import Entity from './src'
Entity.install = (app: App): void => {
app.component(Entity.name, Entity)
}
const _Entity = Entity as SFCWithInstall<typeof Entity>
export default _Entity
export const VcEntity = _Entity
|
#!/bin/bash
#This is an example script which launches a cluster, moniters the
#execution of the cluster, and collects resources, and cleans up
#afterwards.
cluster=../control/master/ClusterControl.sh
#server parameters
threshold=0.01
samplerate=1
#curator parameters
curatorname="CuratorCerf"
model="models"
minClien... |
class Campaign::Entrance
attr_accessor :location_name, :index, :displayed_title
def initialize(location_name, index = nil, displayed_title = nil)
@location_name = location_name
raise StandardError, "Empty location name." if @location_name.blank?
@index = index
@displayed_title = displayed_title
e... |
import App from "next/app";
import { AppProps } from "next/app";
import Page from "../components/Page";
import i18n from "../i18n.js";
import * as React from "react";
import {useRouter} from 'next/router'
function MyApp({ Component, pageProps }: AppProps) {
const router = useRouter();
// Apply language based on Nex... |
PLAYER_COLOR = $2A
PLAYER_BITMAP = $80
MAC SETUP
LDA #$00
STA NUSIZ0
LDA #PLAYER_COLOR
STA COLUP0
LDA #PLAYER_BITMAP
STA GRP0
ENDM
MAC RESP_SPRITE
STA RESP0
ENDM
INCLUDE main.inc |
#! /bin/bash
cd /home/harrison/dev/harrisonschultz.github.io
# cp -r ../idle_rpg ./
# git add idle_rpg/
# git commit -m 'new idle_rpg build'
# git push origin master
|
export const state = {
currentPage: "home",
pageTitle: "Home"
} |
import { Router } from "express";
import controller from "./course.controller";
import { sendResults } from "../../utils/crud";
const router = Router();
router.delete("/:id", controller.removeOne);
router.get("/", controller.getMany);
router.get("/:id", controller.getOne);
router.post("/", controller.createOne);
rout... |
// $Id$
# ifndef CPPAD_LOCAL_ASINH_HPP
# define CPPAD_LOCAL_ASINH_HPP
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-16 Bradley M. Bell
CppAD is distributed under multiple licenses. This distribution is under
the terms of the
... |
package com.ansere.mobile.wifidirect
import android.util.Log
import java.lang.Math.toDegrees
import java.util.EnumSet.range
import kotlin.math.atan2
import kotlin.math.hypot
import kotlin.math.max
import kotlin.math.min
data class BlueDotPosition(private val _x: Double, private val _y: Double){
val x: Float
g... |
package typingsSlinky.antvEventEmitter
import typingsSlinky.std.Record
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object mod {
@JSImport("@antv/event-emitter", JSImpo... |
(function(){ "use strict";
var Util = require("../modules/util");
function Synchronizer(world)
{
this.world = world;
this.cmd = this.world.proto.PkgCmd;
this.err = this.world.proto.ErrCode;
}
Synchronizer.prototype = {
constructor: Synchronizer,
};
Synchronizer.prototype.sendPkg = function(socket, b... |
---
layout: post
microblog: true
date: 2017-06-18 01:09 +0300
guid: http://desparoz.micro.blog/2017/06/17/t876200189907922945.html
---
Something I like: Attention Required! | Cloudflare…
An interesting look into just how much data can be ... [t.co/TzOvI2j10...](https://t.co/TzOvI2j10S)
|
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 2003-2012. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Public Lice... |
: <<'END'
Copyright 2021 Rabia Research Team and Developers
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... |
package com.thomaskioko.paybillmanager.mobile.util
object StringUtils {
fun upperCaseFirstLetter(value: String): String {
val array = value.toCharArray()
array[0] = Character.toUpperCase(array[0])
for (i in 1 until array.size) {
if (Character.isWhitespace(array[i - 1])) {
... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace mc_compiled.Modding.Behaviors
{
/// <summary>
/// A subject to run an event on.
/// </summary>
public enum EventSubject
{
/// <summary>
/// The block involv... |
# frozen_string_literal: true
require 'active_support/core_ext/string'
RSpec.shared_examples 'command' do
let(:test) do
test = []
var = command.new(cmd).instance_variable_get(:@command)
cmd.each_with_index do |_value, index|
test << var[index].split('=').last
end
test
end
let(:to) do
... |
import { expect } from '../../../setup'
/* External Imports */
import { ethers } from 'hardhat'
import { Contract, BigNumber } from 'ethers'
import { MerkleTree } from 'merkletreejs'
import { fromHexString, toHexString } from '@eth-optimism/core-utils'
/* Internal Imports */
import { NON_NULL_BYTES32 } from '../../..... |
module JwPlayerOnRails
module ViewHelper
# This counter is used to generated unique IDs
@@player_count = 0
# This module contains the view helper <tt>jw_player</tt>
def jw_player path, options = {}
increment_player_count
options.merge!(flashplayer: "/jwplayer/player.swf", file: path)
... |
#include <bindings.dsl.h>
#include "cvsu_pixel_image.h"
module CVSU.Bindings.PixelImage where
#strict_import
import CVSU.Bindings.Types
import Foreign.C.String
import Foreign.Ptr
#starttype pixel_image
#field parent , Ptr <pixel_image>
#field data , Ptr ()
#field rows , Ptr Word8
#field type , <pixel... |
package com.vrondakis.zap;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Collectors;
import hudson.model.Run;
/**
* ZapDriver Controls ZAP using HTTP api
*
* @see <a href="https://github.com/zaproxy/zaproxy/wiki/ApiDetails">ZAP API Docu... |
require 'rubygems'
require 'bundler/setup'
require 'minitest/autorun'
require 'minitest/mock'
require 'fileutils'
require 'pathname'
require 'configy'
module Configy::TestHelpers
def assert_equal_with_hash(config, hash)
hash.each do |key, value|
assert_equal config.send(key), value
end
end
def wit... |
package main
import (
"fmt"
"github.com/facebookgo/inject"
)
type DBEngine struct {
Name string
}
type UserDB struct {
Db *DBEngine `inject:""`
}
type UserService struct {
Db *UserDB `inject:""`
}
type App struct {
Name string
User *UserService `inject:""`
}
func (a *App) Create() string {
return "create ... |
/*
* Created by Onkar Nene on 17/8/19 3:11 PM
*
* Copyright (c) 2019 Onkar Nene. All rights reserved.
*/
package com.onkar.android.gojekdemo.utilities
/**
* Application constants
*/
const val EMPTY_STRING = ""
const val NA = "N/A"
const val AUTHOR = "author"
const val NAME = "name"
const val AVATAR = "avatar"
... |
import 'package:snaxdart/snaxdart.dart';
import 'package:test/test.dart';
void main() {
group('SNAX Client', () {
SNAXClient client;
setUp(() {
client = SNAXClient('https://cdn.snax.one', 'v1');
});
test('Get Info', () {
client.getInfo().then((NodeInfo nodeInfo) {
expect(nodeInf... |
// Magica Cloth.
// Copyright (c) MagicaSoft, 2020-2021.
// https://magicasoft.jp
using System.Collections.Generic;
namespace MagicaCloth
{
public static class DataUtility
{
/// <summary>
/// 2つのインデックスを1つのUint型にパッキングする
/// 上位16ビット、下位16ビットにv0/v1番号を結合する
/// ただし番号が若いものが上位に来るように配置
... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package net.purnama.gui.inner.detail.util;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayou... |
require "spec_helper"
RSpec.describe Rqlisp::Runtime do
describe "#run" do
it "returns literal strings and integers" do
expect(described_class.new.run("1")).to eq int(1)
expect(described_class.new.run('"foo"')).to eq str("foo")
end
it "returns quoted objects from 'quote'" do
expect(des... |
<?php
namespace Hx\Interop;
use Hx\Interop\Error\AlreadyClosed;
/**
* Interface ByteWriter
* @package Hx\Interop
*/
interface ByteWriter {
/**
* Write the given byte string to the underlying resource.
* @param string $buf The string of bytes to be written.
* @throws AlreadyClosed when the under... |
<?php
namespace AppClassExtends;
use PHPStan\Analyser\MutatingScope;
use PHPStan\Type\FileTypeMapper;
use PHPStan\Type\ObjectType;
class Foo extends FileTypeMapper
{
}
class Bar extends ObjectType
{
}
class MyScope extends MutatingScope
{
}
|
<?php
// Jivoo
// Copyright (c) 2015 Niels Sonnich Poulsen (http://nielssp.dk)
// Licensed under the MIT license.
// See the LICENSE file or http://opensource.org/licenses/MIT for more information.
namespace Jivoo\Data\Query;
use Jivoo\Data\DataSource;
use Jivoo\Data\DataType;
use Jivoo\Data\Query\Builders\ReadSelecti... |
<?php
namespace app\models;
use Yii;
use app\models\general\GeneralLabel;
/**
* This is the model class for table "tbl_profil_konsultan_kontrak".
*
* @property integer $profil_konsultan_kontrak_id
* @property integer $profil_konsultan_id
* @property string $tarikh_kontrak_mula
* @property string $tarikh_kontr... |
<?php
namespace MayMeow;
use MayMeow\UUID\UuidFactory as BaseFactory;
/**
* @deprecated
* @see MayMeow\UUID\UuidFactory
* ! Will be removed on next release 3.*
*/
class UuidFactory extends BaseFactory
{
//
} |
import Vue from "vue/dist/vue.js";
import VueRouter from "vue-router";
import Login from "../views/login/login.vue";
import Console from "../views/Console/index.vue";
import Layout from "../views/Console/index.vue";
Vue.use(VueRouter);
const routes = [
{
path: "/",
redirect: Login,
hidden: true,
meta... |
import React from 'react'
import { AsyncState } from 'react-async'
type Props<T> = {
state: AsyncState<T>
children: (data: T) => React.ReactNode
}
export default function AsyncContent<T>({ children, state }: Props<T>) {
switch (state.status) {
case 'pending':
return null
case 'fulfilled':
r... |
<?php
use Gc7\FragmentCaching;
use Gc7\CacheAdapterInterface;
use PHPUnit\Framework\TestCase;
class FakeCacheAdapter implements CacheAdapterInterface {
public function get($key) {
return FALSE;
}
public function set($key, $value) {
// $this->$key=$value;
}
}
class FakeModel {
private $key;
public... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SharpDX.DirectComposition
{
public partial class Device
{
/// <summary>
/// Creates a new device object that can be used to create other Microsoft DirectComposition objects.
/// </summary>
/// <param name="devi... |
<?php
return array(
// '<packagename>',
// ...
); |
This is the source repository for Roboto: Google’s signature family
of fonts, the default font on Android and Chrome OS, and the
recommended font for Google’s visual language, Material Design.
It also contains the toolchain used in creating Roboto.
The font family supports all Latin, Cyrillic, and Greek characters in... |
package sqlupdate
import (
"github.com/stretchr/testify/assert"
"testing"
)
var testData = []struct {
ov, cv string
b bool
}{
{"0.0.1", "0.2.0", true},
{"v1.0.2", "v3.0.1", true},
{"v1.3.2", "v1.2.4", false},
{"2.3.4", "2.4", true},
{"2.3.4", "2.3.2.20180809", false},
{"2.3.4", "2.3.4.20180809", true},... |
#pragma once
#include "Utils.h"
#include <iostream>
#include <string>
#include <sstream>
inline v8::Local<v8::String> OneByteString(v8::Isolate* isolate,
const char* data,
int length) {
return v8::String::NewFromOneByte(isolate,
reinterpret_cast<const uint8_t*>(data),
v8::NewStringType::kNormal,
length).ToLoc... |
mvn install && java -jar target/benchmarks.jar -wi 5 -i 3 -f 1 runcontainer
|
require 'rails_helper'
module BeachApiCore
describe ProfileCustomField, type: :model do
subject { build(:profile_custom_field) }
it 'should be valid with factory attributes' do
expect(subject).to be_valid
end
it 'should have basic validations' do
should validate_presence_of :title
... |
# lyrics-spam
Cutting lyrics into words and spamming them in your friends group chat
This code will cut up lyrics you put in a file and will output them as keyboard inputs.
Simply said, it will send lyrics word for word.
|
#!/bin/bash
#│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
#
# LICENSE UPL 1.0
#
# Copyright (c) 1982-2020 Oracle and/or its affiliates. All rights reserved.
#
# NAME
# 10_gi_setup.sh
#
# DESCRIPTION
# GI Setup
#
# NOTES
# DO NOT ALTER OR REMOVE COPYRIGHT NOTI... |
namespace Transmute
{
using System;
public interface IConverter
{
Type Source { get; }
Type Target { get; }
object Convert(object source);
bool HasSameTypes(IConverter other);
}
public interface IConverter<TSource,TTarget> : IConverter
{
TTarget Convert(TSource source);
}
}
|
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render, settled } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | nypr popup menu', function(hooks) {
setupRenderingTest(hooks);
let isOpen = function(contex... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'seconscreen.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form,MainWindow,ocr):
Form... |
<?php
namespace AEMR\Bundle\MarketResearchBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* GeoIndicatorSeries
*/
class GeoIndicatorSeries
{
/**
* @var integer
*/
private $geoindicator_id;
/**
* @var integer
*/
private $geography_id;
/**
* @var string
*/
... |
use std::io;
use std::str;
use builtin::status;
use object;
use object::Object;
use refs;
use work_dir;
#[derive(Debug)]
pub enum Error {
AlreadyOnIt,
IoError(io::Error),
ObjectError(object::Error),
ReferenceNotACommit,
WorkDirError(work_dir::Error),
WorkDirNotClean,
}
impl From<io::Error> fo... |
require 'nokogiri'
require 'kconv'
require 'open-uri'
class Keibado
BASE_URL = "http://www.keibado.ne.jp/keibabook"
class << self
def get_horse_list_of_week(bn)
html = self.get_page("#{BASE_URL}/#{bn}/index.html")
horses = []
doc = Nokogiri::HTML(html.toutf8)
# doc.css('table[class="mi... |
#!/bin/bash
echo "Shutting Down Liferay Server"
./opt/liferay-portal-7.2.0-ga1//tomcat-9.0.17/bin/shutdown.sh
sudo rm -rf /opt/liferay-portal-7.2.0-ga1/
ls -latr /home/dtpuser
ls -latr /opt/
|
unit Basic;
{$include kcontrols.inc}
interface
uses
{$IFDEF FPC}
LCLType, LCLIntf, LResources,
{$ELSE}
Windows, Messages,
{$ENDIF}
Classes, SysUtils, Graphics, StdCtrls, KHexEditor, KControls;
type
TEnvironmentPacked = packed record
Version: Byte;
// options
DropFiles,
Gro... |
import * as fs from 'fs'
import { name as PACKAGE_NAME } from '../../package.json'
// Example usage:
// /**
// * @example
// * import { example } from '{:PACKAGE_NAME:}'
// *
// * example()
// */
// function example(): void {
// return undefined
// }
const REPLACEMENTS = {
'PACKAGE_NAME': PACKAGE_NAME,
}
co... |
package com.example.data.module
import com.example.data.source.repository.SwapiRepositoryImpl
import com.example.domain.repository.SwapiRepository
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent::class)
abstra... |
SELECT * FROM BoloesMembros WHERE Username = '-'
SELECT * FROM UserInRole WHERE UserName = '-'
SELECT * FROM Usuarios WHERE UserName = '-'
DELETE FROM BoloesMembros WHERE Username = '-'
DELETE FROM UserInRole WHERE UserName = '-'
DELETE FROM Usuarios WHERE UserName = '-'
|
package pythonproviders
import (
"encoding/json"
"fmt"
"math"
"sort"
"github.com/kiteco/kiteco/kite-golib/errors"
"github.com/kiteco/kiteco/kite-golib/licensing"
"github.com/kiteco/kiteco/kite-golib/rollbar"
"github.com/kiteco/kiteco/kite-go/lang/python/pythonast"
"github.com/kiteco/kiteco/kite-go/lang/pyth... |
# frozen_string_literal: true
describe Sneakers::Laces, '.api_client' do
subject(:api_client) { described_class.api_client }
let!(:current_endpoint) { described_class.config.rabbitmq_api_endpoint }
before { described_class.configure { |c| c.rabbitmq_api_endpoint = 'https://foo:bar@rmq.example.com/' } }
aft... |
const BuyMessage = props => {
if (props.buySuccess === '') return null
if (props.buySuccess === 'Not Enough') {
return "You don't have enough in your account to complete this transaction."
}
if (props.buySuccess === 'Purchased') {
return 'Purchase Successful!'
}
}
export default BuyMessage
|
require 'wilson_interval'
describe "Wilson::Interval" do
it "returns correct z" do
wilson = Wilson::Interval.new(p_hat: 0.5, total: 1000, confidence: 0.99)
wilson.send(:z).round(8).should == 2.57582933
wilson = Wilson::Interval.new(p_hat: 0.5, total: 1000, confidence: 0.95)
wilson.send(:z).round(8).... |
<?php
/**
* This file is part of the Zephir.
*
* (c) Phalcon Team <team@zephir-lang.com>
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Zephir\Logger\Formatter;
use Monolog\Formatter\LineFormatter;
use Zephir\Config;
... |
const chalk = require('chalk');
module.exports = bot => {
console.log(chalk.bgGreen.white(`Logged in as ${bot.user.tag}!`));
console.log(chalk.bgGreen.white('Booted up!'));
}; |
<?php
require_once '../../../src/DocuSign_Client.php';
require_once '../../../src/service/DocuSign_UserService.php';
$client = new DocuSign_Client();
if( $client->hasError() )
{
echo "\nError encountered in client, error is: " . $client->getErrorMessage() . "\n";
return;
}
$service = new DocuSig... |
// Copyright (c) 2019 AUTHORS
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Original Fortran source: http://cococubed.asu.edu/research_pages/sedov.shtml
/* sedov3.f -- translated by f2c (version 20160... |
---
layout: archive
permalink: /contact/
description: "Qi Yu - Ph.D. Candidate in Marketing at Wharton"
author_profile: true
redirect_from:
- /contact.html
---
**Email**
qiyu@wharton.upenn.edu
**Address**
700 Jon M. Huntsman Hall
3730 Walnut Street
Philadelphia, PA 19104
|
namespace MassTransit.AzureServiceBusTransport.Configuration
{
public interface IServiceBusReceiveEndpointConfiguration :
IServiceBusEntityEndpointConfiguration
{
ReceiveSettings Settings { get; }
}
}
|
package frc.robot.subsystems.drive;
import com.ctre.phoenix.motorcontrol.ControlMode;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
import edu.wpi.first.wpilibj.drive.DifferentialDrive;
import frc.robot.config.Config;
import frc.robot.subsystems.BitBucketsSubsystem;
import frc.robot.utils.DashboardConfig;
pu... |
package org.mintflow.handler.sync;
import org.mintflow.handler.HandlerType;
import org.mintflow.param.ParamWrapper;
import org.mintflow.scheduler.sync.SyncScheduler;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Reorder Handler -> used to sub-pack all washable handle components
*... |
require 'rails_helper'
RSpec.describe Filter::Resource::Contact do
include SomlengScfm::SpecHelpers::FilterHelpers
let(:filterable_factory) { :contact }
let(:association_chain) { Contact }
describe "#resources" do
include_examples "metadata_attribute_filter"
include_examples "msisdn_attribute_filter"... |
require 'rspec'
require 'krypt-core'
describe Krypt::Digest do
describe Krypt::Digest::SHA1 do
subject { Krypt::Digest::SHA1.new }
describe '#hexdigest' do
it "should calculate SHA1" do
subject.hexdigest('hello,world').should == '74f4f4eb1947b9ca08e5e68d04d081808777f9a0'
end
end
en... |
#### Parser Content
```Java
{
Name = windows-rdp-login
Vendor = Microsoft
Product = Windows
Lms = Splunk
DataType = "remote-logon"
TimeFormat = "yyyy-MM-dd'T'HH:mm:ss"
Conditions = [ """Microsoft-Windows-TerminalServices-LocalSessionManager""", """<EventID>21<""" ]
Fields = [
"""exabeam_host=({host}[\... |
: '
20282. Game Show!
작성자: xCrypt0r
언어: Bash
사용 메모리: 18,280 KB
소요 시간: 16 ms
해결 날짜: 2021년 11월 10일
'
main() {
local C V
local sum=0 res=0
read C
for (( i = 0; i < C; i++ )); do
read V
(( sum += V ))
(( sum > res )) && res=$sum
done
echo $(( res + 100 ))
}
main |
getClosing :: Char -> Char
getClosing '(' = ')'
getClosing c = c
isOpening :: Char -> Bool
isOpening c
| c == '(' = True
| otherwise = False
checkBrackets :: String -> Bool
checkBrackets str
= check str []
where
check :: String -> String -> Bool
check [] []
= True
check [] (top : bottom)
... |
fun f() = IntArray(1) { run { return@IntArray 1 } }
// On JVM_IR, the return is an assignment to a captured var followed by
// a non-local `break` from a `do ... while (false)`. The var should be optimized.
// 0 IntRef
|
---
title: What is Alameda?
description: Context about what problems Alameda is designed to solve.
weight: 1
---
Alameda is an open platform ... |
package com.reactmq.queue
import akka.actor.Actor.Receive
import akka.persistence.RecoveryCompleted
import com.reactmq.Logging
trait QueueActorRecover extends Logging {
this: QueueActorStorage =>
def handleQueueEvent: Receive = {
case MessageAdded(id, nextDelivery, content) => messagesById(id) = InternalMess... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.