text stringlengths 27 775k |
|---|
# blueprint shared services
blueprint shared services brings core of shared services within a region
## Capabilities
Current capabilities are:
- Azure Site Recovery Vault
- Azure Backup
- Azure Site Recovery
- Azure Site Recovery customizable diagnostics settings
- Azure Automation
- Azure Automation custo... |
# Exercise 5
1. Add a second queue and another thread to the "thread_queue" demo. The work flow should look like this:
Generate Number -> Double the Number -> Print the Number
2. Ensure it works. |
use std::{
fs,
path::{Path, PathBuf},
};
use crate::{get_all_idl_nodes, message::Message};
use super::diagnostics;
use anyhow::{anyhow, Result};
use clap::{App, Arg, ArgMatches};
use idl_gen::lang::*;
pub fn create_command<'a>() -> App<'a> {
App::new("server")
.about("Generate server files for im... |
#!/bin/bash
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
set -e
npm run clean
npm run build
# npm test
# npm run test:coverage
# npm run docs
|
package de.rki.coronawarnapp.util.viewmodel
import androidx.activity.ComponentActivity
import androidx.annotation.MainThread
import androidx.fragment.app.Fragment
import androidx.lifecycle.SavedStateHandle
@MainThread
inline fun <reified VM : CWAViewModel> Fragment.cwaViewModels(
noinline factoryProducer: (() -> ... |
// Aldaron's Device Interface / Clock
// Copyright (c) 2017 Jeron Lau <jeron.lau@plopgrizzly.com>
// Licensed under the MIT LICENSE
//
// src/pulse.rs
use std::f32;
/// Call these functions on the return value of Clock::since(). Use `rate_spr`
/// to specify how many seconds it takes to cycle through the animation.
... |
#install.packages("tidyverse")
#install.packages("jsonlite")
#install.packages("recommenderlab")
library(tidyverse)
library(jsonlite)
library(recommenderlab)
##fonte dos datasets
#Amazon
#info: https://nijianmo.github.io/amazon/index.html
#reviews: http://deepyeti.ucsd.edu/jianmo/amazon/categoryFilesSmal... |
/* @flow */
'use strict'
// SIGINT does not cleanup the DB connection pool
// so we have an exitHandler to clean up the database connection
// See: https://github.com/tgriesser/bookshelf/issues/405
function exitHandler (error) {
if (error) {
console.error(error.stack)
process.exit(1)
}
process.exit(0)
}
... |
import * as VueType from "vue";
import { VNode, VueConstructor } from "vue";
import * as events from "devextreme/events";
import { pullAllChildren } from "./children-processing";
import Configuration, { bindOptionWatchers, subscribeOnUpdates } from "./configuration";
import { IConfigurable } from "./configuration-com... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//permite abrir pastas
using System.Windows.Forms;
//me permite trabalhar com arquivos externos
using System.IO;
using System.Diagnostics;
namespace Azzi_Sprite_Compiler_v2
{
class TibiaFolder
{
private string path =... |
import 'package:flutter_apns/src/apns_connector.dart';
import 'package:flutter_apns/src/connector.dart';
export 'package:flutter_apns/src/apns_connector.dart';
export 'package:flutter_apns/src/connector.dart';
/// Creates APNS connector to manage the push notification registration.
PushConnector createPushConnector()... |
use serde::{Deserialize, Serialize};
use serde_json;
#[derive(Deserialize, Serialize, Debug)]
pub struct Link {
pub rel: String,
pub href: String,
}
#[derive(Deserialize, Serialize, Debug)]
pub struct SrpStep1Request {
pub identity: String,
pub public_a_str: String
}
#[derive(Deserialize, Serialize, ... |
module_path = splitdir(@__FILE__)[1] # Path to this file
# NOTE: In Julia v0.7, JLD throws the error "Cannot `convert` an object of type
# getfield(JLD, Symbol("##JLD.AssociativeWrapper" unless, imported outside of
# WFVisual through the following line. I'm not sure, but I think it's because
# JLD must be i... |
#####
##### instantiate
#####
export instantiate
"""
instantiate(s::T,
D::Dict,
ft::AbstractFilterTypes,
stop_recursion_type=FreeParameter) where {T}
Instantiate instance of struct `s` and replace
using values in `D` where filter types `ft` apply.
"""
function inst... |
require 'rails_helper'
describe 'Show authors details', type: :feature do
it 'should render the paper page' do
@paper = FactoryGirl.create :paper
visit paper_path(@paper)
end
it 'should show information about the authors of the paper' do
@author = FactoryGirl.create :author
@paper = FactoryGirl.create :pa... |
// Copyright 2021 One App Stack Authors. All rights reserved.
// Use of this source code is governed by the 3-clause BSD License that can be
// found in the LICENSE file.
import 'package:firebase/firebase.dart';
import 'package:firebase/firestore.dart';
class FirebaseOtherAppHelper {
FirebaseOtherAppHelper(
{... |
package test.sample
import sample.Hello
import org.junit.Test
class SampleTest {
Test fun dummy(): Unit {
Hello().doSomething()
}
}
|
# Redstone Skin Server
这是一个 Blessing Skin Server fork, 为了满足红石皮肤站特性需求而创建。正因如此,我们不会考虑这套程序的兼容性,也不会为非红石皮肤站用户提供任何技术支持。
## 版权 & 协议
MIT License
Copyright (c) 2016-present The Blessing Skin Team
Copyright (c) 2022-present The Redstone Skin Team
|
import React, { useState, useEffect } from "react"
import { createContext, useContext, useReducer } from "react"
const GlobalStateContext = createContext()
const GlobalDispatchContext = createContext()
//Reducer
const GlobalReducer = (state, action) => {
switch (action.type) {
case "TOGGLE_THEME": {
retur... |
/* $OpenBSD: ehci_pci.c,v 1.23 2011/04/26 00:37:34 deraadt Exp $ */
/* $NetBSD: ehci_pci.c,v 1.15 2004/04/23 21:13:06 itojun Exp $ */
/*
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
* by Lennart Augustsson... |
#!/bin/bash
# Copyright 2013 Daniel Povey
# Apache 2.0.
if [ $# -lt 1 ] || [ $# -gt 2 ]; then
echo "usage: $0 trials-file [scores-file]"
echo "e.g.: $0 data/sre08_trials/short2-short3-female.trials foo"
exit 1;
fi
trials=$1
[ ! -f $trials ] && echo "Expecting trials file $trials to exist"
if [ $# -eq 2 ]; ... |
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:shelf/models/quote.dart';
import 'package:shelf/pages/add_quote_page.dart';
import 'package:shelf/providers/auth_provider.dart';
import 'package:shelf/widgets/quotes/qu... |
/**
* Copyright (C) 2014 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 applica... |
# Atlassian Confluence Docker
## Run
```bash
mkdir -p /tmp/confluence-app /tmp/confluence-psql
```
```bash
docker rm confluence-db
docker run \
--name confluence-db \
-e POSTGRES_USER=confluence \
-e POSTGRES_DB=confluence \
-e POSTGRES_PASSWORD=test123 \
-p 5432:5432 \
-v /tmp/confluence-psql:/var/lib/postgresql/da... |
//-----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
using System;
using System.Activities;
using System.Activities.Statements;
using System.Collecti... |
//-----------------------------------------------------------------------
// <copyright file="Program.cs" company="Wohs Inc.">
// Copyright © Wohs Inc.
// </copyright>
//-----------------------------------------------------------------------
namespace Lurker.DataParser
{
using System;
using System.IO;
... |
import { Component, ViewEncapsulation, ElementRef } from '@angular/core';
const markdown = require('markdown').markdown;
@Component({
encapsulation: ViewEncapsulation.None,
selector: 'markdown-example',
styleUrls: ['./markdown-example.component.less'],
templateUrl: './markdown-example.component.html'
})
exp... |
TITLE des-586.asm
IF @Version LT 800
ECHO MASM version 8.00 or later is strongly recommended.
ENDIF
.486
.MODEL FLAT
OPTION DOTNAME
IF @Version LT 800
.text$ SEGMENT PAGE 'CODE'
ELSE
.text$ SEGMENT ALIGN(64) 'CODE'
ENDIF
PUBLIC _DES_SPtrans
ALIGN 16
__x86_DES_encrypt PROC PRIVATE
push ecx
; Round 0
mov eax,DWORD PTR... |
// Copyright (c) 2017 by Nicolai Josuttis. All rights reserved.
// Licensed under the CCA-4.0 International License. See the LICENSE file in the project root for more information.
//
// Name: optionalMember.cpp
// Author: crdrisko
// Date: 11/01/2020-12:35:46
// Description: Using std::optional<> when passing arguments... |
<div class="row page-title">
<div class="col-md-12">
<nav aria-label="breadcrumb" class="float-right mt-1">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<?= site_url('banksampah') ?>">Bank Sampah</a></li>
<li class="breadcrumb-item">Master Data</li>
<li class="breadcrumb-item active" a... |
# frozen_string_literal: true
require 'spec_helper'
describe Api::ServersController do
render_views
before do
@user = create :user
@server = create :server, name: 'The Server'
controller.stub(api_user: @user)
end
describe '#index' do
it 'renders a json with the servers info' do
get :in... |
//! File system-related utilities to help with manipulating changelogs.
use crate::{Config, Error, Result};
use log::{debug, info};
use std::fs;
use std::path::{Path, PathBuf};
pub fn path_to_str<P: AsRef<Path>>(path: P) -> String {
path.as_ref().to_string_lossy().to_string()
}
pub fn read_to_string<P: AsRef<Pat... |
<?php
/**
* Template for the Quote Component.
*
* @package EightshiftBoilerplate
*/
use EightshiftBoilerplateVendor\EightshiftLibs\Helpers\Components;
$globalManifest = Components::getManifest(dirname(__DIR__, 2));
$manifest = Components::getManifest(__DIR__);
$quoteUse = Components::checkAttr('quoteUse', $attr... |
class DeleteDisableAccountRegistrationFromSettings < ActiveRecord::Migration[5.2]
def self.up
return unless HackathonConfig.find_by(var: 'disable_account_registration').present?
HackathonConfig.find_by(var: 'disable_account_registration').destroy
end
def self.down
return unless HackathonConfig.find_b... |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
namespace mphdict.Models.Etym
{
public class root: root_base
{
public virtual ObservableCollection<bibl> bibls { get; set; }
public virtual ObservableCollection<e_classes> e_classes { get; ... |
const form = {
state: {
srcCode: "",
},
mutations: {
SET_SRC_TABLE_CODE(state, srcCode) {
state.srcCode = srcCode;
},
},
};
export default form;
|
-module(mets_backend_SUITE).
-export([all/0]).
% TODO: prop tests for backend behaviour, it should act the same for all
% implementations
all() -> [].
|
// *********************************************************************
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License
// *********************************************************************
using System.Collections.Generic;
/// <summary>
/// Disable warning for the ... |
import * as React from 'react'
import readme from './README.md'
import DraggableContainer from './index'
const component = () => (
<DraggableContainer>
<span>拖一下我试试</span>
</DraggableContainer>
)
export default [readme, component] |
/**
* 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 m... |
<?php
function string1_between($string, $start, $end){
$string = " ".$string;
$ini = strpos($string,$start);
if ($ini == 0) return false;
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
if(strpos($string,$end))
{
return substr($string,$ini,$len);
}
else
{
... |
<?php
namespace common\components\sms;
use DateTime;
use Yii;
use yii\base\Component;
use yii\base\InvalidConfigException;
/**
* Class SmsSender
* @package common\components\sms
*/
class SmsSender extends Component implements SmsSenderInterface
{
protected const MORNING = "Доброе утро".PHP_EOL;
protect... |
<?php
namespace App\Helpers;
use App\Model\Menu;
class HMenu
{
public static function renderContent()
{
$menu = Menu::getMenu();
return view('layouts/left_menu', array('menu' => $menu));
}
}
|
# if you run this command first time at the machine please also run
# sudo mkdir /var/lib/swtpm-localca
# sudo chown $USER /var/lib/swtpm-localca
mkdir assets/tpm2
swtpm_setup --tpm-state assets/tpm2 --tpm2 --ecc --create-ek-cert --create-platform-cert --lock-nvram
mv assets/tpm2/tpm2-00.permall assets/tpm2/tpm2-0... |
module AbleAttrs
module Types
class Boolean < Base
attr_reader :true_values
def initialize(options = {})
super
@true_values = opt(:true_values, self.class.default_true_values)
end
def import(value)
true_values.include?(value)
end
def default
f... |
# react-native-inline-edit
React-Native component for text editing in-place and validation
## Usage
Import library
```javascript
import EditableText from 'react-native-inline-edit';
```
Add EditableText Component
```javascript
<EditableText
text={'textOfTheField'}, //required
sendText={() => sendText()}, //requi... |
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
namespace PartyCluster.WebS... |
class PageScrapper
extend Memoist
ATTRIBUTES = %w(title description tags)
def initialize(url)
@url = url
end
def title
scrapper.best_title || URI.parse(@url).host
end
memoize :title
def description
scrapper.description
end
memoize :description
def tags
# TODO: MORE COMPLEXITY!... |
package annette.core.domain.application
import annette.core.AnnetteException
class ApplicationAlreadyExists extends AnnetteException("core.application.alreadyExists")
class ApplicationNotFound extends AnnetteException("core.application.notFound")
|
function perform_step!(integ::ODEFilterIntegrator)
@unpack t, dt = integ
@unpack E0, Precond, InvPrecond = integ.constants
@unpack x_pred, u_pred, x_filt, u_filt, err_tmp = integ.cache
P = Precond(dt)
PI = InvPrecond(dt)
integ.cache.x = P * integ.cache.x
t = t + dt
integ.t_new = t
... |
chmod +x /home/pi/Desktop/dbconv_data/start.sh
chmod +x /home/pi/Desktop/dbconv_data/uninstall.sh
chmod +x /home/pi/Desktop/DBconv.desktop
|
use crate::parser::parse_recovery::RecoveryResult;
use crate::parser::parsed_syntax::CompletedNodeOrMissingMarker::{MissingMarker, NodeMarker};
use crate::parser::ConditionalSyntax::{Invalid, Valid};
use crate::parser::ParseRecovery;
use crate::parser::ParsedSyntax::{Absent, Present};
use crate::{CompletedMarker, Compl... |
export enum SevenDaysFeedingFrequencyTypes {
NEVER = 'never',
NO_DAY = 'no_day',
ONE_TWO_DAYS = 'one_two_days',
THREE_FOUR_DAYS = 'three_four_days',
FIVE_SIX_DAYS = 'five_six_days',
ALL_DAYS = 'all_days',
UNDEFINED = 'undefined'
}
|
#pragma once
#include "HeaderPrerequistes.h"
#include <gm/vector.h>
namespace gr
{
//! fill color in the bounding box that given _bbmin, _bbmax parameters represent.
void rectangle(gm::ivec2 _bbmin, gm::ivec2 _bbmax, Buffer *_buffer, gm::vec3 _color) noexcept;
//! rasterize triangle with given three ... |
# TODO
* Consider running Geb tests with Chrome, not Firefox.
* Propagate properties set on root project to "integrationTests" project when running testAll. See .travis.yml.
|
import { ConfigMap } from '../config-store/config-store';
export interface FrameFiles {
[path: string]: string;
}
export interface Frame {
files: FrameFiles;
configMap: ConfigMap;
}
export function createFrame(): Frame {
return {
files: {},
configMap: {},
};
}
|
---
templateKey: project
title: All For Us
featuredImage: /img/All For Us.png
clients:
- Labrinth
weight: 0
youtubeLink: https://www.youtube.com/watch?v=WcF60CKr5m4
embedYouTube: false
type: Music Video Art Direction
---
Art Direction done by **[Peach Quintana](https://sweatshirtmedia.com/team#peach)**
|
module RaiseRoulette
module SomethingBad
def self.happens
raise some_error_or_another, 0, somewhere_or_another
end
def self.might_happen
if rand(10) <= 5
happens
end
end
def self.could_happen
if rand(10) <= 3
happens
end
end
def self.should... |
class Router
class Compressor
def initialize trie
@trie = trie
end
def compress_node node
child = node.children.first
if node.static? && node.children.size == 1 && child.static? && node.params.nil?
node.value += child.value
node.children.replace child.children
no... |
#!/bin/sh -eu
section() {
echo "----------------- $1"
}
section "Rust Setup"
if hash rustup 2>/dev/null; then
echo "Have rustup, skipping installation..."
else
echo "Installing rustup..."
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
fi
. $HOME/.cargo/env
rustup update
rust... |
package com.madonasyombua.sportsdb.data.remote.response
import com.madonasyombua.sportsdb.data.local.entities.TeamEntity
data class SportsBaseResponse(val sportList: List<TeamEntity>) {
//check when empty
fun whenEmpty() = sportList.isEmpty()
}
|
# startwarsapi
Desafio Star Wars para B2W, Criar uma API de Planetas, com as seguintes funcionalidades.
- Adicionar um planeta (com nome, clima e terreno)
- Listar planetas
- Buscar por nome
- Buscar por ID
- Remover planeta
Desenvolvimento de uma API, usando:
- JAVA
- MAVEN
- SPRING BOOT
- USO DA API EXTE... |
/*
* Copyright 2021 https://github.com/openapi-processor/openapi-processor-core
* PDX-License-Identifier: Apache-2.0
*/
package io.openapiprocessor.core.converter
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.StringSpec
class ApiOptionsSpec: StringSpec({
"throws when tar... |
package eu.kanade.tachiyomi.ui.setting
import android.app.Activity
import android.content.ActivityNotFoundException
import android.content.Intent
import androidx.core.net.toUri
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.similar.SimilarUpdateJob
import eu.ka... |
import { getTagLink, getDate, getBlogLink } from '../../lib/blog-helpers'
import React, { useEffect } from 'react'
import {useRouter} from 'next/router'
import Link from 'next/link'
import blogStyles from '../../styles/blog.module.css'
import sharedStyles from '../../styles/shared.module.css'
import Header from '../../... |
import { registerCombination, dummyPrimaryMethod } from './mixture'
registerCombination( 'PRIMARY',
( prev, next ) => next !== dummyPrimaryMethod ? next : prev,
( empty, primary ) => primary || empty
);
registerCombination( 'AROUND',
( prev, next ) =>
function( ...args ){
const prevCon... |
<?php
/**
* SilverEngine - PHP MVC framework
*
* @package SilverEngine
* @author SilverEngine Team
* @copyright 2015-2017
* @license MIT
* @link https://github.com/SilverEngine/Framework
*/
namespace Silver\Core;
use Silver\Core\Bootstrap\Facades\Log;
use Silver\Core\Bootstrap\Facades\Request;
u... |
/*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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... |
---
title: 'Registrars, Collections Managers'
audience: 'registrars'
--- |
//------------------------------------------------------------------------------
// <copyright file="ValidatorCallback.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using System... |
package io.cloudevents.core.builder
import org.http4k.core.ContentType
import org.http4k.core.Uri
import java.net.URI
@Suppress("UNCHECKED_CAST")
fun <T : CloudEventBuilder> T.withDataContentType(contentType: ContentType): T = withDataContentType(contentType.value) as T
@Suppress("UNCHECKED_CAST")
fun <T : CloudEven... |
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
internal sealed class ModuleInitializerAttribute : Attribute { }
}
namespace RAGENativeUI.Internals
{
using System.Runtime.CompilerServices;
using Rage;
internal static class ModuleInitial... |
<?php
namespace Drieschel\ObjectCreator\Instantiator;
use Drieschel\ObjectCreator\ObjectInstantiatorInterface;
abstract class AbstractInstantiator implements ObjectInstantiatorInterface
{
/**
* @var integer
*/
protected int $priority = 0;
/**
* @return integer
*/
public function... |
# -*- coding: utf-8 -*-
import os
import pwd
import grp
import logging
logger = logging.getLogger('certproxy.tools.misc')
def impersonation(user=None, group=None, workdir=None):
def impersonate():
"""Change user, group and workdir"""
if group is not None:
os.setgroups([])
... |
(ns grub.util)
(defn map-by-key [key coll]
(->> coll
(map (fn [a] [(keyword (get a key)) a]))
(into {})))
(defn rand-str [n]
(let [chars "0123456789abcdefghijklmnopqrstuvwxyz"
rand-index #(rand-int (count chars))]
(->> (repeatedly n rand-index)
(map #(.charAt chars %))
... |
#pragma once
#include <memory>
#include <QVector2D>
#include <QOpenGLTexture>
//#include "point2d.hpp"
#include "box2d.hpp"
class GameEntity
{
public:
GameEntity() = default;
GameEntity(std::string const & name)
: m_name(name)
{}
GameEntity(QVector2D const & position, std::string const & name)
: m... |
/**
* @flow
* @format
*/
import type {Suite} from 'flow-dev-tools/src/test/Suite';
const {readFileSync, readdirSync} = require('fs');
const {join} = require('path');
const {suite, test} = require('flow-dev-tools/src/test/Tester');
module.exports = (suite(
({
lspNotification,
lspStartAndConnect,
lspRe... |
/*
* Copyright (c) [2019-2020] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
*
* http://license.coscl.org.cn/MulanPSL2
*
... |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file ... |
from json import dumps
def category_chart(sessions):
labels = []
data = []
for session in sessions:
labels.append(str(session.session_date))
data.append(str(session.session_time))
chart = {
"labels": labels,
"data": data,
}
chartJSON = dumps(chart)
re... |
@cache mutable struct ISSEMCache{uType,rateType,JType,WType,JC,UF,
N,noiseRateType,F,randType} <:
StochasticDiffEqMutableCache
u::uType
uprev::uType
du1::rateType
fsalfirst::rateType
k::rateType
z::uType
dz::uType
tmp::uType
gtmp::noiseRateType
gtm... |
#!/bin/bash
# Turn off the screensaver, brui will put the HDMI to sleep after 1 hour
# if you don't turn this off, brui will wake up to a black screen on a pour
export DISPLAY=:0
xset s noblank
xset s off
xset -dpms
# hide the mouse cursor after inactivity
unclutter -idle 0.5 -root &
# Change chromium settings to pr... |
import time
import logging
logger = logging.getLogger(__name__)
import synapse.glob as s_glob
import synapse.synasync as s_async
import synapse.common as s_common
import synapse.eventbus as s_eventbus
import synapse.telepath as s_telepath
import synapse.lib.tags as s_tags
import synapse.lib.scope as s_scope
import s... |
package main
import "fmt"
func isPalin(n int) bool {
return isDecPalin(n) && isBinPalin(n)
}
func isDecPalin(n int) bool {
return fmt.Sprint(n) == reverseString(fmt.Sprint(n))
}
func isBinPalin(n int) bool {
return fmt.Sprintf("%b", n) == reverseString(fmt.Sprintf("%b", n))
}
func reverseString(s string) string... |
Getting Started
Example
import 'package:flutter/material.dart';
import 'package:quran_widget_flutter/src/quran_widget.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'QuranWidget Demo',... |
// @ts-nocheck File not migrated fully to TS
/**
* Created by kinneretzin on 06/12/2016.
*/
import _ from 'lodash';
import * as types from '../actions/types';
const tenants = (state = {}, action) => {
let selectedTenant;
switch (action.type) {
case types.REQ_TENANTS:
return { ...state, i... |
import Scheme from "./scheme";
import Escape from "@dikac/t-string/pattern/escape";
/**
* @reference https://tools.ietf.org/html/rfc3986#appendix-B
*/
const SchemeDelimiter = new RegExp(Scheme.source + Escape(':'), Scheme.flags);
export default SchemeDelimiter;
//# sourceMappingURL=scheme-delimiter.js.map |
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
"os"
"time"
)
const (
GIGABYTE = 1000000000
MEGABYTE = 1000000
KILOBYTE = 1000
CSI = "\033["
DEL1 = CSI + "1M"
REDRAW = DEL1 + "\r"
PREFIX = "sender:"
)
func println(v ...interface{}) {
fmt.Println(append([]interface{}{PREF... |
package models.database
object DatabaseField {
def apply(name: String) = new DatabaseField(name, name, name, DatabaseFieldType.StringType)
def apply(name: String, typ: DatabaseFieldType[_]) = new DatabaseField(name, name, name, typ)
def apply(title: String, name: String, typ: DatabaseFieldType[_]) = new Database... |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace EmpowerBusiness.Models.Claims
{
public class CMS_Claimaint_DenialReason_Result
{
public List<CMS_Claimaint_DenialReason_1> FeatureItems { get; set; }
public List<CMS_Claimaint_DenialReason_2> DropDow... |
import com.bloder.jota.When
sealed class Foo {
object Foo1 : Foo()
object Foo2 : Foo()
object Foo3 : Foo()
}
fun handleAction(@When action: Action.Success) {
println("Success")
}
fun handleAction(@When action: Action.NetworkError) {
println("NetworkError")
}
fun handleAction(@When action: Action... |
/* eslint-disable @typescript-eslint/no-unused-vars */
import { useReducer, createContext } from "react";
import * as PropTypes from "prop-types";
const ACTION_TYPES = {};
const initialState = {};
const WebWalletContext = createContext(initialState as any);
const reducer = (state: any, action: any) => {
const { t... |
(* *****************************************************************************
*
* MyHomeLib
*
* Copyright (C) 2008-2019 Oleksiy Penkov (aka Koreec)
*
* Authors Aleksey Penkov alex.penkov@gmail.com
* Nick Rymanov nrymanov@gmail.com
* Created 20.08.2008
* Desc... |
library mediasoup_client_flutter;
export 'package:mediasoup_client_flutter/src/consumer.dart';
export 'package:mediasoup_client_flutter/src/data_consumer.dart';
export 'package:mediasoup_client_flutter/src/producer.dart';
export 'package:mediasoup_client_flutter/src/data_producer.dart';
export 'package:mediasoup_clien... |
declare var require: any;
const b64Decode = require('base-64').decode;
import { IEmail } from './iface/iemail';
import { IPart } from './iface/iparts';
import { getEmptyEmail, copyGmail } from './constants';
import { IReceiver } from './iface/ireceiver';
import { Strings } from 'klingsten-snippets';
/** parses gmail... |
unit FHIR.CdsHooks.Utilities;
{
Copyright (c) 2011+, HL7 and Health Intersections Pty Ltd (http://www.healthintersections.com.au)
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 s... |
%% Copyright (c) 2011 Joe Armstrong
%% See MIT-LICENSE for licensing information.
%% Time-stamp: <2011-02-12 11:55:07 joe>
-module(raphael).
-compile(export_all).
start(Pid) ->
random_seed(),
put(pid, Pid), %% Ok since we'll never change this
init(Pid),
%% spawn(fun() -> put(pid,Pid),random_seed(), p... |
def sqrt(number):
"""
Calculate the floored square root of a number
Args:
number(int): Number to find the floored squared root
Returns:
int: Floored Square Root
"""
# Negative numbers don't have real square roots since a square is either positive or 0.
# source : https://www.... |
; RUN: llc -o - %s -mtriple=aarch64-windows -aarch64-enable-compress-jump-tables=0 | FileCheck %s
; RUN: llc -o - %s -mtriple=aarch64-windows -aarch64-enable-compress-jump-tables=0 -filetype=obj | llvm-readobj -unwind | FileCheck %s -check-prefix=UNWIND
define void @f(i32 %x) {
entry:
switch i32 %x, label %sw.epilog... |
function Select-Uri {
<#
.SYNOPSIS
Finds URIs in strings and files.
.DESCRIPTION
The Select-Uri function searches for URIs in a string or in a file.
.EXAMPLE
$string | Select-Uri
Will find URIs in $string and output as text.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.