text stringlengths 27 775k |
|---|
TITLE (.asm)
INCLUDE Irvine32.inc
INCLUDE Macros.inc
mac MACRO
mWrite "計算:2593+8888 = "
mov eax,2593
add eax,8888
call WriteDec
ENDM
.data
.code
main PROC
mac
exit
main ENDP
END main |
package mqtt
import (
"fmt"
mqtt "github.com/eclipse/paho.mqtt.golang"
"github.com/go-logr/logr"
"github.com/rancher/octopus/pkg/util/log/zap"
)
var log mqtt.Logger = mqtt.NOOPLogger{}
type printer struct {
logger logr.InfoLogger
}
func (l printer) Println(v ...interface{}) {
l.logger.Info(fmt.Sprint(v...))... |
# frozen_string_literal: true
require_relative 'load_all'
require 'econfig'
require 'shoryuken'
require 'concurrent'
# Shoryuken worker class to clone repos in parallel
class LoadPageDataWorker
extend Econfig::Shortcut
Econfig.env = ENV['RACK_ENV'] || 'development'
Econfig.root = File.expand_path('..', File.di... |
// DesktopSaver, (c)2006-2017 Nicholas Piegdon, MIT licensed
#pragma once
#include <windows.h>
#include <string>
class TrayIcon
{
public:
TrayIcon(HWND hwnd, UINT callback_id, HICON icon);
~TrayIcon();
// This is called internally on creation, and also (by user code) when the
// taskbar is r... |
class Config {
static final String PROTOCOL = "http";
// static final String IP = "144.202.10.124";
// static final String IP = "192.168.101.30";
// static final String IP = "203.195.149.30";
static final String IP = "xzn.cofal.top";
// static final String PORT = "8010";
// static final String PORT = "8010";
... |
import logging
import signal
log = logging.getLogger(__name__)
class DelayedKeyboardInterrupt(object):
"""
Stuff here will not be interrupted by SIGINT
"""
def __enter__(self):
self.signal_received = False
self.original_signal_handler = signal.getsignal(signal.SIGINT)
signal.s... |
import 'package:flutter/material.dart';
import './question.dart';
import './answer.dart';
class Quiz extends StatelessWidget {
final int qId;
final Function answerHandler;
Quiz({@required this.answerHandler, @required this.qId});
@override
Widget build(BuildContext context) {
return Column(
child... |
import { ISerializable } from '../interfaces/ISerializable';
export function createUniqueIdentifierFromParams(
params: ISerializable,
): string {
const uniqueIdentifierParts: string[] = [];
for (const key of Object.keys(params)) {
uniqueIdentifierParts.push(key);
// Note: using only keys no... |
<?php
namespace App\Traits;
use Illuminate\Support\Str;
trait ClassInputName
{
/**
* Get the desired class name from the input.
*
* @return string
*/
protected function getNameInput()
{
$name_input = Str::studly($this->argument('name'));
$class_type = Str::studly($this->type);
if (!empty($class_typ... |
namespace bc.Framework.Language.Phonetics.InternationalPhoneticAlphabet
{
/// <summary>
/// Describes the position of the tongue during articulation of a vowel
/// </summary>
public enum VowelBacknesses
{
/// <summary>
/// The highest point of the tongue is positioned relatively in t... |
import { IVideo, IChannel } from "../types"
import { defineStore } from "pinia"
import { Storage } from "../services/storage"
import { CHANNELS, PLAYLISTS } from "./channels_playlists"
const db = new Storage("local_prefers")
db.read()
const prefers_initial = { playbackRate: 1.0,
maxResults: 50,
youtubeAppKey: "",
... |
package io.dwak.hoverlauncher.data.android
import io.dwak.hoverlauncher.data.android.model.ApiAppInfo
interface InstalledPackageProvider {
suspend fun getInstalledApps(): List<ApiAppInfo>
} |
import React from "react"
import { connect } from "react-redux"
import { navigate } from "gatsby"
import {
useTheme,
Box,
Card,
CardMedia,
CardActionArea,
CardActions,
CardContent,
Grid,
Typography,
Button,
Divider,
} from "@material-ui/core"
import { LocalLibrary } from "@material-ui/icons"
impor... |
# Authors
- [Peter Law](mailto:PeterJCLaw@gmail.com)
- [Tom Leese](mailto:inbox@tomleese.me.uk)
- [Alistair Lynn](mailto:arplynn@gmail.com)
|
module BenefitMarkets
module Forms
class AcaShopInitialApplicationConfiguration
extend ActiveModel::Naming
include ActiveModel::Conversion
include ActiveModel::Model
include ActiveModel::Validations
include Virtus.model
attribute :pub_due_dom, Integer
attribute :erlst_... |
```yaml
changelog: true
```
## 2.1.0
`2021-11-05`
### 🐛 问题修复
- 修复输入框宽度计算错误的问题 ([#89](https://github.com/arco-design/arco-design-vue/pull/89))
|
---
name: voice
title: Gladys-Voice
permalink: "/en/configuration"
lang: en
category: Configuration
---
Coming soon.. |
/*
* Copyright (c) 2015 PocketHub
*
* 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 t... |
import {
Body,
Controller,
Get,
HttpStatus,
Param,
Post,
Delete,
Patch,
Query,
Res,
Version,
} from '@nestjs/common';
import { Response } from 'express';
import { WorkTimeService } from './work-time.service';
import { CreateWorkTimeDto, UpdateWorkTimeDto } from './dto';
import { RangeDto } from '.... |
/**
* @license
* File: sigplot.boxes.js
* Copyright (c) 2012-2017, LGS Innovations Inc., All rights reserved.
*
* This file is part of SigPlot.
*
* Licensed to the LGS Innovations (LGS) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informat... |
module Cpanel::ApplicationHelper
def cpanel_cache_key_for_view(objects, prefix="cpanel")
cache_key_for_view(objects, prefix)
end
end
|
@extends('layouts.app_site', ['title' => 404, 'description' => 'Page not found'])
@section('body')
<body class="notFound-body">
@endsection
@section('header')
<header class="page_header static">
<div class="header_container">
<a href="{{route('home')}}" class="page_logo">
<... |
const shell = require('shelljs');
const chalk = require('chalk');
const { cli, action } = require('core/cli');
const { execute, run } = require('./prepare');
cli(
'deploy:prepare',
'Prepare node for deploying a multi-node chain',
input => action(execute, run, input),
{
requirements: {
forgeRelease: t... |
import { Component, define, lazy, ref, fragment, template } from '~/index'
it('gets defined', () => {
@define class Test extends Component { }
@define class PrefixedTest extends Component { static prefix = 'custom' }
@define class NotPrefixedTest extends Component { static prefix = undefined }
expect(customEl... |
import React from "react";
import { useThemeContext } from "~/hoc/theme/ThemeContext";
import AngleDownIcon from "~/icons/line/AngleDownIcon";
import CogIcon from "~/icons/line/CogIcon";
import SearchIcon from "~/icons/line/SearchIcon";
const Navbar = () => {
const { theme } = useThemeContext();
return (
<div... |
# $Id$
package Juman::Fork;
require 5.004_04; # For base pragma.
use English qw/ $PERL_VERSION /;
use IO::Handle;
use IO::Pipe;
use POSIX;
use Time::HiRes;
use strict;
use base qw/ Exporter /;
use vars qw/ @EXPORT_OK $TIMEOUT /;
@EXPORT_OK = qw/ $TIMEOUT /;
=head1 NAME
Juman::Fork - 非同期に実行される子プロセスを生成する
=head1 SYNOPS... |
package com.uudaddy;
// NeedForSynchronizationDemo.java
class NeedForSynchronizationDemo
{
public static void main (String [] args)
{
FinTrans ft = new FinTrans ();
TransThread tt1 = new TransThread (ft, "Deposit Thread");
TransThread tt2 = new TransThread (ft, "Withdrawal Thread");
... |
import { AccessKeyServiceService } from 'cloud/iam/v1/awscompatibility/access_key_service';
import { Client } from 'nice-grpc';
import { SdkServiceDefinition, Session } from 'src/index';
export const AccessKeyServiceDef: SdkServiceDefinition<
typeof AccessKeyServiceService
> = {
...AccessKeyServiceService,
... |
import * as body from './body';
type OverloadableNode = body.BodyableNode;
export function isImplementation(node: OverloadableNode): boolean {
return body.getBody(node) !== undefined;
}
export function isOverload(node: OverloadableNode): boolean {
return !isImplementation(node);
}
|
import 'dart:async';
import 'package:shared_preferences/shared_preferences.dart';
class SettingRepository {
SharedPreferences _sharedPreferences;
Future<void> initialize() async {
_sharedPreferences ??= await SharedPreferences.getInstance();
}
Future<bool> setValue(String key, Object value) async {
... |
package com.example.coroutinestudy
class MockApi {
fun request(): String {
return "done"
}
} |
package monCollector.worker.resource;
import java.util.HashMap;
import org.hyperic.sigar.FileSystem;
import org.hyperic.sigar.FileSystemUsage;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import monCollector.config.XmlProperty;
import yuk.dic.CommandDic;
import yuk.model.Monito... |
from chunked_uploads.utils.web_url_management import get_web_url
from django.contrib.staticfiles.storage import staticfiles_storage
from django.core.urlresolvers import reverse
import urlparse
def absstatic(request, path):
domain = get_web_url(request)
new_path = staticfiles_storage.url(path)
ret... |
import { action, computed, makeAutoObservable } from 'mobx';
import { v4 as uuidv4 } from "uuid";
import app from '../../app';
import { uploadJSONFileToIPFS } from '../../utils/helpers/pinata';
import { mintToken } from '../../utils/helpers/xdc3';
export interface IMintStore {
step: number;
title: string;
previe... |
#ifndef OPTIONSMENU_H
#define OPTIONSMENU_H
#include "GameObject.h"
#include "SceneManager.h"
class optionsMenu:public GameObject
{
public:
optionsMenu();
virtual ~optionsMenu();
virtual void render(sf::RenderWindow * win);
virtual void update();
virtual bool isCollide(Gam... |
//! Parsing and analysis of Runefiles.
#[cfg(test)]
#[macro_use]
extern crate pretty_assertions;
mod analysis;
pub mod ast;
mod diagnostics;
pub mod hir;
pub mod parse;
mod utils;
pub mod yaml;
pub use crate::{
analysis::analyse as analyse_yaml_runefile, diagnostics::Diagnostics,
parse::parse,
};
pub fn ana... |
#include <iostream>
#include <vector>
#include <forward_list>
#include <list>
#include <map>
#include <deque>
#include <algorithm>
template <typename T>
void printContainer(const std::string desc, const T& container)
{
std::cout <<desc << " Container Have: " << std::endl;
std::for_each(container.begin(), conta... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
(ns somnium.congomongo.config)
(def ^{:dynamic true} *mongo-config* {}) |
///
/// Subprocess.cpp
/// galaxy
///
/// See LICENSE.txt.
///
#include "galaxy/error/Log.hpp"
#include "Subprocess.hpp"
namespace galaxy
{
namespace platform
{
Subprocess::~Subprocess() noexcept
{
terminate();
}
void Subprocess::create(std::string_view process, std::span<std::string> args) noexcept
... |
# XEventBus
evnetbus修改版本
build配置:com.tiger:XEventBus:1.0.0
使用方式:
//MainActivity.this为需要接收到的对象
XEventBus.getDefault().post(new Test(MainActivity.this));
|
// Copyright (c) Cosmo Tech.
// Licensed under the MIT license.
package com.cosmotech.api.exceptions
import java.lang.IllegalArgumentException
import org.springframework.http.ResponseEntity
import org.springframework.security.authentication.InsufficientAuthenticationException
import org.springframework.web.bind.annota... |
<?php
namespace app;
use app\common\AppHelper;
use helper\Wxwork;
class User
{
use AppHelper;
function auth($f3)
{
$wxwork = new Wxwork($f3);
header('location:' . $wxwork->getOauth2Url($this->url('/auth/callback')));
}
function callback($f3)
{
$code = $_GET['code'];
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Professor;
class ProfessoresController extends Controller
{
public function index() {
return Professor::all();
}
public function store(Request $request) {
$professor = Professor::create($request->all());
r... |
module SlackGamebot
module Commands
class Sucks < SlackRubyBot::Commands::Base
command 'sucks', 'suck', 'you suck', 'sucks!', 'you suck!' do |client, data, _match|
user = ::User.find_create_or_update_by_slack_id!(client, data.user)
if user.losses && user.losses > 5
client.say(chann... |
using Amazon.DynamoDBv2;
using Amazon.Lambda.APIGatewayEvents;
using Amazon.Lambda.Core;
using Shared;
using System.Collections.Generic;
using System.Text.Json;
using System.Threading.Tasks;
// Assembly attribute to enable the Lambda function's JSON input to be converted into a .NET class.
[assembly: LambdaSerializer(... |
#nullable enable
using System;
public class A<T> where T:notnull
{
internal int AddHashCode(T t1, T t2)
{
return t1.GetHashCode() + t2.GetHashCode();
}
}
class Program
{
static void Main()
{
var a = "Hello";
var b = "World";
var x = new A<string>();
Console... |
# frozen_string_literal: true
module Facet
module Generators
class FacetGenerator < Rails::Generators::NamedBase
source_root File.expand_path("templates", __dir__)
hook_for :test_framework
def create_facet
template "facet.rb.erb", File.join("app/facets/", class_path, "#{file_name}_fac... |
export * from './src/Form';
export * from './src/Field';
|
package com.sksamuel.elastic4s.searches.queries
import com.sksamuel.elastic4s.searches.QueryDefinition
import org.elasticsearch.common.geo.GeoDistance
import org.elasticsearch.common.unit.DistanceUnit
import org.elasticsearch.common.unit.DistanceUnit.Distance
import org.elasticsearch.index.query.QueryBuilders
case cl... |
/******************************************************************
*
* EAX.H - DirectSound3D Environmental Audio Extensions version 2.0
* Updated July 8, 1999
*
*******************************************************************
*/
#ifndef EAX_H_INCLUDED
#define EAX_H_INCLUDED
#ifdef __cplusplus
extern... |
package no.nav.medlemskap.domene
import java.time.LocalDate
data class Datagrunnlag (
val soknadsperiode: Periode,
val soknadstidspunkt: LocalDate,
val brukerinput: Brukerinput,
val personhistorikk: Personhistorikk,
val medlemskapsunntak: List<Medlemskapsunntak> = listOf(),
... |
library persistent_bottom_nav_bar;
import 'dart:math';
import 'dart:ui';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
//Main TabView Widget
part 'persistent-tab-view.widget.dart';
//Models
part 'models/nested_will_pop_scope.dart';
pa... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { InsightsWindowExtensions } from 'common/insights-window-extensions';
import * as Playwright from 'playwright';
import { DEFAULT_PAGE_ELEMENT_WAIT_TIMEOUT_MS } from 'tests/end-to-end/common/timeouts';
import { Page, ... |
package com.github.jenya705.mcapi;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;
import java.util.Objects;
/**
* @author Jenya705
*/
@Getter
@ToString(includeFieldNames = false)
@AllArgsConstructor
public final class Vector3 {
public static final double epsilon = 1e-4;
p... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class DurasiTes extends Model
{
protected $table = 'dn_durasites';
protected $fillable = [
'dn_tes_id',
'pelajar_id',
'durasi',
];
}
|
include("../dftk.jl")
include("../builder.jl")
import FFTW
using LinearAlgebra
import TimerOutputs
function run(stepsize::Integer)
FFTW.set_num_threads(4)
BLAS.set_num_threads(4)
lattice, atoms = load_system("GaAs", 20)
mixing = SimpleMixing(α=0.128) # optimal damping for None
prefix ... |
import { createSlice } from "@reduxjs/toolkit";
import type { RootState } from '.';
interface Ticket {
key: string,
summary: string,
description?: string,
points?: number,
assignee?: string,
team?: string,
epic?: string,
rank?: number,
}
interface Roll {
[name: string]: Ticket|unde... |
import React from 'react';
import {
TableContainer,
Table,
TableHead,
TableRow,
TableCell,
TableBody,
Paper,
} from '@mui/material';
export default function InventoryTable({
tableContents,
}: {
tableContents: JSX.Element[];
}) {
return (
<TableContainer component={Paper}>
<Table>
... |
package cn.netdiscovery.http.core.domain.content
import cn.netdiscovery.http.core.request.converter.RequestContentConverter
import cn.netdiscovery.http.core.domain.Params
import kotlin.reflect.KClass
/**
*
* @FileName:
* cn.netdiscovery.http.core.domain.content.Content
* @author: Tony Shen
* @date: 2020... |
# X-attr-preserver
Simple python script for making a specific command-line program preserve xAttr (extended File Attributes)
of all files given as an commandline-argument to it.
## Usage:
* create a backup of your .bashrc file before using with `cat ~/.bashrc > ~/.bashrc.bak`
* `python3.5 makePreserveAttr.... |
#!/bin/bash
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
set -e
SCRIPT_FOLDER="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT_FOLDER="$(git rev-parse --show-toplevel)"
BASE_IMAGE_NAME="cbl-mariner-base"
BASE_IMAGE_FULL_NAME="$BASE_IMAGE_NAME:1.0"
DISTROLESS_IMAGE_NAME="cbl-marine... |
package config_test
import (
"io/ioutil"
"os"
"path"
"code.cloudfoundry.org/grootfs/commands/config"
yaml "gopkg.in/yaml.v2"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Builder", func() {
var (
cfg config.Config
createCfg config.Create
cleanCfg confi... |
-- @testpoint:opengauss关键字Initial(非保留),作为外部数据源名
--关键字不带引号-成功
drop data source if exists Initial;
create data source Initial;
drop data source Initial;
--关键字带双引号-成功
drop data source if exists "Initial";
create data source "Initial";
drop data source "Initial";
--关键字带单引号-合理报错
drop data source if exists 'Initial';
cre... |
#
# Copyright (c) 2016, salesforce.com, inc.
# All rights reserved.
# Licensed under the BSD 3-Clause license.
# For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
#
require "test_helper"
require "minitest/autorun"
class BabelBot::CSVLoaderTest < Minitest::T... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2017, Data61
# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
# ABN 41 687 119 230.
#
# This software may be distributed and modified according to the terms of
# the BSD 2-Clause license. Note that NO WARRANTY is provided.
# See "LICENSE... |
namespace NeoSharp.Core.Messaging
{
public class Message
{
/// <summary>
/// Max size for payload
/// </summary>
public const int PayloadMaxSize = 0x02000000;
/// <summary>
/// Flags
/// </summary>
public MessageFlags Flags;
/// <summary>... |
package com.wuruoye.know.model.beans
/**
* Created at 2019/4/7 09:41 by wuruoye
* Description:
*/
data class RecordImgPath(
var localPath: String = "",
var remotePath: String = ""
) |
using System.Linq;
using FluentAssertions;
using TL.FeatureToggles.LayerOfIndirection;
using Xunit;
namespace TL.FeatureToggles.Tests
{
[Collection(nameof(FeatureToggleCollection))]
public class LayerOfIndirectionTests
{
private readonly IToggleRouter _toggleRouter;
private readonly Invoic... |
trait Size[T] {
def size(a: T): Int
}
object Size {
//implicit val stringSize = new Size[String] {
// def size(str: String): Int = str.length
//}
}
|
// Copyright 2020 zc2638
//
// 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 to in writing, ... |
#! /bin/sh
curl --tlsv1.2 -v -k -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
"update_id":10000,
"message":{
"date":1441645532,
"chat":{
"last_name":"Test Lastname",
"id":1111111,
"first_name":"Test",
"username":"Test"
},
"message_id":1365,
"from":{
"last_nam... |
// Filename: interrogateDatabase.h
// Created by: drose (01Aug00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You... |
package org.meridor.perspective.openstack;
import org.meridor.perspective.config.Cloud;
import org.meridor.perspective.worker.operation.OperationUtils;
import org.openstack4j.api.OSClient;
import org.openstack4j.api.types.Facing;
import org.openstack4j.api.types.ServiceType;
import org.openstack4j.core.transport.Confi... |
package org.wildfly.halos.config
external val process: Process
external interface Process {
val env: dynamic
}
|
require 'spec_helper'
describe Pdftotext::Document do
subject { Pdftotext::Document.new(fixture_path) }
it "knows the path" do
expect(subject.path).to eql(fixture_path)
end
it "return the text" do
text = subject.text
expect(text).to eql("This is a test.\n\fThis is another test.\n\f")
end
it... |
/**
* Enum: Complexity
* Description: Complexity of a polygon.
* Values:
* {Invalid} invalid polygon
* {Convex} convex polygon
* {Concave} concave polygon
* {Complex} complex polygon (contains holes)
*/
JSM.Complexity = {
Invalid : 0,
Convex : 1,
Concave : 2,
Complex : 3
};
/**
* Enum: CoordPolygonPosition2D
* Des... |
// MIT License
//
// Copyright (c) 2019 Stefan Wichmann
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, mod... |
package com.example.model
import com.google.gson.JsonElement
import com.google.gson.JsonObject
import com.google.gson.JsonParseException
import com.google.gson.JsonParser
import com.google.gson.JsonPrimitive
import java.lang.IllegalStateException
import java.lang.NumberFormatException
import kotlin.Number
import kotli... |
# angular-step #
An AngularJS module for building step-by-step multi-page forms (e.g. a "wizard").
I made this because I once had to build out a bunch of multi-page forms and I tried
to re-use some of the components. This only made things complicated when I had to
keep track of which form was in use and how the butto... |
require 'spec_helper'
describe 'Permissions controller' do
it "gives a list of all permissions at a given level" do
Permission.define("new_permission",
"A new test permission",
:level => "repository")
repository_permissions = JSONModel(:permission).all(:level => ... |
//// [fatarrowfunctionsErrors.ts]
foo((...Far:any[])=>{return 0;})
foo((1)=>{return 0;});
foo((x?)=>{return x;})
foo((x=0)=>{return x;})
var y = x:number => x*x;
false? (() => null): null;
// missing fatarrow
var x1 = () :void {};
var x2 = (a:number) :void {};
var x3 = (a:number) {};
var x4= (...a: any[]) { };
//... |
namespace :stocks do
task :import => :environment do
SOURCES = [
{ :name => "AMEX",
:exchange => "AMEX",
:url => "http://www.nasdaq.com//asp/symbols.asp?exchange=1&start=0",
:header_lines => 2 },
{ :name => "NASDAQ",
:exchange => "NASDAQ",
:url => "http://www.na... |
//! A list of ROMs along with their size and SRAM kind.
use std::fmt;
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum SramKind {
/// No SRAM.
None = 0,
/// 512B EEPROM.
Eeprom512B = 1,
/// 8KB EEPROM.
Eeprom8KB = 2,
/// 64KB EEPROM.
Eeprom64KB = 3,
/// 128KB EEPROM.
Eepro... |
import {Page, NavController} from 'ionic-angular';
import {Toast} from 'ionic-native';
@Page({
templateUrl: './build/native-pages/toast/toast.html'
})
export class ToastNativePage {
constructor(
public nav: NavController
) { }
showToast() {
Toast.show("I'm a toast", "5000", "center").subscribe(
to... |
import React from 'react'
import { RegistrationStatus } from '../../../common'
import styled from 'styled-components'
const I = styled.i`
color: var(--primary);
&:hover { cursor: help; }
`
const MarginSpan = styled.span`
display: block;
margin-bottom: 20px;
`
const Red = styled.span`
color: var(--danger);
... |
# Copyright 2021 SpinQ Technology Co., Ltd.
#
# 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 © Wave Engine S.L. All rights reserved. Use is subject to license terms.
using System;
using System.Runtime.InteropServices;
namespace RayTracingTutorial23.Structs
{
public class BufferInfo : IDisposable
{
public byte[] bufferBytes;
public IntPtr bufferPointer;
public GCH... |
# Apache Pony Mail Unit Tests Repository
The aim of this repository is to create a comprehensive suite of tests for ensuring
that changes to the Pony Mail codebase does not impact stability and reproducibility.
The repository is split into three main directories:
- `tests/`: The python test scripts
- `yaml/`: The t... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string>
#include "genVel.h"
#include <cstdlib>
#include <ctime>
using namespace genVelName;
using namespace std; // cout instead of std::cout
void genVelClass::genVel(int num){
/* generates random initial velocities for num particles */
srand(tim... |
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use {
anyhow::Error, fidl_fidl_examples_routing_echo as fecho,
fidl_fuchsia_test_echofactory as fechofactory, fuchsia_async as fasync,
fuchsia_... |
# frozen_string_literal: true
require 'action_dispatch'
class MimeTypedPublicExceptions < ActionDispatch::PublicExceptions
VERSION = '0.3.0'
end
|
using Grpc.Core;
using System.Collections.Generic;
namespace GrpcEventSubscriptions.Server
{
public interface ISubscriptionManager
{
IEnumerable<IServerStreamWriter<TEvent>> GetSubscriptionsForEvent<TEvent>(string eventDescriptor);
void SaveSubscription<TEvent>(IServerStreamWriter<TEvent> sub... |
package ro.cluj.sorin.bitchat.model
import android.util.Base64
import com.squareup.moshi.FromJson
import com.squareup.moshi.ToJson
class Base64Adapter {
@FromJson
internal fun fromJson(string: String): ByteArray = Base64.decode(string, Base64.NO_WRAP)
@ToJson
fun toJson(bytes: ByteArray): String = Base64.en... |
package cookiedragon.eventsystem
/**
* @author cookiedragon234 15/Feb/2020
*/
annotation class Subscriber(val priority: Int = 0)
|
package com.ick.kalambury.create
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.hilt.navigation.fragment.hiltNavGraphViewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.DividerItemDecora... |
module Declarator where
import Context
data Declarator_kind =
DeclaratorIdentifier
| DeclaratorFunction Context
| DeclaratorOther
deriving Show
type Declarator = (String, Declarator_kind)
identifier :: Declarator -> String
identifier = fst
kind :: Declarator -> Declarator_kind
kind = snd
identifier_dec... |
import { HttpHandler, HttpEvent, HttpRequest, HttpInterceptor } from '@angular/common/http';
import { Observable } from 'rxjs';
import { AuthenticationService } from './authentication.service';
import { mergeMap } from 'rxjs/operators';
import { Injectable } from '@angular/core';
/**
* Interceptor handling the author... |
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using RUT.Tools.Localization;
namespace RUT.Examples.Localization
{
/// <summary>
/// ExampleInitializer class.
/// </summary>
public class ExampleInitializer : MonoBehaviour
{
#region Public properties
pub... |
package com.alharoof.diabetracker.data.logbook.model
enum class BglUnit(val code: Int, val symbol: String, val title: String) {
MILLIGRAMS_PER_DECILITRE(0, "mg/dL", "Milligrams Per Decilitre"),
MILLIMOLES_PER_LITRE(1, "mmol/L", "Millimoles Per Litre")
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.