text stringlengths 27 775k |
|---|
part of 'interfaces.nativechannels.dart';
abstract class IPlatformEntrypoint {
final String id;
final String mainChannelId;
final MethodChannel methodChannel;
final EventChannel eventChannel;
final CallBacksController callbacksController;
IPlatformEntrypoint({
required this.id,
required this.main... |
// @flow
import reduce from 'lodash/reduce'
import { AIR } from '../../step-generation/utils'
import { swatchColors, MIXED_WELL_COLOR } from '../swatchColors'
import type { WellFill } from '@opentrons/components'
import type { ContentsByWell, WellContents } from '../../labware-ingred/types'
export const ingredIdsToCol... |
; Creating a File (CreateFile.asm)
; Inputs text from the user, writes the text to an output file.
INCLUDE Irvine32.inc
BUFFER_SIZE = 501
.data
buffer BYTE BUFFER_SIZE DUP(?)
filename BYTE "output.txt",0
fileHandle HANDLE ?
stringLength DWORD ?
bytesWritten DWORD ?
str1 BYTE "Cannot create ... |
<?php
/**
* Disable unused buttons in TinyMCE.
*
* @param array $buttons TinyMCE button configuration.
*
* @return array
*/
function configure_tiny_mce_buttons( $buttons ) {
// Remove the text color selector
$remove = 'forecolor';
//Find the array key and then unset
if ( ( $key = array_search( $remove, $butt... |
import { OBV as defaultOptions } from "./defaultOptionsForComputation";
import { slidingWindow } from "../utils";
export default function() {
let options = defaultOptions;
let source = d => ({ close: d.close, volume: d.volume });
function calculator(data) {
const { windowSize } = options;
const obvAlgorithm ... |
var endpoint = "https://wind-bow.hyperdev.space/twitch-api";
//cretetion's Online Status
$.getJSON(endpoint + "/streams/cretetion?callback=?",function(channel) {
if(channel["error"] === "Not Found"){
$("#cretetion div:last-child").html(channel["message"]);
$("#cretetion").addClass("error");
}
if(channel["... |
package fr.smarquis.qrcode
import dagger.hilt.android.HiltAndroidApp
import fr.smarquis.qrcode.model.Decoder.MLKit
import fr.smarquis.qrcode.utils.checkGooglePlayServices
import fr.smarquis.qrcode.utils.initEmojiCompat
import fr.smarquis.qrcode.utils.isGooglePlayServicesAvailable
@HiltAndroidApp
class Application : ... |
using System;
using System.Collections.Generic;
using System.Linq;
using Xe.Game.Kernel;
using Xe.Tools.Services;
namespace Xe.Tools.Components.KernelEditor.Models
{
public class StatusesModel : GenericListModel<StatusModel>
{
private readonly MessageService messageService;
public StatusesModel(IEnumerable<Sta... |
/*-----------------------------------------------------------------------------
| Copyright (c) 2013-2017, Nucleic Development Team.
|
| Distributed under the terms of the Modified BSD License.
|
| The full license is in the file COPYING.txt, distributed with this software.
|--------------------------------------... |
# `21 version 3.10.5` release notes
*2017-2-14*
`21 version 3.10.5` fixes two bugs caused by server-side changes.
## Bugfixes
- Remove `buybitcoin` command which is no longer supported on the server side.
- Reuse error message on server for minimum flush amount.
|
#!/bin/sh
# git submodules
git submodule init
git submodule update
# npm dependencies
echo "Setup scratch-vm"
cd scratch-vm
npm install schema-utils
npm install
npm link
cd ..
echo "Setup scratch-gui"
cd scratch-gui
npm link scratch-vm
cd ..
echo "Done"
|
# workstation
some ansible scripts to setup a PUSH IT Workstation after installing a minimal Debian 11 Setup.
Planned:
- bashrc
- git setup
- some shortcuts
- toolset, i.e. for screenshots etc
- wallpaper
- bspwm or i3 window manager
- yii2 Bash Completion: https://raw.githubusercontent.com/yiisoft/yii2/master/contr... |
<?php
// src/AppBundle/Entity/Moderateur.php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="AppBundle\Repository\ModerateurRepository")
* @ORM\Table(name="moderateur")
*/
class Moderateur
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\Gener... |
// Copyright 2017 Xiaomi, Inc.
//
// 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... |
//------------------------------------------------------------------------------
// <自動產生的>
// 這段程式碼是由工具產生的。
//
// 變更這個檔案可能會導致不正確的行為,而且如果已重新產生
// 程式碼,則會遺失變更。
// </自動產生的>
//------------------------------------------------------------------------------
namespace Trainning
{
public partial class Form
... |
// Copyright (C) 2021 The Xaya developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "private/sync.hpp"
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <algorithm>
#include <chrono>
namespace xayax... |
import collections
import logging
import asyncio
import subprocess
import shlex
from typing import Generator, Tuple
from . import AbnormalExit
logger = logging.getLogger(__name__)
READ_QUEUE_STATUS = "pfctl -s queue -v"
METRIC_ALIASES = {"qlength": "queue_load_factor"}
class QueueMetrics(
collections.namedtuple... |
import * as proxyManager from './proxyManager';
import * as pubSub from './shared/pubSub';
import * as updateManager from './updateManager';
import * as utils from './shared/utils';
import * as paths from './shared/paths';
import state from './shared/state';
import { Store, UpdateInStore } from './shared/types';
import... |
import { Guild, UserInGuildNonStandard } from '../../types/common'
import { KHAPIMultiPage } from '../../types/kaiheila/api'
import { KHGuild, KHUserInGuild } from '../../types/kaiheila/common'
export interface KHGuildListResponse extends KHAPIMultiPage<KHGuild> {
sort: {
id: number
}
}
export interface KHGui... |
//Mocked buy screen - order is free
import React, { useState } from 'react'
import { useNavigate } from 'react-router-dom'
import { Form, Button } from 'react-bootstrap'
import { useDispatch, useSelector } from 'react-redux'
import FormContainer from '../Components/FormContainer'
import CheckoutSteps from '../Component... |
//[wisefy](../../../../index.md)/[com.isupatches.android.wisefy](../../index.md)/[Wisefy](../index.md)/[Brains](index.md)/[logger](logger.md)
# logger
[androidJvm]\
internal fun [logger](logger.md)(logger: [WisefyLogger](../../../com.isupatches.android.wisefy.logging/-wisefy-logger/index.md)): [Wisefy.Brains](index.m... |
const prompt = require('prompt');
const {recordUrl, recordMatcher, overwrite, serverPort, wsPort, mstrMode, https} = require('../lib/defaults');
const schema = {
properties: {
recordUrl: {
description: 'Enter delegated server url',
type: 'string',
default: recordUrl,
... |
/*
Copyright (C) 2013-2018 Expedia Inc.
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 wri... |
package messaging
import (
"log"
"os"
"github.com/kaz/flos/messaging/clear"
"github.com/kaz/flos/messaging/color"
)
type (
Protocol interface {
Encode(interface{}) ([]byte, error)
Decode([]byte, interface{}) error
Type() string
}
)
var (
logger = log.New(os.Stdout, "[messaging] ", log.Ltime)
DefaultP... |
#!/bin/bash
dir="res/proto"
cpp_outdir="gen/cpp/proto"
java_outdir="gen/java/proto"
desc_outdir="gen/proto/desc"
mkdir -p $cpp_outdir
mkdir -p $java_outdir
mkdir -p $desc_outdir
filelist=""
for file in $dir/*.proto; do
echo generate $file
protoc --proto_path=$dir --cpp_out=$cpp_outdir $file
protoc --proto_path=... |
package logger
import (
"github.com/op/go-logging"
"os"
)
// InitLogger initializes the logger
func InitLogger() {
// set logging format
var logFormat = logging.MustStringFormatter(
`%{color}%{time:15:04:05.000} %{id:03x} %{module:15s} %{shortfunc:20s} ▶ %{level:.4s} %{color:reset} %{message}`,
)
// setup lo... |
require 'spec_helper'
describe SmartRspec::Matchers do
describe BeMatchers do
describe '#be_ascending' do
context 'positive assertion' do
it { expect([1, 2, 3, 4]).to be_ascending }
end
context 'negative assertion' do
it { expect([1, 4, 2, 3]).not_to be_ascending }
end
... |
require 'date'
def count_sundays
sunday_count = 0
date = Date.new(1901, 1, 1)
end_date = Date.new(2000, 12, 31)
while date <= end_date
sunday_count += 1 if date.sunday?
date = date >> 1
end
sunday_count
end
|
#help: Run `env`, showing env variables after the `.env` and `_init.sh` sourcing.
env "$@" | sort
|
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
final ChangeNotifierProvider<Counter> changeNotifierProvider = ChangeNotifierProvider((_) => Counter());
class Counter extends ChangeNotifier {
int _count = 0;
int get count => _count;
void increment() {
_cou... |
/*
https://docs.nestjs.com/providers#services
*/
// eslint-disable-next-line @typescript-eslint/no-var-requires
const redis = require('async-redis')
import { Injectable } from '@nestjs/common';
import { REDIS_CONFIG } from '../config';
@Injectable()
export class RedisService {
private redisDB;
constructor()... |
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using UnityEngine;
using UnityEngine.Events;
public class GizmoRelationManager : Manager
{
public enum RelationSettingEnum
{
Local,
Global
}
public static RelationSettingEnum Relation... |
############################################################
# Copyright 2020 New Relic Corporation. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
############################################################
param($installPath, $toolsPath, $package, $project)
$config = $project.ProjectItems.Item("Web.Con... |
program test_variable_dict
use variable_dict_interface, only : var_dict_t
use variable_interface, only : variable_t
use grid_interface, only : grid_t
implicit none
type(var_dict_t) :: var_collection
type(variable_t) :: var1, var2, var3, output_var
type(grid_t)... |
#!/usr/bin/env bash
set -e
cd "/home/wir-$1/deployed/swap-backend/babajka-backend"
npm ci
npm run patch-package
|
/*
* Copyright 2018 The Polycube Authors
*
* 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 agree... |
//
// Copyright Toon Knapen, Karl Meerbergen
// Copyright Thomas Klimpel 2008
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOOST_NUMERIC_BINDINGS_LAPACK_TEST_UBLAS_HEEV_HPP
#define BOOST_NUMER... |
module TeachersPet
class Cli
option :repository, required: true, banner: 'OWNER/REPO'
common_options
desc 'merge_pull_requests', "Merges all open pull requests on a particular repository"
def merge_pull_requests
TeachersPet::Actions::MergePullRequests.new(options).run
end
end
end
|
// This code has been based from the sample repository "cecil": https://github.com/jbevain/cecil
// Copyright (c) 2020 - 2021 Faber Leonardo. All Rights Reserved. https://github.com/FaberSanZ
// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
namespace LSharp.IL
{
public en... |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ApplicativeDo #-}
module Database.Logic.Users
( createUser
, getExistingUser
, getUsers
, getUserAuthData
, deleteUser
, userColumns
, optUserColumns
) where
import Core.Authentication
import Core.Authentication.Impl
import Core.Deletable
import Core.Image
imp... |
---
slug: Suspicious-Cat
template_id: 232
title: Suspicious Cat
---
|
=begin
JRubyFX - Write JavaFX and FXML in Ruby
Copyright (C) 2013 The JRubyFX Team
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... |
part of 'widgets.dart';
class CircularPulsatingContainer extends StatefulWidget {
final Duration duration;
final Widget child;
final EdgeInsets padding;
final double width;
final double height;
final Color color;
final Color pulseColor;
const CircularPulsatingContainer({
Key key,
@required thi... |
SpreeNavConnector::Engine.configure do |config|
# Set this options to what makes sense for you
# Savon global configuration => http://savonrb.com/version2/globals.html
# Example: config.option = 'different_option'
config.open_timeout = 5
config.read_timeout = 120
config.username ... |
# This script init vagrant and deploy application
vagrant up
# Test using command line using curl
sleep 5
curl http://127.0.0.1:8080
|
# frozen_string_literal: true
# Decodes and encodes Mail::Message objects from or into the "flowed format"
# specified in RFC3676 (though without support for the "DelSp" parameter)
module DiscourseNntpBridge
module FlowedFormat
# TODO: This does not actually perform a message-object-to-message-object
# deco... |
from osgeo import ogr
multipoint = ogr.Geometry(ogr.wkbMultiPoint)
point1 = ogr.Geometry(ogr.wkbPoint)
point1.AddPoint(1251243.7361610543, 598078.7958668759)
multipoint.AddGeometry(point1)
point2 = ogr.Geometry(ogr.wkbPoint)
point2.AddPoint(1240605.8570339603, 601778.9277371694)
multipoint.AddGeometry(point2)
point... |
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using VsValidate.Utilities;
using VsValidate.Validation.Rules;
using VsValidate.VisualStudio;
namespace VsValidate.Validation
{
internal class Validator
{
public Validator(IEnumerable<IRule> rules, IProjectLoader p... |
import * as view from "./view";
export const size = view.size / 17;
export const colors = [
0x000000,
0xe91e63,
0x4caf50,
0xffeb3b,
0x3f51b5,
0x9c27b0,
0x03a9f4,
0xeeeeee
];
export const colorChars = "-rgybpcw";
const brightnesss = [0, 0.4, 0.7, 1];
const response = 0.36;
export class... |

# py3status


**py3status** is an extensible i3status wrapper written in Python.
... |
import {Helper, Navigation} from '../../../../shared/components/footer/footer.model';
import {environment} from '../../../../../environments/environment';
export const helpData: Helper = {
heading: 'Help',
email: {
address: environment.serviceDeskEmail,
text: environment.serviceDeskEmail
},... |
import express from 'express';
import cors from 'cors';
import notFound from './middleware/404.js';
import error from './middleware/error.js';
import authRouter from './auth/router';
import router from '../src/api/api';
// import auth from '../src/auth/middleware';
const app = express();
app.use(cors());
app.use(... |
/*
⚠️ ЗАДАНИЕ ПОВЫШЕННОЙ СЛОЖНОСТИ - ВЫПОЛНЯТЬ ПО ЖЕЛАНИЮ
Создайте плагин галлереи используя ES6 класс. Добавьте поля и методы класса так,
чтобы можно было создать любое количество галлерей на странице. Функционал плагина
аналогичный заданию выше.
При создании экземпляра конструктор получает:
- items - ... |
'use strict'
const supertest = require('supertest')
const build_host = require('./helpers/build-host')
const build_client = require('./helpers/build-client')
describe('integration tests', () => {
describe('host first, then client', () => {
let host = null
let client = null
let server = null
beforeE... |
function getRandomInt(min, max) {
min = Math.ceil(min)
max = Math.floor(max)
return Math.floor(Math.random() * (max - min) + min) //The maximum is exclusive and the minimum is inclusive
}
function generateWaveString(coord, index, x, rtl, width, bumps) {
let string = ''
let pointString = `C`
coord.map((poin... |
using System;
namespace Inheritance
{
class Program
{
static void Main(string[] args)
{
TohumluBitkiler tohumluBitkiler = new TohumluBitkiler();
tohumluBitkiler.Bosaltim();
tohumluBitkiler.TohumlaCogalma();
Kuslar marti = new Kuslar();
... |
import React, { useEffect } from 'react';
import ArticleItem from '../components/Articles/ArticleItem';
function MoreArticles({ news, screenPosition }) {
useEffect(() => {
window.scrollTo({ top: screenPosition });
// eslint-disable-next-line
}, []);
return (
<div className="pt-4 container-lg">
... |
#include "Quadtree.h"
#include <algorithm>
#include <assert.h>
using namespace ltbl;
Quadtree::Quadtree()
: minNumNodeOccupants(3),
maxNumNodeOccupants(6),
maxLevels(40),
oversizeMultiplier(1.0f)
{}
void Quadtree::operator=(const Quadtree &other) {
minNumNodeOccupants = other.minNumNodeOccupants;
maxNumNodeOccup... |
from datetime import datetime
class Headers(object):
CRLF = b"\r\n"
EOH = b"\r\n\r\n"
def __init__(self, data=None, status_line=None):
self.buffer = data or b''
self.finished = False
self.status_line = status_line
self.headers = {}
def __len__(self):
return le... |
<?php
namespace Ulex\EpicRepositories\Interfaces;
interface EpicInterface
{
/**
* EpicInterface constructor.
* @param $model
* @param EpicInterface|null $epic
*/
public function __construct($model, EpicInterface $epic = null);
}
|
from google.appengine.api import memcache
from datetime import datetime
#from ithz.data import queryRSS, RssScheduledModel
from ithz.lib import feedparser
from ithz.template import getTemplate
def getBlog(id,page=0):
v = {}
tr = getTemplate("controls/blog",v)
return tr
def addBlog(id):
pass
|
import React from 'react'
import styled from 'styled-components'
import Loans from './Loans'
import { Atom } from '@grammarly/focal'
import { Loan } from '../types'
import { persist } from '../utils/focal-utils'
import PayoutCalculator from './PayoutCalculator'
import Header from './Header'
import colors from '../utils... |
#import <Foundation/Foundation.h>
@interface SYSafeCategory : NSObject
+(void)callSafeCategory;
@end
|
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class DeliveryTime extends Model
{
use HasFactory;
protected $fillable=[
'divisionId','districtId', 'thanaId','unionId','wardId','deliveryTime'
];
public function allUni... |
package api
import (
"encoding/json"
"fmt"
"net/http"
"github.com/code-ready/admin-helper/pkg/constants"
"github.com/code-ready/admin-helper/pkg/hosts"
"github.com/code-ready/admin-helper/pkg/types"
)
func Mux(hosts *hosts.Hosts) http.Handler {
mux := http.NewServeMux()
mux.HandleFunc("/version", func(w http... |
import initialState from '../../initialState';
import {
GET_APP_REGISTRED_SUCCESS,
GET_APP_REGISTRED_ERROR,
GET_APPNBR
} from '../../../actions/actionTypes';
export default function appRegistred(state = initialState.appRegistred, action) {
switch (action.type) {
case GET_APP_REGISTRED_SUCCESS:
return... |
class GetAverageProcessingTimeInDays < ApplicationService
def initialize(target_api)
@filter_by_target_api_criteria = target_api ?
"target_api = '#{ActiveRecord::Base.connection.quote_string(target_api)}'" :
"1 = 1" # equivalent to no filter
end
# Temps moyen de traitement des demandes
def call... |
a=1
echo $a
echo $* $@ $_
export -f var-var
export -f var-var-var
|
-- Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
-- SPDX-License-Identifier: Apache-2.0
-- | An extended version of "Data.Aeson.TH", which provides our own
-- 'daAesonEncodingOptions' and the corresponding 'deriveDAJSON'.
module Data.Aeson.TH.Extended
( module Data... |
package io.sarl.akka.bic
import io.sarl.akka.AkkaAgent
import io.sarl.core.Behaviors
import io.sarl.core.ExternalContextAccess
import io.sarl.lang.core.*
import io.sarl.lang.util.SynchronizedIterable
import java.util.*
class ExternalContextAccessSkill(val akkaAgent: AkkaAgent, owner: Agent) : Skill(owner), ExternalCo... |
#!/usr/bin/env bash
cd backend; npm i; cd -
cd frontend; npm i; cd -
|
import aoc_utils as cu
data = """5483143223
2745854711
5264556173
6141336146
6357385478
4167524645
2176841721
6882881134
4846848554
5283751526"""
# data = """11111
# 19991
# 19191
# 19991
# 11111"""
data = """3172537688
4566483125
6374512653
8321148885
4342747758
1362188582
7582213132
6887875268
7635112787
724278727... |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, CApiFFI #-}
-----------------------------------------------------------------------------
-- |
-- Module : System.CPUTime
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libr... |
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'features/main/presentation/bloc/main_bloc.dart';
import 'features/main/presentation/pages/now_playing.dart';
import 'injection_container.dart' as di;
import 'injection_container.dart';
void main() async {
// To let flut... |
-- file:create_table.sql ln:579 expect:true
SELECT attname, attislocal, attinhcount FROM pg_attribute
WHERE attrelid = 'part_a'::regclass and attnum > 0
ORDER BY attnum
|
#!/bin/bash
# install k3s
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--disable servicelb" sh -
kubectl patch svc traefik --patch '{"spec":{"externalIPs":["192.168.3.10"]}}' -n kube-system
kubectl patch deployment traefik --patch '{"spec":{"template":{"spec":{"hostNetwork":true}}}}' -n kube-system
|
module Internal.Ppc.StorableSpec where
import Foreign
import Foreign.C.Types
import Test.Hspec
import Test.QuickCheck
import Hapstone.Internal.Ppc
import Internal.Ppc.Default
-- | main spec
spec :: Spec
spec = describe "Hapstone.Internal.Ppc" $ do
ppcOpMemStructSpec
ppcOpCrxStructSpec
csPpcOpSpec
c... |
/*
Copyright 2020. Huawei Technologies Co., Ltd. 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.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless ... |
import sbt.internal.inc.classpath.ClasspathUtilities
import xsbti.AppConfiguration
lazy val checkFull = taskKey[Unit]("")
lazy val check = taskKey[Unit]("")
lazy val checkArtifact = taskKey[Unit]("")
ThisBuild / useCoursier := false
ThisBuild / scalaVersion := "2.12.12"
ThisBuild / version := "0.1.0-SNAP... |
/*
* 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 ... |
#ifndef TEXTNET_NET_TRAIN_VALID_NET_INL_HPP_
#define TEXTNET_NET_TRAIN_VALID_NET_INL_HPP_
#include <mshadow/tensor.h>
#include "./net.h"
namespace textnet {
namespace net {
template<typename xpu>
class TrainValidNet : public Net<xpu>{
public:
TrainValidNet() { this->net_type = kTrainValid; }
virtual ~TrainValid... |
// Copyright 2019 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 firebase_remote_config;
/// RemoteConfigSettings can be used to configure how Remote Config operates.
class RemoteConfigSettings {
RemoteConfig... |
namespace WinForms.UserControls
{
using System;
using System.Windows.Forms;
public partial class PiDebuggerInput
: UserControlBase
{
public PiDebuggerInput()
{
InitializeComponent();
}
private void PiDebuggerInput_Load(object sender, EventArgs e)
... |
<?php
return [
/*
* |--------------------------------------------------------------------------
* | Users Language Lines
* |--------------------------------------------------------------------------
* |
*/
'add' => 'Tạo user',
'choose_group' => 'Chọn quyền',
'users'=>'Users',
... |
class AuthenticationState {
const AuthenticationState();
}
class Authenticated<T extends Object> extends AuthenticationState {
T user;
dynamic data;
Authenticated({required this.user, this.data});
}
class Unauthenticated extends AuthenticationState {
dynamic data;
Unauthenticated({this.data});
}
class Lo... |
class PaymentType < ApplicationRecord
self.primary_key = 'id'
validates :code, presence: true
validates :description, presence: true
belongs_to :company, :foreign_key => 'domain'
has_many :payments, :dependent => :restrict_with_error
end
|
package org.tndata.android.grow.task;
import java.io.InputStream;
import java.lang.ref.WeakReference;
import org.tndata.android.grow.util.ImageCache;
import org.tndata.android.grow.util.ImageHelper;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.... |
## Synopsis
This project includes an html portfolio for Brenda Farrier created for a class assignment at Epicodus.
## Code Example
Standard HTML using primarily Bootstrap for css
## Motivation
This is a Friday project at the end of week four - Intro Evening Class.
## Installation
Simple HTML using Bootstrap.css ... |
#!/bin/bash
#
# Script to run tests in a simplified command line.
#
# Sets environment variables, and outputs human redable report.
#
# This is a personal script, it should be improved to meet minimal quality.
# In the meantime, you can replace environment variables to fit your setup
# and play with it.
#
# Official w... |
#include "sim/init.hh"
namespace {
const uint8_t data_m5_objects_BaseTLB[] = {
120,156,181,80,77,75,195,64,16,157,77,63,252,192,131,224,
77,16,61,6,33,93,63,232,65,16,41,189,42,10,77,47,
230,18,54,155,105,55,146,77,203,238,22,218,179,254,111,157,
137,173,226,15,112,119,243,152,33,143,121,111,158,134,2... |
# frozen_string_literal: true
require 'securerandom'
require 'base64'
require 'sanitize'
require 'mimemagic'
require 'mimemagic/overlay'
module MojFile
class Add
include MojFile::AzureBlobStorage
include MojFile::Logging
ACTION_NAME = 'Add'
attr_accessor :collection,
:errors,
... |
///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (C) 2018-2019, Max Planck Gesellschaft
// Copyright note valid unless otherwise stated in individual files.
// All rights reserved.
////////////////////////////////////////////////////////////////////... |
import os.path
from parameterized import parameterized
import pytest
from unittest import TestCase
from samtranslator.yaml_helper import yaml_parse
from samtranslator.validator.validator import SamTemplateValidator
from tests.validator.test_validator import TestValidatorBase
BASE_PATH = os.path.dirname(__file__)
INPUT... |
import React from 'react';
import './feature-block.scss';
import { Icon } from '../../../../components';
type Props = {
icon: string;
title: string;
desc: string;
};
export const FeatureBlock = ({ icon, title, desc }: Props): React.ReactElement => (
<div className="feature-block">
<div className="feature-... |
<?php
/*
* This file is part of the StockManager.
*
* (c) Frogg <admin@frogg.fr>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App;
/**
* @author Frogg <admin@frogg.fr>
*/
class SiteConfig
{
/*########
# GLOB... |
package simulation
// DONTCOVER
import (
"math/rand"
simappparams "github.com/cosmos/cosmos-sdk/simapp/params"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
"github.com/cosmos/cosmos-sdk/... |
require_relative 'shorteners/butts_so'
require_relative 'shorteners/bitly'
class CommandLineParser < Thor
map '--version' => :version, '-v' => :version
desc 'shorten URL',
'shortens the given URL using a service (butts.so by default)'
method_option :service, type: :string, default: 'butts.so', aliases: '-s'... |
package org.mydaily.di
import org.koin.dsl.module
import org.mydaily.data.remote.datasource.*
val remoteDataSourceModule = module {
single<GoalRemoteDataSource> { GoalRemoteDataSourceImpl(get()) }
single<KeywordRemoteDataSource> { KeywordRemoteDataSourceImpl(get()) }
single<ReportRemoteDataSource> { Repor... |
---
title: توثيق
type: menu only
---
This page will not be shown as the type is "menu only" |
cask :v1 => 'cura' do
version '15.01'
sha256 'ab85c8d81fdd168d7644837baeaf1a5b4bdf1f87731ccf674466467c9d6ec343'
url "http://software.ultimaker.com/current/Cura-#{version}-MacOS.dmg"
homepage 'https://ultimaker.com/en/products/software'
license :oss
app 'Cura/Cura.app'
zap :delete => '~/.cura'
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.