text
stringlengths
27
775k
class Helpdesk < Sinatra::Base # Filter for authentication and authorization checks # before /\/(?!(login|forgot\-password))/ do #With regex # redirect '/login' unless session[:username] != nil # end # before do #Without regex # pass if ['/', '/login', '/forgot-password'].include? request.path_info...
select country from country where country like 'A%a'; select country from country where country like '_____n'; select title from film where title ilike '%T%%T%%T%'; select * from film where title like 'C%' and length > 90 and rental_rate = 2.99;
<?php namespace Dan\Shopify\Laravel\Events\Products; use Dan\Shopify\Laravel\Models\Product; use Illuminate\Queue\SerializesModels; /** * Class AbstractProductEvent */ abstract class AbstractProductEvent { use SerializesModels; /** @var Product $product */ protected $product; /** * AbstractP...
package lib import ( "encoding/json" ) type Message struct { Game string Player string CardIndex int MoveType int HintPlayer string HintInfoType int HintNumber int HintColor string Token string PushToken string Result int GameMode int Public ...
require 'gosu' class Sierpinski < Gosu::Window # def drawTriangle xco, yco, depth # @lines << # end def initialize super 500, 500 self.caption = "Sierpinski Triangle Ruby Script" @white = Gosu::Color::WHITE @y = 400 - (200 * Math.sqrt(3)) @tris = [] createTriangle(50, 400, 1) end def createTriangle...
#[macro_use] extern crate derivative; #[derive(Derivative, PartialEq)] #[derivative(Eq)] struct Foo { foo: u8 } #[derive(Derivative)] #[derivative(Eq)] struct WithPtr<T: ?Sized> { #[derivative(Eq(bound=""))] foo: *const T } impl<T: ?Sized> PartialEq for WithPtr<T> { fn eq(&self, other: &Self) -> bool...
using System.Drawing; namespace Code { public class BinaryCharLayout { public string Value { get; private set; } public Point Location { get; private set; } public BinaryCharLayout(string binaryString, BinaryFormatting formatting) { Value = binaryString; ...
// Copyright (c) 2012 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. #include "butil/mac/scoped_mach_port.h" #include "butil/logging.h" namespace butil { namespace mac { namespace internal { // static void SendRightTra...
package com.mitteloupe.testit.terminal.mapper import com.mitteloupe.testit.terminal.model.RunParameters class ArgsToRunParameters { fun toParameters(args: Array<String>) = RunParameters( filePath = getFilePath(args), parameterized = getParameterizedFlag(args) ) private...
#require 'fog/dropbox' #require 'carrierwave' #require 'dotenv/load' #require 'dropbox_sdk' #CarrierWave.configure do |config| # config.storage = :fog #config.fog_credentials = { # :provider => 'dropbox', # :APP_KEY => ENV["mak75scgpyokoxp"], # :APP_SECRET => ENV["bezjb4csocrcakw"] # :dropbox_oauth2...
package cn.edu.sdu.online.isdu.ui.fragments.message import android.content.Intent import android.os.Bundle import android.support.v4.app.Fragment import android.support.v7.widget.LinearLayoutManager import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android...
import { AlertImpactType } from '../enums/AlertImpactType' import { AlertMutedByType } from '../enums/AlertMutedByType' import { AlertViewType } from '../enums/AlertViewType' import { AlertCardLayout } from '../interfaces/AlertCardLayout' import { AlertExtraProperties } from '../interfaces/AlertExtraProperties' import ...
from rest_framework import serializers from .models import Follower class FollowerSerializer(serializers.ModelSerializer): class Meta: model = Follower fields = ['user', 'followed'] read_only = ('followed_at',) def create(self, validated_data): """ Creates a record t...
DROP TABLE IF EXISTS "candata"; CREATE TABLE "candata" ( timestamp timestamp NOT NULL, startup timestamp NOT NULL, terminal character(17) NOT NULL, can_str double precision, can_vel double precision, can_gas double precision, ...
--- id: 165 title: cd/dvd cover html date: 2008-03-17T14:56:38+00:00 author: bronto saurus layout: post guid: http://kravca.mu/glob/index.php?entry=entry080317-075638 permalink: /2008/03/cddvd-cover-html/ categories: - web --- enter some text and print out; <a href="http://somestuff.org/cdcover/CDcover.htm" target="...
# Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def buildTree(self, inorder, postorder): """ :type inorder: List[int] :type postorder: List[int] :rtype: TreeNode ...
{-# LANGUAGE OverloadedStrings #-} module Auth ( getAccessToken ) where import Control.Lens import Data.Aeson.Lens (_String, key, nth) import Network.Wreq as Wreq import Data.Text import Data.Text.Encoding import Data.ByteString import Data.ByteString.Base64 as Base64 import Data.ByteString.Char8 as C...
#!/bin/env ruby # # Author: Eric Power # Imports require_relative 'exceptions.rb' # handle_flags # # Takes in an array of flags, and runs the appropriate files. def gen_commands config, flags unless flags.nil? valid_flags = Dir["#{__dir__}/../flag_handlers/*"].map{ |path| File.basename(path).split(".rb")...
module Graphdb module Model class TxIn < ActiveNodeBase property :txid property :vout, type: Integer property :script_sig_asm property :script_sig_hex property :coinbase property :sequence has_one :out, :transaction, type: :transaction, model_class: 'Graphdb::Model::Tra...
<?php namespace ZoiloMora\ElasticAPM\Tests\Events\Common; use ZoiloMora\ElasticAPM\Tests\Utils\TestCase; use ZoiloMora\ElasticAPM\Events\Common\Process; class ProcessTest extends TestCase { /** * @test */ public function given_no_data_when_instantiating_then_return_object() { $object = ...
SUBROUTINE CGBTRF_F95( A, K, M, IPIV, RCOND, NORM, INFO ) ! ! -- LAPACK95 interface driver routine (version 3.0) -- ! UNI-C, Denmark; Univ. of Tennessee, USA; NAG Ltd., UK ! September, 2000 ! ! .. USE STATEMENTS .. USE LA_PRECISION, ONLY: WP => SP USE LA_AUXMOD, ONLY: LSAME, ERINFO USE...
// Code generated by "stringer -type=FeedCategory"; DO NOT EDIT. package igdb import "strconv" const ( _FeedCategory_name_0 = "FeedPulseArticleFeedComingSoonFeedNewTrailer" _FeedCategory_name_1 = "FeedUserContributedItemFeedUserContributionsItemFeedPageContributedItem" ) var ( _FeedCategory_index_0 = [...]uint8{...
/** * Check if two objects are equal w/ deep comparison * @param {Object} a * @param {Object} b * @returns {boolean} */ function isEqualObject (a: Object, b: Object): Boolean { if (Array.isArray(a) && Array.isArray(b)) return isEqualArray(a, b) if (typeof a !== 'object' && typeof b !== 'object') return Object...
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | ...
#require File.expand_path('../../../../spec_helper', __FILE__) #require File.expand_path('../shared/random_bytes.rb', __FILE__) require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/shared/random_bytes' describe "OpenSSL::Random#random_bytes" do it_behaves_like :openssl_random_bytes, :random_bytes end
using System; using System.Windows.Forms; namespace TeknikServis { public partial class pnlSekreter : UserControl { public frmSekreter _frmSekreter; public pnlYoneticiAsistanAnaMenu _pnlYoneticiAsistanAnaMenu; public pnlSekreter() { InitializeComponent(); }...
#!/usr/bin/python # -*- coding: utf-8 -*- """ author: Rafael Picanço. Import publications (zotero api) as csljson. Hack to save them as html and translated by available locales (citeproc). Do not recommended for production. Need better handling of unicode strings. citeproc: - UserWarning: The fo...
mongo = new Mongo("localhost"); expenseTrackerDB = mongo.getDB('expenseTracker'); expenseTrackerDB.createCollection("categories"); expenseTrackerDB.createCollection("categoryMappings"); expenseTrackerDB.createCollection("expenses");
<?php /** * @author Wizacha DevTeam <dev@wizacha.com> * @author Karl DeBisschop <kdebisschop@gmail.com> * @copyright Copyright (c) Wizacha * @license MIT */ declare(strict_types=1); namespace Tests\Transformers; use Tests\TestCase; use Wizaplace\Etl\Row; use Wizaplace\Etl\Transformers\FormatUni...
// Copyright 2013 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. #include "ppapi/cpp/private/isolated_file_system_private.h" #include "ppapi/cpp/module_impl.h" namespace pp { namespace { template <> const char* inte...
using System; using System.Linq; using System.Threading.Tasks; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace FluentResult.Tests { [TestClass] public class MapResultTests { [TestMethod] public void MapMultiple() { var result = Result.Create(2) ...
import 'package:meta/meta.dart'; import 'package:equatable/equatable.dart'; abstract class LoginState extends Equatable { LoginState([List props = const []]) : super(props); } class LoginInitialState extends LoginState { @override String toString() => 'LoginInitial'; } class LoginRedirectUrlGeneratedState exte...
import React, { useState } from "react" import { Box, Clickable, Flex, Text } from "@artsy/palette" import { SectionContainer } from "./SectionContainer" export const FAQ: React.FC = () => { return ( <SectionContainer> <Text width="100%" textAlign="left" mb={4} variant="largeTitle"> Frequently Aske...
#ifndef CONFIG_H #define CONFIG_H #include <stdint.h> #define BASE_VER 200 #ifdef PRO #define PRO_F 0x010000 #else #define PRO_F 0 #endif #ifdef DEMO #define DEMO_F 0x080000 #else #define DEMO_F 0 #endif #ifdef EDU #define EDU_F 0x200000 #else #define EDU_F 0 #endif #define VERSION (BASE_VER|PRO_F|DEMO_F|EDU_F)...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Parametrage extends Model { use HasFactory; protected $fillable = [ 'soldeSms', 'tauxPrelevement' ]; public static function getInstance(): Parametrage ...
package maserati.logging import org.slf4j.LoggerFactory class Logger(classType: Class[_]) { private val logger = LoggerFactory.getLogger(classType) def trace(format: String, args: Any*){ if (logger.isTraceEnabled()) { val array = args.map(_.asInstanceOf[AnyRef]).toArray logger.trace(format, arr...
import React, { useRef, forwardRef,useImperativeHandle, useEffect, useCallback } from "react"; import * as ROS3D from "ros3d"; // import * as ROSLIB from "roslib"; import { useDispatch } from "react-redux"; export const Viewer3D = forwardRef((props, ref) => { const dispatch = useDispatch(); const viewRef = useRef...
using System; using System.Collections.Concurrent; namespace Convey.MessageBrokers.RabbitMQ.Conventions; public class ConventionsProvider : IConventionsProvider { private readonly ConcurrentDictionary<Type, IConventions> _conventions = new(); private readonly IConventionsRegistry _registry; priva...
Sample configuration files for: SystemD: nodebased.service Upstart: nodebased.conf OpenRC: nodebased.openrc nodebased.openrcconf CentOS: nodebased.init have been made available to assist packagers in creating node packages here. See doc/init.md for more information.
export interface Config { apiUrl: string, } export const APP_CONFIG:Config = { apiUrl: `http://api.astro.2muchcoffee.com/v1`, };
package com.netaporter.uri import com.netaporter.uri.encoding.{ChainedUriEncoder, UriEncoder} import com.netaporter.uri.config.UriConfig /** * Date: 23/08/2013 * Time: 09:10 */ package object dsl { import scala.language.implicitConversions implicit def uriToUriOps(uri: Uri) = new UriDsl(uri) implicit def ...
# frozen_string_literal: true module Repository module Remote ## # Destroy local repository # class Destroy < RepoCommand def execute return unless OpenWebslides.config.github.enabled # Delete remote repository Octokit.delete_repository "#{OpenWebslides.config.github.or...
package view; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.IOException; import java.util.ArrayList; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.GroupLayout; import javax.swing.GroupLayout.Alignment; import javax.swing.JPanel; import javax.sw...
```c++ #include <iostream> using std::cin; using std::cout; using std::endl; using std::cerr; #include <string> using std::string; #include <regex> using std::regex; using std::regex_search; using std::smatch; using std::sregex_iterator; bool valid(const smatch &m){ if (m[0].matched){ //如果整个模式都匹配 return 1...
// Copyright 2014 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. package org.chromium.android_webview; import org.chromium.android_webview.AwContents.VisualStateCallback; import org.chromium.base.ThreadUtils; import or...
package handlers import ( "bytes" "encoding/json" "errors" "fmt" "io/ioutil" "net/http" "os" time "time" log "github.com/Sirupsen/logrus" "k8s.io/client-go/kubernetes" "k8s.io/client-go/rest" "k8s.io/client-go/tools/clientcmd" //"reflect" //"github.com/dgraph-io/dgo/y" "net/http/httputil" ) // AppName...
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Concurrent.STM (STM) import Control.Monad (forever) import Control.Monad.Managed (Managed, liftIO) import Data.ByteString.Lazy (ByteString) import Data.Monoid ((<>)) import qualified Control.Concurrent as Concurrent import qualified Contr...
using System; namespace CSCore.DirectSound { internal static class DSUtils { public static readonly Guid AllObjects = new Guid("aa114de5-c262-4169-a1c8-23d698cc73b5"); public static DSResult DirectSoundCreate(DirectSoundDevice device, out IntPtr directSound) { Guid guid = ...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Gloudemans\Shoppingcart\Facades\Cart; use App\Product; class CartController extends Controller { public function index(){ return view('front.cart.index'); } public function store(Request $request){ $duplicate=Cart::search(...
class AddUniqueConstraintToSourceUid < ActiveRecord::Migration[5.1] def change add_index :sources, [:uid], :unique => true change_column_null :sources, :uid, false end end
# Pocket ## Installation Below on how to get the necessary information for the extension. Make sure you replace the strings `YOUR_APP_CONSUMER_KEY`, `YOUR_ACCESS_TOKEN` and `YOUR_REQUEST_TOKEN` with the actual values. First you will need to create a Pocket app [here](https://getpocket.com/developer/apps/). After th...
////////////////////////////////////////////////////////////////////////// // Cria��o...........: 17-05-2007 // Ultima modifica��o: 28-06-2007 // Sistema...........: Olimpo Cafe - Automa��o de Cafeterias // Analistas.........: Marilene Esquiavoni & Denny Paulista Azevedo Filho // Desenvolvedores...: Marilene Esqui...
import sys import time import torch from torch.jit import script from torchani.aev import neighbor_pairs, compute_shifts import pointneighbor as pn from common import random_particle, CellParameter, Pnt def timeit(f): s = time.time() f() e = time.time() return e - s def number(mod, pe: pn.PntFul): ...
package org.beckn.one.sandbox.bap.message.services import com.mongodb.MongoException import io.kotest.assertions.arrow.either.shouldBeLeft import io.kotest.assertions.arrow.either.shouldBeRight import io.kotest.core.spec.style.DescribeSpec import io.kotest.matchers.ints.shouldBeExactly import org.beckn.one.sandbox.bap...
<?php /** * xts * File: apple.php * User: TingSong-Syu <rek@rek.me> * Date: 2013-11-30 * Time: 14:49 */ namespace xts; use \Memcache; use \Redis; /** * Class Cache * @package xts */ abstract class Cache extends Component { /** * @param string $key * @return mixed */ public abstract func...
// Inject node globals into React Native global scope. global.Buffer = require('buffer').Buffer; global.process = require('process'); global.process.env.NODE_ENV = __DEV__ ? 'development' : 'production'; // Custom overrides for Web Client (src/utils/web-client) configuration // Match to settings of API server you're h...
import 'dart:io' show Platform; import 'package:flutter/cupertino.dart'; import 'package:flutter/foundation.dart' show kIsWeb; import 'package:flutter_feather_icons/flutter_feather_icons.dart'; import '../../styled_widgets/smooth_scroll.dart'; import '../../utils/utils.dart'; import '../navigation.dart'; class Navig...
/* * Copyright (C) 2020 Intel Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0 */ package com.openiot.cloud.sdk.service; import javax.jms.Destination; public class JMSResponseSender implements IConnectResponseSender { private Destination dest; public JMSResponseSender(Destination dest) { ...
package net.corda.yo import net.corda.core.identity.CordaX500Name import net.corda.core.node.services.queryBy import net.corda.core.node.services.vault.QueryCriteria.VaultCustomQueryCriteria import net.corda.core.node.services.vault.builder import net.corda.core.utilities.getOrThrow import net.corda.testing.contracts....
--- title: Conditionally Display Columns description: Conditionally show Edit and Delete buttons in the Kendo UI Grid. type: how-to page_title: Show Command Column Based on Conditions | Kendo UI Grid for ASP.NET MVC slug: grid-show-edit-and-delete-buttons-conditionally tags: grid, condition, hide, buttons, update...
<article class="markdown-body entry-content" itemprop="mainContentOfPage"><h1> <a name="jqueryfreezeheader-" class="anchor" href="#jquerycookie-"><span class="mini-icon mini-icon-link"></span></a> jquery.freezeheader </h1> <p> A simple jquery plugin to freeze header row in html table.</p> <h2> <a name="installation"...
package org.mapdb.benchmark.elsa import org.junit.Test import org.mapdb.benchmark.Bench import org.mapdb.benchmark.MapBenchmark import org.mapdb.elsa.ElsaMaker import java.io.ByteArrayOutputStream import java.io.DataOutputStream import java.io.ObjectOutputStream import java.io.Serializable import java.util.* class El...
package com.scau.mis.service; /** * 权限角色映射 * @author jodenhe * */ public class RolePermissionService { }
class Frontend::ScreensController < ApplicationController # Allow cross-origin resource sharing for screens#show. before_filter :allow_cors, only: [:show, :show_options] before_filter :screen_api layout 'frontend' # GET /frontend/:id def show @preview = params.has_key?(:preview) && params[:preview] ...
package es.upm.fi.dia.oeg.mappingpedia.model import org.apache.jena.enhanced.EnhGraph import org.apache.jena.ontology.OntClass import org.apache.jena.ontology.impl.OntClassImpl import org.apache.jena.vocabulary.RDFS import scala.collection.JavaConverters._ import scala.collection.JavaConversions._ /** * Created by ...
#[macro_use] extern crate clap; extern crate failure; #[macro_use] extern crate failure_derive; #[macro_use] extern crate nom; #[macro_use] extern crate log; extern crate env_logger; mod errors; mod keywords; mod parser; mod scc; mod types; use clap::{App, Arg}; use errors::Error; use failure::ResultExt; use std::pat...
package com.mathbot.pay.bitcoin import com.mathbot.pay.bitcoin.TransactionCategory.TransactionCategory import com.mathbot.pay.json.PlayJsonSupport import play.api.libs.json.{Json, OFormat} case class Detail(address: BtcAddress, amount: Btc, category: TransactionCategory, vout: Int) object Detail extends PlayJsonSupp...
--- title: "How to: Programmatically create an email item" description: Learn how you can programmatically create an email message in Microsoft Outlook by using Visual Studio. ms.custom: SEO-VS-2020 ms.date: "02/02/2017" ms.topic: "how-to" dev_langs: - "VB" - "CSharp" helpviewer_keywords: - "e-mail [Office develo...
#!/usr/bin/env bash set -e if command -v codecov > /dev/null 2>&1; then echo The command codecov is available else echo The command codecov is not available, installing... set -x echo Importing Codecov PGP public keys... curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --import echo Downloading ...
package queue import ( "encoding/json" "fmt" "math/rand" "reflect" ) type PermissionVerb string const ( PermissionVerbSubmit PermissionVerb = "submit" PermissionVerbCancel PermissionVerb = "cancel" PermissionVerbReprioritize PermissionVerb = "reprioritize" PermissionVerbWatch PermissionVer...
; Tell NASM where the kernel expects to be loaded into [org 0x1000] ; using 32-bit protected mode [bits 32] jmp _main _main: ; Clear the screen call clear_screen ; Write loaded message at (0x0, 0x0) mov eax, 0x0 mov edx, 0x0 call get_offset mov ebx, MSG_KERNEL_LOADED call kprint_at ; Write inital message a...
using System; using FluentValidation; using FluxoDeCaixa.Domain.Lancamentos; namespace FluxoDeCaixa.Application.Lancamentos { public class ValidadorCommandRecebimento : AbstractValidator<CriarRecebimentoCommand> { public ValidadorCommandRecebimento() { CascadeMode = CascadeMode.Stop...
# Demo projects ## MIRNet with TensorRT in Python https://github.com/NobuoTsukamoto/tensorrt-examples/blob/main/python/mirnet/README.md
require "typhoeus" require "adamantium" require "concord" require "anima" require "json" require "active_support/core_ext/hash/keys" require "active_support/core_ext/hash/except" require "active_support/core_ext/object/to_query" require "active_support/core_ext/hash/conversions" require "uri" require "ostruct" require ...
require 'rails_helper' require './features/support/omniauth' RSpec.describe User, type: :model do let(:user) { create(:user) } describe 'Database table' do it { is_expected.to have_db_column :email } it { is_expected.to have_db_column :encrypted_password } it { is_expected.to have_db_column :role } ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MarsClientLauncher { public class KeybindManager { public const string INTERN_GUI = "{INTERNAL_TOGGLEGUI}"; public List<KeybindG...
<?php namespace Skvn\Crud\Models; use Illuminate\Container\Container; use Illuminate\Database\Eloquent\Model; use Skvn\Crud\Traits\ModelAttachedTrait; use Symfony\Component\HttpFoundation\File\UploadedFile; class CrudFile extends Model { use ModelAttachedTrait; protected $table = 'crud_file'; protected...
require 'spec_helper' describe CdmBatch::ETDLoader do before(:all) do @etds = CdmBatch::ETDLoader.new(File.join(%W{fixtures etd-data etd_tab.txt})) end describe "how the data should be parsed" do it 'parses ETD file into an aray item per row' do expect(@etds.data.length).to eq(2) end it 'cr...
<?php /** * Automated deletion of TrackBack pings that have not been approved * within a certain time span. * * @category pearweb * @author Tobias Schlitt <toby@php.net> * @copyright Copyright (c) 1997-2006 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License * @version $Id$ */ /*...
export default class Client { constructor(pageSize: number) { this.pageSize = pageSize; } pageSize: number; }
-module(s5c_s2). -export([main/2, get_user/2, get_users/1, create_user/3, get_stats/1, get_usage/2, get_access/2]). main(["get", "user", KeyId], Opts) -> get_user(KeyId, Opts); main(["get", "users"], Opts) -> get_users(Opts); main(["create", "user", Name, Address], Opts) -> create_...
import React from 'react'; export default function RoomListOptions({ selectedRoom, onJoinPressed, onCreatePressed, onLeavePreviousPressed }) { const onJoin = () => onJoinPressed({ room: selectedRoom }); const onCreate = () => onCreatePressed({}); return ( <div className="d-flex flex-column align-i...
from __future__ import absolute_import from .helper import SolveBioTestCase class LookupTests(SolveBioTestCase): def setUp(self): super(LookupTests, self).setUp() self.dataset = self.client.Object.get_by_full_path( self.TEST_DATASET_FULL_PATH) def test_lookup_error(self): ...
<?php namespace Aws\CloudHSMV2; use Aws\AwsClient; /** * This client is used to interact with the **AWS CloudHSM V2** service. * @method \Aws\Result copyBackupToRegion( array $args = [] ) * @method \GuzzleHttp\Promise\Promise copyBackupToRegionAsync( array $args = [] ) * @method \Aws\Result createCluster( array ...
package com.badoo.ribs.example.rib.dialog_example import android.os.Bundle import android.os.Parcelable import com.badoo.ribs.core.Router import com.badoo.ribs.core.routing.action.DialogRoutingAction.Companion.showDialog import com.badoo.ribs.core.routing.action.RoutingAction import com.badoo.ribs.core.routing.action....
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Interactivity; using Topics.Radical.Win32; using System.Windows.Interop; namespace Topics.Radical.Windows.Behaviors { public sealed class WindowControlBoxBehavior : Behavior<Window> { /...
# MyNewApp ![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg) ## Description An app that does amazing things! ## Table of Contents * [Installation](#installation) * [Usage](#usage) * [Contributing](#contributing) * [Tests](#tests) * [Questions](#questions) * [License](#license) ## Installation ...
require File.dirname(__FILE__) + '/test_helper.rb' Dir[File.dirname(__FILE__) + '/*_spec.rb'].each{ |f| require f}
package org.jd.benoggl.models enum class Suit { ACORNS, LEAVES, HEARTS, BELLS }
import { configureStore } from '@reduxjs/toolkit'; import { name as boardsReducerName, reducer as boardsReducer, } from './boardsSlice'; import { name as columnsReducerName, reducer as columnsReducer, } from './columnsSlice'; import { name as itemsReducerName, reducer as itemsReducer, } from './itemsSlice'...
class AddIndicies < ActiveRecord::Migration def up add_index :address_ranges, :geocode_id add_index :coordinates, :assignment_zone_id add_index :geocode_grade_walkzone_schools, :geocode_id add_index :geocode_grade_walkzone_schools, :grade_level_id add_index :geocode_grade_walkzone_schools, :school...
package br.com.erudio.section08._0803 fun main() { val students = getStudents() val combos = students.map { a -> "${a.name} : ${a.age}"} println("Combos: $combos") println("The oldest student is: ${students.maxByOrNull { it.age }}") println("Student with longest name is: ${students.filter { it.na...
#!/usr/bin/env perl use strict; use warnings; package Org::More::Utils; sub trim($) { my $s = shift; $s =~ s/^\s+//; $s =~ s/\s+$//; return $s; } 1; package Org::More::Tags; use Exporter; our @EXPORT_OK = qw(list_tags); use Data::Dumper; use Carp; sub list_tags { my $filename = shift; ...
## Key Press event When the user presses a key on the keyboard ### Javascript ```html <script> const input = document.getElementById("e3Js"); input.addEventListener("keypress", function (event) { input.style.backgroundColor = "red"; }); </script> ``` #### Example: Press a key inside the text field to set...
import * as request from 'request-light'; import { Uri } from 'vscode'; import { configuration } from '../config'; import { Event, Issue, Organization, Project } from './interfaces'; import { getToken } from './rc'; async function xhr(options: request.XHROptions): Promise<request.XHRResponse> { const serverUrl = con...
package committee import ( "fmt" "github.com/iotaledger/goshimmer/dapps/valuetransfers/packages/address/signaturescheme" "github.com/iotaledger/goshimmer/dapps/waspconn/packages/waspconn" "github.com/iotaledger/wasp/packages/sctransaction" "github.com/iotaledger/wasp/packages/state" "github.com/iotaledger/wasp/p...
import { makeFactory } from '../.storybook/storyHelper'; export const atomStories = makeFactory('Atoms', { withInfo: true });
package commons import ( "AccountManagement/conf" "database/sql" "fmt" "time" _ "github.com/go-sql-driver/mysql" ) const ( BizMySQLConfPrefix = "bmysql." mySQLUrlPattern = "%s:%s@tcp(%s:%d)/%s?charset=utf8mb4" ) var ( dbMap map[string]*instrument.DB ) func SetupMySQL() { dbMap = make(map[string]*instr...
namespace Celestial.Units { public interface IUnitConvertable { double ToDouble(); } }
package afkt.demo.model import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel class FragmentViewModel : ViewModel() { val number = MutableLiveData<Int>() init { number.value = -100 } }