text stringlengths 27 775k |
|---|
package gq.emiliodallatorre.rpi_fan
import android.app.Activity
import android.app.IntentService
import android.content.Intent
import android.os.Bundle
import android.util.Log
import com.google.android.things.pio.Gpio
import com.google.android.things.pio.PeripheralManager
import java.io.BufferedReader
import java.i... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Aoite.Logger
{
/// <summary>
/// 定义一个日志的路径生成工厂。
/// </summary>
[DefaultMapping(typeof(DayLogPathFactory))]
public interface ILogPathFactory
{
/// <summary>
/// 指定当前时间,判断路径是否已创建。
... |
# frozen_string_literal: true
module Transformers
module Formatters
# Formats Statements rows into YNAB4 rows (Date, Payee, Memo, Amount or
# Outflow and Inflow.)
class Formatter
# @param [Hash] headers_indices the indices at which to find each
# header's name
# @option headers_indic... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
package com.todo.data.database;
import org.litepal.crud.DataSupport;
import java.io.Serializable;
/**
* Created by tianyang on 2017/3/17.
*/
public class Alarm extends DataSupport implements Serializable {
private int id;
private String name;
private Schedule schedule;
public void setId(int id) {
... |
#!/bin/bash
set -e -o pipefail
HERE=$(cd $(dirname $0); pwd)
cd "$HERE"
ROOT=$(cd ..; pwd)
PATH="${ROOT}:${PATH}"
source ${ROOT}/utils.sh
initialize_cluster
kubectl cluster-info
kubectl create secret tls ambassador-certs --cert=certs/termination.crt --key=certs/termination.key
kubectl create secret tls ambassad... |
#include <list>
#include <cstdint>
#include <cassert>
#include <vector>
#include "memory_p1.hpp"
#include "memory_partition_test_simple.hpp"
using namespace e2::memory;
int main(){
memory_p1 mp;
std::vector< void * > lookup_ptr;
lookup_ptr.resize( 1000000, nullptr );
memory_parition_test_... |
#!/bin/bash
wget https://www.internic.net/domain/named.root -O root.hints
cat root.hints
exit 0
|
<?php
namespace SapiStudio\RestApi\Response\Serialisers;
use SapiStudio\RestApi\Interfaces\Request\Serialiser;
use Symfony\Component\Serializer\Encoder\JsonEncoder;
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
use Symfony\Component\Serializer\Serializer as SymfonySerialiser;
/** Class JsonSerialiser.... |
<?php
use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use App\Models\HumanResource\Fakultas;
class HrFakultasSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Fakultas::firstOrCreate([
... |
<?php
namespace West\BanList\XF\Entity;
class User extends XFCP_User
{
public function canViewBanList()
{
return $this->hasPermission('general', 'w_bl_can_view_banlist');
}
} |
#!/usr/bin/env node
/*
Copyright (C) 2017 Google Inc.
Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
*/
/*
Script used to generate ggrc_filter_query_parser.js
-- updating dev environment by running:
vagrant provision
-- manual dev env setup:
to run this script you need no... |
package me.schulten.lastfm
import io.mockk.coEvery
import io.mockk.mockk
import kotlinx.coroutines.runBlocking
import me.schulten.config.*
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
/**
* Last.fm service tests
*
* @author dries
*/
class LastFmServiceTest {
private va... |
# About
By default, variables are limited to the scope they are defined in. If defined in a file outside of a function or class, they are limited to the scope of the file. If defined in a function or class, they are limited to the scope of the function or class.
```php
<?php
$file_scoped = "I am file scoped";
funct... |
---
layout: watch
title: TLP4 - 31/07/2019 - M20190731_015921_TLP_4T.jpg
date: 2019-07-31 01:59:21
permalink: /2019/07/31/watch/M20190731_015921_TLP_4
capture: TLP4/2019/201907/20190730/M20190731_015921_TLP_4T.jpg
---
|
// Copyright 2020 The Cross-Media Measurement 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 applic... |
import os
import pytest
import numpy as np
from jina import Document, DocumentArray, __windows__
from jina.types.arrays.memmap import DocumentArrayMemmap
from tests import random_docs
@pytest.fixture
def memmap_with_text_and_embedding(tmpdir):
dam = DocumentArrayMemmap(tmpdir)
for idx in range(100):
... |
package dev.gtuk.diga.dtos
import com.alextherapeutics.diga.model.DigaInvoiceMethod
import com.fasterxml.jackson.annotation.JsonProperty
data class BillingResponse(
val code: String,
val actionRequired: Boolean,
val transport: DigaInvoiceMethod,
@get:JsonProperty("xRechnung")
val xRechnung: String... |
package sprint
import (
"reflect"
"strconv"
)
// Sprint returns a string
func Sprint(x interface{}) string {
reflect.ValueOf
type stringer interface {
String() string
}
switch x := x.(type) {
case stringer:
return x.String()
case string:
return x
case int:
return strconv.Itoa(x)
case bool:
if x {
... |
# ddu-source-emoji
Emoji source for ddu.vim
This source collects GitHub style emojis.
Please read [help](doc/ddu-source-emoji.txt) for details.
## Requirements
- [denops.vim](https://github.com/vim-denops/denops.vim)
- [ddu.vim](https://github.com/Shougo/ddu.vim)
- [ddu-kind-word](https://github.com/Shougo/ddu-kin... |
# 参考资料
下面是关于阿里中台的一些公开资料
## TMF & 星环
* 阿里玄难:面向不确定性的软件设计几点思考 https://mp.weixin.qq.com/s/Uc_wJSVQr7sSz2js2pb3OA
* 如何实现32.5万笔/秒的交易峰值?阿里交易系统TMF2.0技术揭秘 https://mp.weixin.qq.com/s/Pm9L57iSWhjTE2WqJWrQeg
* 大麦交易融入阿里电商平台之路 https://www.infoq.cn/article/W3Ztwqs9Q4aStbksD0mJ
* 阿里发布业务平台解决方案 预计3年内将帮助业务提升10倍效率 http://www.cww.net.cn... |
package de.dotwee.micropinner;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
public class IsEqualTrimmingAndIgnoringCase extends BaseMatcher<String> {
private final String string;
public IsEqualTrimmingAndIgnoringCase(String string) {
if (string == null) {
throw new ... |
import React from 'react'
import nightOwl from 'prism-react-renderer/themes/oceanicNext'
import Highlight, { defaultProps } from 'prism-react-renderer'
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'
import styled from 'styled-components'
import { useMDXScope } from 'gatsby-plugin-mdx/cont... |
println("tell me sth")
test_me=100
typeof(test_me)
tsstr=""""abba" test chars in string"""
println(tsstr)
typeof('a')
myphonebook = Dict("Jenny" => "867-5309", "Ghostbusters" => "555-2368")
myphonebook["Jenny"]
rand(4,3)
n=10
m=10
for i in 1:n
println("testing $i")
end
C=[ i+j for i in 1:n,j in 1:m] |
<div class="content-view">
<h6>Por favor, selecione uma opção do menu ao lado para começar!</h6>
</div> |
<?php
namespace LNCH\LaravelAdminUI;
use Illuminate\Support\ServiceProvider;
use LNCH\LaravelAdminUI\View\Components\NavigationMenuItem;
use LNCH\LaravelAdminUI\View\Components\NavigationMenuTitle;
use LNCH\LaravelAdminUI\View\Components\NavigationSubMenu;
use LNCH\LaravelAdminUI\View\Components\SearchForm;
class La... |
//! Module providing the building blocks to create macros and expand them.
use std::any::Any;
use std::error::Error as StdError;
use std::mem;
use std::sync::{Arc, RwLock};
use futures::{stream, Future, Stream};
use base::ast::{self, Expr, MutVisitor, SpannedExpr};
use base::error::Errors as BaseErrors;
use base::fnv... |
This is not an officially supported Google product.
This project is a fork of the 'synergyfinder' project, available in github at
https://github.com/hly89/synergyfinder, and also available in BioConductor. The
code here was originally offered as a patch to the main project, with some code
clean-up, bug fixes, and uni... |
import pygame
from OpenGL.GL import *
from OpenGL.GLU import *
from ctypes import *
import numpy as np
import pywavefront
vertex = """
#version 330 core
layout (location = 0) in vec3 aPos;
void main()
{
gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);
}
"""
fragment = """
#version 330 core
out vec4 FragColor... |
// Copyright (C) 2011-2020
// Made by Marcus "Bitsauce" Vergara
// Distributed under the MIT license
#pragma once
#include <Sauce/Common.h>
BEGIN_SAUCE_NAMESPACE
class SAUCE_API TextureRegion
{
public:
TextureRegion();
TextureRegion(const Vector2F &uv0, const Vector2F &uv1);
TextureRegion(const float u0, const f... |
namespace :docm do
desc 'if the current data dump is newer than the contents of the database, this loads the newer data dump'
task :load, [] => :environment do |_, args|
Database::Upgrade.upgrade_if_needed
end
desc 'dump the contents of your current docm database'
task :dump, [] => :environment do |_, ar... |
오늘 만난 에러들..
Uncaught TypeError: Illegal invocation
이 에러는 잘못된 변수를 입력했을때 나왔습니다. 아래처럼 addEventListener에 3번째 변수로 checkId의 변수값을 넣었기 때문입니다.
'''
checkIdBtn.addEventListener('click',checkId,id);
'''
원래 3번째 변수로는 option이 들어가야합니다.
(1번은 이벤틍유형: test, click, scroll... 2번은 함수 참고로 1번은 ''안에 입력, 나머지는 그냥 입력해줍니다.)
사용 가능한 옵션은 다음과 같습... |
@props([
'title',
'errorMessage' => null
])
<div class="flex flex-col" x-data="{}">
<x-button outline @click="$refs.btn.click()" class="w-34">
{{ $title }}
</x-button>
<input type="file" class="hidden" x-ref="btn" {{ $attributes }}/>
<div>
<x-input.error for="invoice" :message="... |
package mesosphere.marathon
package core.matcher.base.util
import org.apache.mesos.{ Protos => Mesos }
import mesosphere.marathon.core.launcher.InstanceOp
import mesosphere.marathon.core.matcher.base.OfferMatcher.MatchedInstanceOps
import scala.collection.immutable
/**
* Helper for tests that want to validate offe... |
import classnames from 'classnames';
import React, { Component, ClipboardEvent } from 'react';
import ContactDropdownList from '../ContactDropdownList';
import { RemoveButton } from '../RemoveButton';
import { focusCampo } from './focusCampo';
import i18n from './i18n';
import { SelectedRecipients } from './SelectedRe... |
define("one", {
name: "one"
});
define("two", ["one"], function (one) {
return {
name: "two",
oneName: "one"
};
});
|
use strict;
use warnings;
use FindBin '$Bin';
use Test::More;
use lib "$Bin/../../../../lib";
use Raisin;
use Raisin::Plugin::Format::TEXT;
my @CASES = (
{
string => "{\n 'str' => 'i-am-a-string'\n}\n",
data => { str => 'i-am-a-string' },
},
{
string => <<EOF,
{
'str' => [
... |
<?php
/* Luhn algorithm number checker - (c) 2005-2008 shaman - www.planzero.org *
* This code has been released into the public domain, however please *
* give credit to the original author where possible. */
function luhn_check($number) {
// Strip any non-digits (useful for credit card... |
package com.jirayul.counter
import org.junit.Before
import org.junit.Test
import org.mockito.Mockito.*
/**
* Created by Gear on 23/3/2018 AD.
*/
class CounterPresenterTest {
lateinit var view: CounterView
lateinit var presenter: CounterPresenter
@Before
fun init(){
view = mock(CounterView:... |
using System;
namespace PlayCategoryContractsApp
{
public record CatalogItemCreated(Guid ItemId, string Name, string Description);
public record CatalogItemUpdated(Guid ItemId, string Name, string Description);
public record CatalogItemDelete(Guid ItemId);
}
|
#include <bits/stdc++.h>
using namespace std;
const int maxn=1e5+10;
int n,m,q,rt[maxn],toid[maxn];
template<typename T>void read(T &x){
T v=0,w=1; char ch=getchar();
while(!isdigit(ch)){if(ch=='-')w=-1;ch=getchar();}
while(isdigit(ch))v=v*10+ch-'0',ch=getchar();
x=v*w;return;
}
template<typename T>void write(T x){... |
#!/bin/bash
########################################################################
#
# Linux on Hyper-V and Azure Test Code, ver. 1.0.0
# Copyright (c) Microsoft Corporation
#
# All rights reserved.
# Licensed under the Apache License, Version 2.0 (the ""License"");
# you may not use this file except in compliance w... |
--TEST--
Form with submit button
--FILE--
<?php
require(dirname(__FILE__).'/../../../../lib/autoload.php');
$id = 'test.form';
// Create toolbox
$toolbox_config = json_decode(file_get_contents(dirname(__FILE__).'/../duf_toolbox.json.php'), TRUE);
$toolbox = new \Duf\Toolbox($toolbox_config, null);
// Form definition... |
#!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# This code is PEP8-compliant. See http://www.python.org/dev/peps/pep-0008/.
from __future__ import unicode_literals
from alex_da.components.slu import da
from django.core.exceptions import ValidationError
import settings
def validate_dai(dai):
# XXX Why do we compa... |
import {strMillisecToMinWithSec} from '@do-while-for-each/common'
import {isDirectoryOk} from '../../validator';
import {ICleanDirOpt} from '../../contract';
import {cleanDir} from './clean-dir';
import {action, err} from './log';
export function cleanDirs(dirPaths: string[], opt: ICleanDirOpt = {}): void {
validate... |
<?php
/*
* This file is part of the Arnapou Simple Site package.
*
* (c) Arnaud Buathier <arnaud@arnapou.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Arnapou\SimpleSite\Controllers;
use Arnapou\SimpleSite\Core\... |
/* Copyright (C) 2012 Ion Torrent Systems, Inc. All Rights Reserved */
#ifndef CUDAEXCEPTION_H
#define CUDAEXCEPTION_H
#include <iostream>
#include <exception>
#include "CudaDefines.h"
using namespace std;
class cudaException: public exception
{
protected:
cudaError_t err;
public:
cudaError_t getCudaErro... |
### Description:
<!---
- Please include a summary of the change and which issue is related
- Include relevant motivation and context
- List any dependencies that are required for this change
-->
#### Details:
<!---
Any resources available, like images, links and videos;
-->
#### Dependencies:
<!---
List any issue o... |
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
}
val kotlinVersion: String by settings
resolutionStrategy.eachPlugin {
if (requested.id.toString().startsWith("org.jetbrains.kotlin.")) {
useVersion(kotlinVersion)
}
}
}
rootProject.... |
#![allow(non_snake_case)]
#![cfg_attr(debug_assertions, allow(dead_code, unused_imports))]
extern crate raylib;
use raylib::consts::KeyboardKey;
use raylib::consts::KeyboardKey::*;
use raylib::consts::MouseButton::*;
use raylib::prelude::*;
use structopt::StructOpt;
mod options;
trait Drawable {
fn draw(&self, d... |
// This program does benchmarking of the functions in verify.rs,
// that do certificate chain validation and signature verification.
//
// Note: we don't use any of the standard 'cargo bench', 'test::Bencher',
// etc. because it's unstable at the time of writing.
use std::time::{Duration, Instant};
use anchors;
use v... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.... |
module Views
class QuestionTitle
def initialize(form, online_application)
@form = form
@online_application = online_application
end
def i18n_title
'text'.tap do |i18n|
if (%w[savings_and_investment_extra] + income_questions).include?(@form.id)
i18n << (@online_applicat... |
/*
* Copyright 2013 the original author or 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 applica... |
class AddClosedDateTimeAndUpdatorToDispute < ActiveRecord::Migration[5.2]
def up
rename_column :disputes, :closed, :closed_boolean
add_column :disputes, :closed, :datetime
execute 'UPDATE disputes SET closed = updated_at WHERE closed_boolean = true'
execute 'UPDATE disputes SET closed = NULL WHERE clo... |
Sequel.migration do
change do
enabled_guids = self[:processes].where(enable_ssh: true, type: 'web').select(:guid)
disabled_guids = self[:processes].where(enable_ssh: false, type: 'web').select(:guid)
self[:apps].where(Sequel.lit('guid IN ?', enabled_guids)).update(enable_ssh: true)
self[:apps].where(S... |
#include "spaceship.h"
SpaceShip::SpaceShip() :
Entity (Entity::SpaceShip)
{
//now hardcoded the behavior chosen. Future to chose between ships
//will give th option to choose between different behaviors
moveBehavior = new ManualMoveBehavior;
}
Entity::Element SpaceShip::getType()
{
return Elemen... |
# @author Sergej Schmidt (sergej.schmidt at uni-ulm.de)
# Defines an interface for all classes responsible for field inference.
# @abstract
class AbstractFieldInference
# Constructor, initializes internal objects for all subclasses involved in the
# inference step.
def initializes
raise NotImplementedError
... |
require 'spec_helper'
require 'bundler_ext/runtime'
module BundlerExt
describe Runtime do
describe "#gemfile" do
it "gets/sets bext_gemfile" do
runtime = described_class.new
runtime.gemfile('Gemfile.in').should == 'Gemfile.in'
runtime.gemfile.should == 'Gemfile.in'
end
... |
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
namespace Natasha.CSharp.Domain.Utils
{
/// <summary>
/// 引用模板
/// </summary>
public sealed class NatashaUsingCache
{
internal readonly HashSet<string> _usings;
//internal readonly HashSet<... |
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;
using MetalographicsProject.Analysators.Objects;
namespace MetalographicsProject.Analysators.Forms {
public partial class BlobDetailsForm : Form {
private BlobDetector detector;
publi... |
#ifndef RENDERING_H
#define RENDERING_H
#include <geolib/datatypes.h>
// Forward declarations
namespace ed {
class WorldModel;
}
namespace geo {
class DepthCamera;
}
namespace cv {
class Mat;
}
namespace ed
{
/**
* @brief The ShowVolumes enum indicates which volumes to render
*/
enum ShowVolumes
{
... |
package funcify.feature.graph.template
import funcify.feature.graph.container.PersistentGraphContainer
import kotlinx.collections.immutable.PersistentMap
import kotlinx.collections.immutable.PersistentSet
/**
* @param CWT
* - Container witness type parameter
*/
internal interface PersistentGraphTemplate<CWT> {
... |
package oldmana.md.net.packet.server;
import oldmana.general.mjnetworkingapi.packet.Packet;
public class PacketStatus extends Packet
{
public String text;
public PacketStatus() {}
public PacketStatus(String text)
{
this.text = text;
}
}
|
///////////////////////////////////////////////////////////////////////////
// __ _ _ ________ //
// / / ____ ____ _(_)____/ | / / ____/ //
// / / / __ \/ __ `/ / ___/ |/ / / __ //
// ... |
class CreateActs < ActiveRecord::Migration[6.0]
def change
create_table :acts do |t|
t.integer :quantity
t.references :availability, null: false, foreign_key: true
t.references :store, null: false, foreign_key: true
t.timestamps
end
reversible do |dir|
dir.up do
exe... |
import MySQLdb
import time
from w1thermsensor import W1ThermSensor
import RPi.GPIO as GPIO
# Checking single instance
import singleton
me = singleton.SingleInstance()
# Initializing GPIO
GPIO.setmode(GPIO.BCM)
pinList = [20, 21]
# loop through pins and set mode and state to 'low'
for i in pinList:
G... |
package org.generousg.fruitylib.blocks
import net.minecraft.block.material.Material
import net.minecraft.block.properties.PropertyEnum
import net.minecraft.block.state.BlockStateContainer
import net.minecraft.block.state.IBlockState
import net.minecraft.util.EnumFacing
import net.minecraft.util.math.BlockPos
import ne... |
import type { IFiremodelState } from '~/types';
import { IFmLocalRelationshipEvent } from 'firemodel';
import { MutationTree } from 'vuex';
import Vue from 'vue';
import { FmCrudMutation } from '~/enums';
export const relationships = <T>() =>
({
// LOCAL
[FmCrudMutation.relationshipAddedLocally](state, payl... |
# frozen_string_literal: true
require 'spec_helper'
describe Gitlab::Email::Smime::Signer do
include SmimeHelper
it 'signs data appropriately with SMIME' do
root_certificate = generate_root
certificate = generate_cert(root_ca: root_certificate)
signed_content = described_class.sign(
cert: cert... |
import test from 'ava';
import { internals } from '../ViewPlugin';
const style = {
want: 'want_hashed'
};
test('joinClasses', t => {
t.is('other want_hashed classes', internals.joinClasses(style, 'other want classes'));
t.is('other want_hashed classes', internals.joinClasses(style, [{ other: true, want: true }... |
package itertools
import (
"math/rand"
"testing"
)
func TestCount(t *testing.T) {
count := Count()
for i := 0; i < 1000000; i++ {
x, ok := <-count
if !ok {
t.Fatal("count stopped at", i)
}
if i != x {
t.Fatal("count incorrect: got", x, "expected", i)
}
}
}
func TestCountStartStep(t *testing.T) {... |
import unittest
from .basetest import ImageCompleteTest
from image_complete.auto import is_image_complete
class TestAuto(ImageCompleteTest):
def test_complete_gif(self):
self.assertTrue(is_image_complete(self.data_file("complete.gif")))
def test_complete_jpg(self):
self.assertTrue(is_image_c... |
# frozen_string_literal: true
RSpec.describe ShinyColors::Idol do
describe 'class method' do
it '#all' do
expect(described_class.all.count).to eq 23
end
end
describe 'instance method' do
let(:asahi) { ShinyColors.asahi }
it '#nickname' do
expect(asahi.nickname).to eq ['あさひ']
end... |
require 'net/https'
require 'poms/api/response'
require 'poms/errors'
module Poms
module Api
module Drivers
# The NetHttp driver is a special module that can be used to implement the
# HTTP operations in the Client module. This is done by including a driver
# module into the client.
#
... |
'use strict';
angular.module("billAdmApp.login", [])
.config(["$stateProvider", function($stateProvider) {
$stateProvider
.state("login", {
url: "/login",
views: {
"loginform": {
templateUrl: "login/login.html",
controller: "LoginCtrl",
},
},
});
}])
.factory("UserService", fun... |
## Example plugin implementations
datasource:[simple-json-datasource](https://github.com/grafana/simple-json-datasource)
app: [example-app](https://github.com/grafana/example-app) |
class Reports < SimpleDelegator
include ActionView::Helpers::TextHelper
# validates :country, :months, presence: true
end
|
import * as React from 'react';
import { rem } from 'polished';
import { motion, AnimateSharedLayout } from 'framer-motion';
import { graphql } from 'gatsby';
import { styled } from 'gatsby-theme-stitches/src/stitches.config';
type PrismicTeamContentsDataCultureBodyHowWeWorkProps = {
data: GatsbyTypes.PrismicTeamCon... |
#!/bin/bash
# Install dependencies in admin
composer install -d /var/www/admin/symfony
# Install dependencies in api
composer install -d /var/www/api/symfony |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Licen... |
/*
module : code.h
version : 1.2
date : 10/26/20
*/
typedef void (*proc_t)(void);
void put(long num);
void rev(int start, int einde);
void proc(data_t *cur);
long pop(void);
void loop(void);
int user(long num);
void exeterm(data_t *cur);
int used(void);
long peek(int i);
void poke(int i, long num);
voi... |
package more
/**
* Created by Inno Fang on 2018/2/16.
*/
fun main(args: Array<String>) {
run breaking@ {
(0..20).forEach continuing@ {
if (10 <= it) return@breaking
println(it)
}
}
} |
package Method::Frame::Domain::Module::ParameterFactory;
use Method::Frame::Base;
use Carp ();
use Method::Frame::Util;
use Method::Frame::Domain::Module::Frame::RequiredParameter;
use Method::Frame::Domain::Module::Frame::DefaultParameter;
use Method::Frame::Domain::Module::Frame::OptionalParameter;
sub create {
... |
package bheap
import (
"container/heap"
"godev/basic"
)
// Heap use heap interface from "container/heap"
type Heap struct {
values []interface{}
comparator basic.Comparator
}
func (h Heap) Len() int {
return len(h.values)
}
func (h Heap) Less(i, j int) bool {
return h.comparator(h.values[i], h.values[j]) ... |
import grok
class ICMSSkin(grok.IDefaultBrowserLayer):
grok.skin('cms')
class IRetailBaseSkin(grok.IDefaultBrowserLayer):
# The base skin doesn't register views for content
# types to allow using viewlets.
grok.skin('retailbase')
class IRetailSkin(IRetailBaseSkin):
grok.skin('retail')
|
use cosmwasm_std::testing::{mock_env, mock_info, MOCK_CONTRACT_ADDR};
use cosmwasm_std::{attr, from_binary, Env, MessageInfo, Response, Uint128};
use pylon_token::common::OrderBy;
use pylon_token::gov_msg::{VoteOption as GovVoteOption, VoterInfo as GovVoterInfo};
use pylon_token::gov_resp::{PollResponse, StakerResponse... |
package com.nullgr.core.adapter
import com.nullgr.core.adapter.items.ListItem
/**
* Factory interface that creates [AdapterDelegate]s by class of [ListItem].
*
* @author a.komarovskyi
*/
interface AdapterDelegatesFactory {
fun createDelegate(clazz: Class<ListItem>): AdapterDelegate
} |
import 'package:spot/core/utils/exports.dart';
class DetailTile extends StatelessWidget {
const DetailTile({
Key? key,
required this.title,
required this.content,
}) : super(key: key);
final String title;
final String content;
@override
Widget build(BuildContext context) {
final theme = T... |
---
title: "[HTML5] fieldset tag 와 legend tag"
date: 2019-02-23 13:00:00 -0400
categories: HTML5
tags: HTML5 fieldset legend
---
form 구성요소 fieldset와 legend tag
=======
form을 구성하기 위해서는 마크업적으로 고려해야할 사항이
꽤 많습니다.
그 중에서도 fieldset tag와 legend tag 에 대해 포스팅하고자 합니다.
먼저, fieldset tag는 같은 목적을 가진 위젯들을 편리하게 그룹화 하는 태그입니다.<br>
그... |
import tempfile
from unittest import TestCase
from yuriko.manager import NotesManager
class NotesManagerTestCase(TestCase):
PASSWORD = '0' * 16
def test_manager(self):
with tempfile.NamedTemporaryFile(suffix='test') as tf:
manager = NotesManager(path=tf.name, password=self.PASSWORD)
... |
require 'hammer/parser'
require 'slim'
module Hammer
class SlimParser < Parser
accepts :slim
returns :html
register_as_default_for_extensions :slim
def to_format(format)
if format == :slim
@text # Variables?
else
test = Hammer::ContentProxy.new()
parse(@text,nil, ... |
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use {
crate::{
component_instance::{
ComponentInstanceInterface, ExtendedInstanceInterface, WeakExtendedInstanceInterface,
... |
package corejava.regex;
public class StringRegex{
public static void main(String[]args){
String original="abbacaenibib";
if(original.matches(".*ba*b.*")){System.out.println("String matches regex");}
else{
System.out.println("String doesnt match regex");}
... |
#!/bin/bash
#
# Create JS bundles.
node_modules/rollup/dist/bin/rollup --config rollup.conf.js "$@"
|
import logging
from typing import Any, Text, Dict, List, Type, Tuple
import joblib
from scipy.sparse import hstack, vstack, csr_matrix
from sklearn.linear_model import LogisticRegression
from rasa.engine.storage.resource import Resource
from rasa.engine.storage.storage import ModelStorage
from rasa.engine.recipes.def... |
+++
title = "Buttons"
description = ""
weight = 2
+++
The button shortcode allows you to add a button to the page. This button is a HTML *anchor* element and can thus be used to link to another page or website.
{{< button style="primary" >}} Button {{< /button >}}
{{< button style="secondary" >}} Button {{< /button >... |
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p python36 awscli docker-compose
set -ex
nix-store -qR --include-outputs $(nix-instantiate shell.nix) | cachix push linum-jupyter-lab
docker-compose build
$(aws ecr get-login --no-include-email --region $REGION)
docker-compose push
# kubectl apply -f kubernetes
|
package org.chronopolis.replicate.support
/**
* So we can mock the [SmtpReporter]
*
* @since 3.1.0
* @author shake
*/
interface Reporter<T> {
fun send(message: T)
fun createMessage(node: String, subject: String, message: String): T
} |
#### vrc Core Wallet
vrc Specifications
Full info
Ticker: vrc
Algorithm: X11
Masternode colletral: 5000 vrc
Masternode rewards: 85%
Block reward till block: 6000 - 1 vrc
Block reward: 100 vrc - 200 vrc
POS start block: 1200
Block Timer: 60 seconds
Maturity: 30 blocks
Max supply: 21 000 000 vrc
Premine: 300... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.