text
stringlengths
27
775k
$user_roles = YAML.load_file("./lib/roles.yaml") $permissions = YAML.load_file('./lib/permissions.yaml')
<?php use \Illuminate\Database\Eloquent\Model as Eloquent; class JobCrew extends Eloquent { protected $table = "job_crew"; protected $guarded = []; public function crews() { return $this->hasMany(JobCrew::class); } }
#!/usr/bin/env bash set -euo pipefail OUTPUT=$(mktemp -d -t sghashbuild_XXXXXXX) cleanup() { rm -rf "$OUTPUT" 2>/dev/null } trap cleanup EXIT # Do not embed build flags to produce a stable output pkg="github.com/sourcegraph/sourcegraph/enterprise/cmd/executor" artifact="$OUTPUT/$(basename $pkg)" go build -trimpath...
using AutoFixture; using AutoFixture.AutoMoq; using MasGlobal.EmployeesSalaries.BLL; using MasGlobal.EmployeesSalaries.Models.Api; using MasGlobal.EmployeesSalaries.Models.Dto; using MasGlobal_employees_salaries.DAL.Interfaces; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using System.Linq; using Sys...
using CozyCrawler.Interface; using CozyCrawler.Runner; using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CozyCrawler.Peise { public class Program { public static void Main(string[] args)...
using System; using System.Collections; using System.Collections.Generic; namespace DesignMode.PrototypePattern { public class ShapeCache { private static Hashtable shapeMap = new Hashtable(); public static Shape getShape(string shapeId) { Shape cachedShape = shapeMap[shap...
## Computer Organization HomeWork #### 2017-3-19 --- ### Register File main.v ```verilog module registerfile( Q1,Q2.DI,clk,reset written,AD,A1,A2 ); output [31:0] Q1,Q2; input [31:0] DI; input clk,reset,written; input [4:0] AD,A1,A2; wire [31:0] decoderout,regen; wire [31:0] q[31:0]; ...
require 'mkmf' have_library 'smi', 'smiInit' have_header 'smi.h' create_makefile 'smi'
from pyc_compat import __pyc_declare__ class C: value = __pyc_declare__ def __init__(self, val): self.value = val c1 = C(1) c2 = C("2") c3 = C(2.5) print c1.value print c2.value print c3.value
# TODO: define some factories # http://www.rubydoc.info/gems/factory_girl/file/GETTING_STARTED.md#Defining_factories # factories can also go in spec/factories/*.rb
module RiCal #- ©2009 Rick DeNatale #- All rights reserved. Refer to the file README.txt for the license # # FloatingTimezone represents the 'time zone' for a time or date time with no timezone # Times with floating timezones are always interpreted in the timezone of the observer class FloatingTimezone ...
json.totalpages @nbr_pages json.currpage @page json.totalrecords @count json.currentSelection @currentId if @currentId json.rowdata @rooms do |room| json.partial! 'room', room: room end
/* * Copyright 2009 ZXing 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 agreed ...
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import List, Pattern from recognizers_text.utilities import RegExpUtility from ...resources.portuguese_date_time import PortugueseDateTime from ..base_time import TimeExtractorConfiguration from ..base_timezone...
#! /bin/bash set -euo pipefail SRC=~/Git/Libbulletjme/build/libs/bulletjme/shared DST=~/Git/Libbulletjme cp $SRC/debug/dp/libbulletjme.dylib $DST/MacOSX_ARM64DebugDp_libbulletjme.dylib cp $SRC/debug/sp/libbulletjme.dylib $DST/MacOSX_ARM64DebugSp_libbulletjme.dylib cp $SRC/release/dp/libbulletjme.dylib $DST/MacOSX_ARM...
package core import ( "math" ) // Largest triangle three buckets (LTTB) data downsampling algorithm implementation // - Require: data . The original data // - Require: threshold . Number of data points to be returned func LTTB(data []Point, threshold int) []Point { if threshold >= len(data) || threshold == 0 { ...
Function Verify-Module{ [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ModuleName) # The Module is available if (Get-Module | Where-Object {$_.Name -eq $ModuleName}) { Write-Information "Module $ModuleName is available." } else { # If module is not imported, but av...
<?php namespace Zodream\Debugger\Service; use Zodream\Route\Controller\Controller as BaseController; abstract class Controller extends BaseController { }
using DFTK: spglib_spacegroup_number, spglib_standardize_cell using LinearAlgebra using Test @testset "spglib" begin a = 10.3 Si = ElementPsp(:Si, psp=load_psp("hgh/lda/Si-q4")) Ge = ElementPsp(:Ge, psp=load_psp("hgh/lda/Ge-q4")) # silicon lattice = a / 2 * [[0 1 1.]; [1 0 1.]; [1 1 0.]] atoms...
module Admin class PeopleController < Admin::ApplicationController before_action :logged_in_user before_action :set_person, only: [:show, :edit, :update, :destroy, :destory_city_people, :top, :bottom, :up, :down] def index @people = Person.with_translations('cn').all.order(position: :asc) @pe...
# hubot-slack This is a [Hubot](http://hubot.github.com/) adapter to use with [Slack](https://slack.com). [![Hubot Slack Adapter CI Builds](https://github.com/slackapi/hubot-slack/actions/workflows/ci-build.yml/badge.svg)](https://github.com/slackapi/hubot-slack/actions/workflows/ci-build.yml) [![codecov](https://cod...
### Important Scene Info - When editing or playtesting any scenes, remember to include the Persistent scene additively. - The Persistent scene contains crucial systems
# See http://doc.gitlab.com/ce/development/migration_style_guide.html # for more information on how to write migrations for GitLab. class CreatePushEventPayloadsTables < ActiveRecord::Migration[4.2] include Gitlab::Database::MigrationHelpers # Set this constant to true if this migration requires downtime. DOWNT...
describe Appsignal::Rack::JSExceptionCatcher do let(:app) { double(:call => true) } let(:options) { nil } let(:config_options) { { :enable_frontend_error_catching => true } } let(:config) { project_fixture_config("production", config_options) } let(:deprecation_message) do "The A...
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace MedicalClinic.Models.DoctorViewModels { public class VisitsViewModel { public string Id { get; set; } public string CardId { get; set; } public string DateOfApp { get; set; } ...
; Test that llvm-reduce can remove uninteresting function arguments from function definitions as well as their calls. ; ; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t ; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHEC...
package com.corrot.db import com.corrot.Constants.DEBUG_MODE import com.corrot.calculateHA1 import com.corrot.db.data.dao.DeviceConfigurationDao import com.corrot.db.data.dao.DeviceDao import com.corrot.db.data.dao.DeviceUpdateDao import com.corrot.db.data.dao.UserDao import com.corrot.db.data.model.DeviceConfiguratio...
from django.conf import settings from django.contrib.sites.models import Site from django.core.management import call_command from django.test import TestCase from django.test.utils import override_settings from django.contrib.redirects.models import Redirect @override_settings( APPEND_SLASH=False, SITE_ID=1...
import fetch from '../core/fetch'; import message from 'antd/lib/message'; /** * 功能:设置fetch的选项 */ const postOption = (body, method = 'post') => { return { method, headers: {'Content-Type': 'application/json'}, body: JSON.stringify(body) } }; /** * 功能:发送请求,并解析json */ const fetchJson = async (url, o...
package com.allaboutscala.learn.akka.http import akka.http.scaladsl.model.StatusCodes import akka.http.scaladsl.server.Route import akka.http.scaladsl.testkit.ScalatestRouteTest import com.allaboutscala.learn.akka.http.routes.DonutRoutes import org.scalatest.{Matchers, WordSpec} /** * Created by Nadim Bahadoor on 2...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Group extends CI_Model { public function __construct() { parent::__construct(); } public function record_count() { return $this->db->count_all('groups'); } public function get_all($attrib, $order, $limit = NULL, $start = Null) {...
# clone_cell clone_cell provides a `Cell` implementation that works with types whose `clone` methods are guaranteed not to mutate the `Cell` content through the `&self` reference. This is enforced with the provided `PureClone` trait, which is a subtrait of `Clone` (and a logical supertrait of `Copy`). It is only imple...
import numpy as np from loguru import logger import os from qtpy import QtWidgets from qtpy.QtWidgets import QRadioButton, QPushButton,QFileDialog from qtpy.QtCore import QSize, Signal from survos2.frontend.components.base import * from survos2.frontend.plugins.base import * from survos2.model import DataMode...
export default class LoginUserResponse{ mame: string; email: string; createAt: Date; updateAt: Date; token: string; tokenExpiration: Date; }
extern crate engine; use std::iter::repeat; use engine::board::board::{Board, Color}; use engine::ai::minimax::MiniMax; use engine::dame::Dame; fn perf() { let mut f: Vec<Color> = repeat(Color::Empty).take(8 * 8).collect(); f[2 * 8 + 2] = Color::WhiteDame; f[2 * 8 + 6] = Color::WhiteDame; f[6 * 8 + 2...
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:idea_hub/home_module/state/home_state.dart'; import 'package:idea_hub/main.dart'; import 'package:sipua_bar/sipua_bar.dart'; class HomeStartState extends HomeState { HomeStartState(HomeScreenState screenState) : super(scr...
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageNavigateBefore = (props) => ( <SvgIcon {...props}> <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> </SvgIcon> ); ImageNavigateBefore.displayName = 'ImageNavigateBefore'; ImageNavigateBefore.muiName = 'SvgIcon'; export default...
resolvers += "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/" addSbtPlugin("com.typesafe.sbtscalariform" % "sbtscalariform" % "0.3.1")
# Script for running the qcache pipeline of recon-all for a number # of participants. # # The directory $SUBJECTS_DIR should contain a text file called # subject_list that specifies the included participants (1 entry per line). # # Author: Tuomas Puoliväli # Email: tuomas.puolivali@helsinki.fi # Last modified: 24 May 2...
--- title: Reflow Guide date: 2021-09-14 15:44:17 permalink: /01/01/04/11/ --- 该文档目前只有中文版,可以切换中文语言进行查看。
module Recommendations class ClusterService def find_most_popular_podcasts_within_genre genre Podcast.where(genre: genre).order('popularity desc') end def cluster_podcasts_by_podcast(podcast) { original_podcast: podcast, podcasts_like_original: podcast.similar_podcasts ...
define(function () { "use strict"; return { au: 149597870.691 // Astronomical Unit in kilometers }; });
module Dojo.Node.EventEdit.FormDetails (formEventDetails) where import Dojo.Data.Session import Dojo.Node.EventEdit.Base import Dojo.Node.EventEdit.Details import Dojo.Data.Event import Dojo.Framework.Form import Dojo.Framework import Dojo.Paths import Dojo.Chrome import qualified Text.Blaze.Html5 as H ...
import React from "react" import { useStaticQuery, graphql } from "gatsby" import Header from "../header" import Footer from "../footer" import { GlobalStyle, SIZES } from "../theme" import Divider from "../divider" import { createGlobalStyle } from "styled-components" import NWSForm from "../newsletter-sub" const Co...
<?php namespace App\Tests\Functional\Services\Job\Configuration; use App\Exception\Services\Job\Configuration\Exception as JobConfigurationServiceException; use App\Services\JobTypeService; use App\Services\TaskTypeService; use App\Services\UserService; class ConfigurationServiceDeleteTest extends AbstractConfigurat...
package org.openlake.sampoorna.data.auth data class TokenResponse( val token : String )
NEC_98=1; page ,132 title ntfsboot - NTFS boot loader name ntfsboot ; The ROM in the IBM PC starts the boot process by performing a hardware ; initialization and a verification of all external devices. If all goes ; well, it will then load from the boot drive the sector from tra...
nodejs-nrf51-temp ================= nodejs-nrf51-temp is a Noble (Node.js, Bluetooth Low Energy) module that scans for advertisements from the nrf51-ble-app-temp and prints the temperature to standard output. The code has been tested on a Rasberry Pi 3 Prerequisites ============= A Raspberry Pi (or other system) r...
// Copyright 2012 Samuel Stauffer. All rights reserved. // Use of this source code is governed by a 3-clause BSD // license that can be found in the LICENSE file. package thrift import ( "bytes" "testing" ) type loopingReader struct { bytes []byte offset int } func (r *loopingReader) Write(b []byte) (int, erro...
package prefixsearch import "testing" func TestPrefixSet_FindLongestPrefix(t *testing.T) { tests := []struct { name string PredixSet PrefixSet query string want string }{ {name: "t1", PredixSet: NewSortedPrefixSet("a", "a/b", "b/c"), query: "a/b", want: "a/b"}, {name: "t2", PredixSet: NewS...
# == Schema Information # # Table name: legislations # # id :bigint not null, primary key # title :string # description :text # law_id :integer # slug :string not null # geography_id :bigint # created_at :datetime no...
Muestra una Obra en la web. Redefine el cuerpo del panel #renderCuerpoPanel, dado que no se muestra como una tabla como en su padre.
<?php namespace ascio\dns; class CreateUserResponse { /** * @var Response $CreateUserResult */ protected $CreateUserResult = null; /** * @param Response $CreateUserResult */ public function __construct($CreateUserResult = null) { $this->CreateUserResult = $CreateUserRes...
class Patient < ApplicationRecord has_many :appointments has_many :users, through: :appointments, dependent: :destroy has_many :treatment_plans, dependent: :destroy has_one :address, dependent: :destroy validates :name, :dob, :phone_number, presence: true accepts_nested_attributes_for :address #TODO a...
-- original: ioerr2.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test PRAGMA cache_size = 10; PRAGMA default_cache_size = 10; CREATE TABLE t1(a, b, PRIMARY KEY(a, b)); INSERT INTO t1 VALUES(randstr(400,400),randstr(400,400)); INSERT INTO t1 SELECT randstr(400,400), randstr(400,400) FR...
#!/bin/bash set -eu function die() { # Decorate string (make it red) and pass that to STDERR, after exit echo -e "\033[0;31m$*\033[m" >&2 exit 1 } function info() { echo -e "\033[0;36m$*\033[m" >&2 } function warn() { echo -e "\033[0;35m$*\033[m" >&2 }
#spec/factories/define do | require 'faker' FactoryGirl.define do factory :pet do |f| f.name { Faker::Name.name } f.description { Faker::Lorem.sentences(paragraph_count = 5) } f.birth_date { Faker::Time.birthday } f.published true association :pet_type, factory: :pet_type association :pet_breed, factory:...
using Gist2.Extensions.ComponentExt; using Gist2.Interfaces; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Rendering; namespace PIP { public class PIPTextureMaterial : System.IDisposable, IValue<Material> { public enum ChannelMixer { None = 0, R, G, B, A...
import { Component, Inject, OnInit } from '@angular/core'; import { MAT_DIALOG_DATA, MatSnackBar } from '@angular/material'; import { Picture } from '../models/picture'; import { StoreService } from '../store.service'; export interface DeletePictureDialogData { dish: string; picture: Picture; } @Component({ se...
#!/bin/sh # launcherSpeakerController.sh # cd /home/pi python3 main.py
# What did the community do to the man found gathering wood on the Sabbath? The community brought him outside the camp and stoned him to death.
using System.Collections; using System.Collections.Generic; using UnityEngine; public class InteractionHandler : MonoBehaviour { public bool IsEnabled = false; [SerializeField] SpriteRenderer coloredImage; [SerializeField] GameObject blueImage; AudioSource source; [SerializeField] Gam...
{-# LANGUAGE ScopedTypeVariables #-} module Main where import Test.Framework (defaultMain, testGroup) import Test.Framework.Providers.QuickCheck2 (testProperty) import Test.Framework.Providers.HUnit (testCase) import Test.HUnit (assertBool) import Test.QuickCheck import Test.QuickCheck.Test import System.Directory i...
c c c c ========================================================= subroutine rp1(maxmx,meqn,mwaves,mbc,mx,ql,qr,auxl,auxr, & wave,s,amdq,apdq) c ========================================================= c c # solve Riemann problems for the 1D Euler equations using Roe's c # approximate Rie...
package template import ( "fgame/fgame/core/template" "fgame/fgame/core/template/validator" "fgame/fgame/core/utils" propertytypes "fgame/fgame/game/property/types" "fmt" ) type YinglingpuLevelTemplate struct { *YinglingpuLevelTemplateVO useItemMap map[int32]int32 //升级需要的物品和数量 battleAttrMap map[pro...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; namespace MatchPhoneNumber { class MatchPhoneNumber { static void Main(string[] args) { string regexPattern = @"(^|(?<=\s))[\+][...
import { ConnectionState, SetConnection, SetData, State } from "./interfaces"; export const setData = (dispatch: React.Dispatch<Action>, data: any) => { return dispatch({ type: "SET_DATA", data: data }) } export const setConnection = (dispatch: React.Dispatch<Action>, data: ConnectionState) => { return ...
<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use App\admisiones; use Excel; class admisionesController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() ...
# StreamExtensions - <code>GetAllBytes</code> 获取字节数组 - <code>GetAllBytesAsync</code> - <code>CopyToAsync</code> 复制
#include <cstdio> #include <queue> #include <algorithm> #include <cstring> #define N 25 using namespace std; int n,m,K,ne; struct edge_ { int to,next,v; } edge[N * N]; int head[N]; void Insert(int ne,int s,int t,int w) { edge[ne].to = t; edge[ne].v = w; edge[ne].next = head[s]; head[s] = ne; } bool flag[N][105]...
package goleri import "fmt" // Repeat must match at least min and at most max times the element. type Repeat struct { element elem Element min int max int } // NewRepeat returns a new repeat object. func NewRepeat(gid int, elem Element, min, max int) *Repeat { return &Repeat{ element: element{gid}, elem: ...
<br> <div class="container"> <table class="table text-center"> <thead class="thead-dark"> <tr> <th scope="col">Nama Produk</th> <th scope="col">Jumlah Produk</th> <th scope="col">Ukuran Produk</th> </tr> </thead> <tbody> <?php foreach($detail as $p) { ?> <tr> <td><?php...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class BoardCard extends Model { protected $table = 'cards'; protected $fillable = [ 'list_id', 'description', 'ordering' ]; public function list() { return $this->belongsTo(BoardList::class, "l...
bcross1.0.0 ====== 处理跨域组件包(Cross-domain package),开发中... __1、$bcross.postMessage__ H5提供的postMessage方法,所以兼容性你懂的 @param inIframe-是否在iframe页面中 ifN-不在iframe内时的iframe节点 @return Object var crossObj = $bcross.postMessage(false, iframeN); crossObj.send('test', urlStr); crossObj.receive(function (e) {...
import axios from 'axios'; export const getGnomesLocal = async () => { let gnomes = JSON.parse(window.localStorage.getItem('gnomes')); if (gnomes === null || gnomes.length < 1) { gnomes = await getGnomesUrl(); window.localStorage.setItem('gnomes', JSON.stringify(gnomes)); } return gnomes; }; export co...
ApplyPikachuMovementData_:: ld a, b ld [wPikachuMovementScriptBank], a ld a, l ld [wPikachuMovementScriptAddress], a ld a, h ld [wPikachuMovementScriptAddress + 1], a call .SwapSpriteStateData .loop call LoadPikachuMovementCommandData jr nc, .done call ExecutePikachuMovementCommand jr .loop .done call .Swa...
from time import sleep import discord import uiautomation as automation from discord import client from discord.ext import commands from discord.ext.commands import Context from uiautomation import Control BOT_PREFIX = ("!", ".") TOKEN = "insert your own" bot = commands.Bot(command_prefix=BOT_PREFIX) @bot.command(n...
package test type Mutation struct { Member *Member2 `graphql:"!mem" description:"会员服务"` // Version string }
var annotated_dup = [ [ "libCZI", "namespacelib_c_z_i.html", "namespacelib_c_z_i" ] ];
# frozen_string_literal: true class EventsController < ApplicationController def index events ||= Events::IndexPageRepository.new(Event).paginate(params[:page]) render :index, locals: { events: events } end end
import React from 'react'; import { useViewport, UseViewportOptions } from './useViewport'; import { ViewportContext } from './context'; const ViewportProvider: React.FC<UseViewportOptions> = ({ children, ...rest }) => { const size = useViewport(rest); return <ViewportContext.Provider value={size}>{children}</View...
import { Glitch, Editor, Project } from '../src' const glitch = new Glitch() const { api } = glitch const ID = 'a0fcd798-9ddf-42e5-8205-17158d4bf5bb' const DOMAIN = 'hello-express' const editor = new Editor(new Project({}), 'token') describe('Get projects', () => { it('should get project by id', async () => { a...
#!/usr/bin/env bash set -e set -u # Source the common configuration file source scripts/common.conf # load utils functions source ${SCRIPTS_DIR}/utils.sh DO_MAJORMINOR=1 UNIQUE_ONLY=0 MIN_MAPQ=30 MIN_BASEQUAL=20 GT_LIKELIHOOD=2 DO_GENO=7 DO_POST=1 POST_CUTOFF=0.95 DO_MAF=2 SNP_PVAL=1e-6 MIN_IND=1 N_CORES=32 load_c...
class CactusFactsPlugin < Rubotic::Plugin describe 'cactus facts!' command '!cactusfact' do arguments 0..0 describe 'get a random cactus fact' run do |event| respond_to(event, "Cactus Fact: #{facts.sample}") end end def facts @facts ||= config['facts'] end end
package event import ( log "github.com/sirupsen/logrus" ) type DestroyVmHandler struct { AbstractHandler CoreContext EventContext } func (h *DestroyVmHandler) HandlerEvent(e *VmRequest) { orderNo := e.OrderNo agreementNo, err := h.CoreContext.ReportClient.GetAgreementIndex(orderNo) if err != nil { log.Error(...
package com.github.sms.service import android.app.NotificationChannel import android.app.NotificationManager import android.app.PendingIntent import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.graphics.BitmapFactory import android.media.RingtoneManager ...
package juanocampo.test.domain.usecase import juanocampo.test.domain.repository.FileRepository import juanocampo.test.domain.status.ListError import juanocampo.test.domain.status.ListSuccess import juanocampo.test.domain.status.LoadFileListStatus class LoadFileListUseCase(private val repository: FileRepository) { ...
module UnliftTests (unliftTests) where import Control.Exception import Test.Tasty import Test.Tasty.HUnit import qualified UnliftIO.Async as A import Effectful import qualified Utils as U unliftTests :: TestTree unliftTests = testGroup "Unlift" [ testCase "Reset strategy in new thread" test_resetStrategy , testC...
import 'dart:async'; import 'dart:io'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_ble_lib/flutter_ble_lib.dart'; import 'package:flutter_blue/flutter_blue.dart' as flutter_blue; import 'package:get/get.dart'; import 'p...
export type LineSepOption = "lf" | "\n" | "crlf" | "\r\n" | "auto"; function getRawLinesSep(option: LineSepOption) { switch (option) { case "\n": case "lf": return "\n"; case "\r\n": case "crlf": return "\r\n"; default: return option; } } export function getLineSepSplitter(op...
(ns flappy-bird-demo.core (:require [cljsjs.react] [cljsjs.react.dom] [sablono.core :as sab :include-macros true] [cljs.core.async :refer [<! chan sliding-buffer put! close! timeout]]) (:require-macros [cljs.core.async.macros :refer [go-loop go]])) (enable-console-print!) (defn floor [x] (.floor js...
year = '2016' puts "Importing #{year} plans" plan_file = File.open("db/seedfiles/#{year}_plans.json", "r") data = plan_file.read plan_file.close plan_data = JSON.load(data) counter = 0 puts "#{plan_data.size} plans in json file" plan_data.each do |pd| next if pd["renewal_plan_id"].blank? plan = Plan.where(year:yea...
;; This buffer is for notes you don't want to save, and for Lisp evaluation. ;; If you want to create a file, visit that file with C-x C-f, ;; then enter the text in that file's own buffer. SELECT dbprimary_acc AS accession, xref.description AS core_name, t.name AS onto_name, COALESCE(xref.d...
; RUN: opt -mtriple=x86_64-pc-windows-msvc -S -winehprepare -disable-demotion -disable-cleanups < %s | FileCheck %s declare i32 @__CxxFrameHandler3(...) declare i32 @__C_specific_handler(...) declare void @f() declare i32 @g() declare void @h(i32) ; CHECK-LABEL: @test1( define void @test1(i1 %bool) personality i3...
(in-package :cl-user) (defpackage :mcase (:use :cl) (:export "MCASE" "EMCASE")) (in-package :mcase) (defun check-exhaust (type clauses) (let ((member (millet:type-expand type))) (assert (typep member '(cons (eql member))) () "~S Must defined as MEMBER type but ~S" type member) (let* ((targets ...
import { TimeCode } from "../objects/time-code"; import { VideoClip } from "../objects/video-clip"; import { VideoDefinition } from "../objects/video-definition"; import { VideoStandard } from "../objects/video-standard"; export class ShowReel { public name: string; public videoStandard: VideoStandard; public video...
package com.wechat.devel; import org.sword.wechat4j.token.Token; import org.sword.wechat4j.token.server.CustomerServer; public class JsApiTicketCustomerServer extends CustomerServer{ public String find() { String jsApiTicket = null; //执行数据库操作 // String sql = "select cfgValue from cfg where cfg.cfgKey = 'jsapi_...
use rust_embed::RustEmbed; #[derive(RustEmbed)] #[folder = "static/"] struct Asset; pub fn static_resources_tests() { for file in Asset::iter() { println!("{}", file.as_ref()); } if Asset::get("lorem_ipsum.txt").is_none() { panic!("lorem_ipsum.txt should exist"); } let lorem_ipsum ...
--- title: Ignoring the RA creation journey date: 2021-12-01 --- ## Overview Ami clarified that `creating RA` may not even happen once a year so we decided to de-prioritise it.
package heb.apps.mathtrainer.ui.activities import android.os.Bundle import heb.apps.mathtrainer.R import heb.apps.mathtrainer.ui.activities.intents.MathIntentsManager abstract class MathBaseActivity(displayBackMenuBt: Boolean = true, allowExit: Boolean = true) : BaseActivity(displayBackMenuBt, allowExit) { o...