text stringlengths 27 775k |
|---|
object Version {
const val FULL = "0.0.1"
} |
#[doc = "Reader of register CSCTL0"]
pub type R = crate::R<u16, super::CSCTL0>;
#[doc = "Writer for register CSCTL0"]
pub type W = crate::W<u16, super::CSCTL0>;
#[doc = "Register CSCTL0 `reset()`'s with value 0"]
impl crate::ResetValue for super::CSCTL0 {
type Type = u16;
#[inline(always)]
fn reset_value() ... |
---
title: "NetWork-middle-sub"
date: 2019-05-17
comment: false
---
### ShootBullet.h
```c++
#pragma once
#include "FighterPlane.h"
class ShootBullet : public CFighterPlane
{
protected:
dsTexture *m_pFighter;
RECT m_rcImage;
float m_xPos;
float m_yPos;
bool shoot_true;
float m_speed;... |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# OPTIONS_GHC -Wno-orphans #-}
module Data.Function.FastMemo.Integer () where
import Data.Function.FastMemo.Class (Memoizable (..))
import Data.Function.FastMemo.Natural ()
import GHC.Generics (Generic)
import Numeric.Natural... |
use crate::{
command::{LapceUICommand, LAPCE_UI_COMMAND},
config::{Config, LapceTheme},
data::{EditorContent, EditorType, LapceEditorData, LapceTabData, PanelData},
editor::{EditorLocation, LapceEditorView},
scroll::{LapcePadding, LapceScroll},
terminal::{LapceTerminal, LapceTerminalData, LapceT... |
package com.citizenwarwick.fretboard.example
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.state
import androidx.ui.core.Text
import androidx.ui.core.setContent
import androidx.ui.layout.Column
import androidx.ui.layout.Container
import androidx.ui.layout.LayoutPaddin... |
#!/bin/sh
set -e
crontab -u root /etc/cron.d/cool-task
crond /etc/cron.d/cool-task
python3 manage.py makemigrations user accommodation message
python3 manage.py migrate
python3 manage.py createcachetable
exec "$@" |
#!/bin/sh
echo "Creating input for timeshift ..."
sac --copyright-off <<EOF
fg seismo
rtr ; taper
chnhdr allt (0 - &1,o&) IZTYPE IO
write seismo.sac
lp co 5.0 np 4
ch kevnm "lp_co5_np4"
write seismo_lpco5np4.sac
m ${SACHOME}/macros/sac-ts.m seismo_lpco5np4.sac seismo_lpco5np4_sacts.sac -0.05
quit
EOF
INPUT=seismo_lpc... |
package com.techreturners.exercise001;
import org.apache.commons.math3.util.Precision;
import java.util.List;
public class Exercise001 {
public String capitalizeWord(String word) {
return word.substring(0, 1).toUpperCase() + word.substring(1);
}
public String generateInitials(String firstName, S... |
import React, { useState, useEffect, FunctionComponent } from 'react';
import styled, { css } from 'styled-components';
import { Position, Icon, Tooltip } from '@blueprintjs/core';
import withTextContext from '../../hocomponents/withTextContext';
const StyledStepButton = styled.div`
display: flex;
cursor: poin... |
require 'spec_helper'
describe Tableware do
it 'has a version number' do
expect(Tableware::VERSION).not_to be nil
end
let(:input) do
'
Hero | Value
----------------------
Phara | 10
Mercy | 9
Winston | 3
'
end
describe ... |
#include <SFML/Graphics.hpp>
#include "SnakeNode.h"
using namespace sfSnake;
const float SnakeNode::Width = 10.f;
const float SnakeNode::Height = 10.f;
SnakeNode::SnakeNode(sf::Vector2f position)
: position_(position)
{
shape_.setPosition((position.x+5.f),position.y);
shape_.setFillColor(sf::Color::Black);
shap... |
#!/bin/sh
svgify () {
local image, width, height, extension, data
image=$1
width=$(identify -format '%w' "$image")
height=$(identify -format '%h' "$image")
extension=$(identify -format '%e' "$image")
data="$(
convert "$image" -resize 40x22 -quality 100 "$extension":-\
| openssl base64\
| t... |
using System.Collections.Generic;
namespace Dadata.Model
{
public class SuggestOutwardRequest : SuggestRequest
{
public IDictionary<string, string> filters;
public SuggestOutwardRequest(string query, int count = 5) : base(query, count) { }
}
}
|
# kvrangedb YCSB Binding
This repository provide kvrangedb YCSB binding (Binary Only)
# Run
## Setup environment
In env_setup.sh, change **LIB_HOME** to your kvrangedb project path.
## Setup kvrangedb configuration
Modify kvrangedb_config.json.
## Run ycsb workload
```bash
./bin/ycsb load kvrangedb -s -P work... |
# xml-avro
This project provides Converter to convert generic xsd/xml to asvc/avro files.
Avro schema and avro file are generated from xsd schema and xml file.
Additionally it includes simple schemaless converter that converts xml to avro and avro to xml.
## Running Project
1. git clone;
2. mvn package;
3. java -jar ... |
begin
require "bunny"
rescue
# bunny not present
end
require "liebre/adapter/bunny/conn"
require "liebre/adapter/bunny/chan"
require "liebre/adapter/bunny/exchange"
require "liebre/adapter/bunny/queue"
module Liebre
module Adapter
class Bunny
include Interface
def connection opts
Conn.n... |
# HKUST-Timetable-Planner-Addon
HKUST Timetable planner addon on chrome store
https://chrome.google.com/webstore/detail/hkust-timetable-addon/amgobcacdjcliphhejphfhcdhaikhcme
License: MIT
|
/*
2015, Casey W. Stark <caseywstark@gmail.com>
Compare two void catalogs.
- Read catalog A and B.
- For each A void,
- Find nearest B void.
- If B void within r_A, save it.
- Write joined catalog with format like:
ax, ar, av, b_id, bx, br, bv, delta_x.
*/
#include <iostream>
#include <fstream>
#include <sstream... |
# Consumo-de-APIs-e-Persistindo-Dados-Localmente-em-Apps-Android
Consumo de APIs e Persistindo Dados Localmente em Apps Android
|
import { router } from './app.router';
import { Component, NgZone, OnInit } from '@angular/core';
import {BitcoinService} from './bitcoin.service';
import {Observable} from 'rxjs/Rx';
@Component({
selector: 'bitdata',
templateUrl: './app/bitdata.component.html',
styleUrls: ['./app/bitdata.component.css'],
pr... |
<?php
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PHPUnit\Framework\Constraint;
use Countable;
use PHPUnit\Framework\ExpectationFa... |
%%% @doc
%%% HTTP request processing functions.
%%% @author Aleksey Morarash <aleksey.morarash@gmail.com>
%%% @since 2 Feb 2012
%%% @copyright 2012, Aleksey Morarash
-module(echessd_request_processor).
-export([handle/4]).
-include("echessd.hrl").
-define(is_logged_in(Session), (Session#session.username /= undefin... |
package com.ece4564.group11.workout.server;
/**
* Servlet which responds to the request for a single workout based on id.
* Responds to /requestone.
*/
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import jav... |
import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import { connect } from 'react-redux';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import Topbar from './topbar/Topbar';
import Sidebar from './sidebar/Sidebar';
import Customizer from './customizer/Cus... |
package models.dao
import anorm._
import models.Validate
import play.api.Play.current
import play.api.db.DB
object ValidateDAO {
def exists(validate: Validate): Boolean = {
DB.withConnection { implicit c =>
val result = SQL(
"""
| SELECT COUNT(*) as numMatches
| ... |
# ECaBan-Board
> A simple Kanban board build with React and Typescript
## Using [React-DND](https://react-dnd.github.io/react-dnd/docs/overview) for drag and drop
 |
# useSafeState
Hook for always setting state on mounted components. Prevents memory leaks, that typically happens
when setting state on unmounted components.
## Usage
```jsx
import { useSafeState } from '@oyvindher/hooks';
function App() {
const [counter, setCounter] = useState(0);
return <div>{counter}</div>;... |
# frozen_string_literal: true
require_relative "test_helper"
require_relative "support/tolerance"
class TestDefaultGroup < MiniTest::Test
include Support::Tolerance
def setup
@counter = Queue.new
end
def teardown
SlowDown::Group.remove_all
end
def test_single_straight_run
elapsed_time = Ben... |
<?php
namespace App\Http\Repositories\Admin;
use App\Http\Repositories\Repository;
use App\Models\Config;
use Illuminate\Http\Request;
class ConfigsRepository extends Repository
{
public function model()
{
// TODO: Implement model() method.
return app(Config::class);
}
public f... |
#!/bin/bash
sudo xcode-select --install
# Install Homebrew (if not installed).
echo "Installing Homebrew."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Make sure we’re using the latest Homebrew and upgrade any already-installed formulae.
brew update
brew upgrade
... |
using Leopotam.Ecs;
namespace Game.Gameplay.Items {
public struct ItemTakenEvent {
public EcsEntity playerEntity;
}
} |
/*
* OpaqueNamedConstantTerm.h
*
* Created on: Sep 29, 2015
* Author: belyaev
*/
#ifndef OPAQUENAMEDCONSTANTTERM_H_
#define OPAQUENAMEDCONSTANTTERM_H_
#include "Term/Term.h"
namespace borealis {
/** protobuf -> Term/OpaqueNamedConstantTerm.proto
import "Term/Term.proto";
package borealis.proto;
message... |
#!/bin/bash
block_dir=$azhpc_dir/blocks
AZHPC_CONFIG=config.json
AZHPC_VARIABLES=variables.json
# Ensure that jq is installed
command -v jq &> /dev/null || { echo -e >&2 "ERROR: Missing requirement: jq\nMake sure it is installed and its installation path included in PATH before executing $0"; exit 1; }
blocks="$block... |
require "test/unit"
require "grid"
class GridTest < Test::Unit::TestCase
class Item < Struct.new(:identifier, :x, :y, :width, :height)
end
def test_build_empty_grid
grid = Grid.build([])
assert_nil grid
end
def test_build_one_item_grid
grid = Grid.build([Item.new('item1', 0, 0, 10, 10)])
as... |
import { PrimitiveType, Token, TokenType } from './token';
export enum ParseOperatorType {
NO_OP, // invalid
UNI_POSIT, // + a
UNI_NOT, // ! a
UNI_NEGATE, // - a
UNI_INC_PRE, // ++ a
UNI_DEC_PRE, // -- a
UNI_INC_POS, // a ++
UNI_DEC_POS, // a --
BIN_ADD, // a + b
BIN_SUB, /... |
package com.dongtronic.diabot.exceptions
/**
* Used when Nightscout data was unreadable for any reason
*/
open class NightscoutDataException(message: String?) : Exception(message) |
// MOVE: up
fun foo(x: Boolean) {
if (x) {
}
else {
<caret>// test
}
}
|
class CategoriesController < ApplicationController
def index
@categories = Category.all
end
def show
render nothing: true
end
end
|
<?php namespace ElectricJones\Mistletoe;
/**
* Class Command
* @package Mistletoe
*/
class Command
{
private mixed $command;
public function __construct($command)
{
$this->command = $command;
}
/**
* @return mixed
*/
public function getCommand(): mixed
{
retur... |
// TODO consider testing what's exposed from ./index
// in order to ensure good surface API + no unwanted leakage
|
/**
* 应用实例:分析HTML代码中的图片列表
*
* @author Zongmin Lei<leizongmin@gmail.com>
*/
var xss = require('../');
var source = '<img src="img1">a<img src="img2">b<img src="img3">c<img src="img4">d';
var list = [];
var html = xss(source, {
onTagAttr: function (tag, name, value, isWhiteAttr) {
if (tag === 'img' && name ==... |
DROP TABLE IF EXISTS fizzbuzz_tweets;
CREATE TABLE fizzbuzz_tweets (
number BIGINT UNSIGNED NOT NULL,
is_fizz BOOL NOT NULL,
is_buzz BOOL NOT NULL,
tweet VARCHAR(140) NOT NULL,
twitter_tweet_id BIGINT UNSIGNED NOT NULL DEFAULT 0,
updated_at DATETIME NOT NULL,
created_at DATETIME NOT NULL,
PRIMARY KEY (n... |
package dir
import (
"errors"
"fmt"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/opctl/opctl/sdks/go/model"
referenceFakes "github.com/opctl/opctl/sdks/go/opspec/interpreter/reference/fakes"
)
var _ = Context("Interpret", func() {
Context("expression is scope ref", func() {
It("should c... |
import * as React from 'react';
import { Link } from 'react-router-dom';
import { Col, Icon, Row } from 'patternfly-react';
import { style } from 'typestyle';
import history from '../../app/History';
import * as M from '../../types/Metrics';
import HistogramChart from './HistogramChart';
import MetricChart from './Me... |
package com.dadsunion.tron.service;
import com.dadsunion.tron.domain.TronBlock;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* 区块高度Service接口
*
* @author l8oo8l
* @date 2021-03-06
*/
public interface ITronBlockService extends IService<TronBlock> {
/**
* 查询列表
... |
using UnityEngine;
public class Dialog : MonoBehaviour
{
public GameObject[] texts;
public int index = 0;
void Start()
{
print(texts.Length);
texts[index].SetActive(true);
}
// Update is called once per frame
void Update()
{
if (Input.GetMouseButtonDown(0))
... |
# frozen_string_literal: true
require 'rails_helper'
describe Web::Idea::Wizard::RegistrationsController do
describe 'GET #new' do
let(:user) { create(:user, :author) }
context 'user is not logged in' do
before { get :new }
it 'renders registration form' do
expect(response).to render_t... |
using Ptv.XServer.Controls.Map;
using Ptv.XServer.Controls.Map.Layers;
using Ptv.XServer.Controls.Map.Layers.Tiled;
using Ptv.XServer.Controls.Map.Layers.Untiled;
using Ptv.XServer.Controls.Map.Localization;
using Ptv.XServer.Controls.Map.TileProviders;
using Ptv.XServer.Controls.Map.Tools;
using Ptv.XServer.Demo.Tools... |
use std::ops::Range;
use finny::{finny_fsm, FsmEventQueueVec};
use finny::decl::{BuiltFsm, FsmBuilder};
use finny::FsmBackend;
use finny::FsmFactory;
use finny::FsmFrontend;
use futures::TryFutureExt;
use futures_signals::signal::{Mutable, MutableSignalCloned};
use crate::pressure_sampler::PressureSensorSampler;
use ... |
package com.uriio.beacons.model;
import com.uriio.beacons.ble.Advertiser;
import java.security.SecureRandom;
/**
* Eddystone beacons common model.
* Created on 7/21/2015.
*/
public abstract class EddystoneBase extends Beacon {
private byte[] mLockKey;
public EddystoneBase(byte[] lockKey,
... |
package com.x_meteor.kotlindemo.mvp.presenter
import com.hazz.kotlinmvp.net.exception.ExceptionHandle
import com.x_meteor.kotlindemo.base.BasePresenter
import com.x_meteor.kotlindemo.mvp.contract.HotTabContract
import com.x_meteor.kotlindemo.mvp.model.HotTabModel
/**
* @author: X_Meteor
* @description: 类描述
* @vers... |
//! Utility functions useful for implementing Chaskey.
use byteorder::{ByteOrder, LittleEndian};
/// XOR a `[u32; 4]` value into the Chaskey state.
#[inline(always)]
pub fn xor_u32x4(state: &mut [u32; 4], block: &[u32; 4]) {
state[0] ^= block[0];
state[1] ^= block[1];
state[2] ^= block[2];
state[3] ^=... |
<?php
namespace App\Controllers;
use CodeIgniter\API\ResponseTrait;
use CodeIgniter\RESTful\ResourceController;
use App\Models\EnquiryModel;
class Enquiry extends ResourceController
{
use ResponseTrait;
protected $enquiryModel;
public function __construct()
{
$this->enquiryModel = new Enquiry... |
import cron from "node-cron";
import colors from "colors";
import { checkCostco } from "./costco.js";
import { addTimeStamps } from "./console.js";
addTimeStamps();
console.log(colors.green(`Welcome to Costco Inventory Checker`));
async function go() {
await checkCostco();
}
cron.schedule("*/30 * * * *", go);
|
const { Router } = require('express');
const { badRequest, notFound } = require('./handlers');
const {
getAll,
getByPage,
getById,
getRandom,
quotesPerPage,
} = require('../model');
const own = (process.env.OWN_URL || '').replace(/\/$/, '');
const apiRouter = Router();
apiRouter.get('/quotes', (req, res) =>... |
part of todo_cubit;
class TodoState extends Equatable {
final List<TodoModel> data;
const TodoState({this.data = const <TodoModel>[]});
/// Return a TOTALLY new [TodoState]
TodoState copyWith(List<TodoModel> data) {
return TodoState(data: data ?? this.data);
}
TodoState add(TodoModel todo) {
///... |
package build
import (
"context"
"os"
"path"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gopkg.in/src-d/go-git.v4"
"github.com/shipa-corp/ketch/internal/docker"
"github.com/shipa-corp/ketch/internal/errors"
)
type mockBuilder struct {
buildCalls int
pushCalls in... |
// generated by genversion-plus
exports.version = '1.0.1'
exports.buildTime = '2021-08-25T09:56:50.803Z'
exports.comment = ''
exports.author = 'TAKEUCHI Shinichi' |
//>>built
define(
//begin v1.x content
({
createLinkTitle: "Propiedades del enlace",
insertImageTitle: "Propiedades de la imagen",
url: "URL:",
text: "Descripción:",
target: "Destino:",
set: "Establecer",
currentWindow: "Ventana actual",
parentWindow: "Ventana padre",
topWindow: "Ventana superior",
newWindow:... |
require File.dirname(__FILE__) + '/../spec_helper.rb'
describe ObservationFieldValue, "creation" do
it "should touch the observation" do
o = Observation.make!(:created_at => 1.day.ago)
ofv = ObservationFieldValue.make!(:observation => o)
o.reload
expect(o.updated_at).to be > o.created_at
end
it ... |
#!/bin/sh
docker service create --replicas 1 --name helloworld alpine ping docker.com
|
organization in ThisBuild := "io.github.aelesbao"
scalaVersion in ThisBuild := "2.12.8"
version in ThisBuild := "0.1.0-SNAPSHOT"
lazy val root = (project in file("."))
.settings(name := "twitter-analyser")
.aggregate(producer)
.aggregate(consumer)
.settings(commonSettings: _*)
lazy val common = (project ... |
<?php
namespace Blackmine\Repository;
class News extends AbstractRepository
{
public function getModelClass(): string
{
return \Blackmine\Model\News::class;
}
}
|
# frozen_string_literal: true
require "test_helper"
require "gel/package/inspector"
class PackageTest < Minitest::Test
def test_parse_specification
result = Gel::Package::Inspector.new
Gel::Package.extract(fixture_file("rack-2.0.3.gem"), result)
assert_equal "rack", result.spec.name
assert_equal "... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/recommendationengine/v1beta1/prediction_service.proto
namespace GPBMetadata\Google\Cloud\Recommendationengine\V1Beta1;
class PredictionService
{
public static $is_initialized = false;
public static function initOnce() {
... |
from http.server import SimpleHTTPRequestHandler, HTTPServer
from os import path
import json
from urllib.parse import urlparse
from cgi import parse_header, parse_multipart
import io
from urllib.parse import parse_qs
curdir = path.dirname(path.realpath(__file__))
sep = '/'
# MIME-TYPE
mimedic = [
... |
//
// VCCSys.h
// VungleCC
//
// Created by Chao Zhang on 2021/6/12.
//
#import "VCCBaseModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface VCCSys : VCCBaseModel
@property (nonatomic, assign) NSInteger ID;
@property (nonatomic, copy) NSString *country;
@property (nonatomic, assign) NSInteger sunrise;
@property (nonatomi... |
plugins {
id("de.fayard.refreshVersions") version "0.23.0"
id("com.gradle.enterprise") version "3.7.2"
}
refreshVersions { extraArtifactVersionKeyRules(file("versions.rules")) }
rootProject.name = "kmdc"
include(":test")
include(
":lib:kmdc-core",
":lib:kmdc-button",
":lib:kmdc-card",
":lib:kmdc... |
/*
* Copyright (c) 2018. Matsuda, Akihit (akihito104)
*
* 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 applic... |
import { FC } from './lib/teact';
import React, { DispatchMap, GlobalState, withGlobal } from './lib/teactn';
import './modules';
import Loading from './components/Loading';
import Auth from './pages/auth/Auth';
import Main from './pages/main/Main';
// import Test from './pages/test/Test';
type IProps = Pick<GlobalS... |
# frozen_string_literal: true
module Persistence
module Store
module Operations
module Capabilities
# Makes the Operation capable of joining external resource in the result.
module Joiner
# Creates the @joins instance variable that maps resources to
# descriptive mapping... |
# Read about factories at https://github.com/thoughtbot/factory_girl
FactoryGirl.define do
factory :product_recommendation do
product_name "MyString"
recommended_to "MyString"
recommended_product_url "MyString"
recommended_product_image_url "MyString"
recommended_by "MyString"
message "MyText... |
#!/usr/bin/env bash
export NUGET_SERVER=https://www.myget.org/F/zlzforever/api/v3/index.json
echo $NUGET_SERVER
sh publish_package.sh |
using Xunit;
namespace Stowage.Test
{
public class IOPathTest
{
[Theory]
[InlineData("/dev/one", new[] { "dev", "one" })]
[InlineData("/one/two/three", new[] { "one", "two", "three" })]
[InlineData("/three", new[] { "one", "..", "three" })]
[InlineData("/dev/one/", new[] { "dev", "... |
# automation-orchestration
The docs folder will be organized by classes as follows:
Class 1- Programmability - Introduction to BIG-IP Rest Structure and Concepts
Class 2- A&O Toolchain 111: BIG-IP Deployments with Declarative Onboarding (DO)
Class 3- Deploy apps with AS3, FAST, and ACC
Class 4- A&O Tool Chain - BI... |
import type { ECPublicJWK } from "./ECPublicJWK";
import type { RSAPublicJWK } from "./RSAPublicJWK";
/**
* DPoP JWK as defined in https://tools.ietf.org/html/draft-fett-oauth-dpop-04
* - Must be an Elliptic Curve or RSA public key
*/
export type DPoPPublicJWK = ECPublicJWK | RSAPublicJWK;
|
module Main.DB
(
session,
oneRow,
unit,
integerDatetimes,
serverVersion,
)
where
import Main.Prelude
import Control.Monad.Trans.Reader
import Control.Monad.IO.Class
import qualified Database.PostgreSQL.LibPQ as LibPQ
import qualified Data.ByteString as ByteString; import Data.ByteString (ByteString)
type S... |
#!/usr/bin/env perl
=head1 NAME
write_fasta_from_gff.pl - Extracts the protein or CDS sequences from a GFF3 file
=head1 SYNOPSIS
USAGE: write_fasta_from_gff.pl
--gff=/path/to/some_file.gff
--output=/path/to/somefile.faa
[ --type=protein|cds
--fasta=/path/to/somefile.fn... |
. ~/miniconda3/etc/profile.d/conda.sh
conda activate smw
python build.py
git add .
git commit -m "site update"
git push -u origin main |
homebrew_cask 'sabnzbd'
if node[:elephant][:sabnzbd][:preferences]
settings_path = "#{ENV['HOME']}/Library/Application Support/SABnzbd"
scripts_path = ::File.expand_path 'scripts', settings_path
elephant_recursive_directory scripts_path do
owner node[:elephant][:username]
group node[:elephant][:group]
... |
package io.hydrosphere.serving.manager.service.source.fetchers.spark.mappers
import io.hydrosphere.serving.contract.model_field.ModelField
import io.hydrosphere.serving.manager.service.source.fetchers.spark.SparkModelMetadata
import io.hydrosphere.serving.manager.service.source.fetchers.spark.mappers.SparkMlTypeMapper... |
%% vim: set ai et sw=4 sts=4:
%% See LICENSE for licensing information.
-module(yaml_document).
-export([ stream/1
, block_did_end/2
]).
-include("yaml_grapheme.hrl").
-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
-endif.
%===================================================================... |
# GitHubV3RestApi.InlineObject137
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**bio** | **String** | The new short biography of the user. | [optional]
**blog** | **String** | The new blog URL of the user. | [optional]
**company** | **String** | The ne... |
#include "DeviceConstScalars.h"
#include "DeviceCopy.h"
#include <algorithm>
using namespace sqaod_cuda;
template<class real>
const real DeviceConstScalarsType<real>::hostConsts_[] = {-1., -0.5, -0.25, 0., 0.25, 0.5, 1.};
template<class real>
const int DeviceConstScalarsType<real>::nHostConsts_ = sizeof(hostConsts_)... |
<h3>@lang('front.label.popular_book')</h3>
@foreach ($book_tops as $book_top)
<a href="{{ route('bookDetail', $book_top->id) }}" class="list-group-item">
{{ $book_top->title }}
</a>
@endforeach
|
import Del from '../ast/Del'
import {check} from '../context'
import {GroupBracket, GroupSpace} from '../token/Group'
import {unexpected} from './checks'
import {parseExprParts} from './parseExpr'
import parseSpaced from './parseSpaced'
import {Tokens} from './Slice'
export default function parseDel(tokens: Tokens): D... |
package com.morladim.mario.sample.github.model
import com.google.gson.annotations.SerializedName
data class RepoSearchResponse(
@SerializedName("total_count") val total: Int = 0,
@SerializedName("items") val items: List<Repo> = emptyList(),
val nextPage: Int? = null
)
|
#!/bin/bash
# unsanitary.sh - ASAN/SUID Local Root Exploit
# Exploits er, unsanitized env var passing in ASAN
# which leads to file clobbering as root when executing
# setuid root binaries compiled with ASAN.
# Uses an overwrite of /etc/ld.so.preload to get root on
# a vulnerable system. Supply your own target binary t... |
import ShareDB = require('sharedb');
import { ConnectSession } from '../connect-session';
import { MigrationConstructor } from '../migration';
import { OwnedData } from '../models/owned-data';
import { ProjectData } from '../models/project-data';
import { Operation, ProjectRights } from '../models/project-rights';
impo... |
plugins {
jacoco
}
jacoco {
toolVersion = "0.8.7"
}
tasks.withType<Test>().configureEach {
extensions.configure<JacocoTaskExtension> {
isIncludeNoLocationClasses = true
excludes = listOf("jdk.internal.*")
}
}
tasks.register<JacocoReport>(name = "jacocoTestReport") {
dependsOn("t... |
// Here goes the meat of the script, called by events in events.pas.
function doSomething(callerId: byte): integer;
begin
result := 4;
end; |
import Vue from "vue";
import App from "./Index.vue";
import vuetifyService from "@/options/plugins/vuetify";
import { EModule, EAction } from "@/interface/enum";
import { IRequest } from "@/interface/common";
import Extension from "@/service/extension";
const extension = new Extension();
class Debugger {
private ... |
<?php
/**
* Save Settings
*/
function rafflepress_lite_save_settings()
{
if (check_ajax_referer('rafflepress_lite_save_settings')) {
$_POST = stripslashes_deep($_POST);
if (!empty($_POST['settings'])) {
$settings = $_POST['settings'];
array_walk($settings, 'sanitiz... |
# Search Insert Position
------------------
@ [Description](https://leetcode.com/problems/search-insert-position/)
@ Tags: Binary Search
@ Easy
------------------
## Solution
因为是已经排序好的的数组,直接利用二分法查找即可。注意若数组不存在target也要返回其对应的插入位置。
```java
class Solution {
public int searchInsert(int[] nums, int target) {
... |
package ru.st.training.domain
class Robot(val coordinates: Coordinates, val maze: Maze) {
require(maze.getCellByCoordinates(coordinates).isDefined, "must init with coordinates which belong to maze")
var currentCoordinates: Coordinates = coordinates
maze.getCellByCoordinates(currentCoordinates).get.putRobotInto... |
import logger from '@percy/logger';
import { camelcase } from '@percy/config/dist/normalize';
import { flagUsage } from './help';
// Make it possible to identify parse errors.
export class ParseError extends Error {
name = this.constructor.name
}
// Helper that makes it possible to throw parse errors without throw ... |
module BowlingSpec where
import SpecHelper
testScoreGame :: Int -> [Int] -> Spec
testScoreGame score rolls =
it (printf " %s => %d \n" (show rolls) score) $
scoreGame rolls `shouldBe` score
spec :: Spec
spec = do
describe "all zeroes" $ do
testScoreGame 0 (replicate 20 0)
describe "all ones" $ do
... |
---
alturls:
- https://twitter.com/bismark/status/21407191291
- https://www.facebook.com/17803937/posts/771729231449
archive:
- 2010-08
date: '2010-08-17T14:27:25+00:00'
rellink: '1282055140'
slug: '1282055245'
title: How you know you are way too tired
type: link
---
this is what sleep deprivation does to you.
|
import 'package:cloudflare_example/main.dart';
import 'package:cloudflare_example/src/page/image_api_sample_page.dart';
import 'package:cloudflare_example/src/page/live_input_api_sample_page.dart';
import 'package:cloudflare_example/src/page/stream_api_sample_page.dart';
import 'package:flutter/material.dart';
class A... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.