text stringlengths 27 775k |
|---|
package by.dzmitry_lakisau.month_year_picker_dialog.sample
import android.app.Dialog
import android.os.Bundle
import androidx.fragment.app.DialogFragment
import by.dzmitry_lakisau.month_year_picker_dialog.MonthYearPickerDialog
class MonthPickerDialogFragment : DialogFragment() {
private lateinit var dialog: Mont... |
package casbin
import (
"fmt"
"gin-web-admin/utils/setting"
"github.com/casbin/casbin/v2"
//"github.com/casbin/casbin/v2/util"
gormadapter "github.com/casbin/gorm-adapter/v2"
_ "github.com/go-sql-driver/mysql"
//"strings"
)
var (
CasbinEnforcer *casbin.Enforcer
)
func SetupCasbin() *casbin.Enforcer {
a, _ :... |
import React, { Component } from "react";
import PropTypes from "prop-types";
import styled from "styled-components";
import { Wrapper as ListWrapper, ListHeader } from "../../UI/List";
import { Wrapper as CardWrapper } from "../../UI/Card";
const Wrapper = styled.div`
display: flex;
justify-content: center;
pad... |
import styled, { css } from 'styled-components';
export const CarLookOptionWrapper = styled.section`
color: black;
width: 100;
margin-bottom: 30px;
display: block;
.car-color {
width: 100%;
height: 100%;
}
.title-wrapper {
width: 100%;
display: flex;
justify-content: center;
h2... |
<?php
namespace Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @Entity()
* @Table(name="users")
*/
class User
{
/**
* @Column(name="id", type="integer")
* @Id
* @GeneratedValue(strategy="AUTO")
*/
private
$id;
/**
* @Co... |
[](https://storage.googleapis.com/cloud-build-gh-logs/README.html)
[](https://cod... |
import { StoreService } from './store.service';
class TestStoreService extends StoreService {
constructor(public store: any) { super(); }
}
describe('StoreService', () => {
let service;
const store: any = { dispatch: () => undefined };
function init() {
service = new TestStoreService(store);
}
descr... |
<a
href="https://travis-ci.org/Xotic750/is-plain-object-x"
title="Travis status">
<img
src="https://travis-ci.org/Xotic750/is-plain-object-x.svg?branch=master"
alt="Travis status" height="18">
</a>
<a
href="https://david-dm.org/Xotic750/is-plain-object-x"
title="Dependency status">
<img src="https://david-d... |
import {
IChannelServer,
IServerChannel,
IPCMessageRequest,
IPCMessageResponse,
} from '@/service/common/ipc';
import { transformErrorForSerialization } from '@/common/error';
export class BackgroundIPCServer implements IChannelServer {
public registerChannel(channelName: string, server: IServerChannel) {
... |
/*
Package animation provides type definitions for use with the Chrome Animation
protocol
https://chromedevtools.github.io/devtools-protocol/tot/Animation/
*/
package animation
import (
"github.com/mkenney/go-chrome/tot/cdtp/dom"
)
/*
Animation instance.
https://chromedevtools.github.io/devtools-protocol/tot/Anima... |
---
layout: post
lang: en
permalink: /en/ruffnote_inc
title: Ruffnote inc.
description: ' Developing a time Sharing Service for Remote workers TimeCrowd '
description_full: '<p>Developing a time Sharing Service for Remote workers <a href="https://timecrowd.net/">TimeCrowd</a></p>'
categories: full_remote
link: http://c... |
<?php
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\CurrencySymbol\Model\System;
use Magento\TestFramework\Helper\Bootstrap;
/**
* Test for Magento\CurrencySymbol\Model\System\Currencysymbol
*
* @magentoAppArea adminhtml
*/
class Cur... |
/**
* Atena Game Engine
* texture-manager.cc
*
* Copyright 2014-present [Ricard Sole <@rcsole, ricardsolecasas@gmail.com>]
*/
#include "./atena/textures/texture-manager.h"
TextureManager *TextureManager::s_pInstance = 0;
void TextureManager::DrawFrame(std::string texture_key, std::string frame_key,
... |
#!/bin/sh
# Copyright 2020 Google LLC
# Author: lru@google.com (Leo Rudberg)
set -u
HELP="
Cloud Build Notifiers setup script.
This script runs almost all of the setup required for configuring
and deploying a notifier on GCP. It is based on the guide here:
https://cloud.google.com/cloud-build/docs/configure-notifica... |
import datetime
class Utc(datetime.tzinfo):
__slots__ = ()
zero = datetime.timedelta(0)
def utcoffset(self, _):
return self.zero
def dst(self, _):
return self.zero
def tzname(self, _):
return 'UTC'
try:
utc = datetime.timezone.utc
except AttributeError:
utc =... |
; INCLUDE for DEBUGGING
; deb_buff - si pointer to text
; - di pointer to buffer
deb_buff:
push si
call deb_wtxt
mov si,di
call deb_wbuff
mov si, OFFSET crlf
call deb_wtxt
pop si
retn
; deb_cnt_buff - si pointer to count
; - di pointer to buffer
deb_cnt_buff:
push ax
push bx
pus... |
function requireDefault$__(obj){
return obj && obj.__esModule ? obj : { default: obj };
};
const Ψ__initor__ = Symbol.for('#__initor__'), Ψ__inited__ = Symbol.for('#__inited__');
Object.defineProperty(exports, "__esModule", {value: true});
/*body*/
var _$Authφ = requireDefault$__(require('../../Auth'/*$path$*/));
var... |
package com.mfglabs.stream
import akka.stream.stage._
import akka.stream.{Attributes, FlowShape, Inlet, Outlet}
/**
* Inspired by https://doc.akka.io/docs/akka/2.5/stream/stream-cookbook.html#working-with-io
*/
class StatefulProcessor[A, B, C](
zero : => B,
f : (B, A) => (Option[B], IndexedSeq[C]),
lastP... |
class GameService
require 'elo'
def run_game(winner, loser)
player_winner = Elo::Player.new(rating: winner.score.rating, games_played: winner.score.games_played)
player_loser = Elo::Player.new(rating: loser.score.rating, games_played: loser.score.games_played)
player_winner.wins_... |
package temple.ast
abstract class Annotation(val render: String)
object Annotation {
sealed abstract class AccessAnnotation(render: String) extends Annotation(render)
sealed abstract class ValueAnnotation(render: String) extends Annotation(render)
case object Unique extends ValueAnnotation("@unique")
cas... |
import tape from 'tape';
const test = tape;
import {
checksum,
PackHeader,
to_string,
from_string,
to_number,
from_number,
PackBodyStruct,
PackBody,
tail_placeholder,
} from '../lib/core/htmix';
import {
HTMIX_SUB_USER_REGISTER,
HTMIX_MAIN_USER_MANAGER,
} from '../lib/prot... |
import { IPayloadMessage } from '..';
export interface IPayload<T> {
data: T;
message: IPayloadMessage;
} |
{-# language CPP #-}
-- | = Name
--
-- VK_KHR_present_wait - device extension
--
-- == VK_KHR_present_wait
--
-- [__Name String__]
-- @VK_KHR_present_wait@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
-- 249
--
-- [__Revision__]
-- 1
--
-- [__Extension and Versi... |
package com.example.calculo.percentual.gordura.components
class ValidadorDadosCalculoForm(private var form: DadosCalculoForm) {
fun validar(): Boolean{
return validarCamposBasicos() &&
if (form.isSexoMasculino()) this.validarCamposMasculino() else this.validarCamposFeminino()
}
p... |
use crate::config::{ConnectionUri, TransformerTypeConfig};
use crate::{Config, DumpCommand, RestoreCommand, SubCommand, TransformerCommand};
use chrono::{NaiveDateTime, Utc};
use reqwest::blocking::Client as HttpClient;
use reqwest::header::CONTENT_TYPE;
use serde::Serialize;
use std::collections::{HashMap, HashSet};
u... |
# 049.Don't judge a person by their apperance.
## 翻译
> **不要以貌取人。**
## 文稿

|
import * as DBService from '/src/service/db-service.js';
import { INDEFINITE } from '/src/lib/deadline.js';
export default function DbControl() { }
DbControl.prototype.init = function () {
chrome.runtime.onInstalled.addListener(this.onInstalled.bind(this));
};
DbControl.prototype.onInstalled = async function (even... |
using AutoMapper;
namespace Menu.AutoMapper
{
public static class Configuration
{
public static void AutoMapperConfig()
{
Mapper.Initialize(x =>
{
x.AddProfile<EntityToModelConfiguration>();
x.AddProfile<ModelToEntityConfiguration>();
... |
import React from 'react';
import '../Sidebar/Sidebar.css';
import { SpecialSupervision } from './Identify';
/* eslint import/no-anonymous-default-export: [2, {"allowObject": true}] */
export default {
title: 'Identify/Special Supervision',
component: SpecialSupervision,
};
export const Normal = () => (
<Specia... |
### This is file doc/my_markdown_file.md
<!--phmdoctest-label my-fenced-code-block-->
```
The label directive can be placed on any fenced code block.
```
|
using System;
using System.Collections.Generic;
using System.Text;
namespace AnZwDev.ALTools.Server.Contracts.SymbolsInformation
{
public class GetTableBasedSymbolDetailsRequest : GetSymbolInformationDetailsRequest
{
public bool getExistingFields { get; set; }
public bool getAvailableFields { ... |
---
title: "프로그래머스 - 정수 제곱근 판별"
categories:
- programmers
last_modified_at: 2020-08-19T17:20:00+09:00
---
### [<u>문제 링크</u>](https://programmers.co.kr/learn/courses/30/lessons/12934){: target="_blank"}
<br/>
### 풀이
- `math` 모듈의 `sqrt`함수로 정수의 제곱근을 구할 수 있다.
- `pow`함수로는 제곱수를 구할 수 있다.
- `is_integer()`로는 해당 숫자가 정수인지 판별... |
export { default as useDetectClickOutside } from './useDetectClickOutside';
export { default as useValidator } from './useValidator';
export * from './useFormValue';
|
namespace UglyToad.PdfPig.Tokenization.Scanner
{
using Tokens;
/// <summary>
/// Scan input for PostScript/PDF tokens.
/// </summary>
public interface ITokenScanner
{
/// <summary>
/// Read the next token in the input.
/// </summary>
/// <returns></returns>
... |
#include "Node.h"
#include <iostream>
using namespace std;
Node::Node() {
word = "";
next = this;
prev = this;
}
Node::Node(std::string input) {
word = input;
next = this;
prev = this;
}
Node::Node(std::string input, Node* other) {
this->setWord(input);
//other is previous node
this->setPrev(other);
this-... |
"""
Created by akiselev on 2019-05-16
"""
def merge_the_tools(string, k):
# your code goes here
if len(string)<2:
print(string)
return
n=len(string)
for i in range(0,n,k):
res=[]
substring=string[i:i+k]
for j in substring:
if j not in res:
... |
#!/bin/bash
#
# Copyright © Portable EHR inc, 2021
# https://portableehr.com/
#
# Need help -> runFeed.sh -h
function showHelp {
echo "#"
echo "# Usage : runFeed.sh [-b ${BIN_FOLDER}] [-p ${SERVER_PORT}] [-m ${MOCKS_BASE_PATH}]"
echo "# [-f ${FEED_HUB_BASE_PATH}] [--sslFile ${SSL_KEY_STORE_FILE}] [--sslT... |
# frozen_string_literal: true
module FinApps
module REST
class AlertOccurrences < FinAppsCore::REST::Resources
include FinApps::Utils::QueryBuilder
END_POINT = 'portfolio/alerts/occurrences'
def list(params = nil)
return super END_POINT if params.nil?
fail FinAppsCore::InvalidA... |
import 'package:flutter/material.dart';
class TimeStampTimeAgo extends StatelessWidget {
final timeStampData;
final Color textColor;
final double textFontSize;
final FontWeight textFontWeight;
final String fontFamily;
final String yearAgo;
final String monthAgo;
final String dayAgo;
final String hour... |
/* Generated by RuntimeBrowser
Image: /System/Library/Frameworks/iAd.framework/iAd
*/
@interface ADPrivacyRemoteViewController : _UIRemoteViewController {
<ADPrivacyRemoteViewControllerDelegate> * _delegate;
}
@property (nonatomic) <ADPrivacyRemoteViewControllerDelegate> *delegate;
+ (id)exportedInterface;
+... |
% Arbitrary expressions are not valid types
var a : 1
var a : 1 ** 2
var a : (1 * 6 - 1 + 4 = 1)
var a : false
%%% args: --only_parser -dump ast -b
%%% expected exit status: 255
%%% expected stdout:
%%% ast: {
%%% var [id:0] : { ref_expr nat(1) }
%%% var [id:1] : { ref_expr nat(1) ** nat(2) }
%%% var [id:... |
import {System} from "./node_modules/ecsy/build/ecsy.module.js"
import {CanvasTexture, Mesh, MeshBasicMaterial, PlaneGeometry} from "./node_modules/three/build/three.module.js"
import {ThreeCore} from './threesystem.js'
export class VRStats {
constructor() {
this.canvas = null
this.width = -1
... |
package main
var input = []int{
104042,
112116,
57758,
139018,
105580,
148312,
139340,
62939,
50925,
63881,
138725,
54735,
54957,
103075,
55457,
98808,
87206,
58868,
120829,
124551,
63631,
103358,
149501,
147414,
59731,
88284,
59034,
116206,
52299,
119619,
63648,
85456,
110391,
90254,... |
import { NextFunction, Request, RequestHandler, Response } from 'express';
import { OriginMasterDescriptive } from '../../Util/Roblox.Web.Util/OriginMaster';
export const OnlyCORs = (host: string) =>
((request: Request, response: Response, resumeFunction: NextFunction) => {
const omd = new OriginMasterDescriptive(r... |
%ifndef EXE_LENGTH
%include "../UltimaPatcher.asm"
%include "include/uw1.asm"
%include "include/uw1-eop.asm"
%include "include/additionalCharacterCodes.asm"
%include "include/bindKeyOrMouse.asm"
defineAddress 134, 0x018E, bindsBegin
defineAddress 134, 0x06D8, bindsEnd
%endif
[bits 16]
; TODO: read key bindi... |
package me.quenchjian.gvotool.ui.discovery
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import dagger.hilt.android.scopes.ActivityScoped
import me.quenchjian.gvotool.data.Settings
import me.quenchjian.gvotool.data.entity.Character
import me.quenchjian.gvotool.data.entity.Discovery
impor... |
import {
App,
ArticleList,
Daily,
ArticleView
} from './containers'
const config = [{
path: '/',
component: App,
indexRoute: {
component: ArticleList
},
childRoutes: [{
path: 'articlelist',
component: ArticleList
}, {
path: 'daily',
compon... |
<a href="http://job4j.ru"> <img src="https://job4j.ru/img/logomini.png"></a>
<http://job4j.ru/>
### С нуля до трудоустройства, Java SE + EE.
"The cource did work with git branches"
"Combining Committed Changes"
"Creating a new branch through IDEA" |
# Change Log
## Unreleased
- Changed missing ctags file notification to be less annoying.
## 2020.4.2
- Really fixed broken "reindex" command.
## 2020.4.1
- Fixed broken "reindex" command.
## 2020.4.0
- Added multi root workspaces support.
|
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget
from ui_linear_regression import Ui_LinearRegression
from ui_linear_regression_base import Ui_LinearRegressionBase
from ui_main import Ui_MainWindow
class MainWin(QMainWindow, Ui_MainWindow):
def __init__(self):
super(MainWin, se... |
@file:Suppress("unused")
package mogul.microdom
import mogul.demo.platformRunEventLoop
import mogul.microdom.primitives.Text
import mogul.platform.*
class WindowNotRegisteredException : Exception()
class MicroDom(val engine: Engine, val events: EventPubSub) {
private val scenesByWindow = mutableMapOf<Window, Sce... |
---
layout: project_single
title: "Industrial Farmhouse Bathroom Reveal"
slug: "industrial-farmhouse-bathroom-reveal"
parent: "farmhouse-master-bathroom-decor"
---
This Industrial Farmhouse Bathroom is the perfect blend of styles and creates such a cozy atmosphere! |
/*
Title: References
Description: References I used to make the knowledge base
*/
This page contain links to the resources used in order to gather the questions presented in this knowledge base.
## JavaScript
- https://medium.com/dev-bits/a-perfect-guide-for-cracking-a-javascript-interview-a-developers-perspective-2... |
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Router } from '@angular/router';
import { GoogleLoginProvider, SocialAuthService, SocialUser } from 'angularx-social-login';
import { Observable } from 'rxjs';
import { AuthRequest } from 'src/app/shared/models/auth/... |
# CHANGELOG for nupic cookbook
This file is used to list changes made in each version of the nupic cookbook.
## 0.1.0:
* Initial release of nupic cookbook
* Installs base set of rpms and gems required by nupic. |
# frozen_string_literal: true
# == Schema Information
#
# Table name: research_outputs
#
# id :bigint(8) not null, primary key
# abbreviation :string(255)
# access :integer default("open"), not null
# byte_size :bigint(8)
# description... |
(cl:in-package #:cl-ds.sets.skip-list)
(defclass mutable-skip-list-set (cl-ds.sets:mutable-set
cl-ds.common.skip-list:fundamental-skip-list)
())
(defclass mutable-skip-list-set-range (cl-ds.common.skip-list:fundamental-skip-list-range)
())
(defmethod cl-ds.common.skip-list:mak... |
using Test
test_case = "../data/pglib_opf_case5_pjm.m"
test_case_cost = 17551.891
result_keys_required = ["case", "variables", "constraints",
"feasible", "cost", "time_total", "time_data", "time_build", "time_solve"]
function check_result_keys(result::Dict)
for k in result_keys_required
if !haskey(re... |
import picodisplay as screen
import time
from system.fileh.jsonh import *
from system.sysdata import *
sysconfig = load(sysconfig_path)
def clear():
screen.set_pen(255, 0, 0)
screen.clear()
def text(string: str, x: int, y: int, size: int = 2):
screen.set_pen(255, 255, 255)
screen.text(string, x, ... |
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using DevExpress.XtraCharts;
namespace Pyramid.Reports.PreBuiltReports
{
public partial class RptBOQTrend : Pyramid.Reports.PreBuiltReports.MasterReports.RptLogoMaster
{
public... |
import {displayContactForm} from './contacts/contactForm/contactForm';
import {appendPaletteList} from './palette/palette';
import {pageChange} from './switchPage';
import {onSignOut} from './actions/registartion/registrationActions';
import {appendSignUpForm} from './registration/signUp/signUpForm';
import {appendSig... |
#!/bin/bash
set -Eeuo pipefail
declare -x target; target="$(uname -m)"; readonly target
declare -r -x download_gettext=${download_gettext:?"true or falce"}
declare -r -x clean=${clean:?"if true, will clean libnvim and nvimserver"}
readonly build_libnvim=${build_libnvim:?"true or false"}
readonly build_dir=${build_dir:... |
#![feature(test)]
extern crate peel;
use peel::example::prelude::*;
extern crate test;
use test::Bencher;
#[bench]
fn tree_generation(bencher: &mut Bencher) {
bencher.iter(|| {
peel_example();
});
}
#[bench]
fn tree_parsing(bencher: &mut Bencher) {
let mut peel = peel_example();
let input = b... |
#include <torch/csrc/jit/codegen/cuda/arith.h>
#include <torch/csrc/jit/codegen/cuda/executor.h>
#include <torch/csrc/jit/codegen/cuda/fusion.h>
#include <torch/csrc/jit/codegen/cuda/ir_all_nodes.h>
#include <torch/csrc/jit/codegen/cuda/ir_utils.h>
#include <torch/csrc/jit/codegen/cuda/lower2device.h>
#include <torch/c... |
import 'package:number_trivia_app_tdd/features/get_number_trivia/data/models/number_trivia_model.dart';
import 'package:number_trivia_app_tdd/features/get_number_trivia/domain/entities/number_trivia_entitiy.dart';
extension NumberTriviaMapper on NumberTriviaModel {
NumberTriviaEntity toEntity() {
return NumberTr... |
(ns hara.time.data.long-test
(:use midje.sweet)
(:require [hara.protocol
[string :as string]
[time :as time]]
[hara.time.data]
[hara.time.data
[coerce :as coerce]
[common :as common]
[map :as map]]
[hara.io.environm... |
package com.power.common.util;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
/**
* Description:
* OkHttp3Util单元测试,单元测试中不支持OkHttp3的异步请求测试
*
* @author yu 2018/06/19.
*/
public class OkHttp3UtilTest {
@Test
public void testSyncGet() {
String url = "http://smarthome.dq.ott4... |
require 'spec_helper'
describe 'ruby_basic::default' do
let :chef_run do
ChefSpec::SoloRunner.new(platform: 'ubuntu', version: '14.04')
end
before do
stub_command("ruby -v | grep \"2.1.5p273\"").and_return(false)
end
it 'should have default install_method as package' do
chef_run.converge(desc... |
/*
* Copyright (c) 2021 Oleksii Orel
* This program is made available under the terms of the MIT License
* which is available at https://opensource.org/licenses/MIT/
*
* SPDX short identifier: MIT
*/
export const PUBLIC_CRT_PATH = '/public-certs';
export const SS_CRT_PATH = '/tmp/che/secret/ca.crt';
|
/*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 app... |
package org.openinfralabs.caerus.cache.common.plans
import org.apache.spark.sql.catalyst.expressions.{Attribute, ExprId, Expression, Unevaluable}
import org.apache.spark.sql.types.{DataType, Metadata}
case class CaerusAttribute(index: Int, dataType: DataType) extends Attribute with Unevaluable {
override def withNu... |
enum class ENUM {
AAAA, BBBB, CCCC
}
fun foo(e: ENUM?) {
when (e) {
<caret>
}
}
// EXIST: ENUM.AAAA
// EXIST: ENUM.BBBB
// EXIST: ENUM.CCCC
// EXIST: { lookupString: "else -> "}
// EXIST: null
// NOTHING_ELSE
// FIR_COMPARISON
|
package gigigo.com.orchextrasdk.adonservices;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
/**
* Created by Alberto on 16/03/2016.
*/
public class MotionServiceUtility {
private Context context;
pr... |
#!/usr/bin/env python2
#! -*- coding: UTF-8 -*-
import os, sys, cfscrape
import json
import requests as reqs
from bs4 import BeautifulSoup
from MeTh.core.modules import *
from MeTh.utils import *
class Checker(Checker):
__info__ = {
"Name":"MinecraftChecker",
"Version": "v0.1",
"Authors": (
... |
<?php
namespace flo\Test\Command;
use flo\Console\Application;
use flo\SymfonyOverwrite\Filesystem;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\Process\Process;
class RunScriptCommandTest extends \PHPUnit_Framework_TestCase {
/**
* The root project directory.
*
* @var strin... |
//------------------------------------------------------------------------------
/// @file
/// @author ハル研究所プログラミングコンテスト実行委員会
///
/// @copyright Copyright (c) 2016 HAL Laboratory, Inc.
/// @attention このファイルの利用は、同梱のREADMEにある
/// 利用条件に従ってください。
//-----------------------------------------------------------... |
;;;; package.lisp
(cl:in-package cl-user)
(defpackage "https://github.com/g000001/srfi-172"
(:use
"https://github.com/g000001/srfi-0"
"https://github.com/g000001/srfi-6"
"https://github.com/g000001/srfi-11"
"https://github.com/g000001/srfi-13"
"https://github.com/g000001/srfi-16"
"https://github.... |
// Copyright (c) Umbraco.
// See LICENSE for more details.
using System;
using System.IO;
using System.Reflection;
using NUnit.Framework;
using Umbraco.Cms.Core;
namespace Umbraco.Cms.Tests.UnitTests.Umbraco.Core
{
[TestFixture]
public class HashCodeCombinerTests
{
private DirectoryInfo PrepareFol... |
require 'quarry/cli/abstract'
module Quarry::CLI
class Save < Abstract
command 'save'
#
def call(argv)
Quarry.save(*argv)
end
#
def opts
super do |o|
o.banner = "Usage: quarry save <name> [file ...]"
o.separator "Save directory/files to named mine."
end
... |
#!/bin/bash
############################################################
# Help #
############################################################
Help()
{
# Display Help
echo "Run a loongarch virtual machine."
echo
echo "Syntax: run_loongarch.sh [-b|c|d|D|g|... |
'use strict';
/**
* The base for navigation views
*
* @memberof HashBrown.Client.Entity.View.Navigation
*/
class NavigationBase extends HashBrown.Entity.View.ViewBase {
}
module.exports = NavigationBase;
|
use std::fmt::Display;
fn message(kind: &str, content: impl Display) -> String {
format!("[ convevo : {} ] {}", kind, content)
}
pub fn info(msg: impl Display) {
println!("{}", message("info", msg));
}
pub fn warn(msg: impl Display) {
println!("{}", message("warn", msg));
}
pub fn error(msg: impl Displa... |
;
; Amstrad CPC library
;
; ******************************************************
; ** Librería de rutinas para Amstrad CPC **
; ** Raúl Simarro, Artaburu 2009 **
; ******************************************************
;
; void cpc_RLI(unsigned int pos, unsigned char w, unsign... |
{-# LANGUAGE TemplateHaskell,PatternGuards #-}
-- | Derives 'CNode' instances for language.c
module Data.Derive.CNode(makeCNode) where
{-
-- For all type variables a, we require (CNode a)
-- If we have a data constructor
-- X a_1 .. a_n, and exactly one a_k is a polymorphic variable, then return (nodeInfo a_k)
data ... |
<span class="pull-right-container">
<small class="label pull-right bg-green">new</small>
</span>
|
package duelistmod.helpers.crossover;
import java.util.ArrayList;
import com.evacipated.cardcrawl.mod.hubris.HubrisMod;
import com.evacipated.cardcrawl.mod.hubris.cards.black.*;
import com.evacipated.cardcrawl.mod.hubris.relics.*;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.unlock.... |
// Copyright (c) Source Tree Solutions, LLC. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Author: Joe Audette
// Created: 2017-07-10
// Last Modified: 2017-07-10
//
using cloudscribe.UserProperties.Models;
using Micro... |
# slice() gives meaningfull errors
Code
(expect_error(slice(df, matrix(c(1, 2), ncol = 2))))
Output
<error/rlang_error>
Error in `slice()`:
! Problem while computing indices.
Caused by error:
! Can't convert <integer[,2]> to <integer>.
Cannot decrease dimensions.
C... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Accelerider.Windows.TransferService
{
public class AsyncRemotePathProvider : ConstantRemotePathProvider
{
private readonly Func<Task<string>> _remotePathGetter;
public AsyncRemotePathPro... |
#!/usr/bin/env node
import chalk from "chalk";
import * as program from "commander";
import * as path from "path";
import { readFile } from ".";
// tslint:disable-next-line:tsr-detect-non-literal-require no-var-requires
const pkg = require(path.join(__dirname, "..", "package.json"));
program
.version(pkg.version)
... |
class SubdomainConstraint
def self.matches?(request)
excluded_subdomains = ExcludedSubdomains.subdomains
request.subdomain.present? && !excluded_subdomains.include?(request.subdomain)
end # matches?
end # class
|
--
-- Additional api functions attributes
--
CREATE TABLE pgwt.func_attrs (
nm text NOT NULL,
mandatory boolean NOT NULL DEFAULT false,
multiple boolean NOT NULL DEFAULT false,
acceptable_values text[] NOT NULL DEFAULT '{}'::text[],
conflicts text[] NOT NULL DEFAULT '{}'::text[],
CONSTRAINT func_attrs_pkey... |
import {SyntaxKind} from "ts-morph";
/**
* Searches the file for method calls by the specified names
* @param {import('ts-morph').SourceFile} file
* @param {Set<string>} names
* @return {import('ts-morph').CallExpression[]}
*/
export function findCallExpressionsByNames(file, names) {
return file
.getDescend... |
package com.xuan.auth.model;
import java.util.List;
public interface AuthorityDAO_interface {
public void insert(AuthorityVO authorityVO);
public void delete(String staff_id, String ability_no);
public AuthorityVO findByPrimaryKey(String staff_id, String ability_no);
public List<AuthorityVO> getAll();
... |
using System;
using PcapDotNet.Packets.IpV4;
namespace PcapDotNet.Packets.IpV6
{
/// <summary>
/// RFC 2460.
/// <pre>
/// +-----+-------------+-------------------------+
/// | Bit | 0-7 | 8-15 |
/// +-----+-------------+-------------------------+
/// |... |
# gp-gas-estimation
A rust library for advanced ethereum transaction gas estimation.
Currently provides interfaces to several online gas estimation services.
|
if(!Function.prototype.dispatch){
Function.prototype.dispatch = function(eventName) {
var listeners = Function._events[eventName] || [],
listenersNumber = listeners.length,
i,
eventObject = {
name: eventName,
args: Array.prototype.slice.cal... |
package com.verygoodsecurity.vgsshow.core.helper
import com.verygoodsecurity.vgsshow.core.network.model.data.response.JsonResponseData
import com.verygoodsecurity.vgsshow.widget.VGSTextView
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import org.hamcrest.CoreMatchers
import org.json.JSONObject
im... |
DISCLAIMER: work in progress, this plugin needs a lot of cleanup
Support for VPP ACL on Network Interfaces. This plugin uses ETCD configuration
(see sub folder model/acl) and translates it to the VPP ACL Binary API Calls. |
#!/usr/bin/perl -s
use strict;
use warnings;
use IO::Socket::INET;
use vars qw/$s/;
my $version = 0.991;
$| = 1; # autoflush
my $iproto_sync = 1;
my $iproto_len = 0;
sub usage {
my $msg = shift;
my $name = $0 =~ /([^\/]+)$/ ? $1 : $0;
print "$msg\n\n" if $msg;
print <<EOD;
Shard create/alter:
$name... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.