text
stringlengths
27
775k
module.exports = [ // top candidates { name: "Mem[e]mory card game", description: "this is probably the most fun side project I had so far. Functionality: Select doges from doge cards!! ", keywords: ["React"], category: "web dev", url: "https://violetguos.github.io/memory_card/", icon:...
## logger 模仿beego/logs模块 ## 配置 #### 设置异步 > SetAsync() #### 设置log等级 > SetLevel(l int) - LevelEmergency - LevelAlert - LevelCritical - LevelError - LevelWarning - LevelNotice - LevelInformational - LevelDebug #### 设置logger > SetLogger(adaptername string, config string) 目前支持的 adapter - Console - File - Elast...
from turtle import Turtle class ScoreCard(Turtle): def __init__(self): super(ScoreCard, self).__init__() self.color("white") self.penup() self.goto(0, 0) self.hideturtle() def finish(self, success): self.clear() if success: self.write("SUCCE...
require 'vagrant' require 'vagrant/reverse_samba/version' require 'vagrant/reverse_samba/plugin' module Vagrant module ReverseSamba end end
module ParseSpecificationLanguage where import Data.Char import Data.IP import Data.List import Data.List.Split import qualified Data.Map as Map import Data.Maybe import ParserHelp import Types lexer :: String -> [String] lexer s | all isSpace s = [] | 'N':'O':'T':xs <- afterSpaces = "NOT":lexer xs ...
import 'package:flutter/cupertino.dart' show CupertinoIcons; import 'package:flutter/material.dart'; import '../../constants/enums.dart'; class CardColorDecisionCard extends StatefulWidget { const CardColorDecisionCard({ Key? key, }) : super(key: key); @override _CardColorDecisionCardState createState() ...
module Abilities class ManagerCoreAbility include CanCan::Ability def initialize(user) ['Asset', 'AssetEvent', 'Organization', 'Policy', 'Role', 'Upload', 'User'].each do |c| ability = "Abilities::Manager#{c}Ability".constantize.new(user) self.merge ability if ability.present? e...
package main func main() { var p *int = nil *p = 0 } // run error // panic: runtime error: invalid memory address or nil pointer dereference // [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x105e262]
import componentFactoryFixture from '../../../../../test/helpers/component-factory-fixture'; import brushAreaDir from '../brush-area'; function nativeEvent(x, y) { return { clientX: x, clientY: y, }; } function hammerEvent(x, y) { return { center: { x, y }, }; } describe('Brush Area', () => { l...
package com.aptopayments.mobile.repository.card.remote.entities import com.aptopayments.mobile.data.card.FeatureStatus import com.aptopayments.mobile.data.card.InAppProvisioningFeature import com.google.gson.annotations.SerializedName internal data class InAppProvisioningFeatureEntity( @SerializedName("status") ...
module Misty::Openstack::API::SwiftV1 def tag 'Object Storage API Reference 2.17.1' end def api {"/info"=>{:GET=>[:list_activated_capabilities]}, "/v1/{account}"=> {:GET=>[:show_account_details_and_list_containers], :POST=>[:create_update_or_delete_account_metadata], :HEAD=>[:show_account_metadata]}...
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "ArrayExt" do it "should be able to do powersets" do ps = Knj::ArrayExt.powerset(:arr => [1, 2, 3, 4]).to_a raise "Expected length of 16 but it wasnt: #{ps.length}" if ps.length != 16 ite = 0 Knj::ArrayExt.powerset(:arr =...
import { Component, ViewChild } from '@angular/core'; import { NgOnchangesExampleComponent } from '../ng-onchanges-example/ng-onchanges-example.component'; @Component({ selector: 'app-ng-onchangesparent', templateUrl: './ng-onchangesparent.component.html', styleUrls: ['./ng-onchangesparent.component.css'] }) exp...
import 'package:sembast/sembast_memory.dart' as sembast; import 'package:tekartik_firebase_firestore_sembast/firestore_sembast.dart'; import 'package:tekartik_firebase_firestore_test/firestore_test.dart'; import 'package:tekartik_firebase_local/firebase_local.dart'; void main() { // needed for memory skipConcurren...
/** * CloudMapping - Sistema de Extração de Dados de Mapeamento dos Experimentos em Computação em Nuvem * * Copyright (c) AssertLab. * * Este software é confidencial e propriedade da AssertLab. Não é permitida sua distribuição ou divulgação * do seu conteúdo sem expressa autorização do AssertLab. Este arquivo ...
import Konva from 'konva'; Konva.showWarnings = false; /** * * @param parent * @param name * @param options */ export function appendKonvaElement(parent,name,options){ const element = new Konva[name](options); parent.add(element); return element; }
import 'package:build/build.dart'; import 'package:source_gen/source_gen.dart'; import 'src/dllimport_generator.dart'; Builder dllImportBuilder(BuilderOptions options) => LibraryBuilder(DllImportGenerator(), generatedExtension: '.ffi.g.dart', header: '$defaultFileHeader\nimport \'dart:ffi\';');
require 'sqlite3' def open_database(output_file) schema = IO.read("../schema/crawlerdb.sql") # puts schema db = SQLite3::Database.new(output_file) schema.split(';').each do |part| db.execute(part) end yield(db) return db end
module Dnsimple module Struct class Zone < Base # @return [Integer] The zone ID in DNSimple. attr_accessor :id # @return [Integer] The associated account ID. attr_accessor :account_id # @return [String] The zone name. attr_accessor :name # @return [Boolean] True if th...
import React from 'react'; import {List} from 'react-native-paper'; import {StyleSheet, View, Animated, Alert} from 'react-native'; import {RectButton} from 'react-native-gesture-handler'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import Swipeable from 'react-native-gesture-handler/Swipeable'...
package handler import ( "demo/app/cli/internal/logic" "demo/app/cli/internal/svc" "github.com/urfave/cli/v2" ) func ListHandler(ctx *svc.ServiceContext) cli.ActionFunc { return func(context *cli.Context) error { l := logic.NewListLogic(context, ctx) return l.List() } }
from django.apps import AppConfig class ConjugateConfig(AppConfig): name = 'conjugate'
var naughtyWords = [ //URL: https://www.freewebheaders.com/full-list-of-bad-words-banned-by-google/ '2girls1cup', '2g1c', 'a2m', 'acrotomophilia', 'ahole', 'alabamahotpocket', 'alaskanpipeline', 'anal', 'analimpaler', 'analleakage', 'analprobe', 'anilingus', 'anus', ...
/* * Copyright (c) John Gough 2016-2017 */ package j2cpsfiles; import java.io.FileNotFoundException; import java.io.IOException; import java.io.FileOutputStream; import java.io.DataOutputStream; import java.io.File; /** * * @author john */ public class j2cpsfiles /*implements FilenameFilter*/ { private static...
package leetcode.flattenbtree import leetcode.binarytreeboundary.TreeNode /** * https://leetcode.com/problems/flatten-binary-tree-to-linked-list/description/ */ class Solution { fun flatten(root: TreeNode?) { root?.flatten() } private fun TreeNode.flatten(): TreeNode? { if (left == null && right == n...
module Lust.Typing where import Lust.Typing.Clocks as C import Lust.Typing.Types as T import Control.Monad ( (>=>) ) runTyping = T.runTyping >=> C.runClocking
using System.ComponentModel.Composition; using System.Windows; using Smellyriver.TankInspector.Pro.ConfiguratorShared; using Smellyriver.TankInspector.Pro.Data.Tank; namespace Smellyriver.TankInspector.Pro.StatChangesView { [Export(typeof(IStatChangesViewProvider))] public class StatChangesViewProvider : ISta...
use ruma_identifiers::UserId; #[derive(Clone, Debug, serde::Serialize)] pub struct WhoamiResponse { pub user_id: UserId, }
<?php namespace App\Http\Controllers\Kategori; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Http\Models\Kategori\KategoriModel as Master; use Carbon\Carbon; use PDF; class KategoriPmksController extends Controller { public function __construct() { $this->middleware('auth')...
/* * Copyright (c) 2002-2021, City of Paris * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright notice * and the f...
var NAVTREEINDEX3 = { "structchm_1_1_float_array.html":[0,0,0,7], "structchm_1_1_float_array.html":[1,0,0,7], "structchm_1_1_float_array.html#ab2ba32f86e835417d735f4da9ce800b9":[0,0,0,7,3], "structchm_1_1_float_array.html#ab2ba32f86e835417d735f4da9ce800b9":[1,0,0,7,3], "structchm_1_1_float_array.html#adaea16c23c019458a...
class StatusController < ApplicationController rescue_from GlimrApiClient::Unavailable, with: :index respond_to :json def index respond_with(Status.check.to_json) end end
package com.vairavans.analytics import io.mockk.Called import io.mockk.mockk import io.mockk.verify import org.junit.Test import org.junit.runner.RunWith import org.junit.runners.JUnit4 @RunWith(JUnit4::class) class AbsDaggerAnalyticsAppCompatActivityTest { open class TestEnabledActivity : AbsDaggerAnalyticsAppC...
import numpy as np from .geometry import GRBLocation class GRB(object): def __init__(self, ra, dec, distance, K, t_rise, t_decay): """ A GRB that emits a spectrum as a given location :param ra: RA of the GRB :param dec: DEC of the GRB :param distance: distance to the GRB...
module PDoc module Models class Entity < Base attr_accessor :alias def signatures @signatures ||= [] end def <=>(other) id.downcase <=> other.id.downcase end def src_code_href proc = Models.src_code_href @src_code_href ||= pr...
import Store from "./Store"; import { actionT, reducerT, reduceTreeT } from "./type"; const createStore = (reducer: reducerT, action?: actionT) => { return new Store( reducer, action || {type: "init"}, ); }; export default createStore;
<?php function createAvailableUserOption($user){ $user_id = $user["id"]; $user_name_surname = $user["name"]." ".$user["surname"]; echo "<option value='$user_id'>$user_name_surname</option>"; } ?>
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Glass.Mapper; using Glass.Mapper.Caching; using Glass.Mapper.Diagnostics; using Glass.Mapper.IoC; using Glass.Mapper.Maps; using Glass.Mapper.Pipelines.ConfigurationResolver; using Glass.Mapper.Pip...
import { reject, resolve } from "Bluebird" import chai, { assert } from "chai" import chaiAsPromised from "chai-as-promised" import { spy, stub } from "sinon" import EventEmitter from "events" import KoaServer from "server/server/KoaServer" import { ConnectionError } from "server/lib/errors" class MockService { ge...
package network.o3.o3wallet.API.Ontology import com.google.gson.JsonObject data class OntologyDataResponse(val desc: String, val error: Int, val id: Int, val jsonrpc: String, val result: JsonObject) data class GasPrice(val gasprice: Long, val height: Lo...
import { storiesOf } from '@storybook/react'; import withFusionStory from '../../../.storybook/withFusionStory'; import useKeyboardNavigation from '../useKeyboardNavigation'; import {useState, Fragment} from "react"; const KeyboardNavigationStory = () => { const listItems = ['Item 1', 'Item 2', 'Item 3']; con...
/* Level15: Map of tiles for the Level 15 / 20 Part of Manic Miner Remake @see Game Level Map Nacho, 2011 & 2017 Versions: Num. Date Changes ---- ----------- -------------------------------- 0.20 20-Ago-2017 Almost identical to 0.15, but translated to English */ public class Level15 : Level { ...
package io.bazel.rulesscala.test_discovery import java.io.{File, FileInputStream} import java.util.jar.{JarEntry, JarInputStream} object ArchiveEntries { def listClassFiles(file: File): Stream[String] = { val allEntries = if (file.isDirectory) directoryEntries(file).map(_.stripPrefix(file.toString).stripP...
--- layout: post title: "越南" date: 2017-05-26 categories: - 环游世界那些事 description: image: /img/UNADJUSTEDNONRAW_thumb_3001.jpg image-sm: --- 2017年4月开始,因工作的机会两次进入越南,开始了一段对边境邻国风土人情的探索。 <h3>签证</h3> 越南签证为另纸签证,淘宝上办理238一次,只需要提供护照首页的扫描件即可办理。一天出签,速度还是相当快的。入关和出关只会在另纸签证上盖章,因此无论你去过多少次越南,护照上基本上不留下任何痕迹。 <h3>货币和消费水平</h3> 越南的当地货币为越...
{-# LANGUAGE TupleSections #-} -- -- Evaluation -- module FreeCat.Evaluate where import Data.Map as Map import FreeCat.Core evaluate :: Context -> Expr -> FreeCat Expr evaluate c e@(SymbolExpr s pos) = do case lookupSymbol c (name s) of Nothing -> return e Just s' -> case equations s' of (Eq...
#!/bin/bash -ev # Written by: Tommy Lincoln <pajamapants3000@gmail.com> # Github: https://github.com/pajamapants3000 # Legal: See LICENSE in parent directory # # Check for previous installation: PROCEED="yes" grep insync-portable /list-$CHRISTENED"-"$SURNAME > /dev/null && ((\!$?)) &&\ echo "Previous installation d...
namespace Kubernetes.Probes.Core { public class ProbeConfig { public int LivenessSignalIntervalSeconds { get; set; } public string LivenessFilePath { get; set; } public string StartupFilePath { get; set; } } }
import {PatientData} from "./patient-data"; import {PatientRADAIResult} from "./patient-RADAI-result"; import {PatientMoriskyResult} from "./patient-morisky-result"; import {PatientFFbHResult} from "./patient-ffbh-result"; import {PatientObservationGroup} from "./patient-observation-group"; import {PatientMedication} f...
// Copyright 2020 The Kubernetes Authors. // SPDX-License-Identifier: Apache-2.0 // Code generated by ./scripts/makeOpenApiInfoDotGo.sh; DO NOT EDIT. package kubernetesapi import ( "sigs.k8s.io/kustomize/kyaml/openapi/kubernetesapi/v1212" ) const Info = "{title:Kubernetes,version:v1.21.2}" var OpenAPIMustAsset = ...
{-# LANGUAGE LambdaCase #-} module Haskellorls.Color.Option ( colorParser, extraColorParser, module Haskellorls.Color.Type, ) where import Haskellorls.Color.Type import Options.Applicative colorParser :: Parser Colorize colorParser = option reader $ long "color" <> metavar "WHEN" <> val...
/* ==================================================================== */ using System; using System.Collections.Generic; using System.Text; using System.Drawing; using System.ComponentModel; // need this for the properties metadata using System...
package com.carkzis.android.plutus.inflation import androidx.arch.core.executor.testing.InstantTaskExecutorRule import com.carkzis.android.plutus.inflation.RpiPctViewModel import com.carkzis.android.plutus.data.FakeRepository import com.carkzis.android.plutus.getOrAwaitValue import com.carkzis.android.plutus.observeFo...
water_formation = ce"2 H2 + O2 → 2 H2O" ionic_reaction = ce"Na{+} + Cl{-} > NaCl" redox = ce"Cr2O7{-2} + H{+1} + {-} = Cr{3+} + H2O" @testset "ChemEquation" begin @test water_formation.tuples == [(cc"H2", 2), (cc"O2", 1), (cc"H2O", -2)] @test ionic_reaction.tuples == [(cc"Na{+1}", 1), (cc"Cl{-1...
package ecsgen import ( "errors" ) // Walkable represents types that can be walked within ecsgen. This allows walking // from arbitrary points within the graph, as well as from the root. type Walkable interface { ListChildren() <-chan *Node } // ErrSkipChildren is a used as a return value from WalkFuncs to indicat...
// ets_tracing: off import type * as CL from "../../../../Clock" import * as SC from "../../../../Schedule" import type * as C from "../core" import * as Schedule from "./schedule" /** * Emits elements of this stream with a fixed delay in between, regardless of how long it * takes to produce a value. */ export fun...
* * subroutine tstepsic.f for program goldstein introduced 18/9/02 * updates sea-ice height and area * subroutine tstepsic #include "seaice.cmn" integer i, j, l real fe(2), fw(2), fn(2), fs(2,maxi) + ,fwsave(2) c 2nd order explicit transport code using upper level ocean velocities c so...
## AppDomain assemblies Assemblies loaded into the AppDomain are scanned by default. AppDomain assembly scanning can be disabled using: snippet: ScanningApDomainAssemblies
import React from 'react' import styled from 'styled-components' import {GlobalContext} from '../context/GlobalContext' import TestCard from './test_card' const Container = styled.div` width: 90%; margin: auto; display: flex; flex-flow: row wrap; align-content: flex-start; ` function TestCards(){ let {g...
use ash::vk; use crate::context::instance::VkInstance; use crate::{vklint, vksint, vkchar, vkptr, vkbool}; use crate::error::{VkResult, VkError}; use std::ffi::CStr; use std::ptr; #[derive(Debug, Default)] pub struct ValidationConfig { /// `is_enable` tell if validation layer should be enabled. pub debug_t...
import { createStackNavigator } from '@react-navigation/stack'; import React from 'react'; import ArrowBox from '../../common/components/views/ArrowBox'; import ProfileErase from '../../common/screens/profile/ProfileErase'; import Terms from '../../common/screens/unlogged/Terms'; import { t } from '../../strings'; imp...
import { Router } from 'express'; import * as CommentAPI from '../controllers/comment.controller'; import { jwtAuth } from '../modules/jwt.local.strategy'; export const path = '/comment'; export const router = Router(); router.get('/startutor', CommentAPI.getAllCommentsCountPerTutor); router.get('/user/:user_id', jwt...
//! ASN.1 `INTEGER` support. // TODO(tarcieri): add support for `i32`/`u32` use crate::{Any, Encodable, Encoder, Error, ErrorKind, Header, Length, Result, Tag, Tagged}; use core::convert::TryFrom; // // i8 // impl TryFrom<Any<'_>> for i8 { type Error = Error; fn try_from(any: Any<'_>) -> Result<i8> { ...
using System.Diagnostics; using System.Net.Mqtt.Sdk.Packets; using System.Net.Mqtt.Sdk.Storage; using System.Threading.Tasks; namespace System.Net.Mqtt.Sdk.Flows { internal class ServerConnectFlow : IProtocolFlow { static readonly ITracer tracer = Tracer.Get<ServerConnectFlow> (); readonly IMqttAuthenticationP...
const baseUrl = window.baseUrl; export default { /** * 后台接口 */ "adminLogin" : baseUrl + "Admin/login", // 登录 "adminLogout" : baseUrl + "Admin/logout", // 登出 "adminCheckLogin" : baseUrl + "Admin/check_login", // 验证是否登录 // 菜单处理 'adminMenus' : baseUrl + 'Admin/menus', // 后台菜单 /*...
# mongodb-express-example Sample project using MongoDB and Express (Node.js), to be used as a template. ## Main Libraries - **express** (Web Framework) - **mongoose** (MongoDB object modeling) - **mocha** (Testing) ## Install & Run Install all dependencies: ```sh yarn install ``` Run test suites (requires **node...
#!/usr/bin/env ruby # code by fre3vi # method one numbers_one = [1,2,3,4,5] p numbers_one # method two numbers_two = Array(1..10) p numbers_two # method three numbers_three = (1..10).to_a p numbers_three # method four numbers_four = (1..10).step(2).to_a p numbers_four # method five numbers_five = 2.step(10, 3)...
# Style Rails.application.config.assets.precompile += %w( lato_media/application.css ) # Javascript Rails.application.config.assets.precompile += %w( lato_media/application.js )
class TransactionsController < ApplicationController before_action :logged_in_user def index @transaction = current_user.transactions.includes(:groups).desc @transaction = @transaction.filter { |trans| !trans.groups.empty? } @total = 0 @transaction.each { |trans| @total += trans.amount } end d...
use crate::core::{Workspace, WorkspaceData}; use crate::{rh_homepage, rh_name, rh_version}; use reqwest::header::{HeaderMap, HeaderValue}; use super::header; pub fn upgrade(args: &Workspace, headers: &mut HeaderMap) { if args.is_json() { if !headers.contains_key(header::CONTENT_TYPE) { headers...
package au.id.tmm.intime.cats.instances import java.time.Month import cats.{Hash, Order, Show} trait MonthInstances { implicit val intimeOrderForMonth: Order[Month] with Hash[Month] = new MonthOrder implicit val intimeShowForMonthInstances: Show[MonthInstances] = Show.fromToString } class MonthOrder extends Or...
import ApplicationAdapter from './application'; import { pluralize } from 'ember-inflector'; export default ApplicationAdapter.extend({ namespace: 'v1', createOrUpdate(store, type, snapshot, requestType) { const serializer = store.serializerFor(type.modelName); const data = serializer.serialize(snapshot, ...
#!/bin/sh OUTPUT=$(sensors -A k10temp-pci-00c3 amdgpu-pci-0a00 | rofi -dmenu -p "Temperature") printf "$(printf "$OUTPUT" | cut -d ':' -f2 | xargs)" | xsel -i -b
# ThreeJS cube demo A simple spinning cube with a wireframe. Click or press Spacebar to stop the animation. https://user-images.githubusercontent.com/28185591/160942037-accb652d-8f87-4c55-a763-a58a7b77d2ec.mp4 ### Local dev using pnpm ```bash pnpm i pnpm dev ```
using System; using System.Collections.Generic; using System.Text; // ReSharper disable InconsistentNaming namespace RiotGamesApi.Libraries.Lol.v3.StaticEndPoints.SummonerSpell { public enum SummonerSpellTag { all, cooldown, cooldownBurn, cost, costBurn, c...
# example Example is a storybook, you can run it by `flutter run`
import "mocha"; import * as expect from "expect"; import { WatSharpCompiler } from "../../src/compiler/WatSharpCompiler"; describe("WatSharpCompiler - emit structure copy", () => { it("copy assignment #1", () => { // --- Arrange const wComp = new WatSharpCompiler(` type regs = struct { u8 l, ...
class BatchHopperLot < ActiveRecord::Base belongs_to :hopper_lot belongs_to :batch validates_uniqueness_of :batch_id, :scope => [:hopper_lot_id] validates_associated :batch, :hopper_lot validates_numericality_of :amount, :greater_than_or_equal_to => 0 after_save :calculate_incr after_destroy :calculate_...
#!/usr/bin/env bash # Generate Apache VirtualHost Configuration vhost="<VirtualHost *:80> ServerName $1 Alias /fcgi-bin /usr/sbin/php5-fpm <FilesMatch \"\.ph(p3?|tml)$\"> SetHandler php5-fcgi Action php5-fcgi /fcgi-bin virtual </FilesMatch> <Directory /fcgi-bin> Options -Indexes +FollowSy...
//===== Copyright (c) Valve Corporation, All rights reserved. ======// // // Purpose: // // $NoKeywords: $ // Utility class for building command buffers into memory //==================================================================// #ifndef COMMANDBUILDER_H #define COMMANDBUILDER_H #ifdef _WIN32 #pragma once #en...
package scientifik.kmath.prob import scientifik.kmath.chains.Chain import scientifik.kmath.chains.ConstantChain import scientifik.kmath.chains.map import scientifik.kmath.chains.zip import scientifik.kmath.operations.Space class BasicSampler<T : Any>(val chainBuilder: (RandomGenerator) -> Chain<T>) : Sampler<T> { ...
/** * @fileOverview Processing Jobs with kickq */ var sinon = require('sinon'); var grunt = require('grunt'); var assert = require('chai').assert; var kickq = require('../../'); var tester = require('../lib/tester'); var jobItem = require('./jobItem.test'); var when = require('when'); var noop = function(){}; s...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDepositingreceipt extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('depositing...
{-# LANGUAGE LambdaCase, FlexibleContexts #-} module UI where import System.Console.Haskeline import qualified System.Console.Haskeline.Brick as HB import Brick import Brick.BChan import qualified Brick.Widgets.Center as C import qualified Brick.Widgets.Border as B import qualified Graphics.Vty as V import Parser im...
require 'spec_helper' require 'industry' describe Industry do it 'should simulate industry' do expect { Universe.simulate! }.not_to raise_error end end
# Copyright (c) 2006 Dave Vasilevsky package Nova::Util; use strict; use warnings; use base qw(Exporter); use List::Util qw(max min sum); our @EXPORT_OK = qw(deaccent commaNum termWidth wrap prettyPrint printIter makeFilter regexFilter printable indent); =head1 NAME Nova::Util - Miscellaneous utilities =head1 ...
const appConfig = { port: 3000, allowedCorsOrigin: '*', authToken: 'securemovie', db: { uri: 'mongodb://127.0.0.1:27017/movieApp' }, apiVersion: '1.0.0' }; module.exports = { appConfig };
//! Affine transformation matrix // |x'| |a b c| |x| // |y'| = |d e f| |y| // |1 | |0 0 1| |1 | // For optimization, each element of the matrix is a fixed-point number. // sin(), cos() for no_std environment use micromath::F32Ext; // scaling factor const FIXED_POINT_FRAC_BITS: i32 = 10; // representation of 1 c...
package com.tinymooc.handler.user.controller; import com.tinymooc.common.domain.Level; import com.tinymooc.common.domain.Rule; import com.tinymooc.common.domain.User; import com.tinymooc.handler.user.service.UserService; import org.hibernate.criterion.Restrictions; import org.slf4j.Logger; import org.slf4j.LoggerFacto...
import komand from .schema import MonitorSourcesInput, MonitorSourcesOutput # Custom imports below class MonitorSources(komand.Action): def __init__(self): super(self.__class__, self).__init__( name='monitor_sources', description='Return merged results from: freshness, las...
# 大阪 新型コロナウィルス {% include plotly.html %} ## 感染日と気温/絶対湿度の関係性 詳細は北海道の説明を参照。 {% include osaka-tvh-cont.html %} ### 相対湿度 [%RH] のグラフ {% include osaka-trh-cont.html %}
import { getAdjust, registerAdjust } from './factory'; import Adjust from './adjusts/adjust'; import Dodge from './adjusts/dodge'; import Jitter from './adjusts/jitter'; import Stack from './adjusts/stack'; import Symmetric from './adjusts/symmetric'; // 注册内置的 adjust registerAdjust('Dodge', Dodge); registerAdjust('Jitt...
<?php namespace rest\versions\v1\models; use common\models\User as CommonUser; use yii\filters\RateLimitInterface; /** * This is the model class for table "tbl_user". * * @property mixed user_id * @property mixed type * @property string title * @property string title_clean * @property string teaser * @pr...
package com.controller; import com.service.NewsService; import com.service.impl.NewsServiceImpl; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRespo...
"use strict" module.exports = testCode var esprima = require("esprima") var controlFlow = require("../../cfg") var toJS = require("control-flow-to-js") var vm = require("vm") var util = require("util") var stripNodes = require("./strip") function testCode(t, code, remark) { var ast = esprima.parse(code) var cfg ...
goog.provide('goog.ds.JsonDataSource'); goog.require('goog.Uri'); goog.require('goog.dom'); goog.require('goog.ds.DataManager'); goog.require('goog.ds.JsDataSource'); goog.require('goog.ds.LoadState'); goog.require('goog.ds.logger'); goog.ds.JsonDataSource = function(uri, name, opt_callbackParamName) { goog....
// <copyright file="PrivateMessage.cs" company="Drastic Actions"> // Copyright (c) Drastic Actions. All rights reserved. // </copyright> using System; using System.Collections.Generic; using System.Text; using Awful.Core.Entities.PostIcons; using Awful.Core.Entities.Posts; namespace Awful.Core.Entities.Messages { ...
import java.net.InetSocketAddress import java.nio.ByteBuffer import java.nio.channels.SelectionKey import java.nio.channels.Selector import java.nio.channels.ServerSocketChannel import java.nio.channels.SocketChannel import java.util.concurrent.ConcurrentLinkedDeque import java.util.concurrent.Executors import java.uti...
using UnityEngine; using UnityEngine.EventSystems; public class OnDrag : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler { private GameObject lua; [SerializeField] private GameObject PanelSeed; public void OnBeginDrag(PointerEventData eventData) { Debug.Log("On Begin Drag"); ...
class FlightDealCLI::CLI def call start deals again goodbye end def start puts "** Welcome to AirfareWatchDog's Flight Deals **" FlightDealCLI::Scraper.new.make_deal puts "" puts "Let me find today's best deals! One moment please.." puts "-------------------------------------...
#!/bin/bash pat=$SKIFF_FINAL_CONFIG_DIR/skiff_config ext=$SKIFF_FINAL_CONFIG_DIR/skiff_extra_configs_path if [ -d "$SKIFF_FINAL_CONFIG_DIR" ]; then if [ -f "$pat" ] && [ -z "$SKIFF_CONFIG" ]; then export SKIFF_WARN_ABOUT_RECOVERED_CONFIG=true export SKIFF_CONFIG=$(cat $pat) fi if [ -f "$ext" ] && [ -z "$...