text
stringlengths
27
775k
package com.github.hotm.world.gen.surfacebuilder import com.github.hotm.HotMConstants import net.minecraft.util.registry.BuiltinRegistries import net.minecraft.util.registry.Registry import net.minecraft.world.gen.surfacebuilder.ConfiguredSurfaceBuilder import net.minecraft.world.gen.surfacebuilder.SurfaceConfig /** ...
# errorIfNotIntegerZeroOrGreater(arg): void In order to not trigger an error, `arg` must be type 'number' and an integer of 0 or greater. ## Examples ``` errorIfNotIntegerZeroOrGreater('1'); // Error: "Input must be a finite number of type 'number' " errorIfNotIntegerZeroOrGreater(0.55); // Error: "Input must be i...
import React, { useState } from 'react'; import { Button, Flex } from '@chakra-ui/react'; import { motion } from 'framer-motion'; import { useAppDispatch } from '../AppContext'; import TodoModal from '../TodoModal'; const MotionFlex = motion.custom(Flex); interface TodoProps { todo: { id: string; title: s...
using Newtonsoft.Json; namespace PetitGeo30.Models { public class GeoCacheModel { [JsonProperty("_id")] public string Id { get; set; } [JsonProperty("_rev")] public string Rev { get; set; } [JsonProperty("geoCacheId")] public int GeoCacheId { get; set; } ...
print('FOR/ELSE EM OLD') variavel = ['Caio','Cesar','Pereira','Neves'] for valor in variavel: print(valor) print() for nome in variavel: # startswith = VERIFICA SE UM VALOR DA STRING COMEÇA COM LETRA ESPECIFICA if nome.startswith('C'): print(f'Começa com C: {nome}') else: print(f'Não ...
package io.piano.android.ktlint import org.gradle.api.Plugin import org.gradle.api.Project import org.gradle.kotlin.dsl.apply import org.jlleitschuh.gradle.ktlint.KtlintExtension import org.jlleitschuh.gradle.ktlint.KtlintPlugin class KtlintConfigPlugin : Plugin<Project> { override fun apply(target: Project) = ta...
# Society-and-Civilization- Implementation of an Optimization Algorithm Project cancelled since I coulden't figure out the constraint handling =)
# Hasee-K580C-Hackintosh Hasee laptop K580C hackintosh drivers and Clover configuration. # Drivers Changes - Use Clover patcher to drive Sound. 2015-1-28 # Hasee laptop K580C Hardware List CPU : Core i7 4700MQ Haswell Chipset : Intel HM86 GPU : NVIDIA GT750M/Intel HD4600 Mobile Sound : ALC282 E...
organization := "com.typesafe.sbt" name := "sbt-gzip" description := "sbt-web plugin for gzipping assets" addSbtWeb("1.4.2")
--- title: "Decentralized Exchange" disableToc: false #no table of contents --- A Decentralized [Exchange](notes/Exchange.md) - [Decentralization](notes/Decentralization.md)
// <copyright file="FhirCodeSystem.cs" company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. // </copyright> using System; using System.Collections.Generic; using System.Text;...
using TCC.TeraCommon.Game.Services; namespace TCC.TeraCommon.Game.Messages.Server { public class S_LEAVE_PARTY_MEMBER : ParsedMessage { internal S_LEAVE_PARTY_MEMBER(TeraMessageReader reader) : base(reader) { var nameoffset = reader.ReadUInt16(); ServerId = reader.ReadU...
<?php namespace yiiunit\data\modules\magic\controllers; class ETagController extends \yii\console\Controller { public function actionListETags() { return ''; } public function actionDelete() { return 'deleted'; } }
import cat from "./abis/cat.json"; import dai from "./abis/dai.json"; import daiJoin from "./abis/daiJoin.json"; import dsProxy from "./abis/dsProxy.json"; import dssCdpManager from "./abis/dssCdpManager.json"; import dssProxyActions from "./abis/dssProxyActions.json"; import dssProxyActionsDsr from "./abis/dssProxyAct...
# Implementation of simple Convay's life game designed mainly # for node compiler testing # # (C) 2015 Alexey Voskov # License: 2-clause BSD module LifeGame # Representation of the cell of the game grid (field) # Keeps the state of the cell (EMPTY, FILLED, BORN, DEAD) # and neighbours of the cell (as array of pointers...
@using DietCalculatorSystem @using DietCalculatorSystem.Models @using DietCalculatorSystem.Data.Models @using DietCalculatorSystem.Models.Home @using DietCalculatorSystem.Models.Diets @using DietCalculatorSystem.Models.Foods @using DietCalculatorSystem.Services.Foods.Models @using Microsoft.AspNetCore.Identity @addTag...
require 'spec_helper_acceptance' describe 'basic swift' do context 'default parameters' do it 'should work with no errors' do pp= <<-EOS include ::openstack_integration include ::openstack_integration::repos include ::openstack_integration::rabbitmq include ::openstack_integration...
#Exercício - 2 puts "Escreva algo:" string=gets; verificar=string.ascii_only? if verificar puts "Contém somente caracteres ASCII" else puts "Contém caracteres não ASCII" end
#!/bin/env bash # supervisord and attendance_management_bot logs are auto cleaned. # see the configure files for them. # remove out of date attendance_management_bot logs and compress log clover_log_path=/home1/irteam/logs/attendance_management_bot/ find $attendance_management_bot_log_path -mtime +50 -name 'attendanc...
import { subscribe } from "@uxland/event-aggregator"; import { handleErrors, INVALID_CREDENTIALS_EVENT, INVALID_REQUEST_EVENT, } from "../../../src/handlers/handle-errors"; describe("Given a response", () => { describe("and response is ok", () => { const response: any = { ok: true, status: 200,...
import { ActionType } from './action-type'; import { FromJson } from './from-json'; /** * Rule JSON */ export interface RuleJson { id: number; prefix_name: string; from: FromJson; action: ActionType; }
#!/bin/bash # Copyright (c) 2019 P3TERX # From https://github.com/P3TERX/Actions-OpenWrt set -eo pipefail if [ -z "${OPENWRT_COMPILE_DIR}" ] || [ -z "${OPENWRT_CUR_DIR}" ] || [ -z "${OPENWRT_SOURCE_DIR}" ]; then echo "::error::'OPENWRT_COMPILE_DIR', 'OPENWRT_CUR_DIR' or 'OPENWRT_SOURCE_DIR' is empty" >&2 exit 1 ...
package token import ( "context" "github.com/go-kratos/kratos/v2/middleware" "github.com/go-kratos/kratos/v2/transport/grpc" "github.com/go-kratos/kratos/v2/transport/http" "google.golang.org/grpc/metadata" ) func JwtWithAuthInfo(jt *Token) middleware.Middleware { return func(handler middleware.Handler) middlew...
import 'dart:typed_data'; import 'bzip2/bzip2.dart'; import 'bzip2/bz2_bit_reader.dart'; import 'util/archive_exception.dart'; import 'util/byte_order.dart'; import 'util/input_stream.dart'; import 'util/output_stream.dart'; /** * Decompress bzip2 compressed data. * Derived from libbzip2 (http://www.bzip.o...
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to us...
package blobstoreBenchmark.rocksDB import java.io.File import org.rocksdb.RocksDB import org.rocksdb.Options import org.rocksdb.WriteBatch import org.rocksdb.WriteOptions import blobstoreBenchmark.core.Harness import blobstoreBenchmark.core.Key import blobstoreBenchmark.core.Pair import blobstoreBenchmark.core.Plan i...
var scroller = angular.module("scroller", ["ngTouch", "angular-websql"]);
package io.elves.core.context; import com.google.common.collect.ImmutableList; import io.elves.core.coder.Coder; import io.netty.handler.codec.http.HttpHeaders; import java.nio.charset.StandardCharsets; import java.util.Collections; import java.util.List; import java.util.Map; /** * this class is read only * * @a...
using System; namespace Business.Common.Requests { public class RequestObject : IRequestObject { public RequestObject() { DateCreatedUtc = DateTime.UtcNow; } public RequestObject(DateTime dateCreatedUtc) { DateCreatedUtc = dateCreatedUtc; ...
package co.com.lafemmeapp.lafemmeapp.presentation.history import android.app.Activity import android.content.Context import android.support.v4.widget.SwipeRefreshLayout import co.com.lafemmeapp.core.domain.entities.abstracts.User import co.com.lafemmeapp.lafemmeapp.events.OnAppointmentRatedEvent import co.com.lafemmea...
#!/usr/bin/env perl use strict; # mdbox-obfuscate.pl < ~/mdbox/storage/m.1 > m.obfuscated # Check with text editor that everything appears to be obfuscated. # This script isn't perfect.. # For testing that you can reproduce problem: # mkdir -p ~/mdbox-test/storage # cp m.obfuscated ~/mdbox-test/storage/m.1 # doveadm ...
content.prop.material.xenotech = content.prop.material.base.invent({ name: 'material/xenotech', createSynth: function () { this.synth = engine.audio.synth.createAm({ carrierDetune: 0, carrierFrequency: this.rootFrequency, carrierGain: 1/2, carrierType: 'square', gain: 1, modD...
# wunderwaffle A tiny, asynchronous, multiple account «miner» for VK Coin # Instructions 1. Install Python >=3.7 and Node.js¹ ==any 2. Install Python's packages: websockets, requests, asyncio 3. Create a file «accs.txt» 4. Fill it with accounts formatted as «login:password»(note that first line is master account, ...
import styles from './RawVis.module.css'; interface Props { value: unknown; } function RawVis(props: Props) { const { value } = props; const valueAsStr = JSON.stringify(value, null, 2); if (valueAsStr.length > 1000) { console.log(value); // eslint-disable-line no-console return ( <p className=...
#!/bin/bash EXEC=./Castro2d.gnu.MPI.TRUESDC.ex CONV_TOOL=RichardsonConvergenceTest2d.gnu.ex mpiexec -n 8 ${EXEC} inputs_2d.32 amr.plot_file=bubble_32_sdc4_plt >& 32.out mpiexec -n 8 ${EXEC} inputs_2d.64 amr.plot_file=bubble_64_sdc4_plt >& 64.out mpiexec -n 8 ${EXEC} inputs_2d.128 amr.plot_file=bubble_128_sdc4_plt >...
class Instrument{ int numberOfStrings; String brand; String color; void printingMessage(int var1, String var2, String var3){ System.out.println("This guitar has: "+var1+", has an incredible "+var2+" and it's a "+var3+" model."); } }
package com.milo.ms.services; import com.milo.brewery.model.BeerOrderDto; import com.milo.brewery.model.BeerOrderPagedList; import org.springframework.data.domain.Pageable; import java.util.UUID; public interface BeerOrderService { BeerOrderPagedList listOrders(UUID customerId, Pageable pageable); BeerOrder...
# admin-upms 用户认证中心与权限中心 # 预览 ![1](https://raw.githubusercontent.com/hb0730/admin-upms/main/doc/img/20210105142531.gif) # 前端地址 [upms-ui](https://github.com/hb0730/admin-upms-ui)
package brandenc.com.chatmatch import brandenc.com.chatmatch.Callbacks.TitlesCallback import org.jetbrains.anko.doAsync /** * Auxiliary class used to grab the titles from the provided urls * * @constructor Creates a PageTitleRetriever */ class PageTitleRetriever(private val titleRetriever: TitleRetriever) { ...
package bootstrap import ( . "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo/extensions/table" . "github.com/onsi/gomega" "github.com/kumahq/kuma/pkg/config/api-server/catalog" kuma_cp "github.com/kumahq/kuma/pkg/config/app/kuma-cp" "github.com/kumahq/kuma/pkg/config/core" ) var _ = Describe("Auto configura...
--- title: new Vue发生了什么事情 tags: - vue --- :::warning 疑问 为什么`mounted()` 方法中通过`this.属性名`就可以获取到`data`里面的属性, 既然this可以取到这个属性, 说明this上也有这个属性,他是怎么做到的呢 ::: 1. `new Vue()`干了哪些事情 Vue的本质就是一个`function` ```js // instance/index.js function Vue (options) { if (process.env.NODE_ENV !== 'production' && !(this instanceof Vue)...
; RUN: opt < %s -constmerge -S | FileCheck %s ; CHECK: = constant i32 1, !dbg [[A:![0-9]+]], !dbg [[B:![0-9]+]] @a = internal constant i32 1, !dbg !0 @b = unnamed_addr constant i32 1, !dbg !9 define void @test1(i32** %P1, i32** %P2) { store i32* @a, i32** %P1 store i32* @b, i32** %P2 ret void } !llvm.dbg.cu = ...
#!/bin/bash -e echo "${NODE}.${duration} sleep: ${duration} sec" /bin/sleep $duration echo "Test input with all types of variables" # simple property echo "Comment with instanciated variables : ${comment}" # Diplaying data file echo "Display local data artifact file" cat ${data} if [ -z "$http_artifact" ]; then e...
# Resolving lib path $LIBP=(Resolve-Path .\lb\).Path # Prepping the environment $env:LIB="$($env:LIB)$LIBP;" Write-Host "LIB @ $LIBP" # Building target if ($env:BUILD_MODE -eq "release") { cargo build --release } else { cargo build }
cask :v1 => 'story-writer' do version '1.3.1' if Hardware::CPU.is_32_bit? sha256 '8e109e3f6e66dd380fcb2f1d68dda592dc12a36ca9c72b7f477057f6bff8c844' url "http://soft.xiaoshujiang.com/version/Story-writer-v#{version}/Story-writer-osx32.zip" else sha256 'cf3203587775e6260513511b4a9bc91e39d0699ccc59eff37...
<?php namespace App\Http\Controllers; use App\Models\About; use App\Models\Coffe; use App\Models\Product; use App\Models\Promise; use Illuminate\Http\Request; class AllController extends Controller { public function home(){ $coffe = Coffe::first(); $promise = Promise::first(); // dd($prom...
import React from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import Loading from '../Loading'; export default function PostsPage({ posts }) { return !posts ? ( <Loading /> ) : ( <div className="PostsPage"> <ul> {posts.map((post) => ( <li cl...
<?php namespace App\Http\Controllers\Dashboard; use Illuminate\Http\Request; use App\Http\Controllers\Controller; class LinksCreate extends Controller { public function __invoke(Request $request) { // new link $linkData = []; return view( 'links.create', compa...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TripPlanner.Core.Entities; namespace TripPlanner.Core.Interfaces { public interface IDestinationTripRepository { Response<DestinationTrip> Add(DestinationTrip destinationTrip); ...
package pl.touk.krush.types import org.assertj.core.api.Assertions.assertThat import org.jetbrains.exposed.sql.SchemaUtils import org.jetbrains.exposed.sql.select import org.jetbrains.exposed.sql.transactions.transaction import org.junit.jupiter.api.Test import pl.touk.krush.base.BaseDatabaseTest import java.time.Cloc...
use crate::event::{EventHandler, EventName}; use crate::{AttributeValue, Patch, PatchSpecialAttribute}; use crate::{VElement, VirtualNode}; use std::cmp::min; use std::collections::HashMap; use std::mem; /// Given two VirtualNode's generate Patch's that would turn the old virtual node's /// real DOM node equivalent in...
import debug from 'debug'; import { API } from './api.js'; import { AuthManager } from './authManager.js'; import { Board } from './board.js'; import { Database } from './database.js'; import { Executer } from './executer.js'; import { Monitor } from './monitor.js'; import { Server } from './server.js'; import { TaskMa...
-- | -- Module : Prime.Servant.Time -- License : BSD-style -- Maintainer : Nicolas Di Prima <nicolas@primetype.co.uk> -- Stability : stable -- Portability : Good -- {-# LANGUAGE GeneralizedNewtypeDeriving #-} module Prime.Servant.Time ( Time , Elapsed , timeCurrent , timeAdd , H.timePri...
from . import generator_utils from .Span2Phrase import span2phrase from .Tag2Phrase import tag2phrase from .Chunk2Phrase import chunk2phrase from .Rank2Phrase import rank2phrase
# Linux chattr Command ------------------- ### Command Introduction (命令介绍) > **chattr - change file attributes on a Linux file system** ### Command Format and Options (命令格式和选项) ``` #chattr --help Usage: chattr [-RVf] [-+=aAcCdDeijsStTu] [-v version] files... ``` ### Command Example (命令范例) ``` chattr Change attrib...
require 'rubygems' require 'selenium-webdriver' require 'chunky_png' require 'open-uri' require 'rbconfig' require 'appium_lib' include RbConfig require_relative 'misc_methods' require_relative 'error_handling_methods'
<?php /** * @file * @brief * Mirrors content of a song by its URL in this domain to another (our) domain :) */ if(!$_GET||!$_GET['id']) { echo "Hey, you want to print some song? Go to the <a href='seznam'>seznam</a> first!"; die();//Yes, commit suicide. So soon? } $song_id = $_GET['id']; echo file_get_conte...
import Pkg Pkg.activate(".") Pkg.instantiate() using WebIO WebIO.install_jupyter_nbextension() using DataFrames using DataFramesMeta # using Gadfly # Removed for now because downgrades DataFrames version using IJulia using Weave using CSV using Revise using TableView using Printf using PrettyTables using Formatting usi...
#pragma once #include "par_io.h" #include "xo/container/flat_map.h" #include "xo/filesystem/path.h" namespace spot { class SPOT_API static_par_set : public par_io { public: static_par_set() : par_io() {} static_par_set( const path& filename ) : par_io() { load( filename ); } virtual size_t dim() const overr...
package me.liuqingwen.android.projectandroidtest import android.graphics.Color import android.view.View /** * Created by Qingwen on 2018-6-9, project: ProjectAndroidTest. * * @Author: Qingwen * @DateTime: 2018-6-9 * @Package: me.liuqingwen.android.projectandroidtest in project: ProjectAndroidTest * * Notice: I...
package com.tq.requisition.domain.model.roleAccount; import java.util.UUID; import com.tq.requisition.domain.share.AggregateRoot; /** * 角色用户关系聚合根 * @author jjh * @time 2015-12-21 17:21 */ public class RoleAccount extends AggregateRoot{ /*private fields*/ /**账户id*/ private UUID accountId; /**角色id*/ private ...
export class WatchlistItem { ticker: string; name: string; price: number; static with(ticker: string, name: string, price: number): WatchlistItem { const item = new WatchlistItem(); item.ticker = ticker; item.name = name; item.price = price; return item; } ...
-module(aoc_2015_22_1). -export([start/0]). start() -> In = input(), Out = do(In), io:format("~p~n", [Out]), ok. input() -> {ok, [HP]} = io:fread("", "Hit Points: ~d"), {ok, [Atk]} = io:fread("", "Damage: ~d"), {HP, Atk}. do({OHP, Atk}) -> bfs(OHP, Atk). -record(state, {spend = 0, p...
// Copyright 2014 Olivier Gillet. // // Author: Olivier Gillet (ol.gillet@gmail.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation th...
using System; // ReSharper disable UnusedAutoPropertyAccessor.Global // ReSharper disable InconsistentNaming namespace Portable.Drawing.Toolkit.Fonts { public class TtfTableOS2 { public UInt16 Version { get; set; } public TtfTableOS2(BinaryReader file, OffsetEntry table)...
# B02 Database Reader ## (english) **B02_db_reader_en.xml** Source Connector reads from MySQL **mirth_tests** database, **patients** table, populated by the activity 0002. Each record has a **processed** column that is false by default and is set to true when read by this channel. Each unprocessed record is read wi...
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * Name: Travel Ink * * * Author: Bruno Palma * * Description: Configuration file of Travel Ink search system website * * Requirements: PHP5 or above * */ /* | ------------------------------------------------------------------------- | Ta...
package su.ias.utils.navigationutils; import android.content.Context; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.annotation.StyleRes; import android.sup...
package com.wms.android.ui.outstock import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.KeyEvent import android.widget.SearchView import androidx.recyclerview.widget.LinearLayoutManager import com.wms.android.R import com.wms.android.adapter.InstockAdapter import com.wms.androi...
import * as React from "react"; import * as Sentry from "@sentry/react"; import { PageFallback } from "../PageFallback"; const PageErrorBoundry = ({ children }) => { function handleBeforeCapture(scope) { scope.setTag("appLevel", "global"); } return ( <Sentry.ErrorBoundary fallback={<PageFallback />...
CREATE TABLE `moonshot_targeted_ids` ( `gss_acceptor` varchar(254) NOT NULL default '', `namespace` varchar(36) NOT NULL default '', `username` varchar(64) NOT NULL default '', `targeted_id` varchar(128) NOT NULL default '', `creationdate` timestamp NOT NULL default CURRENT_TIMESTAMP, PRIMARY KEY (`usernam...
require 'rails_helper' describe 'meta/formats/index' do let(:formats) { build_stubbed_list(:format, 5) } it 'shows all formats' do assign(:formats, formats) render formats.each do |format| expect(rendered).to include(format.name) end end end
package com.decathlon.ara.service.dto.execution; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor public class ExecutionCriteriaDTO { String country; String exception; String feature; String handling; Long problem;...
<?php namespace DJEM\Crosslinks; class Tokenizer { private $state = ['Text']; private $current = 0; private $length = 0; private $lastIndex = 0; private $text = []; private $tokens = []; private function __construct() { } private function setState($state) { $th...
<?php namespace App\Models\Legacy; /** * Class LeadershipRole * * @property int $RoleID * @property string $Role * @property string $Description * @property string|null $GroupName * @property string $LeadershipLevel * @method static \Illuminate\Database\Eloquent\Builder|LegacyLeadershipRole newModelQuery() *...
# Changelog for cardano-config ## Unreleased changes ## cardano-config 1.0.0 - First version.
[TOC] # Overview The LLVM compiler infrastructure project (formerly Low Level Virtual Machine) is a collection of modular and reusable compiler and toolchain technologies used to develop compiler front ends and back ends. LLVM is written in C++ and is designed for compile-time, link-time, run-time, and idle-time opt...
# operate-vsts NodeJsを利用してVSTSを操作したSampleです。 # Requirement [vsts-node-api](https://github.com/Microsoft/vsts-node-api) を利用しています。 # Usage 環境変数の設定が必要です。 ``` URL=https://{your-account}.visualstudio.com/defaultcollection PERSONAL_TOKEN=1234567890abcdefghijklmn ```
function Get-MappedDrive { <# .SYNOPSIS Collected mapped drives for logged on users .PARAMETER Computername The computer you wish to collect data from .PARAMETER CimSession A CimSession, or array of Cim sessions, created using New-CimSession. The CimSession parameter allows customisation o...
import { Component, ComponentMap } from '../component'; import { ExecutionContext } from '../environments'; import { AbstractVinyl } from '../../consumer/component/sources'; export interface PreviewDefinition { /** * extension preview prefix */ prefix: string; /** * path of the default template to be e...
# tensor A fast, zero-dependency tensor library in C++. ## API ```cpp #include "tensor.hpp" using namespace type; int main() { tensor2<float> t{{0, 1}, {2, 3}, {4, 5}}; t.square().print(); } ``` ## Testing ```console $ mkdir build $ cd build $ cmake -DCOMPILER=clang -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHA...
// // ZumoTestRunSetup.h // ZumoE2ETestApp // // Created by Carlos Figueira on 2/6/14. // Copyright (c) 2014 Microsoft. All rights reserved. // #import <Foundation/Foundation.h> @interface ZumoTestRunSetup : NSObject + (NSArray *)createTests; + (NSString *)groupDescription; @end
object Versions { val kotlinVersion = "1.3.41" val gradleVersion = "3.4.2" val appcompatVersion = "1.1.0-rc01" val junitVersion = "4.13-beta-3" val androidxTestRunnerVersion = "1.3.0-alpha01" val espressoCoreVersion = "3.3.0-alpha01" val daggerVersion = "2.23.2" val lifecycleVersion = "2...
#include <stdio.h> #define INIT_VALUE -1 /* recursive function returns either 1 or 0, via the pointer parameter result, according to whether or not all the digits of the positive integer argument number num are even. */ void rAllEvenDigits2(int num, int *result); int main() { int number, result=INIT_VA...
import rofi_menu import asyncio from rofify.src.SpotifyAPI import spotify from rofify.src.Hotkeys import hotkeys from rofify.src.config import config class PlayPauseItem(rofi_menu.Item): def __init__(self, text=None): super().__init__(text=text) async def load(self, meta): """ Item...
from __future__ import print_function, absolute_import, division from ..libs import * from .base import Widget from toga.constants import * class ProgressBar(Widget): def __init__(self, max=None, value=None): super(ProgressBar, self).__init__() self.max = max self.value = value @pro...
require 'test_helper' class PostEditTest < ActionDispatch::IntegrationTest def setup # Admins can edit all posts. Moderators can edit all posts excluded # admin's posts. Users can edit only their own posts. @admin = users(:admin) @moderator = users(:moderator) @user = users(:user) @accepted_u...
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
export enum DB_KEY { menuItems = 'menuItems', partners = 'partners', businessCard = 'businessCard', businessCardTitle = 'businessCard/title', businessCardSubtitle = 'businessCard/subtitle', businessCardSections = 'businessCard/sections', talents = 'talents', graduates = 'graduates', }
<?php class User extends CI_Controller { public function index() { $data['main_content'] = "add_user_view"; $this->load->model('skill_model'); $this->load->model('role_model'); $this->load->view("layouts/main", $data); } public function login() { $data['main_conten...
function Toolbar() {} module.exports = Toolbar; Toolbar.prototype.view = __dirname; Toolbar.prototype.init = function(){ this.model.setNull('mode', ''); };
module Pello class Config CONFIG_FILE_PATH = "#{ENV['HOME']}/.config/pello/pello.yaml".freeze attr_accessor :board_url, :developer_public_key, :list_name, :member_token, :username, :error def initialize if File.exist?(CONFIG_FILE_PATH) config = YAML.safe_load File.open(CONFIG_FILE_PATH).rea...
package com.amazonaws.ivs.player.scrollablefeed.models data class SizeModel(val width: Int, val height: Int)
import 'package:anon/core/system/anon.dart'; import 'package:anon/view/widgets/anon_widgets.dart'; import 'package:anon/core/utils/test_helpers.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { late AnonStatelessWidget testStatelessAnon; late AnonStatefulWidget testStatefullAnon; late AnonSta...
/* * GameLocation.cpp * * Created on: 22 Sep 2010 * Author: Murray Christopherson */ #include "Space.h" namespace roadrunner { Space::Space() : taken(false), taker(NULL) { } Space::~Space() { // do nothing } Player * Space::getTaker(void) const { return taker; } bool Space::isTaken(void) const { r...
<?php namespace Brackets\Translatable; use Illuminate\Support\Facades\Config; class Translatable { /** * Attempt to get all locales. * * @return array */ public function getLocales() { return collect((array) Config::get('translatable.locales'))->map(function($val, $key){ ...
#!/bin/bash DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) export PATH=/opt/bin:/opt/etc/vault/scripts:$PATH . $DIR/utils/functions . $DIR/utils/env_defaults . /etc/profile.d/vault.sh export PATH=/opt/bin:/opt/etc/vault/scripts:$PATH CLUSTER_ID=$1 if [ -z "$CLUSTER_ID" ]; then exit1 "A unique Kubernetes c...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Tools : MonoBehaviour { /* x, y: 数字坐标 number: 要绘制的数字 texmube: 图片资源 */ public static void DrawImageNumber(int x, int y, int number, object[] texmube) { //将数字转化为char数组 char[] a...
package commandbuilder import ( "strings" "fmt" "github.com/mohae/deepcopy" ) var ( // Default SSH options ConnectionSshArguments = []string{"-oBatchMode=yes -oPasswordAuthentication=no"} // Default Docker options ConnectionDockerArguments = []string{"exec", "-i"} ) type Environment struct { Vars map[string...
package Mojolicious::Plugin::SecureCORS; use warnings; use strict; use utf8; use feature ':5.10'; use Carp; use version; our $VERSION = qv('1.0.3'); # REMINDER: update Changes # REMINDER: update dependencies in Build.PL use Mojo::Base 'Mojolicious::Plugin'; use constant DEFAULT_MAX_AGE => 1800; sub register { ...