text
stringlengths
27
775k
## practice problem Suppose we want to generate assembly code for the following C function: ```c long shift_left4_rightn(long x, long n) { x <<= 4; x >>= n; return x; } ``` The code that follows is a portion of the assembly code that performs the actual shifts and leaves the final value in register %rax....
package org.jmeld.util; import java.util.*; public class WeakHashSet<E> extends AbstractSet<E> implements Set<E> { private Boolean value = Boolean.TRUE; private WeakHashMap<E, Boolean> map; public WeakHashSet() { map = new WeakHashMap<E, Boolean>(); } public WeakHashSet(Colle...
package com.ss.editor.ui.controller.model.node.spatial.terrain; import com.jme3.terrain.geomipmap.TerrainQuad; import com.ss.editor.ui.Icons; import com.ss.editor.ui.controller.model.node.spatial.NodeModelNode; import com.ss.editor.ui.controller.tree.AbstractNodeTree; import com.ss.editor.ui.controller.tree.node.Model...
module Babelish class CSV2Php < Csv2Base attr_accessor :php_tag def initialize(filename, langs, args = {}) super(filename, langs, args) # TODO: list this arg in commandline @php_tag = args[:php_tag].nil? ? 'lang' : args[:php_tag] end def language_filepaths(language) require '...
package openrtb_ext // ExtImpUnicorn defines the contract for bidrequest.imp[i].ext.unicorn type ExtImpUnicorn struct { PlacementID string `json:"placementId,omitempty"` PublisherID int `json:"publisherId,omitempty"` MediaID string `json:"mediaId"` AccountID int `json:"accountId"` }
require File.dirname(__FILE__) + '/test_helper' class OFC2Test < Test::Unit::TestCase context "overall" do should "not fail" do assert_equal 1,1 end end end
package input; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; import lemin.logic.AntFarm; import lemin.logic.AntGraph; import lemin.objects.ObjectInfo; import lemin.util.FatalDataLack; public class AntGraphTests { private AntGraph antGraph; private AntFarm antFarm; @Before p...
package cz.blackchameleon.trendingprojects.ui.repository import android.graphics.Color import android.text.Spannable import android.text.method.LinkMovementMethod import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.text.HtmlCompat import androidx.recyclerview....
{****************************************************************** JEDI-VCL Demo Copyright (C) 2002 Project JEDI Original author: Contributor(s): You may retrieve the latest version of this file at the JEDI-JVCL home page, located at http://jvcl.sourceforge.net The contents of this f...
#!perl use Test::More; use Git::Raw; use File::Slurp::Tiny qw(write_file read_file); use Cwd qw(abs_path); my $path = abs_path('t/test_repo'); my $repo = Git::Raw::Repository -> open($path); my $initial_head = $repo -> head; my $branch = $repo -> branch('rbranch', $initial_head -> target); $repo -> checkout($repo ...
import {Component} from 'angular2/core'; import {Case} from '../../model/case/case'; import {CaseService} from '../../services/cases/cases.service'; import {DataTable} from 'primeng/primeng'; import {Column} from 'primeng/primeng'; @Component({ templateUrl: 'app/components/home-grid/home-grid.component.html', ...
class Cask::Artifact::Service < Cask::Artifact::Base def self.me?(cask) cask.artifacts[:service].any? end def install @cask.artifacts[:service].each { |service| link(service) } end def uninstall @cask.artifacts[:service].each { |service| unlink(service) } end def link(service_relative_path)...
--- "tauri": patch --- Added context to the file system endpoint errors.
<?php namespace Concrete\Core\Logging\Search\Result; use Concrete\Core\Search\Result\Result as SearchResult; class Result extends SearchResult { public function getItemDetails($item) { return new Item($this, $this->listColumns, $item); } public function getColumnDetails($column) { ...
import { window } from 'vscode' export const command = 'markdown.marp.export' export default function exportCommand() { window.showErrorMessage( 'Export command cannot run on the Web. Please consider to use the extension in full-featured VS Code such as GitHub Codespaces or locally installed VS Code.' ) }
use std::collections::HashMap; use std::error::Error; use std::fs; use std::path::Path; pub(crate) type ReadList = HashMap<String, Vec<String>>; type Result<T> = std::result::Result<T, Box<dyn Error>>; fn readlist_path() -> String { let readlist_path = Path::new(&crate::base_dir()).join("read_list.json"); Str...
export const ADD_GROCERY = 'ADD_GROCERY'; export const TOGGLE_GROCERY = 'TOGGLE_GROCERY'; export const ADD_LIST = 'ADD_LIST'; export const DELETE_LIST = 'DELETE_LIST'; export const RENAME_LIST = 'RENAME_LIST'; export const SET_SELECTED_LIST = 'SET_SELECTED_LIST'; export const CLEAR_SELECTED_LIST = 'CLEAR_SELECTED_LIST'...
# How to run tests the test is based on py.test, and you need to install python3 ```bash export DEVICE_URL="http://localhost:8100" cd tests py.test -vv ``` # 已知问题 - iOS 13.5 顶部有通知栏时,alert操作不了 # HTTP Request ``` $ http GET $DEVICE_URL/HEALTH I-AM-ALIVE $ curl -X POST -d '{"name": "home"}' 'http://localhost:8100/se...
# == Schema Information # # Table name: users_roles # # user_id :bigint(8) not null # role_id :bigint(8) not null # FactoryBot.define do factory :users_role do end end
import 'dart:convert'; import 'dart:typed_data'; import 'package:flutter_web/foundation.dart' show ReadBuffer, WriteBuffer, required; import 'message_codec.dart'; class BinaryCodec implements MessageCodec<ByteData> { const BinaryCodec(); @override ByteData decodeMessage(ByteData message) => message; @o...
package bias_torrent import ( . "github.com/danalex97/Speer/interfaces" "github.com/danalex97/nfsTorrent/torrent" "github.com/danalex97/nfsTorrent/config" "strings" "math/rand" "math" ) var KPercent config.Const = config.NewConst(config.Bias) // The Tracker implements the biased selection protocol. Inst...
CREATE TABLE [dbo].[ApplySnapshots] ( [Id] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY DEFAULT NEWID(), [ApplicationId] UNIQUEIDENTIFIER NOT NULL, [SnapshotApplicationId] UNIQUEIDENTIFIER NOT NULL, [SnapshotDate] DATETIME2 NOT NULL, [OrganisationId] UNIQUEIDENTIFIER NOT NULL, [ApplicationStatus] NVA...
class FollowingsController < ApplicationController before_action :signed_in? include Checker def index @users = check('followings') end private def signed_in? unless current_user redirect_to '/signin' end end end
# 15年1月12日 六点二十六 冬月廿二 开门 金星,照着后街,等在月儿回家的路上 月儿,徘徊在午后一点的方向 想起,某某,打了马赛克的青春 也许模糊的,只剩那张清秀的脸庞 另一个不高的黑影,无声地横进小巷,不觉间消失在身旁 转入光亮 老黄狗小满,不瘸不拐,小跑过来,左跳右跳,嘴拱电脑包,扒到我身上 一旁的长嘴同伴,汪的怒斥了一声:对这过路的,要这么殷勤? 错过九八零,还有九七零 满车的夜行人,似盗墓的团伙,警惕而静默 靠前的小夫妻,分享着一块方格毯,女生打瞌睡,男生打游戏 尾灯、信号灯、广告牌、刷卡器、加油站 散着红光,洞穿着三九的早晨 ...
package bst type NodeFloat64 struct { Left *NodeFloat64 Val float64 Right *NodeFloat64 } // Insert number into the Tree func (t *NodeFloat64) Insert(n float64) error { // If the NodeFloat64 is Empty if t.Val == 0 { t.Val = n return nil } if t.Val == n { panic("T...
const Sequelize = require('sequelize'); const logger = require('log4js').getLogger('nspider'); const model_db_instance = {}; const db_key_instance = {}; module.exports = { init: function (config) { this._init_model_sequelize('task', config.task.db); this._init_model_sequelize('project', config.pr...
package external_exercises; import java.util.Scanner; public class ExThertyTwo { public static void main(String[] args) { Scanner scan=new Scanner(System.in); System.out.print("Enter the first number : "); double n1=scan.nextDouble(); System.out.print("Enter the second number : "); double n2=scan.nextDouble(...
package org.carlspring.strongbox.io; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Deque; import java.util.Iterator; import java.util.LinkedList; /** * This {@link InputStream} decorates a source {@link InputStream} with ability to replace a target chain...
// RestfulDemo.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include "WinSock2.h" #pragma comment(lib, "WS2_32") #include <event2/http.h> #include <event2/event.h> #include <event2/buffer.h> // ? #include <event2/http_struct.h> #include <event2/http_compat.h> #include <event2/util.h> #define MYHTTPD_...
use embedded_time::Timer; use embedded_time::duration::{Duration, Milliseconds, Microseconds}; use embedded_time::fixed_point::FixedPoint; use embedded_hal::blocking::delay::{DelayMs, DelayUs}; use core::convert::TryFrom; /// A blocking delay ///#[derive(Copy, Clone)] pub struct Delay<'a, Clock> where Clock: embed...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using MobfishCardboard; namespace MobfishCardboardDemo.SceneTest { public class MeshTestScript: MonoBehaviour { public TextAsset meshDataRaw; public MeshFilter meshFilter; private void Awake()...
@main def Test = val x: Int | String = 1 println(x.isInstanceOf[Int]) x match case _: Int => println("Int") case _: String => println("String")
%% @doc Callbacks for the application. %% Contains application start and stop functions. -module(elil_app). -behaviour(application). %% API. -export([start/2]). -export([stop/1]). %% @spec start(Type, Args) -> ServerRet %% @doc application start callback. start(Type, Args) -> %% Log start arguments error_logger:i...
require 'test_helper' module IsItUp class IsItUpTest < TestCase it "must define the version" do refute_nil VERSION end it 'properly loads Railtie constants' do begin require 'rails/railtie' refute_nil VERSION rescue NameError fail('NameError was raised while loa...
namespace StreamFlow.Configuration; public class ExchangeOptions { public bool? Durable { get; set; } public bool? AutoDelete { get; set; } public IDictionary<string, object>? Arguments { get; } = new Dictionary<string, object>(); }
module Api module V3 class DevicesController < Api::V3::ApplicationController before_action :doorkeeper_authorize! before_action do requires! :platform, type: String, values: %w(ios android) requires! :token, type: String end ## # 记录用户 Device 信息,用于 Push 通知。 # ...
package enterthematrix case class Vector4d(x: Double, y: Double, z: Double, w: Double) { def +(v: Double) = Vector4d(x + v, y + v, z + v, w + v) def -(v: Double) = Vector4d(x - v, y - v, z - v, w - v) def *(v: Double) = Vector4d(x * v, y * v, z * v, w * v) def /(v: Double) = Vector4d(x / v, y / v, z / v, w / v...
export 'package:homeapp/Repositories/Models/Responses/LoginResponse.dart'; export 'package:homeapp/Repositories/Models/Responses/RegisterResponse.dart';
package dev.alpas.http.jetty import dev.alpas.AppConfig import dev.alpas.Container import dev.alpas.Environment import dev.alpas.make import org.eclipse.jetty.server.ForwardedRequestCustomizer import org.eclipse.jetty.server.HttpConfiguration import org.eclipse.jetty.server.HttpConnectionFactory import org.eclipse.jet...
package space.naboo.telesam.db import android.arch.persistence.room.Database import android.arch.persistence.room.RoomDatabase import space.naboo.telesam.db.dao.DialogDao import space.naboo.telesam.db.dao.SmsDao import space.naboo.telesam.model.Dialog import space.naboo.telesam.model.Sms @Database(entities = arrayOf(...
/* * Copyright 2016 The DC4Cities author. * * 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 ...
import pytest from faker import Faker from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.select import Select from selenium.webdriver.support.wait import WebDriverWait from wheel.signatures import as...
using UnityEngine; namespace Rito.CustomAttributes { /// <summary> /// <para/> 2020-05-18 PM 9:12:43 /// <para/> Component 상속 타입 변수들에 참조를 자동으로 초기화 해주며 /// <para/> 초기화 이후 애트리뷰트를 지워도 참조를 손실하지 않습니다. /// </summary> [System.AttributeUsage(System.AttributeTargets.Field, AllowMultiple = false, Inheri...
CREATE PROCEDURE [dbo].[h3giGetActiveAccessoryReferentialsForDevice] ( @deviceId INT ) AS BEGIN SET NOCOUNT ON SELECT accessoryId FROM h3giDeviceAccessoryReferentials WHERE deviceId = @deviceId END GRANT EXECUTE ON h3giGetActiveAccessoryReferentialsForDevice TO b4nuser GO
"""Stub unit tests.""" import numpy as np import pytest from environments import CartPoleRegulatorEnv as Env class TestCartPoleRegulatorEnv: def test_train_mode_reset(self): """Test reset() in train mode.""" train_env = Env(mode="train") x, x_, theta, theta_ = train_env.reset() a...
package us.ihmc.sensorProcessing.sensorProcessors; import java.util.List; import us.ihmc.mecano.multiBodySystem.interfaces.OneDoFJointBasics; import us.ihmc.robotics.sensors.ForceSensorDataHolderReadOnly; import us.ihmc.sensorProcessing.stateEstimation.IMUSensorReadOnly; public interface SensorOutputMapReadOnly exte...
<?php namespace AppBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** * MenuItem * * @ORM\Table(name="menuItem", indexes={@ORM\Index(name="menuitem_menu_idx",columns={"idMenu"})}) * @ORM\Entity() */ class MenuItem { //-----------------------------------------atributos de la clase------------------------------...
object TestFxCanvas { import simplecanvas._ def main(args: Array[String]): Unit = { println("You should see two black windows with a white in line each.") println("The focus should be in the second window after startup.") println("The focus should alternate to the first window after 1 sec.") printl...
import { NextPageContext } from 'next' import { useCallback, useState } from 'react' import { Provider, Loading } from '@shopify/app-bridge-react' import ClientRouter from '@components/ClientRouter' import { AxiosProvider } from '@contexts/AxiosContext' import { AppProvider } from '@shopify/polaris' import translatio...
ZEKit ===== ## Reference Project * [BeeFramework](): 参考该框架布局和部分实现 * [Kiwi](): 编写单元测试 * [CocoaLumberjack](https://github.com/CocoaLumberjack/CocoaLumberjack): 参考该日志框架实现日志功能 * [XcodeColors](https://github.com/robbiehanson/XcodeColors): 定制XCODE终端输出的文本颜色 <!-- * [iOS7Colors](https://github.com/claaslange/iOS7Colors): 颜色 -...
# frozen_string_literal: true module Codebot module Formatters module Gitlab # This class formats issues events. class IssueHook < Formatter def issue_action extract(:object_attributes, :action) end def format_issue_action case issue_action when ...
/* * clear require cache */ function clearCache(modulePath) { var module = require.cache[modulePath]; // remove reference in module.parent if (module && module.parent) { module.parent.children.splice(module.parent.children.indexOf(module), 1); } delete require.cache[require.resolve(modulePa...
# api_agenda_lionx Projeto de uma API com serviço de Agenda, tratamentos e documentação em andamento.
Deleting a repository On GitHub, navigate to the main page of the repository. Under your repository name, click Settings. Under Danger Zone, click Delete this repository. Read the warnings. To verify that you're deleting the correct repository, type the name of the repository you want to delete.
# Bash library for bash-completion DejaGnu testsuite # @param $1 Char to add to $COMP_WORDBREAKS add_comp_wordbreak_char() { [[ "${COMP_WORDBREAKS//[^$1]}" ]] || COMP_WORDBREAKS+=$1 } # add_comp_wordbreak_char() # Diff environment files to detect if environment is unmodified # @param $1 File 1 # @param $2 Fi...
using System; using System.Collections.Generic; using Unity.Builder; using Unity.Policy; namespace Unity.Interception.ContainerIntegration.ObjectBuilder { /// <summary> /// An <see cref="IAdditionalInterfacesPolicy"/> that accumulates a sequence of /// <see cref="Type"/> instances representing the additi...
//! Contains environment specific logic. use crate::utils::{DefaultRandom, Random, ThreadPool}; use std::sync::Arc; /// A logger type which is called with various information regarding the work done by the VRP solver. pub type InfoLogger = Arc<dyn Fn(&str) + Send + Sync>; /// Keeps track of environment specific info...
<div class="doc-page"> <h2>名值对标签</h2> <p class="lead">标题和内容两个部分,用于简短的提示或者说明.</p> <div class="kvpair mg-b-10"> <span class="key">Name</span> <span class="val">Value</span> </div> <p># .kvpair使用grid布局,子项垂直居中.宽度auto.</p> <pre class="bg-gray-lt"> &lt;div class="<b>kvpair</b>"&gt; &lt;span cla...
## Integración con HAproxy - HAproxy - Generamos un backend **ACME**, cuyo host sea 127.0.0.1 y puerto 8888 - Frontend: - ACL prioritaria (envíamos al backend si) - **Path starts with**: ```/.well-known/acme-challenge/``` - En la configuración del certificado ACME - **Domain SAN list**: *standalone HTTP ser...
/* @flow */ import type { CLIContext, UpdateDepsPromptResults, ProjectPackage, } from '../../types'; const fs = require('fs'); const path = require('path'); const sha1 = require('sha1'); const mkdirp = require('mkdirp'); const checkForMismatch = require('./checkForMismatch'); const updateDependencies = require(...
const diskManager = require('../../utils/diskManager') module.exports.handler = function (req, res) { if (!req.query.bytes) return res.status(400).send('No byte count given') res.send(run(req.query.bytes)) } module.exports.run = run function run (bytes) { diskManager.removePendingBytes(bytes) r...
//using Newtonsoft.Json; //using System; //namespace AnyClone.Tests.TestObjects //{ // public class BasicObjectWithJsonIgnore : IEquatable<BasicObjectWithJsonIgnore> // { // public bool BoolValue { get; set; } // public byte ByteValue { get; set; } // public int IntValue { get; set; } // ...
#! /bin/bash -l #SBATCH -p core #SBATCH -n 2 #SBATCH -t 00:20:00 ##### Simple script for making bed files from vcfs ##### module load bioinfo-tools module load BEDOPS/2.4.3 vcf2bed --do-not-split < $1
<!-- Description goes here. No need to add a description if your commit messages are already good. Remember to link issues if the PR will close an issue. --> ## Checklist - [ ] I have done a self-review of the PR.
#!/bin/bash iptables-restore < ./provisioning/hephaestus_provisioning/iptables_rules unzip -d /etc/openvpn/ /etc/openvpn/openvpn.zip service openvpn start python ictf-tcpdump.py & python ictf-pcap-s3.py
package ml.bjorn.shadowban.commands; import ml.bjorn.shadowban.SubCommand; import org.bukkit.command.CommandSender; public class Reload extends SubCommand { public int getMinArgs() { return 0; } public void handle(CommandSender sender, String[] args) { if (!sender.hasPermission("shadowban...
part of 'mastodon.dart'; /// Get information about a single Status. extension extensionSingleStatus on Mastodon { /// Get a single toot by id. Future<Status> getStatus(String id) async => Status.fromJson(await _apiRequest('GET', '/api/v1/statuses/$id')); /// Get a single status card by id. Future<Status...
# frozen_string_literal: true module Motor module Configs module SyncFromFile MUTEXT = Mutex.new FILE_TIMESTAMPS_STORE = ActiveSupport::Cache::MemoryStore.new(size: 1.megabyte) module_function def call(with_exception: false) MUTEXT.synchronize do file = Pathname.new(Mo...
(function(__global) { var tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7, tmp8, tmp9, tmp10, tmp11, tmp12, tmp13; tmp2 = 42; tmp1 = { x: tmp2 }; tmp0 = "o"; __global[tmp0] = tmp1; tmp4 = "o"; tmp3 = __global[tmp4]; tmp6 = "alert"; tmp7 = tmp6 in tmp3; if (tmp7) { ...
package in.mertcan.advancedshare; import io.flutter.plugin.common.MethodChannel; import io.flutter.plugin.common.MethodChannel.MethodCallHandler; import io.flutter.plugin.common.MethodChannel.Result; import io.flutter.plugin.common.MethodCall; import io.flutter.plugin.common.PluginRegistry.Registrar; import java.util...
#!/bin/bash git pull && git submodule update --init --recursive && ./make_devel.sh ./activate.sh
package me.wieku.danser.ui.screens import me.wieku.danser.beatmap.TrackManager import me.wieku.danser.graphics.drawables.SideFlashes import me.wieku.danser.ui.common.background.MenuBackgroundTest import me.wieku.danser.ui.mainmenu.ButtonSystem import me.wieku.danser.ui.mainmenu.music.MusicOverlay import me.wieku.frame...
# React Amplify federated authentication React federated authentication based on top of AWS Amplify ## Install with NPM: ```bash npm install @ivyhjk/amplify-react-federated-auth ``` with yarn: ```bash yarn add @ivyhjk/amplify-react-federated-auth ```
const postcss = require('postcss'); module.exports = postcss.plugin('postcss-variables', (opts = {}) => { let globals = opts.globals || {}, result; const isVariableDeclaration = /^\$[\w-]+$/; const variablesInString = /(^|[^\\])\$(?:\(([A-z][\w-.]*)\)|([A-z][\w-.]*))/g; /** * Split comma separated arguments ...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Mail; using System.Text.RegularExpressions; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using MimeT...
/*function readTextFile(file) { var rawFile = new XMLHttpRequest(); rawFile.open("GET", file, false); rawFile.onreadystatechange = function () { if(rawFile.readyState === 4) { if(rawFile.status === 200 || rawFile.status == 0) { var allText = rawFil...
// https://github.com/gradle/gradle/issues/9270 @file:Suppress("PACKAGE_NAME_MISSING", "FILE_INCORRECT_BLOCKS_ORDER") object Versions { const val KOTLIN = "1.4.21" const val DIKTAT = "0.3.0" const val DETEKT = "1.15.0" const val JACOCO = "0.8.6" const val KOTLIN_COROUTINES = "1.4.2" const val K...
package com.taskagile.domain.model.cardlist; import com.taskagile.domain.common.model.AbstractBaseEntity; import com.taskagile.domain.model.board.BoardId; import com.taskagile.domain.model.user.UserId; import javax.persistence.*; import java.util.Date; import java.util.Objects; @Entity @Table(name = "card_list") pub...
require_relative "contador" class Estoque def initialize @livros = [] @vendas = [] @livros.extend Contador end def method_missing(name) matcher = name.to_s.match "(.+)_que_mais_vendeu_por_(.+)" if matcher tipo = matcher[1] campo = matcher[2].to_sym ...
import {NgModule} from '@angular/core'; import {Routes, RouterModule} from '@angular/router'; import {DoctorsListComponent} from './doctors-list/doctors-list.component'; import {DoctorEditComponent} from './doctor-edit/doctor-edit.component'; import {DoctorViewComponent} from './doctor-view/doctor-view.component'; impo...
require 'minitest/autorun' require 'will_doc_project' class WillDocProjectTest < Minitest::Test def test_start assert_equal "Not implemented yet", WillDocProject.start end end
package com.vivy.app.shared.util import android.app.Activity import androidx.annotation.ColorRes import com.andrognito.flashbar.Flashbar import com.vivy.app.R object FlashbarUtil { fun show( message: String, @ColorRes color: Int, activity: Activity ) { try { ...
export interface PtErrorRepository { apiEndpoint: string; reportError( errorData: string ): Promise<void>; }
package chezmoi import ( "os" "testing" "github.com/d4l3k/messagediff" ) func TestFileAttributes(t *testing.T) { for _, tc := range []struct { sourceName string fa FileAttributes }{ { sourceName: "foo", fa: FileAttributes{ Name: "foo", Mode: 0666, Empty: false, Tem...
Rails.application.routes.draw do # devise_for :users # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html namespace :api, defaults: { format: :json } do namespace :v1 do resources :acts resources :areas resources :libcompls resources :ses...
package com.ibeetl.dao.anima.service; import com.ibeetl.dao.anima.entity.AnimaUser; import io.github.biezhi.anima.page.Page; public interface AnimaUserService { public void addUser(AnimaUser user); public AnimaUser unique(Integer id); public void updateUser(AnimaUser user); public Page<AnimaUser> que...
'use strict'; var Baz = require('bazooka'); Baz.register({ 'baz-complex': require('baz-complex'), 'baz-logger': require('baz-logger'), }); var unwatch = Baz.watch();
/* * Copyright (c) 2012, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this file, copies can be found by writing to: * ETH Zurich D-INFK, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group. */ #ifndef LIBMDB_MDB_H #defi...
<?php namespace MacLookup\Tests; use MACLookup\Exceptions\APIKeyException; use MACLookup\Exceptions\ClientException; use MACLookup\Exceptions\HTTPRequestException; use MACLookup\Exceptions\ServerException; use MACLookup\Exceptions\TooManyRequestException; use MACLookup\MACLookupClient; use PHPUnit\Framework\TestCase...
export class UserEmail { email: string; emailVerified?: boolean; }
CREATE OR REPLACE PROCEDURE HTTP_NAMED_PARAM ( P_VL1 IN VARCHAR ) IS BEGIN HTP.PRINT('P_VL1 => ' || P_VL1); END;
# gcq-irt Analysis scripts from the GCQ IRT article. [Published article](https://doi.org/10.1177/0016986220924050) [preprint - institutional repository](https://doi.org/10.17077/pp.004118)
#include "vcr/buffer.hpp" #include <spdlog/spdlog.h> #include <stdlib.h> #include "vcr/exceptions.hpp" namespace vcr { Buffer::Buffer(uint64_t size) : _size(size) { _buffer = (uint8_t*)malloc(size); if(_buffer == NULL) { throw VCRException(fmt::format("Failed to allocated memory of size: {}", _size)); }...
module TigerPrettyIr where import Prelude hiding ( (<>) ) import TigerTemp import TigerTree import TigerSymbol import TigerFrame import TigerTrans import Data.Map as M ...
package com.avito.emcee.worker.internal import com.avito.emcee.device.AndroidDevice import com.avito.emcee.queue.Device internal class SingleInstanceAndroidDeviceTestExecutorProvider : TestExecutorProvider { override suspend fun provide( device: Device ): TestExecutor { return StatefulAndroid...
--- layout: page-fullwidth permalink: /scf/awards/ title: Community Service Awards excerpt: Software Carpentry values the contributions of its volunteers and seeks to recognize outstanding effort --- The Software Carpentry Foundation relies on volunteer efforts to achieve many of its goals. Its Community Service Awar...
using System; using System.Linq; using Iot.Device.OneWire; namespace dotnet_iot_ds18b20 { class Program { static void Main(string[] args) { Console.WriteLine("DS18B20!"); try { var devOneWire = OneWireThermometerDevice.EnumerateDevices().Firs...
package dataset import ( "fmt" "github.com/xitongsys/parquet-go/ParquetWriter" "github.com/xitongsys/parquet-go/ParquetFile" ) type Column struct { Name string `json:"name"` Encoding *string `json:"encoding"` ValType string `json:"val_type"` RepetitionType *string `json:"repetition_type"` } type Datas...
# frozen_string_literal: true require 'rails_helper' RSpec.describe DateValueFormatter do let(:date) { Time.zone.at 1_234_567_890 } it 'formats' do expect(described_class.format date).to eq '1234567890' end it 'unformats' do expect(described_class.unformat 1_234_567_890).to eq date end end
# virusSimulation 우리 학교 2D 바이러스 시뮬레이션 본 프로젝트는 3Blue1Brown 님의 [코로나 확산 시뮬레이션](https://www.youtube.com/watch?v=gxAaO2rsdIs)에서 그 영감을 얻었습니다. matplotlib 라이브러리를 주력으로 사용하였습니다.