text
stringlengths
27
775k
package zio.telemetry.opentracing.example.http import io.opentracing.propagation.Format.Builtin.{ HTTP_HEADERS => HttpHeadersFormat } import io.opentracing.propagation.TextMapAdapter import zio.clock.Clock import zio.magic._ import zio.telemetry.opentracing.example.http.{ Status => ServiceStatus } import zio.telemetry...
# Ruboty::TwitterTrack Ruboty handler to track the twitter stream with the given words. ## Installation Add this line to your application's Gemfile: ```ruby gem 'ruboty-twitter_track' ``` And then execute: $ bundle ## Usage ``` > @ruboty twitter track by rubygems @ruboty> Tracked 'rubygems'. @ruboty> https...
# [minshi] minshi is a simple program, in the spirit of [srandrd](https://github.com/jceb/srandrd), which listens for monitor connect/disconnect events and prints the event info to standard output. For a more full-fledged output layout profile manager, see [kanshi], of which minshi is a minimal, stripped-down version...
# TileEntity Tile 这个单词的本意是“瓷砖”或“瓦砖”。实际上这里它和 Block 是一个意思。所以它是一个给方块用的概念。 实际上 Mojang 很早(大约 1.8 的时候)就给它改名“Block Entity”了。 出于统一术语的考虑,本教程仍然主要使用“TileEntity”这个称呼,但仍会在特定情况下使用“BlockEntity”或它的中文译名“方块实体”。三种称呼在本教程中指代的是同一概念。 ## 为什么要有 TileEntity? TileEntity 是一种和[实体](../chapter-08/index.md)类似,可以存储一个 NBT 标签的特殊对象。 这意味着,借助 TileEntity,...
package phone import ( "github.com/ecletus/admin" "github.com/ecletus-pkg/admin" "github.com/ecletus/db" "github.com/ecletus/plug" ) type Plugin struct { plug.EventDispatcher db.DBNames admin_plugin.AdminNames } func (p *Plugin) OnRegister() { admin_plugin.Events(p).InitResources(func(e *admin_plugin.AdminEv...
#include <fstream> #include <vector> #include <iostream> #include <string.h> #include <queue> #include <algorithm> using namespace std; const int maxn = 20005; const int maxlg = 20; int n, m, s, father[maxn], level[maxn], ancestor[maxlg][maxn], dp[maxlg][maxn]; vector <pair<int, int> > g[maxn]; vector <pair<int, pai...
package composablearchitecture fun <E> Iterable<E>.update(index: Int, elem: E) = mapIndexed { i, existing -> if (i == index) elem else existing }
package ca.kieve.yomiyou import ca.kieve.yomiyou.copydown.CopyDown import ca.kieve.yomiyou.copydown.Options import ca.kieve.yomiyou.copydown.style.CodeBlockStyle import ca.kieve.yomiyou.copydown.style.HeadingStyle import ca.kieve.yomiyou.copydown.style.LinkReferenceStyle import ca.kieve.yomiyou.copydown.style.LinkStyl...
# frozen_string_literal: true require 'spec_helper' module Uphold describe Client do it 'takes a token on initialization' do token = 'x' client = Client.new(token: token) expect(client.bearer_token).to eq token end it 'gets the token from the ENV if none is provided' do token ...
<?php Route::group(['middleware' => 'web', 'namespace' => 'Modules\Frontend\Http\Controllers'], function () { Route::get('/', 'FrontendController@index'); // // Route::get('/rolunk', 'FrontendController@aboutUs'); // // Route::get('/kapcsolat', 'FrontendController@contact'); Route::get('/rendeles/{id}/{...
<!doctype html> <html lang="en"> <head> <link rel="stylesheet" href="css/style.css" /> <meta charset="utf-8"> <title>Presentation of my self in the course software development for the web!</title> <link rel="icon" href="favicon.ico"> </head> <body id="bg"> <div style="text-align: center;"> ...
using UnityEngine; /// <summary> /// Allows the user to quit the application. /// </summary> [CreateAssetMenu] public class ApplicationManager : ScriptableObject { /// <summary> /// Quits the application. This method only functions when the application /// is built. /// </summary> public void Quit...
module CommandLine where import Options.Applicative data Options = AST { optFileA :: FilePath } | Diff { optFileA :: FilePath , optFileB :: FilePath } astOpts :: Parser Options astOpts = AST <$> strArgument (metavar "FILE") diffOpts :: Parser Options diffOpts = Diff <$> st...
/* * tbounce1d.c: controlled animation using two threads * * note: one thread handles animation, other thread handles keyboard input * */ #include <stdio.h> #include <string.h> #include <stdint.h> #include <curses.h> #include <pthread.h> #include <stdlib.h> #include <unistd.h> // shared variables both threads use...
# Changelog - [Changelog](#changelog) - [Description](#description) - [2021.12.13 - Little Fixes](#20211213---little-fixes) - [2021.12.12 - Statusbar](#20211212---statusbar) - [Statusbar fixes](#statusbar-fixes) - [2021.12.10 - Checkboxes](#20211210---checkboxes) ## Description I did not start a Changelog...
import 'caching_filespan.dart'; abstract class AstNode { CachingFileSpan get span; }
package com.kuding.web; import org.springframework.web.servlet.mvc.method.annotation.RequestBodyAdvice; public interface CurrentRequetBodyResolver extends RequestBodyAdvice { default String getRequestBody() { return ""; } void remove(); }
use crate::Result; use crate::cargo::Cargo; use crate::meta::Meta; use failure::ResultExt; use log::info; use std::fs; use std::process::Command; pub(crate) fn build(cargo: &Cargo, meta: &Meta, targets: &[impl AsRef<str>]) -> Result<()> { for package in meta.packages() { let lib_name = format!("lib{}.a", p...
import { Console } from '@omnia/fx'; import Component from 'vue-class-component'; import { Prop, Emit } from 'vue-property-decorator'; import * as tsx from 'vue-tsx-support'; import { JourneyInstance, Blade, BladeSizes } from '@omnia/fx/ux'; import { $outputname$Destinations } from '../$outputname$'; export interface ...
/* return kendall tau ties-correction value FORMAT: ps = kendtaupairsign(m, d); Input fields: m matrix d dim Output fields: ps sign of all pairs Note: the order in which pairs are made is (1;2), (1;3), ..., (1;n), (2;3), ... (n-1;n) % Version: ...
CREATE TABLE globalchat(id SERIAL PRIMARY KEY, username VARCHAR NOT NULL, message VARCHAR(100));
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs); var _os = require('os'); var _os2 = _interopRequireDefault(_os); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } exports....
!************************************************* ! WINDOW ! Calculate the Spectral window-function ! of a timeseries. ! ! Input: ! window [options] [inputfile] [outputfile] ! ! Options: ! -tday Treat times as days (default) ! -tsec Treat times as seconds ! -kplrraw Input ...
use abstutil::prettyprint_usize; use geom::Duration; use map_gui::tools::{InputWaypoints, WaypointID}; use map_model::connectivity::WalkingOptions; use synthpop::{TripEndpoint, TripMode}; use widgetry::mapspace::{ObjectID, World, WorldOutcome}; use widgetry::{ Color, EventCtx, GfxCtx, HorizontalAlignment, Key, Line...
package shopping.order import scala.concurrent.Future import org.slf4j.LoggerFactory import shopping.order.proto.OrderRequest import shopping.order.proto.OrderResponse class ShoppingOrderServiceImpl extends proto.ShoppingOrderService { private val logger = LoggerFactory.getLogger(getClass) override def order(i...
import React, { Component } from 'react'; import md5 from 'crypto-js/md5'; import { Link } from 'react-router-dom'; import Header from '../components/Header'; class Feedback extends Component { constructor() { super(); this.state = { totalQuestion: 0, score: 0, }; this.handleAssertions = ...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. using System; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Horology; using Brigadier.NET; using Brigadier.NET.Builder; using Brigadier.NET.Tree; [MarkdownExporterAttribute.GitHub] public class ParsingBenchmarks ...
package objektwerks.poolmate import objektwerks.poolmate.Resources._ import objektwerks.poolmate.model.Model import objektwerks.poolmate.repository.Repository import objektwerks.poolmate.view.View import scalafx.application.JFXApp object App extends JFXApp { val repository = Repository("repository.conf") val mod...
| Command | Mean [s] | Min [s] | Max [s] | Relative | |:---|---:|---:|---:|---:| | `3.0.5` | 17.594 ± 0.151 | 17.361 | 17.801 | 1.46 ± 0.02 | | `3.1.1` | 29.878 ± 0.387 | 29.215 | 30.325 | 2.47 ± 0.04 | | `3.2.5` | 30.348 ± 0.260 | 29.876 | 30.670 | 2.51 ± 0.03 | | `3.3.9` | 30.274 ± 0.255 | 29.900 | 30.679 | 2.51 ± 0....
""" core APIs of the data models """ from collections import defaultdict import numpy as np import pandas as pd class FeatureSet: """ currently, just a named list of feature names """ def __init__(self, feature_names=None, name=None): self.feature_names = feature_names self.name = name...
<?php namespace SQRT\QueryBuilder; abstract class Condition { protected $values; protected $not; function __toString() { return $this->asSQL(); } abstract public function asSQL(); abstract public function asStatement($prefix = null); abstract public function getBindedValues($prefix = null); ...
<?php namespace App\Http\Controllers; use App\Models\Company; use Illuminate\Http\Request; use RealRashid\SweetAlert\Facades\Alert; class CompanyController extends Controller { public function All() { $Companys = Company::all(); return view('Dashboard.Company.All')->with(['Companys' => $Compa...
## Testing with a proxy Using a SUSE manager proxy with the testsuite is not mandatory. If you do not want a proxy, do not define `$PROXY` environment variable before you run the testsuite. That's all. If you want a proxy, make this variable point to the machine that will be the proxy: ```bash export PROXY=myproxy....
using bundle-adjustment-primer using Test @testset "bundle-adjustment-primer.jl" begin # Write your tests here. end
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <folly/Synchronized.h> #include <condition_variable> #include <mutex> #include "watchman/InMemoryView.h" #include "watchma...
package otoroshi.ssl import java.io._ import java.lang.reflect.Field import java.net.Socket import java.nio.ByteBuffer import java.nio.charset.StandardCharsets import java.nio.charset.StandardCharsets.US_ASCII import java.security._ import java.security.cert._ import java.security.spec.{KeySpec, PKCS8EncodedKeySpec} i...
package com.refinedmods.refinedstorage.data.sync import com.refinedmods.refinedstorage.data.sync.Syncable.Companion.byteBuffers import net.minecraft.entity.player.PlayerEntity import net.minecraft.network.PacketByteBuf import net.minecraft.util.Identifier /** * Watches underlying data for changes from the client, an...
/* * Copyright (c) 2021 NetEase, Inc. All rights reserved. * Use of this source code is governed by a MIT license that can be found in the LICENSE file. */ package com.netease.yunxin.app.wisdom.record.model import androidx.annotation.IntDef @IntDef( NERecordEventType.MEMBER_JOIN, NERecordEventType.MEMBER...
package catelyn import "testing" func Test_ConfluenceClient(t *testing.T) { }
plugins { id(GradlePluginId.ANDROID_DYNAMIC_FEATURE) id(GradlePluginId.KOTLIN_ANDROID) id(GradlePluginId.KOTLIN_ANDROID_EXTENSIONS) id(GradlePluginId.SAFE_ARGS) } android { compileSdkVersion(AndroidConfig.COMPILE_SDK_VERSION) defaultConfig { minSdkVersion(AndroidConfig.MIN_SDK_VERSION)...
using System; using System.Collections.Generic; using System.Diagnostics; using System.Text; using UnityEngine; namespace Epitome.LogSystem { public delegate void LogCall(string logLevel, string message); public enum LogLevel { ALL, // 最低等级的,用于打开所有日志记录; TRACE, // 比DEBUG更详细信息...
# $Id: 35_SWAP_0000002200000008.pm 10297 2015-12-29 19:04:09Z justme1968 $ package main; use strict; use warnings; use constant { REG_DESIRED => '0D', REG_TEXT => '0E', }; sub SWAP_0000002200000008_Initialize($) { my ($hash) = @_; require "$attr{global}{modpath}/FHEM/34_SWAP.pm"; $hash->{SWAP...
// ====================================================================== // Copyright (c) 2016 by Vladimir Bespalov // ====================================================================== #include "rsprotocolworker.h" #include "./../rssockets/udpsocket.h" #include "./../rssockets/tcpsocket.h" RsProtocolWo...
--- ms.openlocfilehash: c22a264f98abca9df34427fc35f972e6bbcde518 ms.sourcegitcommit: ad203331ee9737e82ef70206ac04eeb72a5f9c7f ms.translationtype: MT ms.contentlocale: nb-NO ms.lasthandoff: 06/18/2019 ms.locfileid: "67217739" --- Tilgang til Azure Active Directory Authentication Library (ADAL).
<?php Class MProducao extends CI_Model { public function get($id) { $this->db->select('*'); $this->db->from('view_producao'); $this->db->where('id_producao', $id); $query = $this->db->get(); return $query->row_array(); } public function getByProfessor($id) { $this->db->select('*'); $this->db->fro...
{-- https://wiki.haskell.org/Euler_problems/51_to_60#Problem_60 Prime except 3 is congruent to 1 or 2 modulo 3. If mod 1 primes is combined to mod 2 primes, it's divided by 3. So, we can combine mod 1 with mod 1, or mod 2 with mod 2. $ time ./60 26033 real 0m0.473s user 0m0.470s sys 0m0.000s --} modu...
// // CocoaPhoenix.hpp // CocoaPhoenix // // Created by Bodie Solomon on 3/6/19. // // TODO: Refactor docs // High-level overview // // PHXViewController owns the UI-facing components and the Phoenix object. // The Phoenix object owns all internal Phoenix components and provides // C++ interfaces, which are wrapped ...
#ifndef INCLUDE_NAN_HPP #define INCLUDE_NAN_HPP // nan #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #pragma GCC diagnostic ignored "-Wshadow" #pragma GCC diagnostic ignored "-Wcast-function-type" #include <nan.h> #pragma GCC diagnostic pop #endif // INCLUDE_NAN_HPP
import React, { useEffect } from 'react'; import { Redirect } from 'react-router-dom'; const Logout = ({ logoutFunc }) => { useEffect(() => { logoutFunc() }); return ( //<div> // LOGOUT //</div> <Redirect to="/" /> ); }; export default Lo...
use crate::rayt::*; struct SimpleScene {} impl SimpleScene { fn hit_sphere(&self, center: Point3, radius: f64, ray: &Ray) -> f64 { let oc = ray.origin - center; let a = ray.direction.dot(ray.direction); let b = 2.0 * ray.direction.dot(oc); let c = oc.dot(oc) - radius.powi(2); ...
<?php spl_autoload_register('_common_autoloader'); /** * Automatically loads classes in PHP5 way, using SPL. * @param string $class The class name, no namespaces are supported. * @return bool TRUE if a class have been found and loaded, FALSE otherwise. * @author Iv...
<!doctype html> <html> <head> <meta charset='utf-8'> <title>Email Template</title> <style> body{ color:#424141; font-size:12px; text-align:left; margin:10px; font-family:sans-serif; } </style> </head> <body> <?php include("include/analyticstracking.php"); ?> <table width='65%' border='0' cellspacing='2' cellpaddin...
module Wobapphelpers module Helpers autoload :IconHelper, 'wobapphelpers/helpers/icon_helper.rb' autoload :ActionViewHelper, 'wobapphelpers/helpers/action_view_helper.rb' autoload :PolymorphicHelper, 'wobapphelpers/helpers/polymorphic_helper.rb' # one module to rule all module All include I...
# frozen_string_literal: true require 'descriptive_statistics' require 'reverse_markdown' require 'nokogiri-styles' require 'premailer' require 'rbconfig' require 'nokogiri' require 'logger' require 'tmpdir' require 'cliver' require 'open3' require_relative 'word-to-markdown/version' require_relative 'word-to-markdow...
<?php namespace App\Http\Models; class Category extends BaseModel{ protected $primaryKey = 'id'; protected $table = 'categories'; protected $fillable = array('name','created_at_ip','updated_at_ip'); }
#!/bin/sh -e echo 'rke up!' # ubuntu user needs access to the vagrant group to the access shared folder sudo usermod -a -G vagrant ubuntu sudo chmod 774 /usr/local/etc su ubuntu -c '/opt/bin/rke up --config /usr/local/etc/cluster.yml'
;; envelopes.lsp -- support functions for envelope editor in jNyqIDE #| In Nyquist, editable envelopes are saved as one entry in the workspace named *envelopes*. The entry is an association list where each element looks like this: (name type parameters... ) where name is a symbol, e.g. MY-ENVELOPE-1, type is a...
use std::process::{self, Child, Stdio}; use std::io::{self, BufRead, BufReader, Error, ErrorKind, Write}; use std::ffi::OsStr; use std::thread; /// Convenient wrapper around `process::Command` to make it easier to work with. pub struct Command<'a> { cmd: process::Command, stdin: Option<&'a str>, } impl<'a> Co...
<?php namespace App\Http\Controllers\Admin\Tags; use App\Repositories\TagRepository; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class ListTagController extends Controller { private $tagRepository; public function __construct(TagRepository $tagRepository) { $this->tagRepos...
// GlennHa 1/23/06 //<Snippet1> using System; using System.Reflection; using System.Security.Permissions; [assembly:AssemblyVersionAttribute("1.0.2000.0")] public class Example { private int factor; public Example(int f) { factor = f; } public int SampleMethod(int x) { Cons...
#include "bigint_serialize.h" char *bigint_tohexstr(const bigint *a) { char *hex, *nbr; int j; /* allocate required memory + 0x + null */ hex = bigint_mm_malloc(16*a->len + 3); if (!hex) bigint_mm_err(); /* terminating null */ hex[16*a->len+2] = 0; /* initial 0x */ hex[0] = '0'; ...
package Model.OSM; import java.io.Serializable; import java.util.ArrayList; /** * Representation of a road. */ public class OSMWay extends ArrayList<OSMNode> implements Serializable{ /** * Constructor of OSMWay. */ public OSMWay(){ } /** * Returns the from node of this way. * @re...
<?php namespace App\Models; use App\Models\NewOrder; use App\Models\Order; use App\Models\Product; use App\Models\ProductOrder; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Outlet extends Model { use HasFactory; protected $fillable = [ 'number'...
require 'test_helper' class Superstore::Types::DateTypeTest < Superstore::Types::TestCase test 'serialize' do assert_equal '2004-04-25', type.serialize(Date.new(2004, 4, 25)) end test 'deserialize' do assert_equal Date.new(2004, 4, 25), type.deserialize('2004-04-25') end test 'cast_value' do as...
<?php namespace App\Http\Controllers\SysAdmin; use Illuminate\Http\Request; use App\Http\Requests; use App\Http\Controllers\Controller; use App\Promocoes; use App\Sorteios; use App\Premios; use Illumniate\Html\HtmlServiceProvider; use App\Route; use View; use Validator; Use Input; Use Redirect; Use Session; cla...
export { default as getPastelColor } from "./getPastelColor"; export { default as getHsl } from "./getHsl"; export { default as getHsla } from "./getHsla"; export { default as getRgb } from "./getRgb"; export { default as getRgba } from "./getRgba"; export { default as getHex } from "./getHex";
<footer class="main-footer"> <div class="pull-right hidden-xs"> <b>Desarrollado por</b> <a href="http://iot-eng.com" target="_blank"> IoT Engineering</a> </div> <strong>Copyright &copy; IoT Engineering S.L.</strong> Todos los derechos resesrvados. </footer>
class Thumb < ApplicationRecord belongs_to :thumbable, polymorphic: true belongs_to :user validates :user, uniqueness: { scope: [ :thumbable_id, :thumbable_type] } end
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; class Home extends Component { constructor(props) { super(props) this.state = {} } componentDidMount() { fetch('/labels') .then((resp) => resp.json()) .then((labels) => this.setState({labels})) } r...
require "date" require "thwait" require "teecket/page_requester" require "teecket/selectors/air_asia" require "teecket/selectors/malaysia_airlines" require "teecket/selectors/malindo_air" require "teecket/selectors/firefly" require "teecket/flight" require "teecket/air_asia" require "teecket/malaysia_airlines" require...
package com.fjbg.weather.data.repository import com.fjbg.weather.data.local.CityEntity import com.fjbg.weather.data.model.CityDto import kotlinx.coroutines.flow.Flow interface CityRepository { suspend fun getCity(city: String): Flow<List<CityDto>?> suspend fun clearAll() suspend fun saveCity(city: CityDto...
import 'package:flutter_getx_template/common/utility/utils/injection_utils.dart'; import 'package:flutter_getx_template/data_access/repositories/product_repository/product_repository.dart'; import 'package:flutter_getx_template/data_access/repositories/product_repository/product_repository_impl.dart'; import 'package:g...
-- file:numeric.sql ln:299 expect:true INSERT INTO num_exp_div VALUES (6,8,'1.25401073209839612184')
/** * @Auther: fanshu * @Date: 2020/12/16 * @Description: kafka源表打入mysql结果表--已验证 */ CREATE TABLE MyTable( id int, name varchar, age int )WITH( type ='kafka11', bootstrapServers ='172.16.100.241:9092', zookeeperQuorum ='172.16.100.241:2181/kafka', offsetReset ='latest', topic ='fans...
# P9 > Vue 数据显隐 **⚡题目**: ❓ v-if、v-show、v-html 的原理是什么 ## 优解 🔥 - v-if会调用addIfCondition方法,生成vnode的时候会忽略对应节点,render的时候就不会渲染; - v-show会生成vnode,render的时候也会渲染成真实节点,只是在render过程中会在节点的属性中修改show属性值,也就是常说的display - v-html会先移除节点下的所有节点,调用html方法,通过addProp添加innerHTML属性,归根结底还是设置innerHTML为v-html的值
!git clone https://github.com/RAY-GAN/pytorch-CycleGAN-and-pix2pix.git \\ clone the repo import os os.chdir('pytorch-CycleGAN-and-pix2pix/') !pip install -r requirements.txt \\ install all the required API !bash ./datasets/download_cyclegan_dataset.sh horse2zebra \\down load the datasets for the horse2zebra trans...
/* // Copyright (c) 1998-2008 Joe Bertolami. All Right Reserved. // // opcodes.h // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, t...
package com.yzy.example.repository.model import androidx.lifecycle.MutableLiveData import com.yzy.baselibrary.base.BaseViewModel import com.yzy.baselibrary.extention.request import com.yzy.example.repository.GankRepository import com.yzy.example.repository.bean.CollectUrlBean class CollectUrlViewModel : BaseViewMode...
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage @{ Layout = "FestivalStarterKit.cshtml"; } @section HtmlBodyContent { <table class="table table-bordered table-striped table-hover"> @{ var maxSessions = Model.Content.Children.Max(x => x.Children.Count()); } @foreach (var timeslot in Model.Content.Children) { <...
package aurora.cesium.element.property; import cesiumlanguagewriter.*; import java.util.List; import java.util.Optional; import java.util.function.Supplier; /** * @author hanhaoran * @date 2020/8/27 */ class PositionListPropertyImpl extends PropertyAdapter<PositionListProperty> implements PositionListProperty { ...
require 'git' require 'colorize' require 'trollop' require "git/status_all/version" require "git/status_all/extensions" require "git/status_all/git" module Git module StatusAll class App def main # we want to disable the text coloring if we are printing to a # file, or on a platform (like windows) that lik...
<?php $virtualHost = '%2f'; // This is the default / virtual host URL quoted $username = 'guest'; $password = 'guest'; $exchange = 'test'; $routingKey = 'foo.bar.baz'; $url = 'http://localhost:8000/' . $virtualHost . '/' . $exchange . '/' . $routingKey; $message = array('body' => 'This is a message body published th...
#!/bin/sh set -ex TARGET=x86_64-elf ${TARGET}-as boot.s -o boot.o ${TARGET}-as base.s -o base.o ${TARGET}-gcc -c kernel.c -o kernel.o -std=gnu99 -ffreestanding -O2 -Wall -Wextra ${TARGET}-gcc -T linker.ld -o myos.bin -ffreestanding -O2 -nostdlib boot.o base.o kernel.o -lgcc
// @filename: tsconfig.json { "compilerOptions": { "module": "AmD" } } // @filename: other.ts export default 42; // @filename: index.ts import Answer from "./other.js"; const x = 10 + Answer; export { x };
#!/usr/bin/env bash # Copyright (c) 2021 maminjie <maminjie1@huawei.com> # SPDX-License-Identifier: MulanPSL-2.0 readonly LD_INFO="INFO" readonly LD_DEBUG="DEBUG" readonly LD_WARN="WARN" readonly LD_ERROR="ERROR" readonly LD_FATAL="FATAL" # __log message level lineno __log() { local dt="$(date +"%y-%m-%d %H:%M:%S...
library r_router; import 'dart:async'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart' hide SearchDelegate; import 'package:path_tree/path_tree.dart'; import '../page/custom_page_route.dart'; import '../page/error_page.dart'; import '../utils/string.dart'; import 'web_config/path_stra...
require 'spec_helper' describe 'shellinabox' do on_supported_os.each do |os, facts| context "on #{os}" do let(:facts) do facts end it { is_expected.to compile.with_all_deps } it { is_expected.to contain_class('shellinabox::config') } it { is_expected.to contain_class('shel...
export class Skills { pathImage: string; nomeSkill: string; linkDoc: string; constructor(pathImage: string, nomeSkill: string, linkDoc: string) { this.pathImage = pathImage; this.nomeSkill = nomeSkill; this.linkDoc = linkDoc; } }
package header // Valid logtype values for logtype. const ( Config = "config" System = "system" Threat = "threat" Traffic = "traffic" HipMatch = "hip-match" Url = "url" Data = "data" Wildfire = "wildfire" Tunnel = "tunnel" UserId = "userid" Gtp = "gtp" Auth = "auth" Sctp =...
c------------------------------------------------------------- c taper phase matched signal c------------------------------------------------------------- subroutine tgauss(fsnr,gt0,t0,dw,dt,n,fmatch,seis, * ss) implicit none integer*4 n, i,ism,nn,nnn double complex czero,s...
mod common; mod read; mod write; pub use common::read_gzip_json; #[cfg(feature = "io_ipc_write_async")] mod write_stream_async; #[cfg(feature = "io_ipc_write_async")] mod write_file_async; #[cfg(feature = "io_ipc_read_async")] mod read_stream_async; #[cfg(feature = "io_ipc_read_async")] mod read_file_async;
// Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // Update github releases tarballs. import 'dart:io'; import 'package:cronet/src/constants.dart'; impo...
module Main (main) where import Criterion.Main import Bcc.Crypto.Libsodium.Init import qualified Bench.Crypto.VRF (benchmarks) import qualified Bench.Crypto.KES (benchmarks) main :: IO () main = do sodiumInit defaultMain benchmarks benchmarks :: [Benchmark] benchmarks = [ Bench.Crypto.VRF.benchmarks , Bench...
""" ==================== Using LIME Explainer ==================== This example illustrates how to use the LIME tabular explainer to explain a prediction. This example shows how to use the tabular LIME implementation -- :class:`fatf.transparency.predictions.surrogate_explainers.TabularBlimeyLime` -- to explain a pred...
"""Top-level package for pySCTransform.""" __author__ = """Saket Choudhary""" __email__ = "saketkc@gmail.com" __version__ = "0.1.1" from .pysctransform import get_hvg_residuals, vst, SCTransform
#!/usr/bin/env python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import copy import os import sys import unittest root_dir = os.path.abspath(os.path.join( os.path.dirname(__file__), os.path.pardi...
package com.italankin.lintchecks import com.android.tools.lint.client.api.IssueRegistry import com.android.tools.lint.detector.api.CURRENT_API import com.android.tools.lint.detector.api.Issue import com.italankin.lintchecks.detectors.ActivityResultDetector import com.italankin.lintchecks.detectors.DescriptorJsonDetect...
#!/bin/bash echo "" echo "Must set environmental variable:" echo "export GDAL_DATA=$PREFIX/share/gdal"
package io.github.tomplum.aoc.raft.cards import java.util.* /** * A deck of space cards used in a [CombatGame] or a [RecursiveCombatGame]. * @param startingOrder The starting cards for the deck in order. */ class SpaceCardDeck(startingOrder: List<Int>) { private val cards = LinkedList<Int>() init { ...
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// // // Author: ddriver // Date: April 2000 // namespace Sy...