text stringlengths 27 775k |
|---|
#!/usr/bin/env perl
#-----------------------------------------------------------------------------------------------------------
# input:
# clusters_file - a cluster file in the format GENE_NAME\tGENE_CLUSTER\n
# regulated_file - the output file for genes
# sql_file - the output file for the genes sql file
#... |
from abc import ABC, abstractmethod
class BlobStorageClient(ABC):
@abstractmethod
def delete_all_objects(self, bucket: str, prefix: str) -> None: ...
@abstractmethod
def put_object(self, data: bytes, bucket: str, key: str) -> str: ...
@abstractmethod
def get_object(self, bucket: str, key: str... |
/*
Copyright 2006 by Sean Luke
Licensed under the Academic Free License version 3.0
See the file "LICENSE" for more information
*/
package ec.select;
import ec.EvolutionState;
import ec.Individual;
import ec.SelectionMethod;
import ec.steadystate.SteadyStateBSourceForm;
import ec.steadystate.SteadyStateEvoluti... |
package uz.javokhirdev.extensions
typealias EmptyBlock = () -> Unit
typealias SingleBlock <T> = T.() -> Unit
typealias DoubleBlock <T, E> = (T, E) -> Unit
typealias TrialBlock <T, E, F> = (T, E, F) -> Unit |
package uk.gov.justice.digital.hmpps.pecs.jpc.config
import nz.net.ultraq.thymeleaf.layoutdialect.LayoutDialect
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import uk.gov.justice.digital.hmpp... |
<?php
/**
* @var $menus array
* @var $widget \cms\widgets\menu\controllers\IndexController
*/
$widget->renderMenu($menus); |
#include "vm.h"
#include "conf.h"
#include "lib.h"
#include "mem.h"
#include "string.h"
#include <inttypes.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
static inline void err(const char *msg) {
fprintf(stderr, "riff: [vm] %s\n", msg);
exit(1);
}
static ... |
#! /usr/bin/env bash
git remote add gitcafe git@gitcafe.com:bbcallen/ijkplayer.git
git remote add oschina git@git.oschina.net:bbcallen/ijkplayer.git
git remote add csdn git@code.csdn.net:bbcallen/ijkplayer.git
git fetch --all
|
package org.aksw.rdfunit.sources;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import org.aksw.rdfunit.enums.TestAppliesTo;
import org.aksw.rdfunit.io.reader.RdfReader;
import org.aksw.rdfunit.io.reader.RdfReaderException;
import org.apache.jena.ontology.OntMode... |
#include "module_adc.h"
#include <Module_UID/module_uid.h>
#include <QtGui>
#include "Module_ADC/adc_form.h"
Module_ADC::Module_ADC(QString id, Module_UID *uid)
: RobotModule(id)
{
this->uid=uid;
setDefaultValue("i2cAddress", 0x48);
setDefaultValue("frequency", 1);
setDefaultValue("Vagnd", 0);
... |
require 'sinatra/base'
module Http
module Whois
class Base < Sinatra::Base
configure do
disable :method_override
disable :static
end
before do
content_type 'application/json; charset=utf-8'
end
not_found do
JSON.pretty_generate(error: 'Resource not ... |
import { Card, Col, Row } from 'antd'
import { IconCheckmark, IconRadioButtonUnchecked } from 'lib/components/icons'
import React, { useState } from 'react'
import './Experiment.scss'
export function ExperimentWorkflow(): JSX.Element {
const [workflowValidateStepCompleted, setWorkflowValidateStepCompleted] = useSt... |
<?php
//usermodel类
class userModel extends Model{
public $table = 'mm_user';
public $key = 'user_id';
}
|
export 'slides/agenda_slide.dart';
export 'slides/everything_is_a_widget_slide.dart';
export 'slides/first_steps.dart';
export 'slides/set_up_slide.dart';
export 'slides/title_slide.dart';
export 'slides/what_is_flutter_slide.dart';
|
CREATE PROCEDURE [dbo].[dnn_AddSearchCommonWord]
@CommonWord nvarchar(255),
@Locale nvarchar(10)
AS
INSERT INTO dbo.dnn_SearchCommonWords (
[CommonWord],
[Locale]
) VALUES (
@CommonWord,
@Locale
)
select SCOPE_IDENTITY()
|
import defaultTheme from './default';
export const themes = {
default: defaultTheme,
};
|
using Mocking
Mocking.activate()
using CloudWatchLogs
using CloudWatchLogs: MAX_EVENT_SIZE
import AWSCore
import AWSCore.Services: logs, sts
using AWSCore: AWSConfig, aws_config, AWSCredentials, AWSException
using Dates
using EzXML
using HTTP
using Printf
using Memento
using Memento.TestUtils
using Test
using TimeZon... |
# Copyright 2020 The UniqueRandomizer Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... |
@extends('layouts.admin.panel')
@section('breadcrumb')
<div class="ui breadcrumb">
<a class="section" href="{{ route('Laralum::blogs') }}">{{ trans('laralum.blogs_title') }}</a>
<i class="right angle icon divider"></i>
<a class="section" href="{{ route('Laralum::blogs_posts', ['id' => $row->... |
var colors = [
"blue",
"white",
"green",
"navy",
"pink",
"purple",
"orange",
"yellow",
"black",
"brown"
];
var randomColor = colors[Math.floor(Math.random() * colors.length)];
|
use crate::boolean::Boolean;
use crate::eq::EqGadget;
use crate::fields::fp::FpVar;
use crate::fields::FieldVar;
use ark_ff::PrimeField;
use ark_relations::r1cs::SynthesisError;
use ark_std::vec::Vec;
pub mod vanishing_poly;
#[derive(Clone, Debug)]
/// Defines an evaluation domain over a prime field. The domain is a ... |
<div class="a2a_kit">
<a class="a2a_button_facebook">
<img src="{{asset('image/social/facebook.png')}}" border="0" alt="Facebook" width="24" height="24"/>
</a>
<a class="a2a_button_twitter">
<img src="{{asset('image/social/twitter.png')}}" border="0" alt="Twitter" width=... |
# Runs a `gcardvault sync`.
#
# In "copy" mode, downloads and saves all the user's
# contacts from Google Contacts.
#
# In "sync" mode, downloads/saves all contacts, and removes
# any contacts on disk that are not longer available
# in Google.
function cmd_google_contacts {
google_username=${1:?google_username arg ... |
#![deny(rust_2018_idioms, warnings)]
#![deny(clippy::all, clippy::pedantic)]
pub mod race {
pub struct LazyBox<T, F = fn() -> T> {
cell: once_cell::race::OnceBox<T>,
init: F,
}
impl<T, F> LazyBox<T, F> {
pub const fn new(init: F) -> Self {
LazyBox {
cell: once_cell::race::OnceBox::<T>::new(),
init... |
var app = angular.module("springDemo",[]);
app.controller("AppCtrl", function($scope, $http){
$scope.statistics = [];
$http({
method: 'GET',
url: 'http://localhost:9200/pop_nouns/_search?size=40&sort=_id&pretty=true&q=*:*'
}).then(function (success){
$scope.statistics = success.data... |
#include "truckitem.h"
TruckItem::TruckItem(QObject *parent) : QObject(parent)
{
truckImg.load("/image/truck.png");
setQuantity(0);
}
TruckItem::TruckItem(QString _taskName, int _quantity, QObject *parent):QObject(parent){
taskName=_taskName;
setQuantity(_quantity);
truckImg.load(":/image/truck.png");
}
QRe... |
import 'dart:ui';
import 'package:get/get.dart';
import 'DateFormatter.dart';
import 'en_US.dart';
import 'fa_IR.dart';
//AppTranslation.dart
class AppTranslation extends Translations {
AppTranslation(){
_setupDateParser();
}
// static final locale = Locale('en', 'US');
static final locale = Locale('fa'... |
# frozen_string_literal: true
class StuckAppealsChecker < DataIntegrityChecker
def call
return unless stuck_appeals.count > 0
add_to_report "Stuck Appeals: #{stuck_appeals.count} reported by AppealsWithNoTasksOrAllTasksOnHoldQuery"
end
private
def stuck_appeals
@stuck_appeals ||= AppealsWithNoTa... |
from django.core.validators import MinValueValidator
from django.db import models
from operator_api.models import CleanModel, MutexModel
from decimal import Decimal
class EthereumTransactionAttempt(CleanModel, MutexModel):
transaction = models.ForeignKey(
to='EthereumTransaction',
on_delete=models... |
module QuadOsc
export quadosc
include("SeriesAccelerations.jl")
using .SeriesAccelerations
using QuadGK
@doc raw"""
quadosc(fn, a, Inf, fnzeros; ...)
Integrate the function `fn(x)` from `a` to `Inf`. The function `fnzeros(n)`
takes an integer `n` and is such that `fn(fnzeros(n)) == 0`. The algorithm
works by i... |
INCLUDE 'vibAnalysisMod.f03'
Program unitTest
!
! This program is a unit test program for various sub-programs being written
! for the vibrational analysis program I'm testing.
!
! -H. P. Hratchian, 2019.
!
!
! USE Connections
!
use VibAnalysisMod
use mqc_general
use mqc_gaussia... |
<?php
Load::lib('phpmailer/class.phpmailer');
Load::lib('phpmailer/class.smtp');
class Correos {
protected $_mail = NULL;
public function __construct() {
$this->_mail = new PHPMailer();
$this->_mail->IsSMTP();
$this->_mail->SMTPAuth = TRUE;
$this->_mail->SMTPSecure = 'ssl';
... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class ChatModel extends CI_Model{
function __construct()
{
parent::__construct();
$this->load->library("Utilerias");
}
private function getPersonasDeProyecto($id_proyecto)
{
$r = $this->db->select("p.id_persona,p.pate... |
<?php
namespace GqAus\CourseBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* UpsellQual
*/
class UpsellQual
{
/**
* @var boolean
*/
private $prio;
/**
* @var integer
*/
private $id;
/**
* @var \GqAus\CourseBundle\Entity\Courses
*/
private $qual;
/**... |
<?php
declare(strict_types=1);
namespace DelayedJobs\Test\TestCase\Shell;
use Cake\ORM\Entity;
use Cake\TestSuite\TestCase;
use DelayedJobs\Model\Table\DelayedJobsTable;
use Fabricate\Fabricate;
/**
* Class WorkerShellTest
*
* @coversDefaultClass DelayedJobs\Shell\WorkerShell
*/
class WorkerShellTest extends Tes... |
# mobilesafe
## 这是一个eclipse项目,黑马视频中的手机安全卫士,自己做了点更新,稍微美化了一下。
下面是一些操作演示,由于电脑的genymotion不能使用,这里用ASM连真机录的,所以有些卡。录的时候有些问题,出现了绿屏和黑屏。
 |
<?php
Route::get('index',"AdminController@index");
//route brand
Route::get('brandIndex',"AdminController@brandIndex");
Route::get('brand/create',"AdminController@brandCreate");
Route::post('brand/store',"AdminController@brandStore");
Route::get('brand/edit/{id}',"AdminController@brandEdit");
Route::post('brand/update... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once(SHAREDPATH . 'core/APP_Batch_controller.php');
/**
* Class Base_controller
*
* @extend APP_Batch_controller
*/
class Base_controller extends APP_Batch_controller
{
}
|
<?php
namespace Solital\Core\Resource;
class Cookie
{
/**
* @param string $index
* @param mixed $value
* @return bool
*/
public static function new(string $index, string $value, $time = null, string $path = null): bool
{
setcookie($index, $value, $time, $path);
return t... |
<?php
namespace App\Http\Services\Admin;
use App\Http\Services\MyService;
use App\Models\Product;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
class ProductService extends MyService
{
public function getPaginationForList()
{
return DB::table('product')
->s... |
# card
`bw-card` is an easy customizable card with css custom properties, styling for bulma is included
## Usage
#### installation
```bash
npm i -S @bulma-web/card
# or
yarn add -S @bulma-web/card
```
```javascript
import '@bulma-web/card'
```
#### Example
```html
<bw-card>
<div slot="content">
<h2>
... |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
IMG_DIR=$1
OUT_DIR=$2
ANO_DIR=$3
set -e
if [ -z $CUDA_VISIBLE_DEVICES ]; then
CUDA_VISIBLE_DEVICES='all'
fi
echo "extracting image features..."
if [ ! -d $OUT_DIR ]; then
mkdir -p $OUT_DIR
fi
docker run --gpus '"'device=$CUDA_VISIBLE_... |
#include <Debug.h>
#include <TCPPacket.h>
using namespace Network;
Network::TCPPacket::TCPPacket()
: APacket(TCP), _protobufPacket()
{
_protobufPacket.set_type(CubZPacket::PacketTCP::UNKNOWN);
}
Network::TCPPacket::~TCPPacket()
{
}
ByteBuffer Network::TCPPacket::getData() const
{
ByteBuffer _finalBuffer{};... |
package com.goldenpiedevs.schedule.app.ui.view
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
import androidx.appcompat.app.AppCompatActivity
fun AppCompatActivity.hideSoftKeyboard() {
try {
val inputMethodManager =... |
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:sofia/application/states/retrieve_tracks_state.dart';
import 'package:sofia/model/track.dart';
import 'package:sofia/utils/database.dart';
class RetrieveTracksNotifier extends StateNotifier<RetrieveTracksState> {
final Database _database;
Re... |
/*
*/
package networthcalculator.labels;
import javafx.collections.ObservableList;
import javafx.geometry.Pos;
import javafx.scene.control.Label;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.HBox;
import networthcalculator.utilities.MyUtility;
import networthcalculator.TotalAmount;
import networt... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2020 TileDB, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use,... |
# Examples
```
export BIGTABLE_EMULATOR_HOST=localhost:8086
cargo run --bin simple_read
``` |
# frozen_string_literal: true
require 'rails_helper'
describe Role do
context 'with validates' do
it { is_expected.to validate_presence_of(:name) }
it { is_expected.to validate_uniqueness_of(:name) }
it { is_expected.to validate_length_of(:name).is_at_least(4) }
it { is_expected.to validate_presence... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Traits\Uuid;
class Jabatan extends Model
{
use HasFactory;
use Uuid;
protected $table = 'jabatan';
protected $fillable = ['nama_jabatan'];
public function pengurus(... |
from abc import abstractmethod
from utils.loggings import logger
import torch
import torch.nn as nn
from torch.utils.tensorboard import SummaryWriter
class Model():
def __init__(self, save_path, log_path):
self.save_path = save_path
self.log_path = log_path
self.model = None
self.cl... |
package main
import (
"fmt"
"github.com/inwecrypto/ethgo/rpc"
"github.com/inwecrypto/ethgo/erc20"
)
var client *rpc.Client
func init() {
client = rpc.NewClient("http://47.52.158.99:8545")
}
func main() {
accoutState, err := client.GetBalance("0xf4cc4154a4987f8784064468c3c6b21f0d0cdd64")
if err != nil {
f... |
#[derive(Debug)]
pub struct Register {
// registers
pub zero: u64,
pub ra: u64,
pub sp: u64,
pub gp: u64,
pub tp: u64,
pub t0: u64,
pub t1: u64,
pub t2: u64,
pub fp: u64, // s0
pub s1: u64,
pub a0: u64,
pub a1: u64,
pub a2: u64,
pub a3: u64,
pub a4: u64,
... |
require 'jekyll_asset_pipeline'
module JekyllAssetPipeline
class SassConverter < JekyllAssetPipeline::Converter
require 'sass'
def self.filetype
'.scss'
end
def convert
paths = [
'.',
'_assets/moj_internal_template/app/assets/stylesheets',
'_assets/govuk_template... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Playground.Domain.Events;
using Playground.Domain.Model;
using Playground.Domain.Persistence.Events;
using Playground.Domain.Persistence.Snapshots;
using Playground.Messaging;
namespace Playground.Domain.Persistence... |
export const messages = {
description: 'Creates a new Lightning Web Components project',
help: {
examples: [
'create-lwc-app',
'npm init lwc-app my-app',
'npm init lwc-app my-app --type standard --yes',
'yarn init lwc-app my-app -o yarn,typescript'
... |
import * as Buildkite from '../../../../api/buildkite';
import type { StreamInterceptor } from '../../../../cli/lint/external';
export const createTscAnnotations = (
tscOk: boolean,
tscOutputStream: StreamInterceptor,
): string[] =>
!tscOk
? [
'**tsc**',
Buildkite.md.terminal(
tscOu... |
#!/bin/bash
set -eux -o pipefail
# docker kill -s HUP nginx
docker exec "nginx" nginx -s reload
|
package main
import (
"log"
"github.com/kristoiv/wtf/bolt"
"github.com/kristoiv/wtf/grpc"
)
func main() {
client := bolt.NewClient()
if err := client.Open(); err != nil {
log.Fatalln(err)
}
srv := grpc.NewServer()
srv.TodoListServiceHandler = &grpc.TodoListServiceHandler{TodoListService: client.TodoListSe... |
#ifndef SDL_render_d3d11_h_
#define SDL_render_d3d11_h_
#ifdef __WINRT__
#include "../src/core/windows/SDL_windows.h"
#include "SDL_hints.h"
#include "SDL_loadso.h"
#include "SDL_syswm.h"
#include "../src/render/SDL_sysrender.h"
#include "../src/render/SDL_d3dmath.h"
#include <d3d11_1.h>
#include "../src/render/dir... |
'use strict';
const path = require('path');
const fs = require('fs');
/**
* package.json リーダ
*/
class PackageJson {
readPackageJsonFromCwd() {
this.readPackageJson(path.join(process.cwd(), "package.json"));
}
readPackageJson(path) {
if (fs.existsSync(path)) {
try {
... |
package de.fhg.aisec.ids.camel.idscp2
import de.fraunhofer.iais.eis.ContractAgreement
import java.net.URI
import java.util.concurrent.ConcurrentHashMap
object ProviderDB {
val availableArtifactURIs: ConcurrentHashMap<URI, String> = ConcurrentHashMap()
val artifactUrisMapped2ContractAgreements: ConcurrentHashM... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class postController extends Controller
{
//Metodo para exibição da view
public function create(){
return view('posts.create');//caminho para a view
}
//Receber os dados da for... |
package case1;
public class Birds {
private static void doBirdStuff(Bird bird) {
bird.layEgg();
bird.fly();
}
public static void main(String[] args) {
var pigeon = new Pigeon();
doBirdStuff(pigeon);
var penguin = new Penguin();
doBirdStuff(penguin);
}
}
|
# Supports multiple database types, for this reason preferred way to create migrations for all
# at once is this script.
[CmdLetBinding()]
Param(
[Parameter(Mandatory)]
[string]
$MigrationName,
[ValidateSet("Add", "Remove")]
[string]
$Operation = "Add"
)
if($Operation -eq "Remove")
{
dotne... |
import {
CHART_SIZE_CHANGE,
HEIGHT_CHANGE,
RADIUS_CHANGE,
ANGLE_CHANGE,
DURATION_CHANGE,
FONT_SIZE_CHANGE,
TOGGLE_ANIMATION,
TOGGLE_SLICE_SELECT,
TOGGLE_LABEL,
TOGGLE_LABEL_COLOR,
TOGGLE_TOOLTIP
} from '../constants';
export function changeChartSize(data) {
return {
type: CHART_SIZE_CHANGE... |
#! /bin/sh
#$ -S /bin/sh
#$ -cwd -sync y -now n
#$ -o $JOB_NAME.$JOB_ID.$TASK_ID.out
#$ -e $JOB_NAME.$JOB_ID.$TASK_ID.err
err=0
dir=/local/gensoft/libexec/taxoptimizer
tmpnotaxo="tmpnotaxo.$$.${SGE_TASK_ID}"
outputnotaxo=""
# arguments: <outfile> <inlist> <taxOopts...>
output=$1
shift
input=$(cat $1 | head -n ${SGE_T... |
using System;
using System.Reflection;
using UnityEngine;
using UnityEngine.Purchasing;
namespace Scripts.Purchasing
{
public static class StencilIap
{
public static void ApplyPlatformHacks(this IAPButton button, bool update = true)
{
if (update)
{
var me... |
package com.projectcitybuild.core.contracts
interface LoggerProvider {
fun verbose(message: String)
fun debug(message: String)
fun info(message: String)
fun warning(message: String)
fun fatal(message: String)
} |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DogScript : MonoBehaviour
{
Rigidbody rb;
float MovementRange = 100;
//public Collider Trigger;
public GameObject FPPlayer;
public GameObject self;
public GameObject Timer;
// Start is called befor... |
<?php
namespace App\Models;
use App\Traits\CustomModel;
use App\User;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Traits\EventsTrait;
class Type_Info extends Model
{
use SoftDeletes, EventsTrait, CustomModel;
// publ... |
/*
* gstat header file
*
*/
#include "gallups.h"
#define VERBOSE 1
#define QUIET 2
#define prompt(f...)
#define show(f...) if(gsflags&VERBOSE)printf(##f)
extern int gsflags;
extern char hand[4];
extern char galname[128];
extern int WIDTH;
extern struct curargs CA;
#if 0
#define _T(t) TEMH_##t,TEMT_##t,TEM... |
#!/usr/bin/env bash
cygwin_mount_dir=$(mount | grep "cygwin64 on" | awk '{print $1}') # fix for cygwin64 users
tmp_dir=${cygwin_mount_dir}$(mktemp -d -t ci-XXXXXXXXXX)
printf "Building ...\n"
OUTPUT=$(go build ./...)
if echo "$OUTPUT" | grep -q "FAIL"; then
echo 'Build failed' >/dev/stderr
printf "%s\\n" "$OU... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Tema extends Model
{
protected $table = 'temas';
public $timestamps = false;
public function idiomas(){
return $this->hasMany(Idioma_Tema::class, 'temas_id');
}
public function publicaciones(){
retu... |
package limitedbuffer
import "fmt"
// CycleBufferStatus cycleBuffer Status
type CycleBufferStatus struct {
capacity int
unreadSize int
freeWriteSpace int
totalRead int64
totalWrite int64
}
// Capacity 缓冲区大小
func (cb *CycleBufferStatus) Capacity() int {
return cb.capacity
}
// UnreadSize 可读数据量
func... |
#!/bin/bash -ex
CORE="automake autoconf libtool make curl $CC"
case "$1" in
multiarch/debian-*|multiarch/ubuntu-*)
apt-get update
apt-get -y install $CORE build-essential
;;
multiarch/fedora:*)
[ "$CC" == "clang" ] && rt=compiler-rt
dnf -y install $CORE $rt
;;
multiarch/centos:*)
y... |
self.addEventListener('fetch', event => {
event.respondWith(
caches.match(event.request).then(response => {
return response || fetch(event.request).then(function (_response) {
// console.log("fetch:"+event.request.url);
return _response;
});
})
);
});
/*
const STATIC_CACHE_KEY =... |
## 星座择偶关键词
### 标签定义
- 1w以下 冷
- 1w~5w !
- 5w~50w !!
- 50w~100w !!!
- 100w~300w !!!!
- 300w以上 !!!!!
### 择偶关键词
- 甜
- 猜不透 #!!! #有歌
- 主动 #!!
- 超独立 #冷
- 烂桃花 #冷
- 直觉准 #!
- 看似高冷但 #!
- 好相处 #!
- 外冷内热 #!
- 戒备心 #冷
- 看似铁憨憨但 #!!
- 暗恋&不主动 #!
- 被驾驭 #!
- 桃花运 #!
- 沙雕 #冷
- 背叛 #!!!
- 不能惹 #!!
- 好相处 #!
- 装傻 #!!
- 一个人更好过/high #!!!! #已写
-... |
# PsyCheck - Psychic Checkbook
A simple recurring transaction scheduler with balance forcasting
## Setup
Create a database using the schema located in `ironsigma/database` directory.
Create a `.env` file with the following properties:
``` properties
DB_HOST=localhost
DB_PORT=3306
DB_USER=user
DB_PASS=pass
DB_NAME... |
package org.gbif.nub.lookup;
import org.gbif.api.model.checklistbank.NameUsageMatch;
import org.gbif.api.model.common.LinneanClassification;
import org.gbif.api.service.checklistbank.NameUsageMatchingService;
import org.gbif.checklistbank.service.mybatis.guice.ChecklistBankServiceMyBatisModule;
import org.gbif.utils.f... |
rm -f tests/s3.dat
if ./mkstu tests/stu3 tests/s3.dat
then
if [ -f tests/s3.dat ]
then
./stu tests/s3.dat
fi
fi
|
"""This is the sci_analysis package.
Sub packages:
data - sci_analysis data types
analysis - sci_analysis test and calculation classes and functions
graphs - graphing classes
The analysis and operations modules are loaded.
The following classes are imported so that they are exposed at a high level: Vector,... |
CREATE EXTERNAL TABLE ${0} (id int, str text, num int) using csv location ${table.path};
|
package kspt.bank
import kspt.bank.enums.CellApplicationStatus
import kspt.bank.enums.CellSize
enum class ChoosableCellSize(val displayName: String) {
SMALL ("Малый (1 л)"), MEDIUM ("Средний (2 л)"), BIG ("Большой (4 л)");
override fun toString(): String {
return this.displayName
}
}
enum class ... |
module Lexer where
import Text.Parsec (letter, alphaNum, (<|>), char, between)
import Text.Parsec.String (Parser)
import Text.Parsec.Language (emptyDef)
import qualified Text.Parsec.Token as Token
reservedNameImport :: String
reservedNameImport = "import"
reservedNameFrom :: String
reservedNameFrom = "from"
-- * Wa... |
export const GROUPS_MAP = {
'москва': -80526909,
'санктпетербург': -112592338,
'дубна': -81471037,
'екатеринбург': -50579357,
'новосибирск': -33347300,
'оренбург': -50657589,
'казань': -132745002,
'челябинск': -90435717,
'красноярск': -50657203,
'сосновыйбор': -92796438,
'нижнийновгород': -6050115... |
package com.example.projectandroidadmin.model
import android.media.Image
import android.widget.ImageView
import java.net.URL
data class BannerModel(
val id: Int,
val name: String,
val imageUrl: String
)
val bannerList = listOf(
BannerModel(1, "Banner 1", "https://blogpictures.99.co/sumber-josscoid.j... |
<?php
namespace Laravel\Scout\Jobs;
use Illuminate\Database\Eloquent\Collection;
use Laravel\Scout\Searchable;
class RemoveableScoutCollection extends Collection
{
/**
* Get the Scout identifiers for all of the entities.
*
* @return array
*/
public function getQueueableIds()
{
... |
package generate
import "github.com/go-swagger/go-swagger/generator"
type Cli struct {
// generate a cli includes all client code
Client
}
func (c Cli) apply(opts *generator.GenOpts) {
c.Client.apply(opts)
opts.IncludeCLi = true
opts.CliPackage = "cli" // hardcoded for now, can be exposed via cmd opt later
}
f... |
using System.Collections.Generic;
using UnityEngine;
public class Projectiled : MonoBehaviour
{
[HideInInspector] public float damage, range;
[SerializeField] float speed, piercing; float _piercing;
public string belong;
float travelled; Vector2 prevPos;
public TrailRenderer trail;
[SerializeField] Rigidbody2... |
///
/// Copyright © 2016-2021 The Thingsboard 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... |
#!/bin/bash
COUCHDBDIR="/usr/lib/couchdb"
COUCHDBBINDIR="$COUCHDBDIR/bin"
COUCHDBETCDIR="$COUCHDBDIR/etc"
COUCHDBCONFIGDIR="/etc/couchdb"
export ERL_FLAGS="-couch_ini $COUCHDBETCDIR/default.ini $COUCHDBCONFIGDIR/local.ini"
echo "Welcome!"
echo "Starting CouchDB"
COUCHDB_BIN_DIR=$(cd $COUCHDBBINDIR && pwd)
ERTS_BIN_D... |
require 'game'
TEST_CASES = {
[0] => [0],
[0, 0] => [0],
[0, 0, 0] => [0, 0],
[0, 0, 0, 0] => [0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] =>
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
[10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10] =>
[30, 60, 90, 120, 150, 180, 210, 240, 270, 30... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Image } from 'react-native';
import { Container, Content, Text, Icon, List, ListItem } from 'native-base';
import navigateTo from '../../actions/sideBarNav';
import styles from './style';
const singUp = require('../../../images... |
@testset "Lines" begin
@testset "linesegment intersect" begin
a = LineSegment(Point2f0(0,0), Point2f0(1,0))
b = LineSegment(Point2f0(0.5,0.5), Point2f0(0.5,-0.5))
result = intersects(a,b)
@test result[1] == true
@test result[2] ≈ Point2f0(0.5,0.0)
a = LineSegment(P... |
create table tb_proposal (
id bigint primary key auto_increment,
document varchar(255) not null,
email varchar(255) not null,
name varchar(255) not null,
address varchar(255) not null,
salary decimal(10,2) not null
) engine=InnoDB default charset=utf8mb4; |
# --- !Ups
ALTER TABLE roles
ADD COLUMN permission BIT(64) NOT NULL DEFAULT B'0'::BIT(64);
UPDATE roles r
SET permission = (-1)::BIT(64)
WHERE r.name = 'Ore_Admin';
UPDATE roles r
SET permission = (1::BIT(64) << 27) | (1::BIT(64) << 26) | (1::BIT(64) << 25) | (1::BIT(64) << 24)
WHERE r.name = 'Ore_Mod';
UPDATE rol... |
#!/usr/bin/env python
from chalice import Chalice
from chalicelib.main import get_team
DEFAULT_PARAM = "WSH"
app = Chalice(app_name='resetter')
@app.route('/',methods=['GET'])
def index():
"""Route used for Slack"""
try:
team = app.current_request.query_params['text']
if team == '':
team = DEFAULT_PARAM
... |
<h1 align="center">
<img src="http://www.zxlee.cn/AppStoreMonitorLogo.png" width="200" height="200" style="margin-left:100px"/>
</h1>
## 在线地址👉 https://static.ifafu.cn/AppStoreMonitor/index.html
## 开始使用
* 请允许AppStoreMonitor显示通知
* 输入您的App对应的AppID,点击开始
* AppStoreMonitor会每隔1分钟获取一次应用最新版本信息
* 若检测到新版本,可通过浏览器推送通知您
* 再也无... |
using System;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Reflection;
using Xunit;
namespace Ben.Demystifier.Test
{
public class GenericMethodDisplayStringTests
{
private static class Example<T>
{
// ReSharper disable once StaticMemberInG... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.