text stringlengths 27 775k |
|---|
<?php
/**
* User: Alex Gusev <alex@flancer64.com>
*/
namespace Praxigento\Core\App\Setup\Dem;
use Praxigento\Core\App\Setup\Dem\Cfg as Dem;
include_once(__DIR__ . '/../../phpunit_bootstrap.php');
class Parser_UnitTest extends \Praxigento\Core\Test\BaseCase\Mockery
{
const ALIAS = 'alias';
const DEFAULT_VA... |
#!/usr/bin/env bash
if [ -n "$JS_STAGED" ];
then
npx eslint $JS_STAGED
fi
if [ -n "$SCSS_STAGED" ];
then
npx stylelint $SCSS_STAGED
fi
|
(in-package #:kell-calculus)
(defclass pattern-language ()
(grammar :initarg :grammar))
(defvar *current-pattern-language* nil
"This is the currently active pattern language.")
;;; A pattern ξ is an element of a pattern language L. A pattern ξ acts as a
;;; binder in the calculus. A pattern can bind name variabl... |
// FILE: 1.kt
package test
inline fun f() {}
inline fun g() {}
inline fun h() {}
inline fun together() {
f() // new range 1.kt:N -> 1.kt:4
h() // new range 1.kt:N+1 -> 1.kt:6 because of different call site
g() // new range 1.kt:N+2 -> 1.kt:5 for the same reason
}
// FILE: 2.kt
import test.*
fun box(): S... |
# image testing
import time
import tkinter as tk
import tkinter.font
import Fusion.Gui.GuiTypes as gt
import Fusion.Utils.IVTimer as IVTimer
#import Fusion.Gui.GuiUtils as gut
class ActiveImageWidget(tk.Canvas):
""" Active Image Widget Class """
#--
def __init__(self, master, cnf={}, filenames=[], fps=0.125, **... |
---
title: "Animating SVG with CSS"
displayTitle: "Animating SVG with CSS"
date: 2017-01-08 14:12:00
metaDescription: "How to use SVG and CSS to create dynamic imagery"
metaImage: /static/images/meta/apple-touch-icon.png
metaKeywords: graphics, vector, animation, css
metaOgType: "article"
author: "0xADADA"
license: cc-... |
# -*- coding: utf-8 -*-
import logging
from launchpad_reporting.launchpad.lpdata import LaunchpadData
from launchpad_reporting.launchpad.release_chart import ReleaseChart
from launchpad_reporting.db import db
LOG = logging.getLogger(__name__)
class LaunchpadClient(object):
def __init__(self):
self.l... |
//
// Typed.h
// Typed
//
// Created by Martin Kiss on 24 May 2017.
// https://github.com/Tricertops/Typed
//
// The MIT License (MIT)
// Copyright © 2017 Martin Kiss
//
@import Foundation;
//! Swift-like macro for type inference of local or global variables.
#define var __auto_type
//! Swift-like macro fo... |
using System;
namespace SixtenLabs.Simulacrum
{
public interface ISimulation : IDisposable
{
ISimulator GetSimulatorByName(string name);
void ActivateSimulator(string name);
void DeactivateSimulator(string name);
void Load();
void Update(double tick);
void Render(double tick);
}
}
|
class AddUserIdToReports < ActiveRecord::Migration[5.1]
def change
Report.delete_all
add_reference :reports, :user, null: false, index: true
end
end
|
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
-- | Caches for the raw API
module ExchangeRates.Cache
( ExchangeRatesCache(..)
, insertRates
, ExchangeRatesCacheResult(..)
, lookupRates
, emptyExchangeRa... |
extern crate byteorder;
extern crate docopt;
extern crate gba_tools;
#[macro_use]
extern crate serde_derive;
use byteorder::{ByteOrder, BigEndian, LittleEndian};
use docopt::Docopt;
use gba_tools::format_offset;
use gba_tools::streams::{InputStream, OutputStream};
use std::io::{Read, Write};
const USAGE: &'static str... |
#!/bin/bash
# first check if wireless is connected.
while [ iwgetid = "" ]; do
echo "No WIfi"
done
# make sure to install "ntfy" for sending notifications
# you can modify this command to send a notification to any service
# that ntfy supports. I have just defaulted it to Telegram.
#
# If yo... |
# Why not?
module Totp
def self.gen(text)
require 'rotp'
if (match = text.match(/2fa (.*?)$/i))
key = match.captures[0]
end
totp = ROTP::TOTP.new(key)
"Current OTP: #{totp.now}"
end
end
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@digitalpersona/services](./services.md) > [LicenseInfo](./services.licenseinfo.md)
## LicenseInfo interface
<b>Signature:</b>
```typescript
export interface LicenseInfo
```
## Properties
| ... |
using System;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Text;
using System.Threading;
using System.IO;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Linq;
using System.Collections;
public class clsSeed
{
private static... |
package objektwerks.service
import objektwerks.datetime.DateTime
import objektwerks.entity.*
trait Store:
def register(email: String): Option[Account]
def login(email: String, pin: String): Option[Account]
def isAuthorized(license: String): Boolean
def deactivate(license: String): Option[Account]
def reac... |
#ifndef SOUND_H
#define SOUND_H
#include <QObject>
#include <SFML/Audio.hpp>
class Game ;
class Sound : public QObject
{
Q_OBJECT
private:
Game * game ;
sf::SoundBuffer buf ;
sf::Sound snd ;
public:
explicit Sound(QString filename, Game * game, QObject *parent = 0);
void pauseOrRe... |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace CursoMVCa.Models
{
public class Categoria
{
public int Id { get; set; }
[Display(Name = "Descrição")]
[Required(ErrorMe... |
#!/bin/bash -e
###########################
# Build/download Extension #
###########################
if [ "$GIT_REPO" != "" ]; then
if [ "$GIT_BRANCH" == "" ]; then
GIT_BRANCH="master"
fi
# Install Maven
cd /opt/jboss
curl -s https://apache.uib.no/maven/maven-3/3.5.4/binaries/apache-maven-... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* Class Product
* @package App\Models
* @method static self findOrFail(integer $id)
* @method static self whereNull(string $column_name)
* @method max(string $column_name)
* @property integer $id
* @property integer $category_id
* @prope... |
var test = require('tape')
var permutate = require('./index.js')
test('first test', function (t) {
var elements = [1, 2, 3, 4, 5]
var output = permutate(elements)
t.equal(output.length, factorial(elements.length))
t.end()
})
test('second test', function (t) {
var elements = ['rock', 'paper', 'scissors']
v... |
var list = ['Apples', 'Bananas', 'Pears', 'Grape', 'Durians']
// var list = new Array(1, 2, 3, 4, 5);
//
//list[0] = 'Apple';
//
// for (var i = 0; i < list.length; i++)
// {
// console.log(list[i]);
// }
//
// // Since ES5 (2015)
// for (var item of list)
// {
// console.log(item.toUpperCase());
// }
//
list.p... |
/*
* 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")... |
/*
Copyright 2017 Vector Creations 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 to in writing, sof... |
package main
import (
"flag"
"github.com/pauarge/decWebRTC/src/server"
"github.com/pauarge/decWebRTC/src/common"
)
func main() {
gossipPortPtr := flag.Int("gossipPort", common.GossipPort, "Port in which gossips are listened")
guiPortPtr := flag.Int("guiPort", common.GuiPort, "Port in which the GUI is offered")
... |
package no.nav.registre.testnorge.sykemelding.exception;
public class ResourceLoaderException extends RuntimeException {
public ResourceLoaderException(String message, Throwable cause) {
super(message, cause);
}
}
|
# Blog -- Frank Hampus Weslien
My personal blog built with hakyll.
## Todo
- [ x ] Add feeds
- [ x ] Add sitemap
- [ x ] Fix index page
- [ x ] dynamic css
- [ x ] deploy command
- [ x ] refactor css
- [ x ] fix project page
- [ x ] fix About
- [ x ] Hakyll reviwed
- [ x ] The Crimson King
- [ x ] Proper art image a... |
import 'package:equatable/equatable.dart';
import 'package:meta/meta.dart';
class ItemUpdatedInfo extends Equatable {
final int amount;
const ItemUpdatedInfo({
@required this.amount,
});
@override
List<Object> get props => [amount];
@override
String toString() {
return 'ItemUpdatedInfo { amoun... |
package org.snpeff.snpEffect.testCases.unity;
import org.junit.Test;
import org.snpeff.interval.Variant;
import org.snpeff.snpEffect.Config;
import org.snpeff.snpEffect.HgvsDna;
import org.snpeff.snpEffect.HgvsProtein;
import org.snpeff.snpEffect.VariantEffect;
import org.snpeff.snpEffect.VariantEffects;
import org.sn... |
import { useEffect } from 'preact/hooks';
export function useKeyboardEvents({
disabled,
onUpdate,
onDelete,
onEnter,
}: {
disabled: boolean;
onUpdate: (letter: string) => void;
onDelete: () => void;
onEnter: () => void;
}) {
useEffect(() => {
if (!disabled) {
function onKeyDown(e: KeyboardE... |
import React from 'react'
import cloudLogo from 'public/posthog-logo-cloud.svg'
import selfHostedLogo from 'public/posthog-logo-selfhosted.svg'
import { preflightLogic } from 'scenes/PreflightCheck/logic'
import { useValues } from 'kea'
export function WelcomeLogo({ view }: { view?: string }): JSX.Element {
const ... |
require 'spec_helper'
require 'hiera-puppet-helper'
describe 'rjil::nova::compute' do
let :facts do
{
:operatingsystem => 'Debian',
:osfamily => 'Debian',
:concat_basedir => '/tmp',
:hostname => 'node1',
:ipaddress => '10.1.0.10',
}
end
let :hiera... |
`io` is an example module which wraps functions defined in libc's `stdio.h`.
Note that `FILE *` is replaced with another type `file_t`.
This implementation is incomplete, only limited APIs are wrapped.
Please see [the source](src/io.h).
|
module Vector3 where
import Data.Ix
data Vector3 = Vector3 !Int !Int !Int
deriving (Eq, Ord)
instance Show Vector3 where
show (Vector3 x y z) = show (x, y, z)
instance Ix Vector3 where
range (Vector3 xl yl zl, Vector3 xu yu zu) =
fromTuple <$> range ((xl, yl, zl), (xu, yu, zu))
inRange (Vector3 xl yl zl... |
part of g3.techlab;
class CodeFunctionReturnConfig extends CodeConfigNode<CodeFunctionReturn> {
CodeFunctionReturnConfig(
NodeBuildFunc<CodeFunctionReturn> buildFunc, Node child)
: super(buildFunc, child);
factory CodeFunctionReturnConfig.forDartLike(Node child) =>
CodeFunctionReturnConfig((cont... |
import { OnInit, Input, Component } from '@angular/core';
import { XrpAddressTransaction } from 'src/app/classes/XRP/XrpAddressTransaction';
import { XrpAddress } from 'src/app/classes/XRP/XrpAddress';
import { XrpTransaction } from 'src/app/classes/XRP/XrpTransaction';
@Component({
selector: 'xrp-results',
te... |
// 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.
part of spritewidget;
/// A NineSliceSprite is similar to a [Sprite], but it it can strech its
/// inner area to fit the size of the [Node]. This is idea... |
<?php
/**
* Mètode per fer logout
*
* @author : Biel <bielbcm@gmail.com>
*
*/
session_start();
unset($_SESSION['isLogged']);
unset($_SESSION['authKey']);
header("Location: /");
die();
|
// Copyright 2019 Google LLC, Andrew Hines
//
// 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... |
use super::aacoordinatetransformation;
use super::aaglobe;
pub fn sun_semidiameter_a(delta: f64) -> f64
{
959.63 / delta
}
pub fn mercury_semidiameter_a(delta: f64) -> f64
{
3.34 / delta
}
pub fn venus_semidiameter_a(delta: f64) -> f64
{
8.41 / delta
}
pub fn mars_semidiameter_a(delta:... |
from .gpu import set_gpu, run_and_release
from .keras_tuner_hiplot.kt2hip import fetch_my_experiment
from .debug import inspect_distances
from .visualize import (visualize_distance_distribution, plot_history,
visualize_pairs, visualize_distances)
|
# frozen_string_literal: true
class Post < ApplicationRecord
validates :title, presence: true
validates :body, presence: true
belongs_to :manager, foreign_key: :manager_id
default_scope { order(:created_at) }
scope :important, -> { where(important: true) }
POSTS_PER_PAGE = 15
self.per_page = POSTS_PE... |
--
-- Logically, the first thing processed in SQL is the FROM
--
FROM FactCallCenter
--
-- It is common to use an "alias" for tables in SQL
--
FROM FactCallCenter FCC
--
-- Next, SQL considers filters. We're not there yet.
-- Just SELECT all the columns in the table using the
-- "*" wildcard.
--... |
require 'rails_helper'
RSpec.describe SessionsHelper, type: :helper do
let (:user) { FactoryGirl.create(:user) }
context "logged in but not remembered" do
it "will log a user into a session" do
log_in(user)
expect(current_user).to eql user
expect(logged_in?).to be true
expect(cookies[... |
package com.pestphp.pest.templates
import com.intellij.openapi.editor.Document
import com.intellij.psi.PsiElement
import com.jetbrains.php.lang.psi.elements.StringLiteralExpression
import com.jetbrains.php.postfixCompletion.PhpPostfixUtils
import com.jetbrains.php.postfixCompletion.PhpStringBasedPostfixTemplate
import... |
CREATE VIEW [dbo].[ViewDebtsTransactions]
AS SELECT
dbo.Transactions.Id as TransactionId,
dbo.Transactions.Type as TransactionType,
dbo.Transactions.Date as TransactionDate,
dbo.Transactions.Amount as TransactionAmount,
dbo.Debts.Id as DebtId,
dbo.Contracts.Id as ContractId,
dbo.Contracts.Name as Contrac... |
// Copyright (c) 2022, 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.
import 'dart:async';
import 'package:_fe_analyzer_shared/src/macros/api.dart';
import 'api_test_expectat... |
#line 10 "bitlang.org"
#ifndef BITLANG_H
#define BITLANG_H
typedef struct bitlang bitlang;
typedef struct bitlang_state bitlang_state;
#ifdef BITLANG_PRIV
#line 42 "bitlang.org"
struct bitlang {
int stk[8];
int stkpos;
int reg[8];
int err;
};
#line 10 "bitlang.org"
#line 65 "bitlang.org"
struct bitlang... |
# A set of methods for interacting with this cookbooks attributes
# and any attributes being set on a new resource
class Chef
class Recipe
class NetworkInterfaces
def self.conf(interface, workingnode = @node)
if workingnode.key?('network_interfaces') && workingnode['network_interfaces'].key?('interf... |
package org.recast4j.polyanya;
import org.recast4j.detour.MeshTile;
import javax.print.DocFlavor;
import java.util.Objects;
/**
* 坐标点位置信息
*
* @author Caojunqi
*/
public class PointLocation {
Type type;
// polyIndex,-1表示障碍物
int poly1, poly2;
// If on edge, vertex1/vertex2 represents the left/righ... |
a = []
print(isinstance(a, list))
print(isinstance(a, tuple))
print(isinstance(a, object))
|
#! /bin/sh
. ./config
mv Makefile.fftw ${FFTW_SRCDIR}/Makefile.am
mv Makefile.rfftw ${RFFTW_SRCDIR}/Makefile.am
mv ${REAL2HC_PREFIX}*.c ${HC2REAL_PREFIX}*.c ${HC2HC_FORWARD_PREFIX}*.c \
${HC2HC_BACKWARD_PREFIX}*.c rconfig.c ${RFFTW_SRCDIR}
mv *.c ${FFTW_SRCDIR}
|
# hellogithub
github에서 직접 생성한 프로젝트 예제입니다
|
package org.javaee7.jms.batch;
import org.javaee7.util.BatchTestHelper;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.junit.Arquillian;
import org.jboss.arquillian.junit.InSequence;
import org.jboss.shrinkwrap.api.ArchivePaths;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import... |
function Remove-AEDeviceContent {
<#
.SYNOPSIS
Removes an ActiveEfficiency Device content entry.
.DESCRIPTION
The Remove-AEDeviceContent Cmdlet removes an ActiveEfficiency Devices content entry.
.EXAMPLE
PS C:\>
#>
[CmdLetBinding(SupportsShouldP... |
package com.coveong.bankacountscanner.models
data class AccountInfo constructor(
var bankName: String,
var account: String
) {
override fun toString(): String = "$bankName $account"
}
|
//! Creatures plugin
use bevy::core::FixedTimestep;
use bevy::prelude::*;
use bevy_inspector_egui::RegisterInspectable;
use crate::components::creatures::*;
use crate::components::physics::*;
use crate::components::*;
use crate::states::*;
use crate::systems::creatures::*;
use crate::systems::physics::*;
pub struct ... |
// Copyright 2014 David Kopec
// Created for Dart for Absolute Beginners, an Apress title
// This source code is released under the terms outlined in license.txt in the
// source code respository's root directory.
import 'dart:html';
import 'dart:async';
String secretWord;
int numCorrect = 0;
int numMissed = 0;
int s... |
package main
import (
"fmt"
"github.com/bitrise-io/go-utils/log"
"github.com/bitrise-io/go-xcode/xcpretty"
version "github.com/hashicorp/go-version"
)
type xcprettyInstallationCheckError struct {
Message string
}
func (e *xcprettyInstallationCheckError) Error() string {
return fmt.Sprintf("failed to check if ... |
using pdxpartyparrot.Core;
using pdxpartyparrot.Game.State;
using UnityEngine;
using UnityEngine.AI;
namespace pdxpartyparrot.Game.World
{
[RequireComponent(typeof(Collider))]
[RequireComponent(typeof(NavMeshObstacle))]
public class StaticObstacle : MonoBehaviour
{
private Collider _collider;
... |
import '../async_event_transformer/async.event_transformer.dart';
import '../async_event_transformer/saving.async.event_transformer.dart';
import '../event_transformer.dart';
import '../reactive_event_transformer/reactive.event_transformer.dart';
import '../reactive_event_transformer/saving.reactive.event_transformer.d... |
package base
import (
"encoding/hex"
"fmt"
"log"
"strconv"
"strings"
)
//UUIDToHex UUID To Hex
func UUIDToHex() {
id := "117c786be2fc1ce33a8b456c"
// "9223372036854775807"
src, err := hex.DecodeString(id)
if err != nil {
log.Fatal(err)
}
var s string
for _, b := range src {
ss := strconv.Itoa(int(b)... |
package tccrouter.gbl.dao;
/**
* TO DO
* The intent is to make a .properties file to read the DB properties dynamically,
* but for the meanwhile edit Application Connection for your specific connection
*
*/
public interface JDBCProperties {
public static final String DB_PASSWORD = "gblprod1";
publ... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Html;
using Fluqi.Extension;
using Fluqi.Extension.Helpers;
using Microsoft.VisualBasic;
namespace Fluqi.Widget.jSelectMenu
{
/// <summary>
/// A set of properties to a... |
<?php
namespace App\Http\Controllers\Admin;
use App\Models\offer;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
class AdminController extends Base... |
<?php
declare(strict_types=1);
namespace YandexPayout;
trait TestDeposition
{
public function canSend(): bool
{
$this->makeRequest('testDeposition');
return $this->isSuccessRequest();
}
private function isAccessibleId(): bool
{
$this->makeRequest('testDeposition');
... |
require 'rails_helper'
RSpec.describe History::LedgerImporterJob, type: :job do
let(:result){ subject.perform(sequence) }
context "when importing the first ledger" do
let(:sequence){ 1 }
let(:stellar_core_ledger){ StellarCore::LedgerHeader.where(ledgerseq: sequence).first }
it "creates a new History:... |
// Model Index
// User Model
const User = require('./User');
// Thought Model
const Thought = require('./Thought');
// Export the models
module.exports = { User, Thought } |
<?php
namespace Butler\Graphql\Tests\Queries;
class DataLoader
{
public function __invoke($root, $args, $context)
{
return [
['name' => 'Thing 1'],
['name' => 'Thing 2'],
];
}
}
|
# Français :fr:
# Utilité
IDBank est un BIN (Numéro d'identification bancaire) mis en place via l'api : Bincodes.com
# Pré-requis
npm i discord.js<br/>
npm i colors<br/>
npm i colors.js<br/>
npm i request<br/>
# Utilisation
__Pour utiliser ce code, il vous suffit de faire le prefix de votre bot (ici $) p... |
<?php
/**
* @author Basic App Dev Team <dev@basic-app.com>
* @license MIT
* @link https://basic-app.com
*/
namespace BasicApp\Config;
abstract class BaseService extends \CodeIgniter\Config\BaseService
{
public static function resetSingle(string $name)
{
$name = strtolower($name);
return p... |
#!/bin/bash
mkdir temp
export PYTHONPATH=./temp
/usr/bin/python setup.py build develop --install-dir ./temp
cp ./temp/AutoBot.egg-link $HOME/.config/deluge/plugins
rm -fr ./temp
|
# rubocop:disable Lint/UselessAssignment
require 'rails_helper'
RSpec.describe SessionsController, type: :controller do
let(:session) { Session.create!(name: 'First') }
let!(:session_params) do
session_params = { name: 'username' }
end
describe 'GET #new' do
it 'renders new session page' do
get :... |
package org.nypl.simplified.tests.mocking
import org.librarysimplified.audiobook.api.PlayerPosition
import org.nypl.simplified.books.api.BookDRMInformation
import org.nypl.simplified.books.api.BookDRMKind
import org.nypl.simplified.books.api.BookFormat
import org.nypl.simplified.books.api.BookID
import org.nypl.simpli... |
import {DailySummaryPage} from './daily-summary.po';
import {browser, logging} from 'protractor';
import {AppHeader} from './header.po';
describe('work view', () => {
let page: DailySummaryPage;
let header: AppHeader;
beforeEach(async () => {
page = new DailySummaryPage();
header = new AppHeader();
... |
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AAVPT.Library;
using AAVPT.Library.HandEvaluators.Helpers;
namespace AAVPT.UnitTests
{
[TestClass]
public class HoldHelperTests
{
[TestMethod]
public void HoldHelper_DetermineHoldHand_WhenPossibleStraightAtFront_ShouldFindIt()
... |
#!/bin/bash
mvn versions:set -DnewVersion=$1 -Pall
mvn versions:commit -Pall
|
const {GatryScraping} = require('../modules/scraping/scraping');
const express = require('express');
const serverless = require('serverless-http');
const app = express();
const router = express.Router();
router.get('/', (req, res) => {
res.writeHead(200, { 'Content-Type': 'text/html' });
res.write('<h1>Hello from... |
describe('connect', () => {
it('has no tests')
})
|
// Set colors for title text and title background to match
// the Control Panel settings for inactive window captions.
m_calCtrl1.SetColor(MCSC_TITLETEXT, ::GetSysColor(COLOR_INACTIVECAPTIONTEXT));
m_calCtrl1.SetColor(MCSC_TITLEBK, ::GetSysColor(COLOR_INACTIVECAPTION)); |
#!/bin/bash
#####################################################
# process information #
#####################################################
# find the process PID of demo_programm
# second column
./demo_program &
ps aux | grep demo_program
# how much CPU percentage and memory does th... |
<?php namespace ProcessWire;
use Symfony\Component\Dotenv\Dotenv;
/**
* ProcessWire Configuration File
*
* Site-specific configuration for ProcessWire
*
* Please see the file /wire/config.php which contains all configuration options you may
* specify here. Simply copy any of the configuration options from that ... |
// Type definitions for react-stars 2.2
// Project: https://github.com/n49/react-stars
// Definitions by: TingYuLC <https://github.com/TingYuLC>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.6
import * as React from "react";
interface ReactStarsProps {
/** Name of paren... |
use crate::scanner::pos::*;
use phf::phf_map;
#[derive(Debug, Clone)]
pub enum Literal {
Null,
Boolean(bool),
Integer(i64),
Float(f64),
String(String),
}
#[derive(Debug, Clone)]
pub struct Token {
pub token_type: TokenType,
pub lexme: String,
pub start_pos: Pos,
pub end_pos: Pos,
... |
package org.terraform.structure.monument;
import org.bukkit.Material;
import org.bukkit.block.BlockFace;
import org.terraform.coregen.PopulatorDataAbstract;
import org.terraform.data.SimpleBlock;
import org.terraform.data.Wall;
import org.terraform.structure.room.CubeRoom;
import java.util.Map.Entry;
import java.util... |
using System.Collections.Generic;
namespace Optivem.Northwind.Core.Domain.Entity
{
public partial class Product
{
public Product()
{
InventoryTransaction = new HashSet<InventoryTransaction>();
OrderDetail = new HashSet<OrderDetail>();
PurchaseOrderDetail = n... |
require_relative '../lib/elm_sprockets/compiler'
require 'tempfile'
require 'minitest/autorun'
class ElmCompilerTest < Minitest::Test
def test_compile
dirname = File.dirname(__FILE__)
Tempfile.create(["elm",".js"]) do |file|
puts file.path
ElmSprockets::Compiler.compile "#{dirname}/elm/MainTest.... |
package it.fvaleri.integ;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.TimeUnit;
import org.apache.camel.CamelContext;
import org.apache.camel.Exchange;
import org.apache.camel.Message;
import org.apache.camel.builder.NotifyBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.... |
# PlaceholderText
**有占位元素的文本显示组件**
## Example
```js
import PlaceholderText from 'mcrn-ui/PlaceholderText';
function Example(props) {
return (
<PlaceholderText
placeholder={this.placeholder}
/>
);
}
```
## Props
```js
PlaceholderText.propTypes = {
// 值
value: PropTypes.string,
// 值自定义样式
v... |
docker run -d -p 8888:8888 --name kagglepi -v ~:/notebooks unskilledcoder/kagglepi:0.1
|
import 'package:base_source/app/components/alert_dialog.dart';
import 'package:base_source/app/components/app_button.dart';
import 'package:base_source/app/components/app_theme.dart';
import 'package:base_source/app/components/dialog_loading.dart';
import 'package:base_source/app/feature/signin/viewmodels/sign_in_view_... |
import React from 'react';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import Landing from './pages/landing';
import RestsMap from './pages/RestsMap';
import Rest from './pages/Rest';
import CreateRest from './pages/CreateRest';
function Routes() {
return(
<BrowserRouter>
<Switch>
... |
/*
* Copyright (c) 2020 Ubique Innovation AG <https://www.ubique.ch>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*
* SPDX-License-Identifier: MPL-2.0
*/
p... |
-- 5.基本信息表
use car_rental_sys_db;
create table customer_info
(
id char(32) PRIMARY KEY,
customer_no char(10) UNIQUE,
customer_password char(10),
customer_name char(10),
customer_sex char(2),
customer_age smallint,
customer_id char(18) NOT NULL,
customer_tel char(15),
customer_workplace char(30),
customer_pos... |
package com.algolia.search.model.internal
internal actual object Time {
actual fun getCurrentTimeMillis(): Long {
return System.currentTimeMillis()
}
}
|
-- Copyright 2019 Google LLC
--
-- Use of this source code is governed by a BSD-style
-- license that can be found in the LICENSE file or at
-- https://developers.google.com/open-source/licenses/bsd
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module DeShadow (sourcePass, deShadowPass) where
... |
using PowerArgs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ArgsTests
{
public static class SetupCleanup
{
public static void ClearAttributeCache()
{
MemberInfoEx.cachedAttributes.Clear();
}
... |
#pragma once
#include <numeric>
#include <optional>
#include <vector>
namespace unionfind {
template<class Allocator = std::allocator<std::size_t>>
class UnionFind
{
std::vector<std::size_t, Allocator> root_;
std::vector<std::size_t, Allocator> size_;
std::size_t number_of_sets_;
public:
explicit Un... |
# placeholder comment/docstring
from schdata import Serialized, AcademicRank
def rtd_dict(root: dict) -> dict:
placeholder = dict()
for key in root:
element = root[key]
if isinstance(element, dict):
placeholder[key] = rtd_dict(element)
elif isinstance(element, list):
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.