text stringlengths 27 775k |
|---|
<br>
<?php
if($this->session->flashdata('reg_success'))
{
print '<div class="success-msg">'.$this->session->flashdata('reg_success').'</div>';
}
?>
<div class="row justify-content-center">
<div class="col-lg-5 col-md-6 col-sm-8">
<div class="section-title"><i class="fas fa-user-plus"></i> Register here</div>
<div... |
/**
* Copyright (c) 2008-2010 Mark Logic Corporation. 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
*
* Unless r... |
package co.netguru.videochatguru.util
import android.util.Log
internal object Logger {
private const val PREFIX = "WebRTC:"
var loggingEnabled = false
fun d(tag: String, message: String) {
if (loggingEnabled) Log.d("$PREFIX $tag", message)
}
fun e(tag: String, message: String) {
... |
set -eo nounset
cd /sources
test -f which-2.21.tar.gz || \
wget --no-check-certificate \
https://ftp.gnu.org/gnu/which/which-2.21.tar.gz
rm -rf which-2.21
tar xf which-2.21.tar.gz
pushd which-2.21
./configure --prefix=/usr
make
make install
#cat > /usr/bin/which << "EOF"
##!/bin/bash
#type -pa "$@" | head -n 1 ;... |
(defn get-banner [] (str
" ____ _ _\n"
"/ ___|| |_ __ _ _ __ | | __ _ _ __ ___ ___\n"
"\\___ \\| __/ _` | '__| | | / _` | '_ \\ / _ \\/ __|\n"
" ___) | || (_| | | | |__| (_| | | | | __/\\__ \\\n"
"|____/ \\__\\__,_|_| |_____\\__,_|_| |_|\\___||___/\n"))
(defproject starlanes "0... |
#!/bin/bash
KAFKA=/home/splice/kafka_2.10-0.10.0.1
javac -cp "$KAFKA/libs/*" SimpleProducer.java
|
package com.trafi.maas.account.ui.internal
import com.trafi.ui.theme.internal.CurrentTheme
import com.trafi.ui.theme.internal.SpacingScale
import com.trafi.ui.theme.internal.type.dp
class RequirementsViewConstants(theme: CurrentTheme) {
val iconHeight = 150.dp
val iconWidth = 150.dp
val buttonsSpacing =... |
"""
This is a program written in python for finding GCD of two numbers.
This solution uses recursive approach as implementation.
Recursive approach means a fuction calling itself for which a base condition is given so that the program knows where to terminate.
"""
#definition of functions to find GCD of 2 numbers.
de... |
var builderNode = require('../../utils/filterbuilder').BuilderNode;
var FilterBuilder = require('../../utils/filterbuilder').FilterBuilder;
var NexxusError = require('../../lib/NexxusError');
var chai = require('chai');
var expect = chai.expect;
var assert = chai.assert;
chai.should();
chai.use(require('chai-things'));... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: visHermanClock.asm
AUTHOR: Adam de Boor, Feb 4, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Dat... |
using System.Globalization;
using System.Resources;
namespace System.Speech
{
internal static class SR
{
private static ResourceManager _resourceManager = new ResourceManager("ExceptionStringTable", typeof(SR).Assembly);
internal static string Get(SRID id, params object[] args)
{
string text = _resourceMan... |
#!/bin/bash
# Script for Jenkins continuous integration testing of theano base
echo "===== Testing theano core"
# Get environment from worker, necessary for CUDA
source ~/.bashrc
# Test theano core
PARTS="theano -e cuda -e gpuarray"
THEANO_PARAM="${PARTS} --with-timer --timer-top-n 10"
FLAGS="mode=FAST_RUN,init_gpu... |
const express = require('express');
const pushController = require('../controllers/push');
const router = express.Router();
// POST REQUESTS
// POST => /push/tree
router.post('/tree', pushController.postTree);
// POST => /push/file
router.post('/file', pushController.postFile);
module.exports = router; |
# encoding: utf-8
module Rubocop
module Cop
module Style
# Checks for uses of if/then/else/end on a single line.
class OneLineConditional < Cop
include IfThenElse
def offending_line(node)
node.loc.expression.line unless node.loc.expression.source =~ /\n/
end
... |
---
toc: true
layout: post
title: "消失的日记本"
date: 2020-12-24
tags: [日记]
comments: true
author: BobWU
---
toc: true
因为软件被禁用,探索一下怎么使用在线编辑来做笔记
## Title 2
> 写什么呢,索引?
```
dim kk as string
dim bb
```
|
package fr.alchemy.utilities.task.actions;
import java.util.function.Function;
/**
* A functional interface allowing the user to perform a certain type of action safely to the invoked element
* and return the modified element.
*
* @version 0.2.0
* @since 0.1.0
*
* @author GnosticOccultist
*/
@FunctionalInte... |
module ActsAsApi
module Adapters
autoload :Mongoid, "acts_as_api/adapters/mongoid"
end
end
|
# AWS AMI for CSYE 6225
## Team Information
| Name | NEU ID | Email Address |
| --- | --- | --- |
| Vivek Dalal|001430934|dalal.vi@husky.neu.edu |
|Mansi Raghuwanshi|001888977|raghuwanshi.m@husky.neu.edu |
|Gaurang Davda|001826203|davda.g@husky.neu.edu|
|Karan Barai|001832013|barai.k@husky.neu.edu|
## Validate Temp... |
namespace AngleSharp.Services
{
using System;
/// <summary>
/// Defines the methods to perform an integrity check.
/// </summary>
public interface IIntegrityProvider
{
/// <summary>
/// Checks if the given content satisfies the provided integrity
/// attribute.
... |
package com.zhangteng.baselibrary.mvp.model
import com.zhangteng.mvp.base.BaseModel
import com.zhangteng.baselibrary.mvp.model.imodel.IBaseMvpDemoFragmentModel
class BaseMvpDemoFragmentModel : BaseModel(), IBaseMvpDemoFragmentModel |
#!/bin/sh
python launch.py --nproc_per_node=4 supervised.py dataset=cifar10
|
#!/usr/bin/env bash
# start up autotest (rq) workers which are managed by supervisor
source /home/vagrant/markus-autotesting/server/venv/bin/activate
supervisord -c /home/vagrant/markus-autotesting/server/supervisord.conf
deactivate
|
import * as React from "react";
import { inject, observer } from "mobx-react";
import GlobalStore from "../../shared/store/GlobalStore";
const styles = require("./styles/stats.less");
interface StatsProps {
store?: GlobalStore;
}
interface StatsState {}
@inject("store")
@observer
export default class Stats exte... |
# frozen_string_literal: true
module Dynamodb
module Api
module Relation
class FilterClause # :nodoc:
attr_reader :expression
attr_reader :values
attr_reader :reserved_words
def initialize(expression, values)
@expression = expression
@values = values
... |
cask 'stereo-tool' do
version '8.54'
sha256 'e2fa88bdaa32517adb8b515ff30f6e00fbfb9b09dfce9e69665c9d5ec9f53d57'
url 'http://www.stereotool.com/download/stereo_tool.zip'
appcast 'https://www.stereotool.com/documentation/8.50/version_history/',
checkpoint: '0f9934dee6dd8cb0cdad1954156d743750b5b4000f0f2a... |
package com.mapbox.search.utils.bitmap
import android.graphics.Bitmap
import android.util.Base64
import java.io.ByteArrayOutputStream
import kotlin.math.min
import kotlin.math.roundToInt
/**
* Helper function to encode Bitmap in Base64 String. Useful for sending screenshots
* over Events SDK, which doesn't support ... |
use std::fmt::{Debug, Display, Formatter, Result as FmtResult};
use std::marker::PhantomData;
use super::*;
use crate::opset::Opset;
use crate::value::{Membership, Raw};
use crate::impl_fuzzy_expr_ops;
/// Fuzzy value expression.
#[derive(Clone, Copy)]
pub struct ExprValue<S: Opset> {
membership: Membership<S>,... |
// build.rs
use std::{
env,
path::Path,
process::{exit, Command},
};
use which::which;
const LIBPNG_URL: &str =
"https://deac-fra.dl.sourceforge.net/project/libpng/libpng16/1.6.37/libpng-1.6.37.tar.xz";
fn build_dep_check(tools: &[&str]) {
for tool in tools {
println!("Checking for build... |
package $organization$.config
import com.tremorvideo.lib.feature.flags.{Debug, FeatureFlagsConfig, Observe}
import com.tremorvideo.lib.kafka.producer.TremorKafkaProducerConfig
import com.tremorvideo.lib.metrics.MetricsReporter
case class AppConfig(
http: HttpConfig,
metrics... |
$('#password').pwstrength({
//Override the default values of the ../plugins/jquery.pwstrength.js
texts: ['seriously?', 'soft', 'that\'s something', 'good', 'hardcore']
}); |
package consumeUser
import (
"context"
"fmt"
"io"
"math/rand"
"sync"
"time"
"github.com/mrpiggy97/sharedProtofiles/user"
)
func ConsumeRegisterUsers(waiter *sync.WaitGroup, client user.UserServiceClient) {
waiter.Add(1)
//get stream
streamContext, cancelFunc := context.WithTimeout(
context.Background(),
... |
const NUMBER_OF_LETTERS_IN_ALPHABET = 26;
class Pangram {
constructor(private readonly text: string) {}
isPangram(): boolean {
return this.countUniqueLetters() === NUMBER_OF_LETTERS_IN_ALPHABET;
}
private countUniqueLetters(): number {
return new Set(this.text.toLowerCase().match(/[a-z]/g)).size;
}
... |
#pragma once
namespace performance
{
#pragma region Types
namespace types
{
/// <summary>
/// A string implementation.
/// Unsigned __int8 size should be a positive number greater than 0.
/// </summary>
template <unsigned __int8 size>
struct string8
{
char Characters[size];
/// <summary>
//... |
---
title: 源代码窗格
description: 源代码窗格
ms.assetid: 2d4ee4da-1340-473b-83dc-018e1d6910eb
keywords:
- 窗格 WDK Static Driver Verifier
ms.date: 04/20/2017
ms.localizationpriority: medium
ms.openlocfilehash: ee6d4829abe776ef17e33f425af0c82ba24d4fff
ms.sourcegitcommit: 0cc5051945559a242d941a6f2799d161d8eba2a7
ms.translationtype:... |
#!/bin/bash
RED="\033[31m"
YELLOW="\033[33m"
BLUE="\033[94m"
GREEN="\033[32m"
NO_COLOR="\033[0m"
CWD="$(pwd)"
echo "pwd=$CWD"
# Create the repo
cd /tmp
reponame=$(date +gitlint-test-%Y-%m-%d_%H-%M-%S)
git init $reponame
cd $reponame
# Do some basic config
git config user.name gïtlint-test-user
git config user.email ... |
#!/usr/bin/env bash
set -e
# Install command-line tools using Homebrew.
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade
# Install GNU core utilities (those that come with macOS are outdated).
# Don’t forget to add `$(brew --prefix coreutils)/libexec/g... |
#!/bin/bash
if [ -n "$(uname -m | grep aarch64)" ]; then
IMAGE_TAG=vosk_aarch64
elif [ -n "$(uname -m | grep armv7l)" ]; then
IMAGE_TAG=vosk_armv7l
else
# NOTE: x86 32bit build not supported atm
IMAGE_TAG=vosk_amd64
fi
sudo docker run --rm --name=sepia-stt-vosk -p 20741:20741 -it sepia/stt-server:$IMAGE_TAG /bin/ba... |
require 'spec_helper_acceptance'
describe 'iis_virtual_directory' do
before(:all) do
# Remove 'Default Web Site' to start from a clean slate
remove_all_sites
@site_name = SecureRandom.hex(10)
create_site(@site_name, true)
end
after(:all) do
remove_all_sites
end
context 'when configurin... |
/// <reference path="../refs.d.ts" />
var fpxt;
(function (fpxt) {
(function (forms) {
var Facebook = (function () {
function Facebook() {
this.extId = 'FACEBOOK';
}
Facebook.prototype.setup = function (baseApiUrl, authKeys, objParams, onCompleted) {
... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import { StaticQuery, graphql } from "gatsby";
import { scaleOrdinal } from "d3-scale";
import { withCaption, SelectProvider, SliderProvider } from "providers";
import { Legend, NarrowContainer, PieChart } from "story_components";
import COLO... |
/**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#pragma onc... |
This document contains information about how to create packages for
debian and centos. But make sure you follow the
[preparation steps](../devel/environment.md#prepare-the-environment)
as packaging depends on that.
After you create the package it is available at
``/leela/pkg/dist``. You can change using the ``distroot... |
/// # Recoverable Errors with `Result`
///
/// Most errors aren't serious enough to require the program to stop entirely.
/// Sometimes, when a function fails, it's for a reason
/// that you can easily interpret and respond to.
/// For example, if you try to open a file and that operation falis
/// because the file do... |
from src.internal.adapters.local_player import LocalPlayer
from src.internal.app.interfaces.query_handler import QueryHandler
class GetSkippedSongsHandler(QueryHandler):
"""
Returns all not-played songs from current playlist for refund
"""
player: LocalPlayer
def __init__(self, local_player: Loca... |
module API
module V1
class Test < Grape::API
resource 'test' do
desc 'test GET method'
get 'hello' do
'hello from Discounty GET'
end
desc 'test POST method'
post 'hello' do
'hello from Discounty POST'
end
end
end
end
end |
main = do
print (celToFahr 40)
celToFahr :: Float -> Float
celToFahr c
= c * (9/5) + 32 |
package views
import (
"html/template"
"os"
"path/filepath"
"strings"
)
type tplCache struct {
tpl *template.Template
err error
}
type file struct {
viewExt string
root string
files map[string][]string
}
func (vf *file) visit(paths string, f os.FileInfo, err error) error {
if f == nil {
return err
... |
import styled from 'styled-components';
export const Title = styled.h1`
color: #f00;
background: #000;
font-size: ${props => `${props.fontSize}px`};
span{
font-size: 12px;
};
`;
export const TitleSmall = styled(Title)`
color: #00F;
font-size: 16px
`; |
C @(#)swpanl.f 20.3 2/13/96
subroutine swpanl (m,n)
include 'ipfinc/parametr.inc'
include 'ipfinc/anlys.inc'
save
C
entry swapan (m,n)
kps = lstown(m)
lstown(m) = lstown(n)
lstown(n) = kps
return
entry swpan2 (m,n)
kps = lstvlt(m)
lstvlt... |
from mayavi import mlab
import numpy as np
from scipy.special import sph_harm
import os
# Create a sphere
r = 0.75
pi = np.pi
cos = np.cos
sin = np.sin
phi, theta = np.mgrid[0:pi:101j, 0:2*pi:101j]
x = r * sin(phi) * cos(theta)
y = r * sin(phi) * sin(theta)
z = r * cos(phi)
mlab.figure(1, bgcolor=(1, 1, 1), fgcolor=... |
package xyz.akko.yandroid.util.bean
import java.io.Serializable
data class YanderImgInfo(
val actual_preview_height: Int,
val actual_preview_width: Int,
val approver_id: Any,
val author: String,
val change: Int,
val created_at: Int,
val creator_id: Int,
val file_ext: String... |
#!/bin/sh
set -e
rm -fr build
mkdir build
cd build
dependency_root="/Users/huangck/Documents/Work/CSR/2019-ER/ThirdPartyLibraries"
pybind_root="${dependency_root}/pybind11_install"
portage_root="${dependency_root}/Portage_install"
thrust_root="${dependency_root}/Thrust/thrust"
kokkos_root="${dependency_root}/Kokkos... |
#!/bin/bash
install_shottr() {
brew_install_app "Shottr" "shottr"
}
|
# QUICK START
git clone https://github.com/justinbodnar/stocktuna.git
cd stocktuna
pip3 install -r requirements.txt
wget https://stocktuna.com/datasets/kaggle-stock-etf-dataset.zip
unzip kaggle-stock-etf-dataset.zip
rm kaggle-stock-etf-dataset.zip
mkdir models
mkdir datasets
python3 cli-menu.py
OR
pydoc3 sto... |
// @alwaysStrict: true
// @outFile: out.js
// @fileName: a.ts
module M {
export function f() {
var arguments = [];
}
}
// @fileName: b.ts
module M {
export function f2() {
var arguments = [];
}
} |
package net.openid.appauthdemo.network
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory
import retrofit2.converter.gson.GsonConverterFactory
import rx.Observable
class NetworkClient {
private val apiServic... |
require 'app/lib/ebb.rb'
$gtk.reset
def tick args
$e ||= Ebb.new
$e.tick
text_examples = []
line_examples = []
sprite_examples = []
text_examples << "blink: #{$e.blink}"
text_examples << "blink(10): #{$e.blink(10)}"
text_examples << "blink(20, 60): #{$e.blink(20, 60)}"
$e.blink(100) do |on|
... |
extern crate card_validate;
use card_validate::{Validate, ValidateError};
fn visaelectron_numbers_valid() -> Vec<&'static str> {
vec!["4917300800000000"]
}
fn maestro_numbers_valid() -> Vec<&'static str> {
vec!["6759649826438453"]
}
fn forbrugsforeningen_numbers_valid() -> Vec<&'static str> {
vec!["6007... |
# daMi
使用 Vue + element-ui + Nodejs + MongoDB 仿小米官网
|
<?php
$user = must_be_connected();
local_action($user);
$fw->smarty->assign('menu_actif',"ballot-list");
$fw->include_css('ballot-list');
$fw->add_js('popper.min.js');
$fw->add_js('../plugins/sweetalert2/sweetalert2.min.js');
project_css_js($fw);
$fw->include_js('ballot-list');
$fw->set_canonical('/ballot-list');
$fw->... |
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
namespace Open.Serialization.Json.Newtonsoft
{
public static class CamelCaseJson
{
public static JsonSerializerSettings Default(bool indent = false)
{
var options = RelaxedJson.Options(indent);
options.ContractResolver = new CamelCasePropertyName... |
require "spec_helper"
RSpec.describe MarketplaceLandingPageController, type: :request do
before(:each) do
@community = FactoryGirl.create(:community)
@user = create_admin_for(@community)
@user.update(is_admin: true)
end
describe 'GET /' do
it 'user not logged in' do
get('/', headers: {hos... |
package com.vwo.mobile.models;
import android.support.annotation.Keep;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import android.util.Patterns;
import java.io.Serializable;
import java.util.Locale;
import java.util.regex.Pattern;
/**
* Created by aman on 16/09/17.
*/
@Keep
public ab... |
#!/bin/sh
set -e
# echo KUBECONFIG in a kubeconfig file for helm to authenticate with
echo "$KUBECONFIG" > kubeconfig-file
# point to our file from above
export KUBECONFIG=kubeconfig-file
# run the `command` specified in github
sh -c "helm $*"
|
import m from 'mithril'
import { Game } from '../index'
export const ctrl = {
end: () => {
Game.isRunning = false
Game.isOver = true
},
goTo: {
init() {
Game.state = 'Init'
m.redraw()
},
intro() {
Game.state = 'Intro'
m.redraw()
},
play() {
Game.state... |
<?php
namespace Zilliqa;
use Exception;
use Zilliqa\DataType\ZilliqaQuantity;
abstract class ZilliqaStatic
{
public static function getDefinition(): array
{
$schema_path = __DIR__ . '/../resources/zilliqa-schema.json';
return json_decode(file_get_contents($schema_path), true);
}
pub... |
using System.Collections.Generic;
using Poseidon.BackOffice.Common;
using Poseidon.BackOffice.Common.ViewModels;
using Poseidon.BackOffice.Core.ViewModels;
namespace Poseidon.BackOffice.Core.DesignTime
{
public class DesignTimeBreadCrumbViewModel
{
public IEnumerable<ModuleViewModel> CurrentM... |
import 'dart:ui';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:get/get.dart';
import '../../../../core/utils/color_palette.dart';
import '../../../../core/widgets/blocking_progress.dart';
import 'edit_note_controller.dart';
class EditNotePage extends GetVi... |
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
from rest_framework_jwt.views import obtain_jwt_token
from rest_framework_swagger.views import get_swagger_view
from graphen... |
package aula08;
public class At01 {
public static long fatorialNr(long num) {
long aux = num;
for (long i = num - 1; i > 0; i--) {
aux *= i;
}
return aux;
}
public static long fatorialR(long num) {
if (num == 0) {
return 1;
} else {
... |
package com.litl.leveldb;
public class DatabaseCorruptException extends LevelDBException {
private static final long serialVersionUID = -2110293580518875321L;
public DatabaseCorruptException() {
}
public DatabaseCorruptException(String error) {
super(error);
}
}
|
Widget build(BuildContext context) {
return Container(
height: 56.0,
padding: const EdgeInsets.symmetric(horizontal: 8.0),
decoration: BoxDecoration(color: Colors.blue[500]),
Row(
IconButton(
icon: Icon(Icons.menu),
tooltip: 'Navigation menu',
),
Expanded(title),
... |
import 'package:api_todo/src/models/todo_model.dart';
import 'package:api_todo/src/repositories/todo_repository.dart';
import 'package:flutter/cupertino.dart';
class Home_Controller {
List<TodoModel> todos = [];
final TodoRepository _repository;
final state = ValueNotifier<HomeState>(HomeState.start);
Home... |
module Schools
module DFESignInAPI
class NoOrganisationError < RuntimeError; end
class Roles < Client
attr_accessor :user_uuid, :organisation_uuid
class << self
def service_id
ENV.fetch('DFE_SIGNIN_SCHOOL_EXPERIENCE_ADMIN_SERVICE_ID')
end
def role_id
... |
# OIFITS.jl
The `OIFITS.jl` package provides support for OI-FITS data in Julia language.
The support for the actual FITS files is provided by the
[`FITSIO.jl`](https://github.com/JuliaAstro/FITSIO.jl) package.
## OI-FITS Summary
OI-FITS is a standard to store optical interferometry data as a collection of
data-bloc... |
### A Pluto.jl notebook ###
# v0.12.4
using Markdown
using InteractiveUtils
# ╔═╡ f7e92500-194d-11eb-00c9-6f427ae012ac
md"# The Basel Problem
_Leonard Euler_ proved in 1741 that the following series
$$\frac{1}{1} + \frac{1}{4} + \frac{1}{9} + \cdots$$
converges to
$$\frac{\pi^2}{6} .$$
"
# ╔═╡ 287ee380-194e-11e... |
package com.equalexperts.client.softwaredesignsystems.eatout
import com.equalexperts.client.softwaredesignsystems.eatout.services.Location
import com.equalexperts.client.softwaredesignsystems.eatout.services.Restaurant
import org.osmdroid.util.GeoPoint
import org.osmdroid.views.MapView
import org.osmdroid.views.overla... |
var $ = require('../lib/jquery-3.2.1.min.js');
var Vue = require('../lib/vue.js');
var pageBus = require('../common/bus.js');
var template= require('./currentview.html');
var loginview= require('./loginview.js');
var reset= require('./reset.js');
var currentview = {
template: template,
data: function() {
... |
require 'spec_helper'
describe "client" do
let(:api_user) { "sendgrid_user" }
let(:api_key) { "password123" }
let(:client) { SendGridWebApi::Client.new(api_user, api_key) }
let(:client_invalid) { SendGridWebApi::Client.new("foo", "bar") }
describe "intialise" do
it "should return the correct base URL" d... |
object DataTypes {
def examples(): Unit = {
println("DataType Examples")
// variables can be declared with 'var' and can have implied type
var myName = "James"
var myAge = 39
println("My name is " + myName + " and I am " + myAge)
// You can define the type
var myLocation: String = "Lond... |
; void *tshc_aaddrcdown(void *aaddr)
SECTION code_clib
SECTION code_arch
PUBLIC _tshc_aaddrcdown_fastcall
EXTERN _zx_saddrcdown_fastcall
defc _tshc_aaddrcdown_fastcall = _zx_saddrcdown_fastcall
|
<?php
namespace uujia\framework\base\common\lib\Decrypt;
/**
* Class Aes
* Date: 2020/10/6
* Time: 1:18
*
* @package uujia\framework\base\common\lib\Decrypt
*/
class Aes {
/**
* @var string 加解密方法,可通过openssl_get_cipher_methods()获得
*/
protected $_method;
/**
* @var string 加解密的密钥
*/
protected $_secr... |
MixServer
===
This is a forked repository from [Hivemall core](https://github.com/apache/incubator-hivemall).
## Build
```
$ mvn package -DskipTests
```
## Run
```
$ mvn exec:java -Dexec.mainClass=hivemall.mix.server.MixServer
```
see [HIVEMALL-43](https://issues.apache.org/jira/browse/HIVEMALL-43) |
#!/bin/bash
# Executes commands in file placed by some other process on shared
# NFS. The result is placed in the same file. The format of the file is:
# {command text}
# EOCommand
# {command result text}
# EOResult
# Information is only appended to the file. Polling is done on the
# EOCommand and EOResult tags t... |
using System;
using System.Reflection;
namespace GoPay.Common
{
public enum Currency
{
[CurrencyCode(203)]
CZK,
[CurrencyCode(978)]
EUR,
[CurrencyCode(985)]
PLN,
[CurrencyCode(348)]
HUF,
[CurrencyCode(840)]
USD,
[Currency... |
# name-picker
给你的宝宝找一个心仪的名字吧!
## 使用
`scrapy crawl name` 抓取名字
`python app.py` 启动服务
访问 [http://www.renren.com:5000/](http://www.renren.com:5000/) 浏览页面 |
Write-Output 'EverGreen Install Started'
New-Item -ItemType Directory 'C:\CustomizerArtifacts' | Out-Null
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force | Out-Null
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted | Out-Null
Install-Module EverGreen -Scope CurrentUser -Force
Write-... |
import 'package:country_code_picker/country_localizations.dart';
import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:package_info/package_info.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:singlestore/screens/AppIntro/app_intro.dart';
import 'pack... |
(P)
(Q)
(R)
(P=>Q)
(Q=>R)
(P=>R<P>)
(P=>R<Q>)
(P=>R<R>)
(P=>R)
(P=>R-WITH-LET<P>)
(P=>R-WITH-LET<Q>)
(P=>R-WITH-LET<R>)
(P=>R-WITH-LET)
|
package com.raynigon.unit.api.kotlin
import com.raynigon.unit.api.core.service.UnitsApiService.quantity
import com.raynigon.unit.api.core.units.si.SISystemUnitsConstants.Metre
import com.raynigon.unit.api.core.units.si.SISystemUnitsConstants.Watt
import com.raynigon.unit.api.core.units.si.dimensionless.One
import org.... |
package edu.ucr.cs.riple;
import static com.google.errorprone.BugPattern.SeverityLevel.WARNING;
import com.google.auto.service.AutoService;
import com.google.errorprone.BugPattern;
import com.google.errorprone.ErrorProneFlags;
import com.google.errorprone.VisitorState;
import com.google.errorprone.bugpatterns.BugChec... |
# validate.js
validate.js is a lightweight JavaScript form validation library inspired by CodeIgniter.
## Features
- Validate form fields from over a dozen rules
- No dependencies
- Customizable Messages
- Supply your own validation callbacks for custom rules
- Chainable customization methods for ease of declaration... |
package org.spekframework.spek2.integration
import org.spekframework.spek2.Spek
import org.spekframework.spek2.style.specification.describe
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
object SetSpec: Spek({
describe("A set") {
val set by memoized { mutableSetOf<String>() }
... |
# Q-learning applied to trading
Here we present an approach for training an agent to behave optimally in a
trading environment. We model such an environment with some simplifying
assumptions:
* There is only one opportunity to trade per day which must be done by paying
the `close` price provided in historical marke... |
def show_description(path):
if 'Simulation_1' in path:
print('Simulation_1: Straight line drive on a wavey 2D surface')
if 'Simulation_2' in path:
print('Simulation_2: Left turn drive on a wavey 2D surface')
if 'Simulation_3' in path:
print('Simulation_3: Straight line drive on a... |
;; Copyright 2020-2022 The Defold Foundation
;; Copyright 2014-2020 King
;; Copyright 2009-2014 Ragnar Svensson, Christian Murray
;; Licensed under the Defold License version 1.0 (the "License"); you may not use
;; this file except in compliance with the License.
;;
;; You may obtain a copy of the License, together wi... |
package org.woehlke.computer.kurzweil.commons.model.fractal;
import org.woehlke.computer.kurzweil.tabs.wator.WatorModel;
import org.woehlke.computer.kurzweil.commons.model.turing.Point;
import java.io.Serializable;
import java.util.ArrayDeque;
import java.util.Deque;
//import java.util.logging.Logger;
/**
* Mandelb... |
#!/bin/sh
set -eu
fn=$1
src=$2
date=$(git log --max-count=1 --format=%ad --date=format:%FT%TZ $src)
sed -e '/^%%%/,/^%%%/s/\(^date[ ]*=[ ]*\).*/\1'$date'/' \
-e '/^%%%/,/^%%%/s/\(^value[ ]*=[ ]*\).*/\1"'$fn'"/' \
<$src >$src.stamp
if ! diff -u $src $src.stamp
then mv $src.stamp $src
else rm $src.stamp
fi... |
package de.htwg.se.uno
package controller.controllerComponent
import util.Invoker
import model.gameComponent._
import util.Observable
trait controllerInterface extends Observable {
var game: gameInterface
val invoker: Invoker
def take(): Unit
def place(ind: Int): Unit
def next(): Unit
def undo(): Unit
d... |
#!/bin/bash
set -euo pipefail
git pull origin master
. ./venv/bin/activate
python3 documentation_parser.py
if git status --porcelain Versions | grep '^??' > /dev/null 2>&1; then
git add 'Versions/*'
version=$(git status --porcelain Versions | head -n1 | sed -Ee 's/.+-([0-9.]+)\..+/\1/')
git commit -m "A... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.