text
stringlengths
27
775k
### 贡献代码 !> 参与该项目,即表示您同意遵守我们的[行为准则](/CODEOFCONDUCT.md)。 ### 安装环境 `zpan` 基于[Go](https://golang.org/)进行开发. 依赖: - `make` - [Go 1.13+](https://golang.org/doc/install) 克隆源码: ```sh $ git clone git@github.com:saltbo/zpan.git ``` 安装构建依赖: ```sh $ make dep ``` 运行单元测试 ```sh $ make test ``` ### 测试你的修改 您可以为更改创建分支,并尝试从...
package com.microtears.orange.livedata.transformer.observers import androidx.lifecycle.LiveData import com.microtears.orange.livedata.transformer.impl.TransformerImpl import com.microtears.orange.livedata.transformer.interfaces.Observer class TimestampObserver<S> : Observer<S, Pair<S, Long>>() { override fun onCh...
package org.xcolab.client.proposals.pojo.phases; import java.io.Serializable; import java.sql.Timestamp; class AbstractProposalMoveHistory implements Serializable { private static final long serialVersionUID = 1L; private Long id_; private Long sourceproposalid; private Long sourcecontestid; pri...
import React from 'react'; import { StyledIcon, StyledLabel, StyledWrapper, } from './CustomDateHeaderDay.styled'; import { CustomDateHeaderDayProps } from '../../typesSchedulePage'; const CustomDateHeaderDay = ({ props, setShowSelectModal, setSelectModalData, }: CustomDateHeaderDayProps) => { const { la...
package nl.rubensten.texifyidea.gutter import com.intellij.codeInsight.daemon.RelatedItemLineMarkerInfo import com.intellij.codeInsight.daemon.RelatedItemLineMarkerProvider import com.intellij.psi.PsiElement /** * @author Sten Wessel */ open class LatexLineMarkerProvider : RelatedItemLineMarkerProvider() { ove...
# VueCAD VueJS Component for Drawing and Selecting Shapes in SVG Currently Alpha release, please feel free to improve
import { NativeEventEmitter, NativeModules } from 'react-native' const nativeManager = NativeModules.FastImagePreloaderManager const nativeEmitter = new NativeEventEmitter(nativeManager) class PreloaderManager { private _instances = new Map() private _subProgress: any = null private _subComplete: any = nul...
package org.neuroph.netbeans.main.easyneurons.samples.perceptron; import java.awt.Color; import java.awt.Graphics; import java.awt.Image; import java.awt.Point; import java.awt.Polygon; import javax.swing.JPanel; /** * * @author Marko */ public class PatternSpacePanel extends JPanel { public final static doub...
import React, { ReactNode } from 'react'; import { TextProps, TextStyle } from 'react-native'; import { combineStyles } from '@app/core'; import { Text } from '../Text'; import { styles } from './styles'; interface Props extends TextProps { children?: ReactNode; } export const ErrorText = (props: Props): JSX.Elemen...
const path = require('path') const fs = require('fs') var sass = require('node-sass') function transformSass(bundler) { const writable = fs.createWriteStream(bundler.outputPath) const sassContent = fs.readFileSync(bundler.entryPath).toString() const result = sass.renderSync({ file: bundler.entryPath, dat...
import 'package:flutter/material.dart'; import 'package:get/get.dart'; import 'package:naoty/app/widgets/dialog_container.dart'; import 'package:naoty/app/widgets/primary_button.dart'; class AlertPopup extends StatelessWidget { final String? title; final String? content; final Function? onCanceled; final bool ...
package com.yo1000.haystacks.autoconfigure.web import com.yo1000.haystacks.autoconfigure.core.DomainServiceAutoConfiguration import com.yo1000.haystacks.core.service.TableDomainService import com.yo1000.haystacks.web.service.TableApplicationService import org.springframework.boot.autoconfigure.AutoConfigureAfter impor...
#pragma once #include "../sdk/sdk.hpp" #include <DirectXMath.h> #define RAD2DEG(x) DirectX::XMConvertToDegrees(x) #define DEG2RAD(x) DirectX::XMConvertToRadians(x) namespace Math { extern float GRD_TO_BOG(float GRD); extern float VectorNormalize(Vector& v); extern float GetFov(Angle viewAngle, Angle aimAngle); ex...
module TD::Types # Applies if a user chooses some previously saved payment credentials. # To use their previously saved credentials, the user must have a valid temporary password. # # @attr saved_credentials_id [String] Identifier of the saved credentials. class InputCredentials::Saved < InputCredentials ...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { CoordinatingActivityComponent } from './coordinating-activity/coordinating-activity.component'; import { EditComponent } from './edit/edit.component'; import { CreateRewardComponent } from '../coordinator/create-r...
/** * @file node_hash.hpp * @author liwei ni (nilw@pcl.ac.cn) * @brief The hash function of a node * * @version 0.1 * @date 2021-06-03 * @copyright Copyright (c) 2021 */ #pragma once #include "node.hpp" iFPGA_NAMESPACE_HEADER_START /** * @brief Hash function for 64-bit word * ref to http:...
package CoGe::Accessory::parse_report::HSP; ############################################################################### # parse_report::HSP ############################################################################### use strict; use base qw(Class::Accessor); use Data::Dumper; BEGIN { use vars qw($VERSIO...
package NineApr; public interface Age { public void Checkage(int age); }
namespace AltV.Net.Enums { public enum VehicleLockState : byte { None = 0, Unlocked = 1, Locked = 2, LockoutPlayerOnly = 3, LockPlayerInside = 4, InitiallyLocked = 5, ForceDoorsShut = 6, LockedCanBeDamaged = 7 } }
### `logcat-parse` Improvements `logcat-parse` now supports parsing the `adb logcat` output format used on Android 10 devices. #### Binding projects - [Java.Interop GitHub PR 672](https://github.com/xamarin/java.interop/pull/672): In bindings projects, nested Java types with `protected` visibility within ...
require 'simplecov' SimpleCov.start 'rails' # Configure Rails Environment ENV['RAILS_ENV'] = 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'rspec/rails' require 'database_cleaner' require 'factory_bot' require 'ffaker' require 'shoulda-matchers' require 'pry' # Requires support...
""" This example uses several LEDs and a button. Pressing the button will cycle through several patterns that the LEDs will display. """ from machine import Pin, PWM import utime from debounced_button import DebouncedButton def cycle(): """This pattern will turn all of the LEDS from left to right, then turn...
import { gql } from "graphql-tag"; import { cartFields } from "~/apollo/fragments/cartFields"; import { cartLines } from "~/apollo/fragments/cartLines"; export const cart = gql` ${cartFields} ${cartLines} fragment cart on Cart { ...cartFields ...cartLines } `;
from trees.binarytree import BinaryTree r = BinaryTree('a') print r.get_root_value() print r.get_left_child() r.insert_left('b') print r.get_left_child() print r.get_left_child().get_root_value() r.insert_right('c') print r.get_right_child() print r.get_right_child().get_root_value() r.get_right_child().set_root_value...
require 'exponential_backoff' module PowerTrack # A utility class that manges an exponential backoff retry pattern. # Additionally, this king of retrier can be reset or stopped by the code being # retried. class Retrier attr_reader :retries, :max_retries # the default minimum number of seconds b/w 2 a...
# The Default Execution Policy is set to restricted, you can see it by typing: # Get-ExecutionPolicy # You should type the following to make it go to unrestricted mode: # Set-ExecutionPolicy unrestricted # in admin mode $latest_diary = Get-ChildItem *-Diary.md | Resolve-Path -Relative |Sort -desc |Select-Obj...
<?php namespace Phpactor\DocblockParser\Ast\Type; use Phpactor\DocblockParser\Ast\TypeNode; use Phpactor\DocblockParser\Ast\Token; class NullableNode extends TypeNode { protected const CHILD_NAMES = [ 'nullable', 'type', ]; /** * @var Token */ public $nullable; /** ...
# encoding: UTF-8 require_relative '../../test_helper' module Cor1440Gen class ProyectoTest < ActiveSupport::TestCase PRUEBA_PROYECTO = { id: 1000, nombre: "Proyecto", fechacreacion: "2015-04-20", created_at: "2015-04-20" } setup do Rails.application.config.x.formato_fech...
/*! This example demonstrates more complex nesting techniques. !*/ #[derive(Default)] struct Foo { int: i32, float: f32, string: String, } // Demonstrate how to create pseudo 'on change' callbacks by aliasing the properties as actions // Specify before or after on change by changing the order in which they are list...
// WITH_STDLIB package test // val x1: 3 <!DEBUG_INFO_CONSTANT_VALUE("3")!>val x1 = 1 + 2<!> // val x2: 3.toLong() <!DEBUG_INFO_CONSTANT_VALUE("3.toLong()")!>val x2 = 1 + 2L<!> // val x3: 3 <!DEBUG_INFO_CONSTANT_VALUE("3")!>val x3 = 1.toShort() + 2.toByte()<!> // val x4: 3 <!DEBUG_INFO_CONSTANT_VALUE("3")!>val x4 =...
/* * 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 You under the Apache License, Version 2.0 * (the "License"); you may not u...
<?php namespace App\Http\Controllers\Voyager; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\CicLog; use App\User; use App\HistoryLog_View; use App\Referal; use App\Agencys; use Illuminate\Support\Facades\Auth; use Illuminate\Pagination\Paginator; class ReferalsController extends Controlle...
//Coded by Lujke #include <std.h> inherit OBJECT; void create() { ::create(); set_name("wisp of hair"); set_id( ({"hair","wisp","wisp of hair" }) ); set_short("%^BOLD%^%^BLACK%^A %^RESET%^wisp %^BOLD%^%^BLACK%^of black" +" hair"); set_weight(1); set_long("%^BOLD%^%^BLACK%^A few s...
# Contains details for a user defined dashboard class Dashboard < ActiveRecord::Base attr_accessible :name end
package eu.qrowd_project.wp6.transportation_mode_learning.vocab import org.apache.jena.rdf.model.{Property, ResourceFactory} /** * This vocabulary is incomplete!!! * * TODO: Finish this! */ object DC { val ns = "http://purl.org/dc/elements/1.1/" // Classes // Object properties val creator: Property ...
import {Component, Host, Input, OnInit} from '@angular/core'; import { AbstractControl, ControlContainer, FormBuilder, FormGroup, FormGroupDirective, Validators } from "@angular/forms"; import {LocalDataSource} from "ng2-smart-table"; import {MarkerRoleService} from "./marker-role.service"; import {RoleEnti...
#!/bin/sh node --version | grep ^v12 || { echo "Please install Node.js v12.x first. You can use scripts/install-nvm.sh to install Node.js." >&2 exit 1 } command -v python3 || { echo "Please install Python 3 first." >&2 exit 1 } echo "Installing development tools..." sudo yum -q groupinstall -y 'Development To...
class ImageDownloaderService BUCKET_NAME = 'cydhub-images' # @param [Rack::Multipart::UploadedFile] image # @param [String] image_key def initialize s3 = Aws::S3::Resource.new(client: Aws::S3::Client.new) @bucket = s3.bucket(BUCKET_NAME) || s3.create_bucket(bucket: BUCKET_NAME) end def self.get_url...
using System.Collections.Generic; using System; namespace Shape { public interface IShape { Type Symbol {get;} Attributes Attributes {get;} ShapeGraph Graph {get;} (uint, uint) Locator {get;} HashSet<string> Control {get;} VirtualConnection VC {get; set;} Ver...
<?php namespace ExcelMerge\Tasks; /** * Modifies the "xl/workbook.xml" file to contain one more worksheet. * * @package ExcelMerge\Tasks */ class Workbook extends MergeTask { public function merge() { /** * 7. xl/workbook.xml * => add * <sheet name="{New sheet}" sheetId="{N}" r:id="...
/** * Oxnan: double pendulum with random colours * * Equations by Erik Neumann * https://www.myphysicslab.com/pendulum/double-pendulum-en.html * inspiration * https://www.youtube.com/watch?v=uWzPe_S-RVE (Coding Challenge #93: Double Pendulum) */ const canvas = 1080; let r1; let r2; let m1; let m2; let a1 = 0; l...
sudo chmod a+x entree sudo cp entree /usr/local/bin sudo cp entree_completion /etc/bash_completion.d/ echo "Successfully installed entree."
/* * Copyright 2021 Branko Juric, Brady Wood * * 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 l...
import 'package:data/organizations/model/firebase_organization.dart'; import 'package:data/organizations/model/firebase_organization_brand.dart'; import 'package:domain/organizations/model/organization.dart'; import 'package:domain/organizations/model/organization_brand.dart'; import 'package:domain/organizations/model...
'use strict'; const config = require('../config/server'); const SCHEMAS = require('../lib/schemas'); const Organizations = require('../handlers/organizations'); const routes = []; const API_BASE_PATH = `${config.apiPrefix}/organizations`; // GET /organizations routes.push({ method: 'GET', path: API_BASE_PATH, ...
using System; using System.Collections.Generic; using System.Data; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using Moq; using Repository; using Repository.Framework; using Simptom.Framework; using Simptom.Framework.Models; using Simptom.Framework.Repositories; namespace Simptom.Test.Unit...
<?php /** * @爱帮合伙人 * @version 1.0 * @author 丁文爽 * @date 2018/11/3 * @email:d_w@chunyimail.com * @context 后台默认控制器 */ namespace app\admin\controller; use think\Controller; use think\facade\Request; //use think\Config; //use think\Session; class Index extends Controller { /** * @access public * @pa...
class Outer { inner class Inner1 inner class Inner2(v: String) } // 1 checkNotNullParameter // 0 checkParameterIsNotNull // 1 INVOKESTATIC
PROMPT create table '"PROD_CAT_JOINER"' CREATE TABLE "PROD_CAT_JOINER" ( "PROD_ID" NUMBER NOT NULL, "PROD_CAT_ID" NUMBER NOT NULL ) ; PROMPT create table '"PRODUCT_IMAGE"' CREATE TABLE "PRODUCT_IMAGE" ( "ID" NUMBER NOT NULL, "IMAGE_URL" VARCHAR2 (100), "WIDTH" NUMBER, "HEIGHT" NUMBER ) ; PROMPT create table '"PRODUCT"'...
Select name, owner From pet Where species = 'dog' And Month(birth) < 7;
<?php namespace App\Traits; use Illuminate\Database\Eloquent\Builder; trait HasPostalCodeTrait { /** * @param Builder $builder Builder. * @param array $postalCode PostalCode. * @return Builder */ public function scopeWherePostalCodeIn(Builder $builder, array $postalCode): Builder ...
<?php namespace WSW\Money; class MoneyTest extends TestCase { public function testInstace() { $money = new Money("100", new Currency("BRL")); $this->assertInstanceOf(Money::class, $money); } public function testGetCurrency() { $money = new Money("100", new Currency("BRL"))...
# # Hello World client in Python # Connects REQ socket to tcp://localhost:5555 # Sends "Hello" to server, expects "World" back # import argparse import zmq # Parse args parser = argparse.ArgumentParser() parser.add_argument("-p", "--port", help="Port to connect to", required=True, type=int) parser.add_argument...
<?php namespace Admin\Model; use Think\Model; class OrderModel extends Model { //下单时允许表单的字段 protected $insertFields = array('shr_name','shr_tel','shr_province','shr_city','shr_area','shr_address'); //protected $updateFields = array('id','type_name'); //下单时的表单验证规则 protected $_validate = array( array('shr_na...
<?php use Faker\Generator as Faker; $factory->define(App\DataRegister::class, function (Faker $faker) { $sensor_id = $faker->numberBetween(1,150); $field_id = $sensor_id % 5; if($field_id == 0){ $value = $faker->numberBetween(0,1); $field_id = 5; }else if($field_id == 1){ ...
package com.edricchan.studybuddy.extensions import android.app.Activity import android.content.Context import android.widget.Toast import androidx.annotation.StringRes import androidx.fragment.app.Fragment /** * Shows a [Toast] with the specified options. * @param message The message to be shown to the user as a [C...
#/usr/bin/env bash function _keep() { local cur prev commands COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" commands="edit github_token grep init list new pull push rm run update" case "$prev" in run|rm) mapfile -t COMPREPLY < <(compgen -W "$(keep completion --b...
#!/bin/sh -e __CURRENT__=`pwd` __DIR__=$(cd "$(dirname "$0")";pwd) # show dir info cd ${__DIR__} && pwd ls -al / && echo "" # show system info uname -a && echo "" # show php info php -v && echo "" # compile in docker ./docker-compile.sh # swoole info php --ri swoole # alpine if [ "`apk 2>&1 | grep apk-tools`"x !=...
package com.banno.gordon import org.gradle.api.model.ObjectFactory import org.gradle.api.provider.Property import org.gradle.kotlin.dsl.property import javax.inject.Inject abstract class GordonExtension @Inject constructor( objects: ObjectFactory ) { val poolingStrategy: Property<PoolingStrategy> = objects.p...
import * as React from "react"; import ReactTooltip from "react-tooltip"; import { CELL_TYPE, ICellOutputProps, IStore } from "../../types"; import { useSelector } from "react-redux"; import { Media, RichMedia } from "@nteract/outputs"; import { MediaGIF, MediaHTML, MediaJavascript, MediaJPG, MediaPlotly, ...
import _ts from 'typescript' import commander from 'commander' import * as path from 'path' import * as fs from 'fs' import { Service } from '../service' const pkg = require('../../package.json') function loadTS(currentDir: string) { const tsPath = path.resolve(currentDir, './node_modules/typescript/lib/typescript....
# suggestparse argparse extension to allow command suggestions for invalid commands based on difflib closest_matches function. ## Installation To install ```pip install suggestparse``` ## Example ```python def test(): parser = SuggestingArgumentParser() parser.add_argument('--add', '-a', help='add') par...
use serde::Serialize; use crate::responses::errors::*; pub type InternalServerError = BaseErrorResponse<InternalServerErrorAttributes>; impl InternalServerError { pub fn new() -> Self { InternalServerError { data: BaseErrorResponseData { id: BaseErrorResponseId::error_internal...
##################################################################################### # # Copyright (c) Microsoft Corporation. All rights reserved. # # This source code is subject to terms and conditions of the Microsoft Public License. A # copy of the license can be found in the License.html file at the root of...
package xyz.teamgravity.parkingspotsaver.data.local object ParkingSpotConst { /** * Database name */ const val NAME = "parking_spot_database" /** * Database version */ const val VERSION = 1 /** * Table Parking Spot * Model class -> [xyz.teamgravity.parkingspotsaver....
#!/usr/bin/python # -*- coding: utf8 -*- from __future__ import print_function from astropy.io import fits import numpy as np from scipy.interpolate import interp1d import argparse from .utils import vac2air def convert2fits(fname, fout=None, dA=0.01, unit='a', read=True, vac=None): """Convert a 2-column ASCII t...
--- id: url title: Url --- import urlField from '@site/static/img/guides-and-concepts/fields/url/urlField.png' This field lets you embed a link. It uses Ant Design's [<Typography.Link\>](https://ant.design/components/typography/) component. You can pass a URL in its `value` prop and you can show a text in its place b...
# Including recipes execute 'apt-get update' do command 'apt-get update --fix-missing --quiet' action :run only_if { platform_family?('debian') } end include_recipe 'vim' include_recipe 'zsh' include_recipe 'tmux' include_recipe 'htop' include_recipe 'git' include_recipe 'curl' include_recipe 'zlib' include_re...
#!/usr/bin/env bash set -e unset AZURE_CLI_DIAGNOSTICS_TELEMETRY pip install azure-storage-blob==1.1.0 wd=`cd $(dirname $0); pwd` if [ -z "$PUBLISH_STORAGE_SAS" ] || [ -z "$PUBLISH_STORAGE_ACCT" ] || [ -z "$PUBLISH_CONTAINER" ]; then echo 'Missing publish storage account credential. Skip publishing to store.' ...
package p08_Card_Game; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamR...
## Build ## Make sure [netmap](https://github.com/luigirizzo/netmap) installed. Build: ``` make ``` Build with debug info: ``` make debug ``` ## Nmpingd ## `nmpingd` serves: 1. ARP request, 2. ICMP Echo Request. Run on netmap enabled box: ``` ./netmapinetd -i netmap:eth0 -a 172.15.11.9 -m fa:16:3e:92:a2:af ```...
<?php namespace App\Console\Commands\Cron; use Illuminate\Console\Command; use App\Models\Order; use App\Notifications\ChangedOrderStatus; class CartCron extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'cart'; /** ...
c Write the showered events in stdhep format. Requires the stdhep (and c mcfio) libraries. The event file will be identical to the Les Houches c parton-level input event file with ".hep" appended. C---------------------------------------------------------------------- SUBROUTINE RCLOS() C DUMMY IF HBOOK IS US...
package pw.binom.sceneEditor import com.intellij.lang.Language import com.intellij.openapi.fileEditor.FileEditor import com.intellij.openapi.fileEditor.FileEditorPolicy import com.intellij.openapi.fileEditor.FileEditorProvider import com.intellij.openapi.fileTypes.FileType import com.intellij.openapi.project.DumbAware...
#!/bin/sh if [ "$1" != "" ]; then PROG=$1 else PROG=../${BUILD:='./build'}/spin2cpp fi CC=propeller-elf-gcc ok="ok" endmsg=$ok # # check error messages # for i in error*.spin do j=`basename $i .spin` $PROG -Wall --noheader -DCOUNT=4 $i >$j.err 2>&1 if diff -ub Expect/$j.err $j.err then rm -f $j.err...
# frozen_string_literal: true RSpec.describe Osakana::Monitor, :vcr do subject { Osakana::Monitor } describe ".check_newly_domains" do it "should output results to STDOUT" do output = capture(:stdout) { subject.check_newly_domains "docomo" } expect(output).to include "docomo" end end desc...
require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper") describe "lazy dependency resolution via provide_with_objects" do subject { new_object_context } before do append_test_load_path "lazy_resolution" require 'hobbit/baggins' require 'hobbit/shire' require 'hobbit/precious' r...
REBOL [ Title: "Red/System linker" Author: "Nenad Rakocevic" File: %linker.r Tabs: 4 Rights: "Copyright (C) 2011-2015 Nenad Rakocevic. All rights reserved." License: "BSD-3 - https://github.com/red/red/blob/master/BSD-3-License.txt" ] linker: context [ version: 1.0.0 ;-- emitted linker version c...
using System; namespace HolisticWare.Quiz.BusinessDomainLogic { /// <summary> /// Question type. /// </summary> /// <see cref="https://docs.moodle.org/29/en/Question_types"/> /// <see cref="http://help.surveymonkey.com/articles/en_US/kb/Available-question-types-and-formatting-options"/> /// <see cref=""/> /// ...
<?php declare(strict_types=1); namespace Zorachka\Framework\Queue; use Psr\EventDispatcher\ListenerProviderInterface; final class QueueableListenerProvider implements ListenerProviderInterface { /** @var array */ private $listeners = []; private Queue $queue; public function __construct(Queue $queu...
#project name Wairimu Portfolio #author name Irene Wairimu Mungai #description of project It is a landing page for my programming portfolio #project setup instructions git clone https://github.com/nimowairimu/wairimu-portfolio-.git cd ../Deskttop/portfolio/index.html insta...
# Onyx-Language A programming language combining the best features of the functional, imperative and object-oriented paradigms.
package com.journaler.api.data import com.fasterxml.jackson.annotation.JsonInclude import org.hibernate.annotations.CreationTimestamp import org.hibernate.annotations.GenericGenerator import org.hibernate.annotations.UpdateTimestamp import java.util.* import javax.persistence.* @Entity @Table(name = "todo") @JsonIncl...
/* * Copyright (c) 2011 - 2016, Zhenyu Wu, NEC Labs America Inc. * All rights reserved. * * 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 ...
(ns conjure.nvim (:require [conjure.nvim.api :as api] [conjure.util :as util])) (def ^:dynamic ctx "Dynamic var to be bound to some context map." nil) (defn current-ctx "Context contains useful data that we don't watch to fetch twice while building code to eval. This function performs those cost...
using System.Linq; using System.Net; using System.Net.Http; using System.Threading.Tasks; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.Azure.WebJobs.Host; using System; using Microsoft.Azure.ApiHub; namespace TextEvaluation { public static class ScoreText { [Functio...
import React from "react"; import "./Icon.css"; import Cloudy from "../../assets/cloudy.svg"; import Rain from "../../assets/rain.svg"; import Snowing from "../../assets/snowing.svg"; import Sun from "../../assets/sun.svg"; import Thermometer from "../../assets/thermometer.svg"; const Icon = (props) => { switch (pro...
<?php namespace Drupal\salesforce_mapping\Plugin\SalesforceMappingField; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Form\FormStateInterface; use Drupal\salesforce_mapping\SalesforceMappingFieldPluginBase; use Drupal\salesforce_mapping\Entity\SalesforceMappingInterface; /** * Adapter for entity properti...
class MyFormView(FormView): def get_initial(self): initial = super(MyFormView, self).get_initial() # An actual initial value that dependes on some logic initial['my_field'] = 1 if self.request.GET.get('param') == 'value' else 2 # Not really part of the logic, just to avoid typing th...
package com.google.android.gms.internal.ads; import java.lang.Thread.UncaughtExceptionHandler; /* renamed from: com.google.android.gms.internal.ads.ob */ final class C9618ob implements UncaughtExceptionHandler { /* renamed from: a */ private final /* synthetic */ UncaughtExceptionHandler f22829a; /* ren...
import styled from "styled-components"; import { Density } from "../styles/Density"; type Props = { column?: boolean; row?: boolean; spaced?: boolean; }; export const StackView = styled.div` display: flex; width: 100%; flex-direction: ${(props: Props) => (props.column ? "column" : "row")}; flex-directio...
Rare variants analysis ================ ### 1. Rare variants with MAF &lt; 1% ![](regenie_files/figure-gfm/res_1_q_manhattan_plot-1.png)<!-- --> ### 2. Rare variants with MAF &lt; 0.1% ![](regenie_files/figure-gfm/res_01_q_manhattan_plot-1.png)<!-- -->
const fs = require('fs'); const path = require('path'); const { readdir, readFile, copyFile, mkdir } = require('fs/promises'); const copyDir = require('../04-copy-directory/index.js'); const createBundle = require('../05-merge-styles/index.js'); async function copyAssets(distFolder) { const filesFolder = path.join(_...
import Container from '@components/layout/Container'; import { Col, Row } from '@components/layout/Grid'; import Link from '@components/link/Link'; import * as React from 'react'; import { FooterBottom, FooterContainer, FooterInfoSummary, FooterLinks, FooterLinksHeader, FooterLinksItem, FooterLinksItemLin...
# reportMetricInfo |Element|Type|Description| |-------|----|-----------| |`id` |`string` | The id of the metric. | |`name` |`string` | The friendly name of the metric. | |`type` |`string` | The type of the metric \(number, percent, currency, time\). | |`decimals` |`integer` | The number of decimal places in the met...
/** @file This file contains the tests for the SecureSystemAgentConfiguration bit Copyright (c) 2017, Intel Corporation. All rights reserved.<BR> SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include "HstiSiliconDxe.h" /** Run tests for SecureSystemAgentConfiguration bit **/ VOID CheckSecureSy...
using System.Collections.Generic; using NetAdmin.Common.Abstractions; namespace NetAdmin.Application { public class TableList : IResponse { public IList<string> Tables { get; internal set; } } }
(ns metabase.test.automagic-dashboards "Helper functions and macros for writing tests for automagic dashboards." (:require [clojure.test :refer :all] [metabase.mbql.normalize :as normalize] [metabase.mbql.schema :as mbql.s] [metabase.models :refer [Card Collection Dashboard Dashb...
import 'package:flutter/material.dart'; import 'package:nintendoswitch/app/modules/keyboard/controller/keyboard_controller.dart'; class BigButton extends StatelessWidget { final double positionalBottom; final double positionalLeft; final double sizeButton; const BigButton( {Key? key, required this....
// ----------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ----------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Diagnostics.Contracts; namespace System.Compo...