text
stringlengths
27
775k
package org.ccci.gto.android.common.db; import android.content.ContentValues; import android.database.Cursor; import androidx.annotation.NonNull; public interface Mapper<T> { @NonNull ContentValues toContentValues(@NonNull T obj, @NonNull String[] projection); @NonNull T toObject(@NonNull Cursor c); ...
--- layout: post title: 우분투에서 node.js 설치 author: teddy categories: [ server, nodejs ] date: 2020-10-06 16:00:00 +0900 image: assets/images/ubuntu+node.jpg featured: true --- 우분투 환경을 자주 사용하는데, 매번 새로운 환경에서 node.js 를 설치할 때 마다.. 찾아보는 것 같습니다. 버전마다 다른데, 저는 주로 LTS 버전을 이용하기 때문에 Node.js LTS 를 설치했습니다. (참고, 테스트 환경 - Ubunt...
package cn.ncu.edu.be.security.provider import cn.ncu.edu.be.exception.UserNotFoundException import cn.ncu.edu.be.security.authentication.JwtAuthenticationToken import cn.ncu.edu.be.security.authentication.UserAuthenticationToken import cn.ncu.edu.be.security.exception.UserNotFoundAuthenticationException import cn.ncu...
// @dart=2.9 import 'package:business_banking/features/credit_card/ui/credit_card/credit_card_widget.dart'; import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { Widget testWidget; setUp(() { testWidget = MaterialApp( home: CreditCardWidget(), ); }...
import { Neovim } from "neovim"; export class BufferRepository { constructor(protected readonly vim: Neovim) {} public async verticalOpen(id: number): Promise<void> { await this.vim.command("rightbelow split #" + id); } public async horizontalOpen(id: number): Promise<void> { await this.vim.command("...
<?php namespace ImmoweltHH\Test\DependencyInjection\Fixtures\HasDependencies; use ImmoweltHH\Test\DependencyInjection\Fixtures\NoDependencies\ClassANoConstructor; class ClassAWithDependencies { /** @var ClassANoConstructor */ public $classANoConstructor; /** * ClassAWithDependencies constructor. ...
use crate::{ ast::{Expr, NaryOp}, context::{Context, InputWithContext}, real::Real, }; use inari::dec_interval; use nom::{ branch::alt, bytes::complete::{tag, take, take_while}, character::complete::{char, digit0, digit1, one_of, satisfy, space0}, combinator::{ all_consuming, consume...
rem ----------------------------------------------------------------------- rem # File Name: mktable.sql rem # rem # Purpose: Script to dump table creation script rem # for the username (schema) provided as rem # the parameter. rem # rem # This is script is useful for cases where rem ...
//! Operator norm use ndarray::*; use super::error::*; use super::layout::*; use super::types::*; pub use lapack_traits::NormType; /// Operator norm using `*lange` LAPACK routines /// /// [Wikipedia article on operator norm](https://en.wikipedia.org/wiki/Operator_norm) pub trait OperationNorm { /// the value of...
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division from __future__ import print_function import re import time import os.path import subprocess import shutil # helpful for kernel development debug = 0 gen_kernels = [ [ "xgemm_blocksparse_32x32x32_xprop", "fprop", "A32",...
# frozen_string_literal: true RSpec.feature '#within', helpers: [:scopes_page] do before do scopes_page.visit_page end it 'should allow to escape a within restriction using within_document' do scopes_page.within_element(:first_section) do scopes_page.should_not.have_content('First Name') sc...
import { writable } from "svelte/store"; function createJSONAPIStore(cls: string) { const entries = writable({} as {[x:string]: JSONAPIItem}); let loading = false; async function load() { if (!loading) { loading = true; try { let url = '/api/' + cls; ...
import { ApplicationCommandOptionTypes } from '../interfaces'; import SlashCommandOptionWithChoices from '../commons/SlashCommandOptionWithChoices'; /* |-------------------------------------------------------------------------- | SlashCommandBuilder::Options -> SlashCommandNumberOption |------------------------------...
--- numero: 370 titulo: Têm os santos do Senhor --- 1. Nós aqui estamos para, a Cristo, exaltar, Por Sua obra redentora; O Seu Nome não cessemos de glorificar; Sua igreja O adora. __Têm os santos do Senhor, alegria de louvar A Jesus, que, por amor, veio à terra a salvar; Nossas almas resgatou, com Seu san...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement; public class PlayerController : MonoBehaviour { // Controls [Header("Controls")] [SerializeField] private float airResistance = 7f; [SerializeField] private float moveSpeed = 700f...
using System; namespace R5T.Frisia.Suebia.Construction { /// <summary> /// Note: public!!! Do not use any sensitive information! /// </summary> public static class Users { public const string User1Name = "User1"; } }
# zshrc for darwin [[ $(get-env homebrew) ]] && { # setup for brew-file trysource $(brew --prefix)/etc/brew-wrap trysource $(brew --prefix)/etc/profile.d/z.sh }
--TEST-- usb_free_device_list() function --SKIPIF-- <?php if(!extension_loaded('usb')) die('skip '); ?> --FILE-- <?php $context; $devices; if (USB_SUCCESS !== usb_init($context)) { goto out; } // expect that existence of an usb device. if (1 > usb_get_device_list($context, $devices)) { goto out; } var_du...
<script src="{{ asset('izitoast/iziToast.min.js') }}"></script> @if ($message = Session::get('success')) <script> iziToast.success({title: 'Sistema', message: '{{ $message }}', position: 'topCenter'}); </script> @endif @if ($message = Session::get('error')) <script> iziToast.error({title: 'Sistema', message: ...
using System; using System.Collections.Concurrent; using System.Threading.Tasks; using Google.Protobuf; using Microsoft.Extensions.Hosting; using Proto.Remote.GrpcNet; using Xunit; namespace Proto.Remote.Tests { public class HostedGrpcNetWithCustomSerializerTests : RemoteTests, IClassFixture<Ho...
(function() { 'use strict'; var gulp = require('gulp'); var plug = require('gulp-load-plugins')(); var path = require('path'); var config = require('../config'); exports.task = function() { return gulp.src(path.join(config.coverageDir, 'report-lcov/lcov.info')) .pipe(plug.coveralls()); }; })(...
<?php namespace Cloudinary\Cloudinary\Block; use Cloudinary\Cloudinary\Core\ConfigurationInterface; use Magento\Framework\Json\EncoderInterface; use Magento\Framework\View\Element\Template\Context; class Lazyload extends \Magento\Framework\View\Element\Template { /** * @var ConfigurationInterface */ ...
package nl.suriani.jadeval.symbols.value; public class TextValue extends FactValue<String> { public TextValue(String value) { super(value); } }
#!/bin/bash set -e TESTDIR="$(dirname "$0")" while [[ "$#" -gt 0 ]]; do case $1 in -d|--disassemble) DISASSEMBLE=1; ;; -f|--file) FILE="$2"; shift ;; -r|--rem) REM=1; ;; -s|--safe-funcs) SAFE_FUNCS="--safe-function-overrides=$2"; shift ;; --stack) STACK="--stack-size=$2"; ...
/usr/bin/node --nouse-idle-notification --expose-gc /www/superadmin/index.js 9999 --release > /dev/stdout & nginx -g "daemon off;"
module.exports = function (app) { const mongooseClient = app.get('mongooseClient'); const { Schema } = mongooseClient; const pointSchema = new Schema({ type: { type: String, enum: ['Point'], required: true }, coordinates: { type: [Number], ...
package io.github.resilience4j.circuitbreaker.utils; import io.github.resilience4j.circuitbreaker.CircuitBreaker; import io.github.resilience4j.circuitbreaker.CircuitBreaker.State; import static io.github.resilience4j.circuitbreaker.CircuitBreaker.State.*; public final class CircuitBreakerUtil { /** * Indi...
# [TypeScript React Style Guide](https://www.npmjs.com/package/@qulix/tslint-config-react) > StyleGuide under development
using System; using System.IO; using System.Text; using System.Collections.Generic; using System.Text.RegularExpressions; using System.Globalization; namespace Tylerian.Challenge08 { class Program { const string TestInputFileName = "./testinput.txt"; const string SubmitInputFileName = "./submitinput.txt...
import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { SocialService } from '@delon/auth'; import { _HttpClient } from '@delon/theme'; import { NzMessageService, NzModalService } from 'ng-zorro-antd'; import { STColumn, STComponent, STData, STReq, STRes } from '@delon/abc'; import { map, ta...
/* * // * // This file is part of the pika parser implementation allowing whitespace-sensitive syntax. It is based * // on the Java reference implementation at: * // * // https://github.com/lukehutch/pikaparser * // * // The pika parsing algorithm is described in the following paper: * // * // Pika par...
module Transformers where import Control.Monad.State import Control.Monad.Identity import Control.Monad.Trans.Reader import Control.Monad.IO.Class -- runIdentity $ evalStateT floop 0 -- State(Idenity) floop :: StateT Int Identity Int floop = do put 7 modify (\n -> n * 2) get -- :i StateT -- newtype StateT s (m...
// "Make 'Data' public" "true" // ACTION: Make 'foo' private private data class Data(val x: Int) class First { val <caret>foo = Data(13) }
namespace Atata { /// <summary> /// Represents the behavior to find an item of <see cref="OptionList{T, TOwner}"/> control by parent element content. /// </summary> public class FindItemByParentContentAttribute : FindItemByRelativeElementContentAttribute { public const string ParentElementX...
import { Vector } from "matter-js"; import { enumIncludes } from "./func"; import { msg } from "./msg"; export enum HandledKeys { ArrowUp = "ArrowUp", ArrowDown = "ArrowDown", ArrowLeft = "ArrowLeft", ArrowRight = "ArrowRight", KeyW = "KeyW", KeyS = "KeyS", KeyA = "KeyA", KeyD = "KeyD",...
--- name: backend.averageConnectTimeInSeconds type: attribute events: - HAProxyBackendSample --- Average connect time over the 1024 last requests, in milliseconds.
package de.jensklingenberg.mpapt.utils /** * Got the values from org.jetbrains.kotlin.konan.target.KonanTarget */ class KonanTargetValues { companion object { val ANDROID_ARM32 = "android_arm32" val ANDROID_ARM64 = "android_arm64" val IOS_ARM32 = "ios_arm32" val IOS_ARM64 = "ios_a...
from ._builtin import Page from .models import Constants from exp.util import Participant class InstructionsPage(Page): def is_displayed(self): return self.round_number == Constants.INSTRUCTIONS_ROUND class BidPage(Page): form_model = 'player' form_fields = ['bid'] def vars_for_template(se...
// // DConnectManager.h // dConnectManager // // Created by 小林 伸郎 on 2014/05/02. // Copyright (c) 2014 NTT DOCOMO, INC. All Rights Reserved. // /*! @mainpage dConnectの説明ページ */ /*! @file @brief dConnect本体。 @author NTT DOCOMO @date 作成日(2014.5.14) */ #import <Foundation/Foundation.h> #import <DConnectSDK/DC...
// // OSCDevice.h // DeviceServer3 // // Created by charlie on 5/26/09. // Copyright 2009 One More Muse. All rights reserved. // #import <Cocoa/Cocoa.h> #import "Device.h" #import "lo.h" @interface OSCDevice : Device { char *ipAddress; int port; } - (void) processMessageWithValues:(lo_arg **)argv count:(int)co...
package com.emajliramokade package server.api package rest import api.model.EmailProvjera.{ Odgovor, Zahtjev } import hr.ngs.patterns.ISerialization import net.liftweb.http.{ LiftResponse, PlainTextResponse, PostRequest, Req } import net.liftweb.http.rest.RestHelper import org.slf4j.Logger import scala.concurrent.Awa...
# Installing * Explain prerequisites * Explain the requirements of the operator, RBAC etc * Explain the operator config map * Explain how to do the installation
import { Injectable, Autowired } from '@opensumi/di'; import { IRPCProtocol } from '@opensumi/ide-connection'; import { IEventBus, Disposable, ILogger } from '@opensumi/ide-core-browser'; import { IMainLayoutService, TabBarRegistrationEvent } from '@opensumi/ide-main-layout'; import { TabBarHandler } from '@opensumi/id...
package ca.ulaval.glo2003.transactions.rest.serializers; import ca.ulaval.glo2003.interfaces.rest.serializers.DoubleDeserializer; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.DeserializationContext; public abstract class PriceDeserializer<E extends RuntimeException> extends Doub...
import dizzySymbolEmoji from 'emoji-datasource-apple/img/apple/64/1f4ab.png'; export default { data() { return { dizzySymbolEmoji, mnemonic: '', error: false, }; }, methods: { async setMnemonic() { if (!await this.$validator.validateAll()) return; await this.$store.disp...
/* * PDate.java * * 02.12.2003 * * (c) by O.Lieshoff * */ package corent.dates; import java.io.Serializable; import java.util.Calendar; import java.util.GregorianCalendar; import corent.base.Utl; import logging.Logger; /** * Diese Klasse ist aus der urspr&uuml;nglich im Rahmen diverser privater * Projekte ...
"use strict"; var env = require('gitter-web-env'); var nconf = env.config; var testRequire = require('../../test-require'); var fixtureLoader = require('gitter-web-test-utils/lib/test-fixtures'); var assertUtils = require('../../assert-utils') var serialize = require('gitter-web-serialization/lib/serialize'); var seri...
use specs::{ prelude::*, storage::HashMapStorage, world::{Builder, WorldExt}, }; #[derive(Clone, Debug, PartialEq)] struct CompInt(i8); impl Component for CompInt { type Storage = VecStorage<Self>; } #[derive(Clone, Debug, PartialEq)] struct CompBool(bool); impl Component for CompBool { type Sto...
package com.devops.extraUtil; import java.util.ResourceBundle; import com.baomidou.mybatisplus.generator.AutoGenerator; import com.baomidou.mybatisplus.generator.config.DataSourceConfig; import com.baomidou.mybatisplus.generator.config.GlobalConfig; import com.baomidou.mybatisplus.generator.config.PackageConfig; im...
# DANSI DANSI 的意思是 Draw ANSI,是用來繪製流行於 PTT 的 ANSI 圖畫的繪圖軟體。 ## Environment - Node.js 10.18.1 or above - node-gyp 5.1.0 or above (Windows only) ## How to use Install node_module packages ```sh $ npm i ``` Rebuild node-sass ```sh $ npm rebuild node-sass ``` If on Windows, compile C++ libaray ```sh $ npm run addon `...
module Main where import PL0.CodeGen.StackMachine import PL0.Lexer import PL0.Parser import PL0.StackMachine import PL0.StackMachine.Linker import PL0.StaticChecker import PL0.SymbolTable.Scope import Control.Lens import Control...
<?php namespace Jariff\DocumentBundle\Document; use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; /** * @MongoDB\Document(collection="keyword_history") */ class KeywordHistory { /** * @MongoDB\Id */ private $id; /** * @MongoDB\Int */ private $user_id; /** * @Mo...
using ProtoBuf; using Sandbox.Common.ObjectBuilders; using Sandbox.Common.ObjectBuilders.Definitions; using Sandbox.Common.ObjectBuilders.VRageData; using System; using System.Collections.Generic; using System.Linq; using System.Text; using VRageMath; namespace Medieval.ObjectBuilders.Definitions { [ProtoContract...
package inventory import ( "context" "encoding/json" "testing" "cloud.google.com/go/pubsub" "github.com/stretchr/testify/require" ) func TestHandleMessage(t *testing.T) { t.Skip("this is a test driver for dev rather than real unit test") /** Guide to running this test: Step 0: Close your IDE and set your GO...
export const moveStrategyList = ['default', 'insideSource'] as const; export type MoveStrategy = typeof moveStrategyList[number]; export const revealStrategyList = [ 'select', 'previousBuffer', 'previousWindow', 'sourceWindow', 'path', ] as const; export type RevealStrategy = typeof revealStrategyList[numb...
using CompanyWebApi.Contracts.Entities; using CompanyWebApi.Persistence.Repositories.Base; using System.Collections.Generic; using System.Linq.Expressions; using System.Threading.Tasks; using System; namespace CompanyWebApi.Persistence.Repositories { public interface ICompanyRepository : IBaseRepository<Company> ...
module Uwecode.Project.ProjectIOs where import Uwecode.UweObj import Uwecode.Conversion import Uwecode.IO import Uwecode.Project.Project import System.IO import Control.Monad.State import Control.Exception import System.Directory defltIos = ([], [], "") defltOpts = ([], []) tryRead :: IO String -> IO (Either IOError ...
package dev.ssch.minijava.compiler.expressions import dev.ssch.minijava.compiler.exception.InvalidBinaryOperationException import dev.ssch.minijava.compiler.util.CompilerTest import org.assertj.core.api.Assertions.assertThat import org.assertj.core.api.Assertions.assertThatThrownBy import org.junit.jupiter.api.Test c...
using N3O.Umbraco.Content; namespace N3O.Umbraco.Analytics.Content { public class GoogleTagManagerSettingsContent : UmbracoContent<GoogleTagManagerSettingsContent> { public string ContainerId => GetValue(x => x.ContainerId); } }
#!perl use lib 't/lib'; use Test::More; use Dancer::Test; use MyApp; use MyApp::Artist; response_content_is [GET => '/artists/1'], 'artist object', '/ returned expected response'; done_testing;
# This file should contain all the record creation needed to seed the database with its default values. # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). # # Examples: # # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }]) # Mayor.create(:name =>...
/* * Copyright 2015 herd contributors * * 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 ...
#!/bin/bash #$ -cwd #$ -m e #$ -N makeBai-Sim #$ -hold_jid sample*th module load samtools/1.1 for i in sample*; do echo $i; cd $i; pwd; samtools index accepted_hits.bam ; cd ..; done
import copy import json import itertools from types import GeneratorType from pathlib import PurePath from datetime import datetime, date, time from functools import wraps from collections import deque, defaultdict import idlib import rdflib import ontquery as oq from idlib.formats import rdf as _bind_rdf # imported f...
<?php namespace App\Models; trait HasRoles { /** * Get roles to currently user. * * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ public function roles() { return $this->belongsToMany(Role::class); } /** * Detect if user contain given role. ...
<?php /** * File upload field * @author abiusx * */ class jFormUpload extends jFormWidget { private $fileIsSaved=false; function Put($Where) { $this->fileIsSaved=true; if (!isset($_FILES[$this->Name()])) return false; $file=$_FILES[$this->Name()]; if ($file["error"] > 0) return $file['error']; if ($thi...
#!/bin/bash sudo vmhgfs-fuse .host:/ /mnt/hgfs/ -o allow_other,nonempty exit 0
// Copyright by Barry G. Becker, 2016-2017. Licensed under MIT License: http://www.opensource.org/licenses/MIT package com.barrybecker4.simulation.liquid.model /** * Possible status of the cell. determined by what's in it. * @author Barry Becker */ object CellStatus extends Enumeration { type CellStatus = Valu...
--- layout: default title: Second box box: true summary: Here you can enter the contents of box 2 ---
import turtle as patel import random as coder def star (x , y , color , side): patel.color(color) patel.begin_fill() patel.penup() patel.goto(x,y) patel.pendown() for k in range(5): patel.forward(side) patel.right(144) patel.forward(side) patel.end_fill() ...
/* * Created by Lee Oh Hyung on 2020/10/17. */ package kr.ohyung.domain.entity import kr.ohyung.domain.Entity data class Forecast( val legalName: LegalName, val weather: Weather ): Entity
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
""" Split the hotkey string into the VK code sets. """ from typing import Sequence, Tuple, List, Union, Optional from .....aid.std import i18n as _ from .....aid.std import ( ErrorReport, ResultOrError, create_user_error, ) from ...general.hotkey import ( KeyCombo, StandardKeyCode, ModifierKey...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; class authentificationController extends Controller { public function client_login(){ return view('Authentification.client_login'); } public function inscription(){ return view('Authentification.inscription'); } }
using System; namespace T4LogS.Core { public class T4LogSWriteBase : T4LogSBase, IDisposable { internal bool isExited = false; public virtual void Dispose() { } } }
using JDI.Light.Attributes; using JDI.Light.Elements.Common; using JDI.Light.Elements.Composite; namespace JDI.Light.Tests.UIObjects.Sections { public class JdiSearch : Search { [FindBy(Css = ".search>.icon-search")] public new Button SearchButton { get; set; } [FindBy(Css = ".icon-se...
import React from 'react'; import {mount} from 'enzyme'; import {KeyValue} from './KeyValue'; import {Provider} from 'react-redux'; import configureStore from '../../store/configureStore'; const store = configureStore(); const props = { keyObject: { id: 1, value: "Test value", key: "Test key", loadi...
package io.techery.mappery.test import io.techery.mappery.Mappery import io.techery.mappery.test.converter.* import org.jetbrains.spek.api.Spek import org.jetbrains.spek.api.dsl.describe import org.jetbrains.spek.api.dsl.it import org.junit.Assert.assertNotNull import org.junit.platform.runner.JUnitPlatform import org...
import createLoadingPlugin from '@rematch/loading'; import createRematchPersist from '@rematch/persist'; import storageSession from 'redux-persist/lib/storage/session'; export const loading = createLoadingPlugin({ whitelist: ['calendar/getHolidaysAsync'], }); export const persistPlugin = createRematchPersist({ ...
angular.module("stopwatchApp", ["main.controller", "filters"]) .config(["localStorageServiceProvider", function (localStorageServiceProvider) { localStorageServiceProvider .setPrefix("stopwatchApp") .setStorageType("localStorage"); }]);
use franklin_crypto::bellman::pairing::ff::PrimeField; use zinc_build::ScalarType; use crate::error::RuntimeError; use crate::IEngine; pub trait ITypeExpectation: Sized { fn expect_same(left: Self, right: Self) -> Result<Self, RuntimeError>; fn assert_type(&self, expected: Self) -> Result<(), RuntimeError>;...
package App::SD::CLI::Command; use Any::Moose 'Role'; use Params::Validate qw(validate); =head2 get_content %args This is a helper routine for use in SD commands to enable getting records in different ways such as from a file, on the commandline, or from an editor. Returns the record content. Valid keys in %args are...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package md.vmacari.messages; /** * * @author vmacari */ public enum MessageStreamSubtypes { ST_FIRMWARE_CONFIG_REQUEST, ST_...
# frozen_string_literal: true if RUBY_ENGINE == 'opal' class Parser::Lexer def source_buffer=(source_buffer) @source_buffer = source_buffer if @source_buffer source = @source_buffer.source # Force UTF8 unpacking even if JS works with UTF-16/UCS-2 # See: https://mathiasbynens....
import * as React from 'react'; import { FittedText, TextAlign } from '../../../.'; type Props = { text: string; }; export const H1: React.FC<Props> = ({ text }) => ( <h1> <FittedText text={text} topMetric="upper" bottomMetric="baseline" align={TextAlign.middle} ></Fi...
(ns pedestal-api.helpers (:require [io.pedestal.interceptor.helpers] [pedestal-api.swagger :as swagger] [clojure.string :as string])) (defmacro defhelper [helper-name] (let [helper-fn-name (symbol (string/replace helper-name "def" ""))] `(do (defmacro ~(symbol helper-name) [n...
import struct import pytest import parsley import message_types as mt class TestParsley: @pytest.fixture def timestamp(self): def _timestamp(val=0): return struct.pack(">I", val << 8)[:-1] return _timestamp def test_parse_timestamp(self, timestamp): msg_data = timest...
package com.example.diary_practice2 import android.content.ContentValues import android.content.Context import android.database.sqlite.SQLiteDatabase import android.database.sqlite.SQLiteOpenHelper import android.util.Log class DatabaseHandler(context: Context) : SQLiteOpenHelper(context, DB_NAME, null, DB_VERSIO...
require 'tty-spinner' spinner = TTY::Spinner.new spinner = TTY::Spinner.new("[:spinner] [*]Loading Rube-Saved-PCAP[*]...", format: :pulse_2) spinner.auto_spin sleep(5) spinner.stop("Done!")
#!/bin/bash # Copyright 2021 Adevinta # set -e # Uncomment this to make the pipeline fail in case of a security vuln. echo "Start target app" docker pull appsecco/dsvw docker run -p 1234:8000 --restart unless-stopped --name dsvw -d appsecco/dsvw sleep 5 echo "Test based on yaml config using lightweight policy" ....
package com.displee.web.localhost.route import com.displee.undertow.host.route.* import com.displee.undertow.host.route.impl.TemplateRouteHandler import com.google.gson.JsonObject import io.undertow.server.HttpServerExchange import io.undertow.util.Methods @RouteManifest("/register", Methods.GET_STRING) class SampleR...
package de.huddeldaddel.euler import de.huddeldaddel.euler.math.Permutator /** * Solution for https://projecteuler.net/problem=24 */ fun main() { println(Problem24().getMillionthPermutation()) } class Problem24 { fun getMillionthPermutation(): String { return Permutator() .getPermu...
/* * Copyright LIRIS-CNRS (2016) * Contributors: Vincent Primault <vincent.primault@liris.cnrs.fr> * * This software is a computer program whose purpose is to study location privacy. * * This software is governed by the CeCILL-B license under French law and * abiding by the rules of distribution of free software...
import { EventCode } from './types'; export declare const EVENT_CODES: { [index: string]: EventCode; };
import React from 'react' import { mount } from 'enzyme' import CollectionImage from './' import IIIFImage from 'Components/Shared/IIIFImage' test('CollectionImage renders and image with alt text', () => { const wrapper = mount(<CollectionImage image='test.png' altText='Awesome Collection' />) expect(wrapper.find(...
<?php namespace App\Helpers; use \MediactiveDigital\MedKit\Helpers\FormatHelper as MedKitFormatHelper; class FormatHelper extends MedKitFormatHelper{ }
import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:get/get.dart'; import 'package:myapp/controller/menu_controller.dart'; import 'package:myapp/controller/user_controller.dart'; import 'package:myapp/page_util/Info.dart'; import 'package:myapp/user...
package org.geepawhill.tsd.core interface TsdBuilder { fun open(node: String) fun leaf(node: String, value: String) fun close(node: String) }
# -*- coding: utf-8 -*- from ... utilities.singleton import Singleton from ultron.sentry.Analysis.SecurityValueHolders import SecurityLatestValueHolder from ultron.sentry.Analysis.SecurityValueHolders import SecurityCurrentValueHolder from ultron.sentry.Analysis.TechnicalAnalysis.StatelessTechnicalAnalysers import Sec...
#if !defined(AFX_CDXCDYNAMICPROPSHEET_H__82427297_6456_11D3_802D_000000000000__INCLUDED_) #define AFX_CDXCDYNAMICPROPSHEET_H__82427297_6456_11D3_802D_000000000000__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 // cdxCDynamicPropSheet.h : header file // #include "cdxCDynamicWndEx.h" #pragma wa...