text stringlengths 27 775k |
|---|
#!/usr/bin/perl
#
# Re-align the columns in insns.dat, and enforce case conventions
#
@cols = (0, 16, 48, 96);
while ($line = <STDIN>) {
chomp $line;
if ($line !~ /^\s*(\;.*|)$/) {
($ln = $line) =~ s/\s+$//;
if ($line =~ /^\s*(\S+)\s+(\S+)\s+(\S+|\[.*\])\s+(\S+)\s*$/) {
@fields = ($1, $2, $3, $4);
... |
package main
import (
"bytes"
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"path/filepath"
"strings"
"time"
)
const rootTemplate = `// DO NOT EDIT THIS FILE
// Code generated by mbed.go
// %v
package %v
var files = map[string][]byte{
%v
}
func GetFileBytes(path string) []byte {
return files[path]
}
func GetFileC... |
SELECT
id,
token,
display_name AS name,
is_active AS active
FROM
OA_EVENT_SOURCE_GAME oesg
INNER JOIN OA_EVENT_SOURCE oes ON oesg.event_source_id = oes.id
WHERE
oesg.game_id = :gameId
AND
oes.is_active = 1 |
module Distribution.Client.Dependency.Modular.Index where
import Data.List as L
import Data.Map as M
import Prelude hiding (pi)
import Distribution.Client.Dependency.Modular.Dependency
import Distribution.Client.Dependency.Modular.Flag
import Distribution.Client.Dependency.Modular.Package
-- | An index contains info... |
package com.lurkerbot.gameTime
import com.github.michaelbull.result.Err
import com.github.michaelbull.result.Ok
import com.github.michaelbull.result.Result
import java.time.LocalDateTime
import java.time.temporal.ChronoUnit
import mu.KotlinLogging
class GameTimer(private val timerRepository: TimerRepository) {
pr... |
import {TypeFacture} from '../type-facture/type-facture';
import {Mouvement} from '../mouvement/mouvement';
import {Tva} from '../tva/tva';
export class Facture extends Mouvement{
numeroFacture: string;
tva: Tva;
exonere: boolean;
montantFactureRegle: number;
dateEcheance: string;
typeFacture: TypeFacture;... |
package BIDMat
import scala.collection.mutable.HashMap
import java.lang.ref._
import jcuda.NativePointerObject
class Mat(nr:Int, nc:Int) {
val nrows = nr
val ncols = nc
def length = nr*nc
private var _GUID = Mat.myrand.nextLong
def setGUID(v:Long):Unit = {_GUID = v}
def GUID:Long =... |
## Overview
The files in this directory represent a cert hierarchy to test OCSP response stapling.
## CA
- ca_cert.pem
- ca_key.pem
Issuer for all of the other certs in the directory.
Since this is a test PKI, we do an intermediate for issuing leaf cert(s).
## OCSP
* ocsp_cert.pem
* ocsp_key.pem
Cert/key for the te... |
module Relevance
module Tarantula
class InvalidHtmlHandler
include Relevance::Tarantula
def handle(result)
response = result.response
unless response.html?
log "Skipping #{self.class} on url: #{result.url} because response is not html."
return
end
b... |
#pragma once
#include <cassert>
#include <cstring>
#include <limits>
#include <optional>
#include <string_view>
#include "lmdb.h"
#include "lmdb/enum_helper.h"
#include "lmdb/error.h"
namespace lmdb {
template <typename Ec>
void ex(Ec&& ec) {
if (ec != MDB_SUCCESS) {
throw std::system_error{error::make_error... |
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ----------------------------------------... |
package analysisservices
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
... |
library pineaple_repo_def_exporter;
// Export all the usecase implementations.
export 'pineaple_area_repo_def.dart';
export 'pineaple_pos_repo_def.dart';
|
package spark1.project.domain
case class ClickLog(ip:String,time:String,courseId:Int,statusCode:Int,referer:String)
|
import { TestBed, ComponentFixture } from '@angular/core/testing';
import { Component, DebugElement } from '@angular/core';
import { TdFullscreenDirective } from './fullscreen.directive';
import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing';
import { By ... |
<?php
declare(strict_types=1);
namespace IamPersistent\SimpleShop\Interactor\DBal;
use DateTime;
use IamPersistent\SimpleShop\Entity\CreditCard;
use IamPersistent\SimpleShop\Interactor\FindCardByIdInterface;
final class FindCardById extends DBalCommon implements FindCardByIdInterface
{
public function find($id):... |
---
uid: System.EnterpriseServices.ApplicationIDAttribute
internalonly: False
---
---
uid: System.EnterpriseServices.ApplicationIDAttribute.Value
internalonly: False
---
---
uid: System.EnterpriseServices.ApplicationIDAttribute.#ctor(System.String)
internalonly: False
---
|
# Allows you to see the Virtuoso loading progress, once started with load.sh
#
sql='select count(*) from DB.DBA.LOAD_LIST'
isql='/nfs/public/rw/homes/rdf_adm/virtuoso-opensource-7/bin/isql 127.0.0.1:1151 dba dba'
echo ------ Loaded Files ------
echo "$sql WHERE ll_state = 2;" | $isql
echo ------ Total Files ------
ec... |
/**
* @Author: Mervyn
* @Date: 2016,Apr,30 11:52:05
* @Last modified by: Mervyn
* @Last modified time: 2016,Aug,01 01:02:40
*/
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
BackAndroid,
ToastAndroid,
} from 'react-native';
import {Main} from './views/android/main';
import {P... |
package com.ONLLL.basequickadapter;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.support.annotation.ColorLong;
import android.support.annotation.DrawableRes;
import android.support.annotation.FloatRange;
import android.support.annotation.IdRes;
import android.support.annota... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class UID extends CI_Model {
public function generate($pref,$tbl,$id_col)
{
$id = uniqid($pref);
while($this->db->get_where($tbl,[$id_col=>$id])->num_rows()>0){
$id = uniqid($pref);
}
return($id);
}
... |
CREATE TABLE [dbo].[Channel]
(
[ChannelId] INT NOT NULL PRIMARY KEY IDENTITY(1,1),
[Name] NVARCHAR(200) NOT NULL,
[Description] NVARCHAR(4000) NOT NULL,
[UniqueAlias] NVARCHAR(200) NOT NULL,
[ParentChannelID] INT NULL,
[ImageUrl] NVARCHAR(250) NULL,
[CreatedDate] DATETIME NOT NULL DEFAULT GETUTCDATE(),
... |
package com.gitee.code4fun.facerecognition.common.util;
import com.alibaba.fastjson.JSONObject;
import java.util.HashMap;
import java.util.Map;
/**
* @author yujingze
* @data 18/4/8
*/
public class ResponseBuilder {
private HashMap<String,Object> data = new HashMap<String, Object>();
public ResponseBuil... |
<?php
class XenForo_DataWriter_Helper_Option
{
/**
* Verifies that the Google Analytics Web Property ID is valid, if specified.
* See https://www.google.com/support/googleanalytics/bin/answer.py?answer=113500
*
* @param string $wpId
* @param XenForo_DataWriter $dw
* @param string $fieldName
*
* @retur... |
subroutine foo
c equivalence between variable and single dimensional array
integer len
parameter (len = 10)
integer var
integer array(20)
equivalence(var, array(len + 5))
c equivalence for substring
c equivalence among multiple entities
c character a*4, b*4, c(2... |
require 'spec_helper'
describe Ducktrap::Mapper do
let(:object) { described_class }
subject { described_class.build(&block) }
let(:block) { proc {} }
let(:builder) { double('Builder', :object => mapper) }
let(:mapper) { double('Mapper') }
it 'should cal... |
import Math.NumberTheory.Powers.Squares (exactSquareRoot)
import Data.Foldable
compositions :: Int -> [[Int]]
compositions 0 = [[]]
compositions n = concatMap (\k -> map (k:) $ compositions (n-k)) [1..n]
-- Very closely related to A228352.
f k n = sum $ map ((k^) . numberOfOnes) $ compositions n where
numberOfOnes =... |
<?php
namespace OneLang\One\Transforms\InferTypesPlugins\Helpers\InferTypesPlugin;
use OneLang\One\ErrorManager\ErrorManager;
use OneLang\One\Ast\Expressions\Expression;
use OneLang\One\Transforms\InferTypes\InferTypes;
use OneLang\One\Ast\Statements\Statement;
use OneLang\One\Ast\Types\Property;
use OneLang\One\Ast\... |
package com.tz.service;
import com.tz.pojo.ZaGift;
import com.tz.pojo.index.vo.ZaGiftVo;
import com.tz.res.AppMsgResult;
public interface GiftService {
AppMsgResult getGiftList(ZaGiftVo zaGiftVo,Integer curPage,Integer rows, String userId, String token);
AppMsgResult addOrUpdateGift(ZaGift zagift, String type, St... |
#!/bin/bash
NIGHTBOT_COMMAND="<command id>"
SCRIPT_DIR="/Users/noopkat/bin/twitch-scripts"
CREDS_FILE="${SCRIPT_DIR}/nightbot-creds.txt"
TOKENS_FILE="${SCRIPT_DIR}/nightbot-tokens.txt"
REFRESH_TOKEN=$(cat $TOKENS_FILE | /usr/local/bin/jq '.refresh_token' -r)
CREDS=$(cat $CREDS_FILE)
curl -X POST https://api.nightbo... |
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond ... |
2020年08月01日23时数据
Status: 200
1.张继科和镜子里动作不一样
微博热度:4023024
2.警方发现在青海失联女大学生遗骸
微博热度:2842198
3.沙溢带兄弟团回家
微博热度:2669182
4.刘忻为了乐夏拒绝乘风破浪
微博热度:2548949
5.字节跳动同意剥离TIKTOK美国业务
微博热度:2231545
6.小鸡长在王一博笑点上
微博热度:1669204
7.691分考入清华暑期搬砖打工
微博热度:1304573
8.5人出游唯一生还者发声
微博热度:1097393
9.TikTok明星博主向粉丝道别
微博热度:904993
10.伊朗称逮捕了美国支持的... |
#pragma once
#include <v8.h>
#include <node.h>
#include <node_version.h>
#include <node_buffer.h>
#include <uv.h>
using namespace node;
using namespace v8;
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
#include "llvm/IRBuilder.h"
#include "llvm/BasicBlock.h"
#include "llvm/Function.h"
#include "llvm/Executi... |
using NMR
using Base.Test
ϵ = 0.001
# Phenyl boronic acid in CDCl3 (300 MHz)
dataset_path = joinpath(@__DIR__, "data", "PhB(OH)2", "1")
# write your own tests here
@testset "Read Bruker" begin
s = Spectrum(dataset_path, 1)
@test s.default_proc == 1
@test length(s) == length(s[1]) == s["SI"] == 32768
... |
package io.sitoolkit.wt.app.page2script;
import java.util.Arrays;
import org.apache.commons.lang3.StringUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annota... |
# Single Master with 3-nodes
## Version
```
ElasticSearch: 7.6.1
Kibana: 7.6.1
```
## Run
### Example
|host name|node.name|host ip|master|data|
|:-:|:-:|:-:|:-:|:-:|
|pdk1|es01|10.1.110.1|true|true|
|pdk2|es02|10.1.110.2|false|true|
|pdk3|es03|10.1.110.3|false|true|
please modify the network.publish_host, discovery.... |
#!/bin/bash
# LGSM check_config.sh function
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
lgsm_version="060116"
# Description: If server config missing warn user.
if [ ! -e "${servercfgfullpath}" ]; then
if [ "${gamename}" != "Hurtworld" ]; then
fn_printwarnnl "Config file missing!"
echo "${ser... |
(ColName integer, int_start integer, int_stop integer)
RETURNS integer stable AS $$
import random
return random.randint(int_start,int_stop)
$$ LANGUAGE plpythonu; |
/*************************************************************************
* Copyright (C) 2021 by Cambricon, Inc. All rights reserved.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULA... |
import 'package:animation_tools/spine/spine_animation_tools.dart';
import 'package:args/args.dart';
void main(List<String> args) async {
final parser = ArgParser();
parser.addOption(
'source',
help: 'Path to animation folder.',
mandatory: true,
);
parser.addOption('copy', help: 'Copy or/and rename... |
package main
import (
"bytes"
"fmt"
"go/format"
"io/ioutil"
"log"
"os"
"path/filepath"
"strings"
"text/template"
"github.com/gabriel-vasile/mimetype"
)
// Define vars for build template
var conv = map[string]interface{}{
"byteArray": byteArray,
"mime": determineMIMEType,
}
var tmpl = template.Must(t... |
class PlayLeftJoinController < ApplicationController
def index
@left1 = PlayArticle.left_joins(:play_category)
.select(:id, :title, 'play_categories.name as category_name')
@left1_sql = @left1.to_sql
@left2 = PlayArticle.left_joins(:play_authors, :play_accesses)
.select(... |
# Transformed data
This directory contains transformed versions of municipality-level Rhode Island
overdose data and population estimates. It includes:
- `incidents.csv`: 2018 accidental overdose deaths by municipality
- `populations.csv`: 2018 municipality populations
- `incident_rates.csv`: Event rates, posterior i... |
-module(fns).
-import(lists,[foldl/3,map/2,filter/2]).
-export([doubleAll/1,evens/1,product/1,zip/2,zip_with/3]).
doubleAll(Xs) ->
map(fun(E) -> E * 2 end, Xs).
evens(Xs) ->
filter(fun(E) -> E rem 2 == 0 end, Xs).
product(Xs) ->
foldl(fun erlang:'*'/2, 1 , Xs).
%%
zip_with(Fn, [X|Xs],[Y|Ys]) ->
... |
gpg \
--local-user "${PARAM_KEYPAIR_EMAIL}" \
--armor \
--output /tmp/generated_signature.pgp \
--sign "${PARAM_PAYLOAD_FILEPATH}"
echo "Success! Attestation payload signed" |
script_loc=`cd $(dirname $0) && pwd -P`
. $script_loc/common.sh
START=$PWD
PATH=$NEW_PATH:$PATH
cd $GNATCOLL_DB_SRC
make -w -C sql setup prefix=$PREFIX
make -w -C sql clean build GPRBUILD_OPTIONS="--db $script_loc/config"
make -w -C sql install
make -w -C sqlite setup prefix=$PREFIX
make -w -C sqlite clean build ... |
package ssp
import (
"context"
sqrl "github.com/RaniSputnik/sqrl-go"
)
type TransactionStore interface {
// GetFirstTransaction returns the transaction that started an exchange between
// a SQRL client and SSP server. If no error or transaction is returned then
// the current transaction is the first transactio... |
<?php
/**
* @file
* This file is part of the PdfParser library.
*
* @author Sébastien MALOT <sebastien@malot.fr>
* @date 2017-01-03
*
* @license LGPLv3
* @url <https://github.com/smalot/pdfparser>
*
* PdfParser is a pdf library written in PHP, extraction oriented.
* Copyright (C) 2017 - S... |
---
title: "Weekly Planner Template"
---
<div class="pdf-container">
<iframe src="/assets/docs/matts_weekly_planner.pdf" height="315" width="560" allowfullscreen="" frameborder="10">
</iframe>
</div> |
require 'simplecov'
SimpleCov.start do
filters.clear # This will remove the :root_filter that comes via simplecov's defaults
add_filter do |src|
!(src.filename =~ /^#{SimpleCov.root}\/lib\/lurker/)
end
end
def example_path
if rails_version = ENV['BUNDLE_GEMFILE'].to_s.match(/rails_\d\d/)
File.expand_pa... |
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { ValidationPipe } from '@nestjs/common';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import { Connection } from 'typeorm';
async function bootstrap() {
const app = await NestFactory.create(AppModule, {... |
using CSV, StatsBase
jp(csv) = joinpath(@__DIR__, csv)
datasets = Dict(
:toy1 => (jp("./data/toy/toy1.csv"), 90, :Y),
:toy2 => (jp("./data/toy/toy2.csv"), 90, :Y),
:wine => (jp("./data/wine/wine5K_f32.csv"), 3600, :quality),
:garnet => (jp("./data/garnet/garnet_norm_f32.csv"), 9000, :TiO2),
)
type RealData{T}
X::A... |
package Perl::Gib::Util;
##! #[ignore(item)]
##! Perl::Gib internal utilities.
use strict;
use warnings;
use Carp qw(croak);
use Module::Runtime 0.016 qw(use_package_optimistically);
use Readonly;
use Exporter qw(import);
Readonly::Array our @EXPORT_OK => qw(
throw_exception
);
Readonly::Hash our %EXPORT_TAGS =... |
#include <iostream>
#include <stdlib.h>
#include <time.h>
#include <stack>
#include <vector>
#include <iomanip>
using namespace std;
const int s = 2; //aantal sleetjes
const int p = 3; //rendieren per slee
const int d = 10; //aantal dagen
const int ptot = s*p; //totaal aantal rendieren
int main(){
//init
srand... |
<?php
namespace Jaf;
/**
* 路由接口定义
* 路由匹配是 Jaf 应用运行的第一步
* 路由配置由用户定义,路由类被 Jaf 内部调用,因此 Jaf 路由是 Jaf内部自维护的,接口变更与无关应用层
* Jaf 路由的目的是生成请求体,所以被设计为static方法调用,Jaf路由实际上是对函数进行类包装
*/
interface Route_Interface {
/**
* 路由匹配
* @param String $match 路由定义中的key
* @param array $mca 包含 module,controller,action的路由定义
*... |
#!/bin/bash -x
# configuration
user=webiopi # login username
pass=raspberry # login password
ipadr=raspberrypi.local # webiopi server ip address
port=8000 # webiopi server port number
ch=0 # PWM Ch# [0 or 1]
# Ch#0: GPIO 12 or 18
# Ch#1: GPIO 13 or 19
pin=18 ... |
package tech.kzen.auto.client.objects.document.script.step.display
import tech.kzen.auto.client.service.global.SessionState
import tech.kzen.auto.common.paradigm.imperative.model.ImperativeModel
import tech.kzen.lib.common.model.attribute.AttributeNesting
import tech.kzen.lib.common.model.locate.ObjectLocation
open ... |
-- fktree.sql
-- prototype SQL
-- find the tree of tables linked by FK
-- get the constraint names so we know how to find the columns
-- to use when looking for orphaned rows, and disparities in rows
-- between the same tables on separate servers
@clears
-- example: call with @fktree SCHEMA TABLE_NAME
@@get-schema... |
from functools import reduce
sample_input = ['+1', '-2', '+3', '+1']
def to_change(change):
if change[0] == '-':
return lambda x: x - int(change[1:])
else:
return lambda x: x + int(change[1:])
def get_frequency(changes):
return reduce(lambda acc, x: to_change(x)(acc), changes, 0)
asse... |
using System;
using BookingsApi.Domain.Participants;
using BookingsApi.Infrastructure.Services.Dtos;
namespace BookingsApi.Infrastructure.Services.IntegrationEvents.Events
{
public class ParticipantUpdatedIntegrationEvent: IIntegrationEvent
{
public ParticipantUpdatedIntegrationEvent(Guid hearingId, P... |
package ta.aws.lambda.acme
import fm.common.{Enum, EnumEntry}
object ACMELambdaRequest {
sealed trait Action extends EnumEntry
object Action extends Enum[Action] {
val values: IndexedSeq[Action] = findValues
}
case object HTTPChallenge extends Action
case object GetCertificate extends Action
case ob... |
import json
import os
import re
def handler(request, context):
command = 'compgen -c'
result = os.popen(command).read()
result = re.split('\n', result)
result.sort()
obj = { "cmds": result }
return obj
|
<?php
if (file_exists('install.lock')) {
die('Nightsparrow je već instaliran. Ako niste instalirali Nightsparrow, konzultirajte se s dokumentacijom.');
}
require_once '../inc/install.php';
$install = new Installer();
/** Nightsparrow instalacija **/
$dir = dirname(__FILE__); // koja je putanja do foldera
$dir = str... |
---
layout: post
title: "Java的一些特性与机制"
subtitle: "RMI JMS"
date: 2016-03-13
author: "brucechen"
header-img: "img/post-bg-java.jpg"
published: false
tags:
- Java
- 读书笔记
---
### RMI
Java RMI指的是远程方法调用(Remote Method Invocation)。可以让某个虚拟机上的对象调用另一个虚拟机中的对象方法。下面是一个简单的RMI应用。
```
//定义一个远程接口,必须继承Remo... |
package org.acmvit.gitpositive
import android.content.Intent
import android.os.Bundle
import android.os.VibrationEffect
import android.os.Vibrator
import android.view.View
import android.text.Html
import android.widget.ArrayAdapter
import android.widget.Toast
import androidx.constraintlayout.widget.ConstraintLayout
im... |
class Evaluator
def self.evaluate_tree(tree, lexicon)
unless tree.empty?
operator, list = Lucio.behead tree
if operator.is_symbol? || operator.is_array?
operator = evaluate_tree(operator, lexicon) if operator.is_array?
instruction = (operator.is_hash?) ? operator : lexicon.get(op... |
import React from "react";
import PropTypes from "prop-types";
import { Link } from "react-router-dom";
import Glitch from "./Glitch";
class PortfolioListItem extends React.Component {
render() {
const { assetUrl, id } = this.props;
return (
<div
className="portfolio__list-item"
>
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
let _user_info;
Office.initialize = function(reason)
{
on_initialization_complete();
}
function on_initialization_complete()
{
$(document).ready
(
function()
{
lazy_init_user_info();
populate_templates();
show_signat... |
package izumi.distage.docker
object DockerConst {
object Labels {
final val reuseLabel = "distage.reuse"
final val containerTypeLabel = "distage.type"
final val jvmRunId = "distage.jvmrun"
final val distageRunId = "distage.run"
final val namePrefixLabel = "distage.name.prefix"
final val por... |
%% -*- mode: nitrogen -*-
-module(register).
-include_lib("nitrogen_core/include/wf.hrl").
-include("schema.hrl").
-export([
main/0,
nav/0,
title/0,
body/0,
event/1]).
%% main() -> #template { file="./site/templates/base.html" }.
main() -> #template { file="./priv/templates/base.html" }.
nav()... |
package docs
import org.specs2.mutable.Specification
import cc.spray.testkit.Specs2RouteTest
import cc.spray.routing.HttpService
import akka.actor.Actor
class RejectionHandlerExamplesSpec extends Specification with Specs2RouteTest with HttpService {
implicit def actorRefFactory = system
//# example-1
import c... |
import { createFundedGeneral } from './create_account'
import { createAndApproveAsset } from './create_asset'
import { assetPairHelper, keyValueHelper } from '../helpers'
import { logger } from '../logger'
import { Asset } from '../helpers/asset'
import { createOfferRequest } from './create_sale_offer'
import { ASSET_... |
<script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA-NoP20OejFNd_gxMizvmRCDHwRPg0gJI" ></script>
<style type="text/css">
#map {
height: calc(70vh);
}
</style>
<script>
function initMap() {
... |
DELIMITER /
ALTER TABLE COST_ELEMENT ADD FIN_OBJECT_CODE VARCHAR(4)
/
DELIMITER ;
|
<?php
namespace DMraz\StenoApi\Serializers;
abstract class Base
{
protected $section;
public function __construct($sections)
{
$this->iterateSections($sections);
}
protected function iterateSections($sections)
{
foreach($sections as $section)
{
if($this->find($section)) {
break;... |
package eu.caraus.home24.application.data.domain.home24
import com.google.gson.annotations.SerializedName
data class MediaItem(
@field:SerializedName("size")
val size: Any? = null,
@field:SerializedName("mimeType")
val mimeType: String? = null,
@field:SerializedName("type")
val type: Any? = null,
@field:... |
<?php return array (
'root' =>
array (
'pretty_version' => 'v1.5.65',
'version' => '1.5.65.0',
'aliases' =>
array (
),
'reference' => NULL,
'name' => 'phphleb/hleb',
),
'versions' =>
array (
'phphleb/debugpan' =>
array (
'pretty_version' => 'v1.7',
'version'... |
/* Generated by RuntimeBrowser
Image: /System/Library/PrivateFrameworks/Navigation.framework/Navigation
*/
@interface MNSettingsManager : NSObject {
MNObserverHashTable * _observers;
MNSettings * _settings;
}
@property (nonatomic, readonly) MNSettings *settings;
+ (id)sharedInstance;
- (void).cxx_destru... |
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using CompanyName.MyMeetings.BuildingBlocks.Domain;
namespace CompanyName.MyMeetings.Modules.Payments.Domain.SeedWork
{
public interface IAggregateStore
{
Task Save();
Task<T> Load<T>(AggregateId<T> aggregateId) whe... |
/////////////////////////////////////////////////////////////////////////////
// PigAccount.cpp : Implementation of the CPigAccount class.
#include "pch.h"
#include <TCLib.h>
#include <..\TCAtl\ObjectMap.h>
#include "PigAccountDispenser.h"
#include "PigAccount.h"
////////////////////////////////////////////////////... |
import scala.io._
import scala.quoted.Expr
def ﷽[A](a: A): A = a
object Day10 extends App:
val start = System.currentTimeMillis
val lines =
Source
.fromFile("src/resources/input10.txt")
.getLines
.toList
def loop(s: String, cur: List[Char] = List.empty[Char]): Option[Char] =
if (s.i... |
/* eslint-disable no-console */
import mongoose from 'mongoose';
import chalk from 'chalk';
import configs from 'configs/index';
mongoose.Promise = global.Promise;
const { connection } = mongoose;
const logs = {
connected: chalk.bold.cyan,
error: chalk.bold.yellow,
disconnected: chalk.bold.red,
reconnected: c... |
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<label class="btn btn-success mb-0">
<input type="file" class="d-none" id="txtFile" /> 选择(拖拽)文件
</label>
<label id="labSize" class="ml-3"></label>
</div>
<div class="co... |
---
_id: 'https://my.framasoft.org/u/borisschapira/?chL6Aw'
title: '"Service Workers" par Eric Daspet à Paris Web 2015'
link: >-
https://docs.google.com/presentation/d/1hKQLmKrZU9pUVNYAp_loxxeuNeYtiqasVHn6IH2zcmk/edit#slide=id.p
date: '2015-10-01'
tags:
- name: js
slug: js
- name: offline
slug: ... |
package edacc.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author simon
*/
public class Course extends BaseModel implements Serializable {
private int initialLength;
private List<InstanceSeed> instanceSeedList;
private int modifiedIndex;
public C... |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
module Plutonomy.Hereditary where
import Data.Foldable (foldl'... |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'covid_all_response.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
CovidAllResponse _$CovidAllResponseFromJson(Map<String,... |
module Arhelk.Armenian.Lemma.Substantive(
substantive,
stripHolov
) where
import Arhelk.Core.Rule
import Arhelk.Armenian.Lemma.Common
import Arhelk.Armenian.Lemma.Data
import Arhelk.Armenian.Lemma.Data.Substantive
import Control.Monad
import Data.Text as T
import Data.List as L
import Lens.Simple
stripHolo... |
<?php
/*
/ Facade Pattern
/ We need to consider the use of the facade pattern in those cases that
/ the code that we want to use consists of too many classes and methods,
/ and all we want is a simple interface, preferably one method, that can do all the job for us.
*/
class FacebookShare {
public function sh... |
# options :id=options
Miscellaneous options regarding the runtime behaviour of MQTT IO.
```yaml
Type: dict
Required: False
Default: {}
```
**Example**:
```yaml
options:
install_requirements: no
```
## install_requirements :id=options-install_requirements
*options*.**install_requirements**
Whether to install mi... |
### bloom
班级聚会网站
### 功能
* 用户登录注册
* 用户信息配置
* 班级信息管理
* 联络簿
* 精彩内容
* 聚会照片展示
* 聚会倒计时与邀请函
### start
* $ git clone https://github.com/honwlee/bloom.git
* $ cd bloom; npm install; npm run dev;
### build
* $ cd bloom/build; npm install;
* $ gulp sass;
### 网站
[http://bloom.bedoer.com](http://bloom.bedoer.com)
### Contribut... |
---
week: 13
day : April 27
title: Advanced Topic
---
### Summary
TBD. Given time, it will be the class's choice.
### Notes
- Reminder the bring your class to computer. |
using AdventOfCode.Base;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using Xunit;
using Xunit.Abstractions;
using static AdventOfCode.Base.Helpers;
namespace Day09
{
public class Day09Tests
{
private readonly ITestOutputHelper Output;
public Day09Tests(... |
<?php
namespace App\Repository;
use App\Entity\Watchlist;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Symfony\Bridge\Doctrine\RegistryInterface;
/**
* @method Watchlist|null find($id, $lockMode = null, $lockVersion = null)
* @method Watchlist|null findOneBy(array $criteria, array $or... |
import * as R from 'ramda';
import hh from 'hyperscript-helpers';
import { h } from 'virtual-dom';
import {
billAmountInputMsg,
tipPercentInputMsg
} from './Update';
const {
div,
h1,
label,
input,
pre
} = hh(h);
const round = places =>
R.pipe(
num => num * Math.pow(10, places),
Math.r... |
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#pragma once
#include "Async/Future.h"
#include "CoreMinimal.h"
#include "UObject/StrongObjectPtr.h"
DECLARE_LOG_CATEGORY_EXTERN(LogSpatialGDKEditor, Log, All);
DECLARE_DELEGATE_OneParam(FSpatialGDKEditorErrorHandler, FString);
class FSpatialGDKDevAuthTok... |
using FanKit.Transformers;
using Retouch_Photo2.Layers;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
namespace Retouch_Photo2.ViewModels
{
public partial class ViewModel : INotifyPropertyChanged
{
/// <summary> Gets or sets the snap. </summary>
public Vect... |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SpawnScriptUpgraded : MonoBehaviour
{
[System.Serializable]
public struct prefabData
{
public GameObject prefab;
public float spawnChance;
public float spawnRad;
}
public prefabData... |
#include<iostream>
#include<queue>
using namespace std;
struct node{
int data;
node * left;
node * right;
node(int data){
this->data = data;
left = right = NULL;
}
};
void addElement(node *& root,int data){
if(!root){
root = new node(data);
return... |
//! Message types used in the SaltyRTC protocol.
//!
//! ## Implementation notes
//!
//! All message types own their values. This choice was made to simplify the
//! use and implementation of the library. Some values may be optimized to take
//! references in a future version.
use std::collections::HashMap;
use std::c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.