text
stringlengths
27
775k
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Drawing.Drawing2D; using System.CodeDom.Compiler; using System.IO; namespace FaceRecognitio...
-- gen_uifk.sql -- Jared Still -- uifk views adapted from a script by Tom Kyte that -- is used to find unindexed Foreign Keys -- http://osi.oracle.com/~tkyte/unindex/unindex.sql col default_tablespace new_value default_tablespace noprint col username new_value username noprint prompt Find unindexed foreign keys ...
#!/bin/bash # Push changes to github case $1 in -h | --help ) printf "usage: %s\n\nPush to github\n" $(basename $0); exit;; esac hg bookmark -f -r default master hg push git+ssh://git@github.com/tebeka/go2xunit.git
#!/usr/bin/env bash # requests a cerificate from vault and isntalls it with a test site in nginx # Optional: 1st argument: CN for the certificate. Default "test.my-domain.com" # Requires: Vault address and Vault token set to $VAULT_ADDR and $VAULT_TOKEN [ "$1" == "" ] && CERT_CN="test.my-domain.com" || CERT_CN="$1" V...
namespace TestProject.ManualTests { public interface IPlayerMovement { void Move(int speed); } }
package dolphin.android.apps.minesweeper import android.os.Handler import android.os.Looper import android.os.Message import android.util.Log import dolphin.desktop.apps.minesweeper.BasicMineModel /** * data model for app * * @param maxRows max rows of the map, depending on screen size * @param maxCols max column...
# Dirac Activates or deactivates Dirac Live. ## Examples #### Activate Dirac Live ``` minidsp dirac on ``` #### Dectivate Dirac Live ``` minidsp dirac off ``` ## Usage ``` {{#include ../../outputs.txt:dirac_help}} ```
package de.tum.in.www1.artemis.util; import java.io.*; import java.net.MalformedURLException; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Collection; import org.apache.commons.io.FileUtil...
/* * Copyright 2019 Frollo * * 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...
part of naver_map_plugin; class _CircleOverlayUpdate { Set<CircleOverlay> circlesToAdd; Set<String> circleIdsToRemove; Set<CircleOverlay> circlesToChange; _CircleOverlayUpdate.from( Set<CircleOverlay> previous, Set<CircleOverlay> current) { previous ??= Set<CircleOverlay>.identity(); current ??=...
# accurate coverage from crowdsource.client import * from crowdsource.client.samples import * from crowdsource.client.samples_mixin import * from crowdsource.handlers import * from crowdsource.persistence import * from crowdsource.persistence.models import * from crowdsource.enums import * from crowdsource.exceptions i...
#!/bin/sh # # Starting and stopping the Rails server. # # Copyright (C) 2012, The University of Queensland. #---------------------------------------------------------------- DEFAULT_PORT=3000 #---------------------------------------------------------------- # Parameters HELP= VERBOSE= PORT=$DEFAULT_PORT ENVIRONMENT=...
#include<iostream> #include<vector> #include<cstring> using namespace std; int LIS[2005], LDS[2005]; vector<int> sequence; int lds(int i) { if (LDS[i] != -1) return LDS[i]; int local_max = 0; for (size_t j = i; j < sequence.size(); ++j) if (sequence[j] > sequence[i]) local_max = max(local_max, l...
use crate::{list::List, Constant, OpCodeMetadata, OpCode, VirtualMachine, Table, Symbol, gc::GcRef}; macro_rules! vecm { ($($tt:tt)*) => { vec![$($tt)*] .into_iter() .map(metadata_nil) .collect() } } fn metadata_nil(op: OpCode) -> OpCodeMetadata { OpCodeMetadata...
var searchData= [ ['pistol',['Pistol',['../class_pistol.html',1,'']]], ['projectile',['Projectile',['../class_projectile.html',1,'']]] ];
{-# LANGUAGE QuasiQuotes #-} module Conjure.Representations.MSet.Occurrence ( msetOccurrence ) where -- conjure import Conjure.Prelude import Conjure.Language import Conjure.Representations.Internal import Conjure.Representations.Common msetOccurrence :: forall m . (MonadFail m, NameGen m) => Representation m msetO...
cask "oxygen-xml-editor" do arch = Hardware::CPU.intel? ? "" : "-aarch64" version "24.0,2021121317" sha256 :no_check url "https://www.oxygenxml.com/InstData/Editor/MacOSX/VM/oxygen-openjdk#{arch}.dmg" name "oXygen XML Editor" desc "Tools for XML editing, including Oxygen XML Developer and Author" homepa...
import React, {Component} from 'react'; import classnames from 'classnames'; import {connect} from 'react-redux'; import {saveResource, fetchResource, uploadRequest} from '../../actions/myResourceActions'; import {Redirect} from "react-router-dom"; import './ResourceForm.css'; class ResourceForm extends Component { ...
import pinocchio as pio from example_robot_data import loadSolo import numpy as np import matplotlib.pyplot as plt import time from solo12_collisions_utils import initSolo robot, rmodel, rdata, gmodel, gdata = initSolo() robot_config = np.zeros(robot.q0.shape) # Default configuration def relativePlacement(rmodel, rda...
import pandas as pd def day2(): # lire fichier data = pd.read_csv("/Users/francoisvachon/Desktop/day2.csv", sep=" ", header=None) # creer les columns data.columns = ["temp_range", "lettre_choisi", "mot_de_passe"] # parser le min max data[["min", "max"]] = data["temp_range"].str.split("-", expa...
// 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. #ifndef REMOTING_HOST_IPC_AUDIO_CAPTURER_H_ #define REMOTING_HOST_IPC_AUDIO_CAPTURER_H_ #include <memory> #include "base/macros.h" #include "base/me...
from arachne.core.sim import sim_case from arachne.util import dbg from amaranth import Record from amaranth.hdl.rec import DIR_FANOUT from amaranth.sim import Simulator, Settle from ...audio.i2s import I2S bus = Record( layout = ( ('clk', [ ('o', 1, DIR_FANOUT), ]), ('rnl', [ ('o', 1, DIR_FANOUT), ]),...
#!/bin/bash # samtools flagstat/idxstats/stats and plot-bamstats multiple assemblies if ls | grep "fastq.gz_RUN" -q; then echo "How many Threads?" read T # for each assembly folder for assembly_folder in $(ls | grep "fastq.gz_RUN"); do mkdir -p $assembly_folder/stats_counts/stats_plots bam_file=$(ls $assemb...
--This will show different warnings depending on if we are actually updating to new version or not SET client_min_messages = error; ALTER EXTENSION pgl_ddl_deploy UPDATE; SELECT pgl_ddl_deploy.deploy('test1'); DO $$ DECLARE v_rec RECORD; BEGIN FOR v_rec IN SELECT name FROM pgl_ddl_deploy.rep_set_wrapper() ...
package org.dmonix.area51.kamon.reporters import com.typesafe.config.Config import com.typesafe.scalalogging.StrictLogging import kamon.metric.PeriodSnapshot import kamon.module.{MetricReporter, Module, ModuleFactory} class PrintMetricReporterFactory extends ModuleFactory with StrictLogging { override def create(se...
import { Circle, GameElement, GameElementType, Rectangle } from './gameElementTypes' export const isTwoElementCollision = (circleShape1: Circle, shape2: GameElement) => { switch (shape2.type) { case GameElementType.Circle: return isCircleCircleCollision(circleShape1, shape2) case GameElementType.Rectan...
<?php /* MIT License **************************************************************** Copyright (c) 2015 Robbert de Groot 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, inclu...
package com.dawn.vo; import lombok.Data; @Data public class ShareListVo { private Integer shareId; private String title; private String desc; private String tagName; private Integer integral; private String viewNum; private String username; private String...
/* * 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 ...
#[allow(unused_imports)] use { log::{debug, error, info, warn}, anyhow::{Result,Context,bail,anyhow}, }; use simplelog::{CombinedLogger,LevelFilter,TermLogger,WriteLogger,TerminalMode,ColorChoice}; use act_zero::*; use async_std::io::ReadExt; use futures::FutureExt; use futures::select; mod config; mod senso...
import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args){ Pot pot = new Pot(10); Bear bear = new Bear(pot); int numOfBees = 5; List<Bee> bees = new ArrayList<>(numOfBees); for(int i =0 ; i < numOfBees; i++){ be...
const Link = require("../server/models/link.js"); const dBModule = require("../server/dbModule.js"); const fs = require("fs"); const express = require("express"); const app = express(); const port = 9588; //Connect to MongoDB connectToMongo("WebCrawler"); app.get("/", (req, res) => { res.sendFile(__dirname + "/inde...
import { RootStateType } from '../rootReducer'; import { IVisibilityState } from './types'; export const selectHeaderVisibility = ( state: RootStateType, ): IVisibilityState => state.headerVisibility;
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using CommandDotNet.Extensions; using static System.Environment; namespace CommandDotNet.TestTools { public class ResourcesDef { public static ResourcesDef Parse<T>() => new(typeof(T)); ...
from rest_framework import serializers from .models import SquaresMap class SquaresMapSerializer(serializers.ModelSerializer): author_name = serializers.ReadOnlyField(source='author.get_username') board_size = serializers.ReadOnlyField(source='size') class Meta: model = SquaresMap fields...
############################## # # obj-Files # ############################## function load(io::Stream{format"OBJ"}; facetype=GLTriangleFace, pointtype=Point3f, normaltype=Vec3f, uvtype=Vec2f) points, v_normals, uv, faces = pointtype[], normaltype[], uvtype[], facetype[] f_uv_n_faces = (faces, GLTrian...
using System; using Xunit; namespace Piipan.Shared.API.Utilities { public class DateRangeTests { [Fact] public void Constructor_SetsValues() { var start = new DateTime(2021, 1, 1); var end = new DateTime(2021, 1, 31); // Arrange var range ...
import { logger } from '../../../../../common'; import { Configuration, mergeConfig, } from '../../../../../config'; import { extractOptions, Rules, } from '../../helper'; const DEFAULT_OPTIONS = { count: 1 }; type Options = typeof DEFAULT_OPTIONS; export function translateNewlineAfterImportRule(config: Conf...
# -*- coding: binary -*- # Outputs Kubernetes API responses in table format class Msf::Exploit::Remote::HTTP::Kubernetes::Output::Table # Creates a new `Msf::Exploit::Remote::HTTP::Kubernetes::Output::Table` instance # # @param [object] output The original output object with print_line/print_status/etc methods ...
//#region Machine info export interface MachineInfo { machine: string; status: number; statusDescription: string; description: string; currentOperation: string; currentMotherOperation: string; nextOperation: string; nextMotherOperation: string; currentOutputBatch: string; currentOperationDescriptio...
import gulp from 'gulp' import rimraf from 'rimraf' import {staticSrc, staticDist, distDir} from './config' export function cleanStaticDist (callback) { rimraf(staticDist, callback) } export function buildStatic () { return gulp.src(staticSrc) .pipe(gulp.dest(distDir)) }
//----------------------------------------------------------------------- // <copyright file="ShotExReplacer.cs" company="None"> // Copyright (c) IIHOSHI Yoshinori. // Licensed under the BSD-2-Clause license. See LICENSE.txt file in the project root for full license information. // </copyright> //---------------------...
require Rails.root.join('app', 'helpers', 'application_helper') module ApplicationHelper # Checks the current route using the format 'ControllerName#ActionName' # Used as a shorter way of calling current_controller and current_action together # Defaults to using current_page? if the route doesn't include a '#' ...
package com.packt.modern.chapter4 import org.apache.spark.sql.SparkSession trait SpamWrapper { val hamSetFileName = "inbox.txt" val spamFileName ="junk.txt" //The entry point to programming Spark with the Dataset and DataFrame API. //This is the SparkSession lazy val session: SparkSession = { SparkS...
Strip ANSI ========== This Go package removes ANSI escape codes from strings. Ideally, we would prevent these from appearing in any text we want to process. However, sometimes this can't be helped, and we need to be able to deal with that noise. This will use a regexp to remove those unwanted escape codes. ## Insta...
# frozen_string_literal: true describe Auth::Token do context 'when instantiating a token without an issuer' do it 'it raises an Auth::TokenErrors::InstantiatedWithoutIssuer Error' do expect { Auth::Token.new token_payload(:missing_issuer_token) }.to raise_error(instance_of(Auth::Errors::Toke...
using System; using System.Reflection; namespace GoPay.Account { public enum StatementGeneratingFormat { [ContentType("application/vnd.ms-excel")]XLS_A, [ContentType("application/vnd.ms-excel")]XLS_B, [ContentType("application/vnd.ms-excel")]XLS_C, [ContentType("text/csv")]CSV...
module Nmax # class Reader read input stream and return numbers only class Reader include Enumerable def initialize(stream) @stream = stream end def each @stream.read.scan(/\S+/).each do |num| next unless num =~ /^\d+$/ yield num.to_i end end end end
<?php // //class commentShared extends structureElementAction //{ // protected $loggable = true; // // public function execute(&$structureManager, &$controller, &$structureElement) // { // if ($this->validated) { // $structureManager->setNewElementLinkType('commentTarget'); // $new...
package chapter08 import scala.io.Source /** * 8장 함수와 클로저 * * 스칼라는 자바에 존재하지 않는 함수 정의 방법을 몇 가지 제공한다. * 내포 함수, 함수 리터럴, 함수 값... * * 8.1 메소드 * * 함수를 정의하는 가장 흔한 방법은 특정 객체의 멤버로 함수를 만드는 것이다. * 객체의 멤버인 함수를 메소드(method)라고 부른다. */ object c08_i01 extends App { /** * ------------------------------ * 리스트 8.1 *...
# DBSCAN on Spark ### Overview This is an implementation of the [DBSCAN clustering algorithm](http://en.wikipedia.org/wiki/DBSCAN) on top of [Apache Spark](http://spark.apache.org/). It is loosely based on the paper from He, Yaobin, et al. ["MR-DBSCAN: a scalable MapReduce-based DBSCAN algorithm for heavily skewed d...
export const API_FETCH_NAME_TYPES = 'search/API_FETCH_NAME_TYPES' export const API_FETCH_NAME_SUB_TYPES = 'search/API_FETCH_NAME_SUB_TYPES' export const API_UPDATE_DB_AUTENTICATE = 'search/API_UPDATE_DB_AUTHENTICATE' export const API_SEARCH = 'search/API_SEARCH' export const UPDATE_SEARCH_PARAMS = 'search/UPDATE_SEARCH...
# output functions @doc """ ### SimpleODEMod.printSolution This function prints the solution vector u to a file named solution.dat. Each line contains: element number, local node number, and the 4 conservative variable values. Inputs: * mesh :: AbstractMesh * u : vector of values """-> function print...
require 'nothing' require 'support/pair' require 'support/helpers' require 'support/matchers' RSpec.configure do |c| c.include Helpers end
package com.sai.fabula.api.model import com.squareup.moshi.Json data class Source( @field:Json(name = "name") var name: String? = null )
using HotChocolate.Types; namespace AppAny.HotChocolate.FluentValidation.Tests { public class TestSkipValidationMutation : ObjectType { protected override void Configure(IObjectTypeDescriptor descriptor) { descriptor.Field<TestSkipValidationMutation>( field => field.Test(default!)).Type<Strin...
use chrono::prelude::*; use std::error::Error; use crate::types::base::BaseType; use crate::types::root::RootType; fn to_date(value: &str, fmt: &str) -> NaiveDate { let converted = match NaiveDate::parse_from_str(value, fmt) { Ok(v) => v, Err(e) => panic!( "unable to convert string val...
#!/bin/sh sudo rm -r .DS_Store sudo rm -r */.DS_Store sudo rm -r */*/.DS_Store sudo rm -r */*/*/.DS_Store sudo rm -r */*/*/*/.DS_Store sudo rm -r */*/*/*/*/.DS_Store sudo rm -r */*/*/*/*/*/.DS_Store dpkg-deb --build -Zgzip BUILD_AFC2 package/
package types type EthBlock struct { Height HexInt `json:"number"` Hash string `json:"hash"` ParentHash string `json:"parentHash"` Nonce string `json:"nonce"` TransactionRoot string `json:"transactionRoot"` StateRoot string `json:"stateRoot"` Miner ...
namespace AltV.Net.Resources.Chat.Api { public static class AltChat { internal static Chat Chat; public static void SendBroadcast(string message) { Chat.Broadcast(message); } internal static void Init(Chat chat) { Chat = chat; } ...
import React from 'react' import { connect } from 'react-redux' import MeetingCard from '../../components/Meetings/MeetingCard' class Meetings extends React.Component { render() { return ( <div className="MeetingsContainer"> <h1>Meetings</h1> {this.props.meeting...
#!/bin/bash # generate the docs and open them in firefox cd docs make html # run the tests cd .. #py.test -s py.test
# Everyday Commit **Everyday Commit** is a Docker wrapped Python package that generates a random number of commits following the gamma distribution: <figure style="margin-left: 0"> <img alt="PDF plot" title="PDF plot" src="./plot.png"><br> <figcaption style="font-size: smaller">Visualisation of the gamma distributi...
import pytest from plenum.test.helper import sdk_send_random_and_check, assertExp from plenum.test.node_catchup.helper import ensure_all_nodes_have_same_data from plenum.test.view_change.helper import restart_node, nodes_received_ic from stp_core.loop.eventually import eventually @pytest.fixture(scope="module") def ...
# Rundeck and Python Automation ## Contains - - rundeck Two yaml file for creating rundeck job ErrorCreatorJob.yaml ErrorHandlerJob.yaml Sample job to demonstrate how to do error handling using step jobs in rundeck - rundeck yml file for creating rundeck job TestPythonInsideBash.yaml Sample job ...
// @flow const args = require("./args.js"); const { getFilelist } = require("./filelists.js"); const path = require("path"); const { readFileSync } = require("fs"); const { diffFiles } = require("./filediffgenerator.js"); const { pickFilePairings } = require("./pairpicker.js"); const { serialize, writeDiff } = require...
#!/bin/bash # re-build the site cd ./src bundle exec jekyll build # copy into /docs for gh-pages cd ../docs cp -r ../src/_site/* . echo Completed. Public site is available in /docs
using NUnit.Framework; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PlaneGeometry.Tests { /// <summary> /// Example class of plane figure. You do not need to register class. /// </summary> public class FakeFigure : IPlaneFigure { ...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LuaBuilder { public class Config { public string SeedDir { get; set; } public string LibDir { get; set; } public string OutputDir { get; set; } public b...
# require 'selenium-webdriver' # Selenium::WebDriver::Firefox::Binary.path='/usr/local/bin/firefox'
Param( $targetfile, $targetvm, $tocopy ) echo ("TargetFile:" + $targetfile) echo ("TargerVM:" + $targetvm) echo ("toCopy:" + $tocopy) #vmへ送信 Copy-VMFile -Name $targetvm -SourcePath $targetfile -DestinationPath $tocopy -FileSource Host
package tests import play.api.http.HttpErrorHandler import play.api.mvc.{RequestHeader, Result, Results} import scala.concurrent.Future object SimpleErrorHandler extends HttpErrorHandler { override def onServerError(request: RequestHeader, exception: Throwable): Future[Result] = Future.successful(Results.Inter...
<?php //encriptar contraseña function hashPassword($plainText) { return password_hash($plainText, PASSWORD_BCRYPT); } function verifyPassword($plainText, $hash) { //retorna un booleano return password_verify($plainText, $hash); }
<?php namespace App\Repositories\Eloquent; use App\Models\Flight; use App\Repositories\Contracts\IFlight; use App\Repositories\Criteria\ICriteria; use Illuminate\Support\Arr; class FlightRepository extends BaseRepository implements IFlight { public function model(): string { return Flight::class; ...
/* Copyright 2015 Twitter, 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 writing, software distr...
TASK_ID taskSpawn ( char * name, /* name of new task */ int priority, /* priority of new task */ int options, /* task option word */ size_t stackSize, /* size (bytes) of stack needed plus name */ FUNCPTR entryPt, /* entry point of...
using System.Collections.Generic; namespace Nimbus.Transports.InProcess.QueueManagement { internal class Topic { private readonly List<string> _subscriptionNames = new List<string>(); public string TopicPath { get; } public Topic(string topicPath) { TopicPath = to...
/** * アプリのルートモジュール。 * @module ./app/app.module */ import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { NgModule, ErrorHandler, Injectable, LOCALE_ID } from '@angular/core'; import { HttpClientModule, HttpErrorResponse, HTT...
<?php namespace App; use Illuminate\Notifications\Notifiable; use Illuminate\Database\Eloquent\Model; class Workers extends Model { protected $table = 'workers'; protected $primaryKey = 'id_worker'; protected $fillable = ['id_worker', 'fullname', 'date_of_birth', 'id_position']; public $timestamps = ...
module SalaryTemplatesHelper def all_salary_template SalaryTemplate.where(is_active: true).collect { |t| [t.code + ' - '+ t.try(:description), t.id] } end end
require 'dashboard' module Solar class RtoneVariantDownloader def initialize( installation:, start_date:, end_date:, api: ) @rtone_variant_installation = installation @low_carbon_hub_api = api @start_date = start_date @end_date = end_date end ...
# Kept here as a notepad if we need to do some OCR at some point import cv2 import pytesseract def read_library(path): # get the test zone only: need to resize images beforehand # or to use border/frame detection algorithms. # this measure was taken for a 353x500 pixels image img = cv2.imread(path, 0...
export interface NewsElement { "id": string, "external": true, "externalURL"?: string, "title": string, "featuredImage"?: string, "content"?: string, "posted": string, "modified"?: string, "tag": string, "author": string }
import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:getwidget/getwidget.dart'; class GFLoader extends StatefulWidget { /// [GFLoader] shows differnt type of loaders with different customization options. const GFLoader( {Key? key, this.loaderColorOne = Colors...
import React, { useContext, useState } from 'react'; import PropTypes from 'prop-types'; import { Context } from '@browser/context'; import { fetchApi } from '@actions/requesting/fetchApi'; import { ParagraphData } from '@server/UseCase/GetApp/BookData'; import { Paragraph } from '@components/Paragraph'; import { Reque...
pub fn str_to_u16(s: &str, radix: u32) -> u16 { u16::from_str_radix(s, radix).unwrap() } pub fn str_to_u64(s: &str, radix: u32) -> u64 { u64::from_str_radix(s, radix).unwrap() }
! ic_def.f90 ! !> Module to load the initial condition. ! !> @copyright !> 2016 Lesley De Cruz, Jonathan Demaeyer & Sebastian Schubert !> See LICENSE.txt for license information. ! !---------------------------------------...
package com.example.zls.widget.pullextend; import android.view.View; import android.view.ViewGroup; import java.util.Collection; import java.util.List; import androidx.recyclerview.widget.RecyclerView; /** * Created by Renny on 2018/1/3. */ public abstract class CommonAdapter<T> extends RecyclerView.Adapter<View...
"""Example: statsmodels.OLS """ from statsmodels.datasets.longley import load import statsmodels.api as sm from statsmodels.iolib.table import (SimpleTable, default_txt_fmt, default_latex_fmt, default_html_fmt) import numpy as np data = load() data_orig = (data.endog.copy(), data.exog.copy())...
#!/bin/bash # This is a comment : ' This is a comment on multiple lines ' # VARIABLES # # A variable is a symbol that represents a quantity that may vary. # # identifier=value; age=25 # The value 25 is assigned to variable age # BASIC DATA (Bash does not segregate its variables by type, all va...
//! Low-level core API traits. use super::{FixedOutput, FixedOutputReset, Reset, Update}; use block_buffer::DigestBuffer; use core::fmt; use generic_array::{ArrayLength, GenericArray}; /// Trait for types which consume data in blocks. #[cfg(feature = "core-api")] #[cfg_attr(docsrs, doc(cfg(feature = "core-api")))] pub...
/* * BSD 3-Clause License * * Copyright 2018 Sage Bionetworks. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice,...
/**常量类 */ //腾讯测试AK,请替换成自己申请的 AK const tencentAk = "ZSLBZ-JE23R-JESWO-WX74H-UTU2V-EMFPZ"; const userInfoKey = "user_info" const tokenKey = "token" const tokenInvalidMsg = { "code": -10, "msg": "登录token无效" } const defaultLnglat = { "longitude": 113.272808, "latitude": 23.139212 } export { tencentAk, userInfoKey, ...
open module mesakit.plugins.josm.library { requires transitive mesakit.map.utilities.geojson; requires transitive mesakit.map.ui.desktop; requires josm; requires gson; exports com.telenav.mesakit.plugins.josm.library; exports com.telenav.mesakit.plugins.josm.library.tile; exports com.telen...
// // Created by Javier on 23/11/2016. // #include <boost/uuid/random_generator.hpp> #include "BasketRepositoryMemory.h" using namespace std; using namespace ashop::infrastructure::impl::memory; std::shared_ptr<ashop::infrastructure::BasketBase> BasketRepositoryMemory::get_by_id(const boost::uuids::uuid &id) { ...
################ # SYSKIT # www.syskit.com <# Lists all properties and policy settings for specific group policy object. #> ################ Get-GPOReport -All -ReportType html -Path C:\GPOReport.html
/* eslint-disable @typescript-eslint/explicit-function-return-type */ import { createFeatureSelector, createSelector } from '@ngrx/store'; import { agglomerationCards, developmentCards, ID_DOMAIN_BLUE, ID_DOMAIN_RED, landCards, } from '@taormina/shared-constants'; import { AGGLOMERATION_CARD_INTERFACE_NAME,...
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(100) NOT NULL, price DECIMAL(10, 2) NOT NULL, stock_quantity INT NOT NULL, PRIMARY KEY (item_id) ); INS...
package mobi.upod.android.app.action import android.app.Activity import android.content.Context trait ImplicitActivityContext extends ImplicitContext { self: Activity => implicit def context: Context = this }
package net.jspiner.epubstream.parser import net.jspiner.epubstream.dto.NavPoint import net.jspiner.epubstream.getChildNode import net.jspiner.epubstream.getProperty import org.w3c.dom.Node import org.w3c.dom.NodeList fun parseNavPoints(nodeList: NodeList, tocPath: String): Array<NavPoint> { return Array(nodeList...