text
stringlengths
27
775k
class Stack def initialize @store = [] end def add(data) @store << data end def pop @store.pop end def clear @store = [] end def empty? @store.empty? end end
class ContactMailer < ActionMailer::Base default :from => "info@berlinarttours.de" def send_request(contact) @contact = contact #attachments["rails.png"] = File.read("#{Rails.root}/public/images/rails.png") #mail(:to => "<#{user.email}>", :subject => "Thank you for your registration at Berlin Art Tours...
Cmor::Galleries::Engine.routes.draw do localized do scope :cmor_galleries_engine do resources :picture_galleries do post :toggle_published, on: :member end root to: 'picture_galleries#index' end end end
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { expect } from "chai"; import { benchmark } from "../Runner"; import { BenchmarkType, isParentProcess } from "../Configuration"; describe("`benchmark` function", () => { describe("uses ...
package exercise.function import org.scalatest._ class ReverseAListFunctionTest extends FlatSpec with Matchers { "ReverseAListFunctionTest" should "apply" in { val testList: List[Int] = List(19, 22, 3, 28, 26, 17, 18, 4, 28, 0) ReverseAListFunction(testList) shouldEqual List(0, 28, 4, 18, 17, 26, 28, 3, 22...
import { createAction } from 'typesafe-actions'; import { DslFetchParams, DslType, MockBuildDetailFetchParams, MockContent, MockNewParams, MockPublishParams, MockValueUpdateParams, } from '@/types/builder'; export const clearAll = createAction('BUILDER_MORE__CLEAR_ALL', () => ({}))(); // dsl export con...
package io.bibimbap package modules import akka.actor._ import scala.concurrent._ import scala.concurrent.duration._ import java.util.concurrent.TimeoutException import bibtex._ import strings._ import identifiers.DOI import play.api.libs.json._ import play.api.libs.ws.ning.NingWSClient import scala.io.Source cla...
require('dotenv').config(); const DB_PASSWORD = process.env.DB_PASSWORD ?? ''; const DB_USER = process.env.DB_USER ?? 'postgres'; const DB_HOST = process.env.DB_HOST ?? 'localhost'; const DB_PORT = process.env.DB_PORT ?? 5432; const isCI = !!process.env.IS_CI; const DB_URL = isCI ? `postgres://${DB_USER}:${DB_PASSW...
module Yesod.Helpers.BgThread where import ClassyPrelude -- {{{1 imports import Control.Concurrent.STM (check) #if !MIN_VERSION_classy_prelude(1, 0, 0) import Control.Concurrent.Async (async) #endif #if !MIN_VERSION_classy_prelude(1, 5, 0) import Control.Concurrent.Async (Async,...
#pragma once #pragma once #include<iostream> using namespace std; template<class T> struct LinkNode1 { T data; LinkNode1<T>* link; LinkNode1(LinkNode1<T> * ptr = nullptr) { link = ptr; } LinkNode1(const T& item, LinkNode1<T> * ptr = nullptr) { data = item; link = ptr; } };
import time import numpy as np import configparser import json from datetime import datetime import os import re import logging import pyvisa from pydlcp import arduino_board, hotplate, errors, impedance_analyzer as ia, DLCPDataStore as dh5, bts import platform from typing import List, Union # Different data type def...
<?php /** * Soosyze Framework https://soosyze.com * * @license https://github.com/soosyze/framework/blob/master/LICENSE (MIT License) */ namespace Soosyze\Components\Form; /** * Créer un formulaire conforme aux spécificités de HTML5. * * @see http://www.w3schools.com/html/html_forms.asp * * @author Mathieu ...
package com.qa.tdl.rest; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.atLeastOnce; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.util.List; import java.util.Optional; import java.uti...
// {{{ MIT License // Copyright 2017 Roland Kaminski // 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 use, copy, modify,...
<?php namespace Voyager\Admin\Contracts\Formfields\Features; interface AfterStore { public function stored($model, $value); }
package com.hiscat.ecommerce.common import com.hiscat.ecommerce.util.ProjectUtil import org.apache.spark.rdd.RDD trait TDao { def readFile( path:String ): RDD[String] = ProjectUtil.sparkContext().textFile(path) }
cat <<JUPYTER_CONFIG > /home/jupyter/.jupyter/jupyter_notebook_config.py c.NotebookApp.certfile = u'/home/jupyter/nbcert.pem' c.NotebookApp.keyfile = u'/home/jupyter/nbkey.key' c.NotebookApp.allow_origin = '*' c.NotebookApp.ip = '*' c.NotebookApp.port = 8089 c.NotebookApp.password = u'HASHED_PASSWD' JUPYTER_CONFIG cho...
-- SQL > Basic Select > Weather Observation Station 7 -- Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. -- -- https://www.hackerrank.com/challenges/weather-observation-station-7/problem -- challenge id: 9342 -- SET NULL "NULL"; SET FEEDBACK OFF; SET ECHO OFF; SET HEADING OFF; SET WRAP OF...
-- this script updates the tables OUTBOX_SCHEMA_VERSION and event_store. ALTER SESSION SET CURRENT_SCHEMA = %schemaName%; INSERT INTO OUTBOX_SCHEMA_VERSION (VERSION, CREATED) VALUES ('1.0.0', CURRENT_TIMESTAMP); ALTER TABLE EVENT_STORE ADD (tmpdetails CLOB); UPDATE EVENT_STORE SET tmpdetails=PAYLOAD; COMMIT; A...
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license */ package opencl.templates import org.lwjgl.generator.* import opencl.* val qcom_ext_host_ptr_iocoherent = "QCOMEXTHostPtrIOCoherent".nativeClassCL("qcom_ext_host_ptr_iocoherent", QCOM) { documentation = """ ...
package stackqueue import "testing" func TestStack(t *testing.T) { ts := Stack{} // Push ts.Push("Cecille") ts.Push("Kurt") if ts[0] != "Kurt" { t.Errorf("ts[0] returned: %s when it should've returned: Kurt", ts[0]) } // Pop poppedValue := ts.Pop() if ts[0] != "Cecille" && poppedValue != "Kurt" { t.Err...
use core::pin::Pin; use core::task::Context; use pin_project::pin_project; use crate::source::Source; use crate::source::SourcePoll; #[pin_project] pub struct Map<Src: Source, E, S> { #[pin] source: Src, event_transform: fn(Src::Event) -> E, state_transform: fn(Src::State) -> S, } impl<Src: Source, ...
using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Alexa.NET.Timers.Creation { [JsonConverter(typeof(OperationConverter))] public abstract class Operation { [JsonProperty("type"), JsonConverter(typeof(StringEnumConverter))] public abstract OperationType Type { get; } } ...
package dict.legacy.joker interface JokerDict { fun add(word: String) fun getStar(query: String): Iterator<String>? { val regex = Regex(query.replace("*", ".*")) return getRough(query)?.asSequence()?.filter { regex.matches(it) }?.iterator() } fun getRough(query: String): Iterator<String...
#!/bin/bash #IP=$(ipconfig getifaddr wifi0) #IP=$(hostname -I | awk {'print $1}') IP=$(ip -4 address show dev wifi0 | grep inet | awk '{print $2}') PUB_IP=$(dig +short myip.opendns.com @resolver1.opendns.com) INTERNET='' echo -n "$INTERNET $IP | $PUB_IP"
;(function() { 'use strict'; window.Module = { canvas: document.getElementById('emscripten') }; window.keymaster = window.key.noConflict(); })();
// Copyright 2020 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable...
De Morgan's laws ---------------- De Morgan's laws state that, in boolean algebra: > "not (A and B)" is the same as "(not A) or (not B)" and > "not (A or B)" is the same as "(not A) and (not B)" The ways you're probably used to seeing it are: $$\overline{A \cdot B} \equiv \overline{A} + \overline{B}$$ and $...
## Форма авторизации с проверкой email-адреса на валидность ## Установки зависимостей проекта Для установки зависимостей проекта необходимо в командной строке ввести команду: - `npm install` ## Как использовать окружение Обычный режим: в командной строке ввести `gulp`.
/** * Copyright 2015 Smart Society Services B.V. * * 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 */ package org.opensmartgridplatform.ada...
#!/bin/bash # set hostname IP=`hostname -i` sudo sh -c "echo ${IP} > /etc/mesos-slave/hostname" # set containerizers sudo sh -c "echo 'docker,mesos' > /etc/mesos-slave/containerizers" # logging level sudo sh -c "echo 'WARNING' > /etc/mesos-slave/logging_level" echo "Stop Mesos Master service if started ... ... " #>...
+++ title = "起来(live) " description = "音乐起,耳朵一亮。 气势恢宏的配乐,铺天盖地的潮水汹涌而来,先声夺人。 然后是起来。" date = 2015-05-16T17:27:36+08:00 draft = false [taxonomies] categories = ["Mayday"] tags = ["mayday"] +++ 这首歌的原唱版本是什么四分卫啥的,没有听说过之前,孤陋寡闻的说。 然后在网易云音乐的歌单上看到这首歌,五月天DNA,就点了一下。 音乐起,耳朵一亮。 气势恢宏的配乐,铺天盖地的潮水汹涌而来,先声夺人。 然后是起来。 起来。好一种奇怪的感觉。长在红旗...
class Api::V1::Domains::PhasesController < ApplicationController # GET /phases def index phases = Phase.all render json: phases, status: :ok end end
/* *Copyright (c) 2013 Sebastien Caille. *All rights reserved. * *Redistribution and use in source and binary forms are permitted *provided that the above copyright notice and this paragraph are *duplicated in all such forms and that any documentation, *advertising materials, and other materials related to such ...
; RUN: llc -march=hexagon -enable-pipeliner -pipeliner-max-stages=2 < %s | FileCheck %s ; Test that the generatePhi code doesn't rename a a Phi instruction that's defined ; in the same block. The bug causes a Phi to incorrectly depend on another Phi. ; CHECK: loop0(.LBB0_[[LOOP:.]], ; CHECK: .LBB0_[[LOOP]]: ; CHECK:...
sexo = str(input('Informe seu sexo. [F/M]: ')).strip().upper()[0] while sexo != 'F' and sexo != 'M': sexo = str(input('\n\033[31mDados invalidos.\033[m Por favor, informe seu sexo com [F/M]: ')).strip().upper()[0] print(f'\033[32mSexo {sexo} registrado com sucesso.\033[m')
package template import "github.com/nggenius/nggame/gameobject" type AssistObject struct { gameobject.BaseBehavior } func NewAssistObject() *AssistObject { ro := new(AssistObject) return ro } func (r *AssistObject) GameObjectType() int { return gameobject.OBJECT_ASSIST } func (r *AssistObject) OnCreate() { } ...
$('#input_starttime').pickatime({ // Light or Dark theme darktheme: true });
# XCode 从 App store 或苹果开发者网站安装 [Xcode](https://developer.apple.com/xcode/) 。 紧接着,安装 Xcode command line tools,运行: xcode-select --install 运行命令后,按照指引,你将完成 Xcode command line tools 安装。 --- `译注`: 如果你不是一名 iOS 或 OS X 开发者,可以跳过安装 XCode 的过程,直接安装 Xcode command line tools 。安装完成后,你将可以直接在 terminal 中使用主要的命令,比如:`make, G...
# aurelia-succinctly This is a set of samples that follow along with the book Aurelia Succinctly.
<?php namespace App\Http\Controllers; use App\Http\Requests\StoreBlog; use App\Http\Requests\UpdateBlog; use App\Models\Blog; use App\SubMenu; use Illuminate\Http\Request; use DB; use App\Http\Requests; class BlogController extends Controller { public function index() { $blogs = Blog::latest()->get...
export enum DirectionType { NORTH = '0', EAST = '1', SOUTH = '2', WEST = '3' }
# This contains the standard config that all other configs inherit from # A dictionary of URI stems for the various API actions URI_STEMS = {'status': '/api/status'} SECRET_KEY = 'my_precious' MIDDLEWARE_ONLY_JOB_FIELDS = [ 'status', ]
# spring-aop-sample Based on [spring-app-sample](https://github.com/Dimanaux/spring-app-sample) ## What you should pay attention to [spring configuration](src/main/resources/spring-config.xml) [aspects](src/main/java/app/aspects) Code is provided with comments.
using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Xml.Serialization; namespace KeySwitchManager.Infrastructures.Storage.Xml.KeySwitches.Cubase.Models { [XmlRoot( ElementName = "obj" )] public class ObjectElement { [XmlElement( ElementName = "int" )]...
#!/bin/bash # Download the pre-trained weight file (237 MB) wget https://pjreddie.com/media/files/yolov3.weights
#!/bin/bash brew install tmux git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm ln .tmux.conf ~/ echo echo "** tmux installed" echo
import argparse if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("--dict_file", type=str, required=True) args = parser.parse_args() with open(args.dict_file) as f: chars_dec= f.read().split() chars = [chr(int(c)) for c in chars_dec] print(f"Len o...
<?php return [ 'currenciesCreated' => 'تم إنشاء عملاتك', 'depositCreated' => 'تم إنشاء الإيداع', 'youCancelledDeposit' => 'قمت بإلغاء الإيداع', 'youReceivedAnOffer' => 'لقد تلقيت عرضًا', 'youCancelledPayment' => 'لقد ألغ...
package fr.montuelle.arduino.sensors.actors import akka.actor.{Actor, ActorLogging, ActorRef, Props, Terminated} import akka.io.IO import akka.util.ByteString import com.github.jodersky.flow.{Serial, SerialSettings} import fr.montuelle.arduino.sensors.services.LoggerService /** * Sample actor representing a simple...
use std::borrow::Borrow; #[derive(Eq, PartialEq, Hash, Debug)] pub struct Response(u16); impl From<&str> for Response { fn from(value: &str) -> Self { let result = value.parse::<u16>(); return match result { Ok(result) => Response(result), Err(_) => Response(0) } ...
# FYP-IDPS-RPI Code repository for our Final Year Project : Intrusion Detection and Prevention System Using Raspberry Pi Supervisors : • Dr.Farhan Ahmed Siddique Group Members : • Hammad Shahid 18009 • Rohail Naushad 18039 • Muhammad Arsalan 17881
/** * Copyright (c) André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ package com.github.anba.es6draft.runtime.internal; import java.lang.invoke.MethodHandle; import java.lang.invoke.MethodHandleInfo; import java.lang.invoke....
const MagicString = require('@cush/magic-string'); const {ask, replacePath} = require('../etc'); const loadAuth = require('../auth'); const {parse} = require('sql-ast'); const mysql = require('../mysql'); const elaps = require('elaps'); const path = require('path'); const log = require('lodge'); const env = require('.....
import 'package:freemework/freemework.dart'; // import 'package:freemework_cancellation/freemework_cancellation.dart'; import 'package:freemework_http/freemework_http.dart'; import 'package:test/test.dart'; void main() { group('Simple requests', () { HttpClient httpClient; setUp(() { httpClient = Http...
(ns com.borkdal.clojure.image-metadata-utils-test (:require [midje.sweet :refer :all] [midje.util :refer [testable-privates]] [com.borkdal.clojure.image-metadata-utils :refer :all])) (testable-privates com.borkdal.clojure.image-metadata-utils transform-iptc-entries) (def ^...
(ns app.core (:require [clojure.data.json :as json] [schema.core :as s] [app.provider.ges] [app.config :refer [conf]]) (:use [ring.middleware.params :refer [wrap-params]] [ring.middleware.json :refer [wrap-json-params]] [compojure.api.sweet] [clj-webdriver...
package javax.scj.util; public class SilentSCJErrorReporter implements SCJErrorReporter { @Override public void processExecutionError(Throwable e) { } @Override public void processOutOfMemoryError(OutOfMemoryError o) { } @Override public void schedulerError(Throwable t) { } @Override public String proces...
#!/bin/bash function die() { echo "MAVEN RELEASE FAILED: $1" >&2 exit 1 } home="$PWD" for module in . core-java maven ant; do echo echo echo "Deploying Maven artifacts for $module..." echo cd "$home/$module" || die "No such dir $home/$module" mvn -DperformRelease=true depl...
#ifndef INCLUDED_ADVENT_OF_CODE_2021_DAY_12_PUZZLE_HPP_ #define INCLUDED_ADVENT_OF_CODE_2021_DAY_12_PUZZLE_HPP_ #include <Core/PuzzleBase.hpp> #include <unordered_map> #include <unordered_set> namespace TwentyTwentyOne { using CaveConnections = std::unordered_map<std::string, std::unordered_set<std::string>>; str...
#[cfg(not(feature = "library"))] use cosmwasm_std::entry_point; use crate::asserts::{assert_fees, assert_max_slot, assert_max_slot_premium}; use crate::bid::{activate_bids, claim_liquidations, execute_liquidation, retract_bid, submit_bid}; use crate::querier::query_collateral_whitelist_info; use crate::query::{ qu...
# rake test TEST=test/models/scrum_story_test.rb require 'test_helper' class ScrumStoryTest < ActiveSupport::TestCase test "expects to create new story" do # Arrange # Need to stub out some mock data stub_trello_response ScrumStory.stubs(:points_from_card).returns(1) # Requires member_ids for af...
import React from "react"; import _ from "lodash"; import { RouterState } from "react-router"; import { StickyContainer } from "react-sticky"; import { TitledComponent } from "src/interfaces/layout"; import NavigationBar from "src/views/app/components/layoutSidebar"; import TimeWindowManager from "src/views/app/contai...
package com.example.random; import java.util.Arrays; public class MedianPrint { public static void main(String[] args) { System.out.println(Arrays.toString(printMedian(new int[] {12,4,5,3,8,7}))); } private static double[] printMedian(int[] a) { double[] medianArray = new double[a.length]; ...
using HotChocolate.Types; namespace HotChocolate.Execution { internal readonly struct ArgumentVariableValue { public ArgumentVariableValue( IInputType type, NameString variableName, object defaultValue, IFieldValueSerializer serializer) { ...
import axios, { AxiosError } from 'axios'; import { IZHttpRequest } from '../request/http-request.interface'; import { ZHttpResultBuilder } from '../result/http-result-builder.class'; import { IZHttpResult } from '../result/http-result.interface'; import { IZHttpService } from './http-service.interface'; /** * Repres...
<?php /** * Created by PhpStorm. * User: donallin * Date: 2018/11/9 * Time: 11:44 */ return [ 'request' => [ 'csrfParam' => '_csrf-backend', 'cookieValidationKey' => 'G9kYTvVO4p7TYC-0TUjt1NvY9NdXgaKo', 'enableCsrfValidation' => false, 'parsers' => [ 'app...
using System.Diagnostics; using dotnetCampus.Ipc.Abstractions; using dotnetCampus.Ipc.Abstractions.Context; using dotnetCampus.Ipc.PipeCore.Context; namespace dotnetCampus.Ipc.PipeCore.IpcPipe { class IpcRequestMessageContext : IIpcRequestContext { [DebuggerStepThrough] public IpcRequestMessag...
#! /bin/bash echo set_tgs $1 $2 date particle call $1 set2602Calib $2
use std::collections::HashMap; use error::Result; /// A blocking etcd client mod sync_client; /// An async etcd client built on tokio /// /// This client is only used in the `apiserver` mod client; /// Auto-generated gRPC clients for etcd pub mod grpc { pub mod authpb { tonic::include_proto!("authpb"); ...
use libc::*; use std::mem; use std::ptr; /// Blocks the SIGTSTP/SIGTTOU/SIGTTIN/SIGCHLD signals so that the shell never receives /// them. pub(crate) fn block() { unsafe { let mut sigset = mem::uninitialized::<sigset_t>(); sigemptyset(&mut sigset as *mut sigset_t); sigaddset(&mut sigset as ...
package effect import ( "korok.io/korok/gfx" "korok.io/korok/math/f32" "korok.io/korok/math" ) // RadiusConfig used to configure the RadiusSimulator. type RadiusConfig struct { Config Radius Range Angle, AngleDelta Var } // RadiusSimulator works as the radius mode of the Cocos2D's particle-system. type Ra...
package com.twitter.finatra.jackson.serde import com.fasterxml.jackson.core.{JsonParser, JsonToken} import com.fasterxml.jackson.databind.{DeserializationContext, JsonDeserializer, JsonMappingException} import com.twitter.util.Duration import scala.util.control.NonFatal /** * A Jackson [[JsonDeserializer]] for [[com...
package fs2c.tools.packratc import fs2c.tools.packratc.syntax.ParserSyntax /** Packratc is a toolkit of packrat parser combinators for Parsing Expression Grammar (PEG). * PEGs can describe a wide set of formal language, yet less powerful than CFGs. * It is known that packrat parsers can parse PEGs in linear time,...
using AnyRPG; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace AnyRPG { public class EvadeState : IState { private UnitController baseController; public void Enter(UnitController baseController) { //Debug.Log("Enter evade state"); th...
RSpec.shared_examples 'an API endpoint requiring a date param' do |path, date_param, api_token| it 'returns an error if the token is incorrect' do get "#{path}?#{date_param}=#{CGI.escape(1.day.ago.iso8601)}", headers: { Authorization: 'invalid-token' } expect(response).to have_http_status(:unauthorized) ...
package com.bybutter.sisyphus.starter.grpc.transcoding.support.operation import com.bybutter.sisyphus.longrunning.OperationSupport import com.bybutter.sisyphus.longrunning.Operations import com.bybutter.sisyphus.longrunning.cancelOperationRules import com.bybutter.sisyphus.longrunning.deleteOperationRules import com.b...
import Escaped from '../../../src/parsing/rules/Escaped'; import Context from '../../util/MockContext'; describe('Escaped Rule', () => { let rule; beforeEach(() => { rule = new Escaped(new Context()); }); describe('matches', () => { it('should match backslash followed by a character', () => { e...
When 'I save and open the page' do save_and_open_page end Then /^show me the sent emails?$/ do pretty_emails = ActionMailer::Base.deliveries.map do |mail| <<-OUT.strip_heredoc To: #{mail.to.inspect} From: #{mail.from.inspect} Subject: #{mail.subject} Body: #{mail.body} . ...
// Copyright 2015 go-swagger maintainers // // 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 agr...
from core_data_modules.logging import Logger from core_data_modules.traced_data import TracedData, Metadata from core_data_modules.traced_data.io import TracedDataJsonIO from core_data_modules.util import TimeUtils log = Logger(__name__) class LoadData(object): @staticmethod def coalesce_traced_runs_by_key(u...
--- class: - stop rel: - self properties: name: Interactive sort: 1694 level: 3 description: Publishing interactive API documentation using one of the common API definition driven documentation solutions, providing details of the requests, responses, and schema of an ApI. entities: - class: - stop r...
use strict; use warnings; use Test::More 'no_plan'; use Data::Dumper; BEGIN { use_ok("Recs::Aggregator::StandardDeviation"); } BEGIN { use_ok("Recs::Record"); } my $aggr = Recs::Aggregator::StandardDeviation->new("x"); my $cookie = $aggr->initial(); foreach my $n (1, 3, 7) { $cookie = $aggr->combine($cookie, Re...
# This gets installed by default, I think the PHP package provides it # Ensure the .so symlink is in the correct PHP extensions directory create_extension "pdo" do provider "apt" end
module CataloguesHelper def catalogues Catalogue.where("parent_id IS NULL") end def get_sub_catalogues(cat_id) Catalogue.find(cat_id).sub_catalogues end end
CREATE OR REPLACE function insertAuthors( ISBN IN AUTHOR_006.isbn%TYPE, title IN AUTHOR_006.title%TYPE, author_name IN AUTHOR_006.author_name%TYPE, pub_id IN AUTHOR_006.pub_id%TYPE, category IN AUTHOR_006.category%TYPE, year IN AUTHOR_006.year%TYPE, price IN AUTHOR_006.price%TYPE) return num...
/* * Copyright (c) 2003-2005 The BISON Project * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * bu...
export { default as saveModelData } from './saveModelData'; export { default as updatePage } from './updatePage'; export { default as updateAccount } from './updateAccount';
package org.fisco.bcos.web3j.protocol.core.methods.status; /** return status for rpc interface: generateGroup */ public class GenerateGroupStatus { // success public static final String SUCCESS = "0x0"; // group already exist public static final String GROUP_EXIST = "0x1"; // group genesis file alr...
package channels import com.github.frozencure.helix.channels.ChannelService import com.github.frozencure.helix.channels.ChannelsResponse import com.github.frozencure.helix.channels.CommercialResponse import com.github.frozencure.helix.channels.HypeTrainEventsResponse import com.github.frozencure.helix.channels.model.M...
(in-package :xcb) ;; ;; Strategy: Change exposed xcb handle for pic to an offscreen buffer; ;; refresh will copy to screen. ;; ;;============================================================================= ;; Bufwin is a generic window with an off-screen buffer. (defclass window-db (window-direct) ((pix-off :accesso...
--- layout: post title: "System logging review with journalctl" description: "" category: [server, sysops, logging, journalctl, monitoring] tags: [] --- {% include JB/setup %} journalctl _COMM=sshd -e -f -e = go to the end of log -f = follow
"""Writes the specified project as a zip file""" import argparse from pathlib import Path import gmhazard_utils as su import project_api as pa def main(project_dir: Path, output_dir: Path, n_procs: int = 1): _, version_str = su.utils.get_package_version("project_api") project_dir_version_str = str(project_di...
__author__, V, _, A = "LaughDonor", raw_input(), input(), raw_input().split() print A.index(V)
////////////////////////////////////////////////////////////////////////// // Cria��o...........: 07-05-2007 // Ultima modifica��o: 21-06-2007 // Sistema...........: Olimpo Cafe - Automa��o de Cafeterias // Analistas.........: Marilene Esquiavoni & Denny Paulista Azevedo Filho // Desenvolvedores...: Marilene Esqui...
package dev.chrsep.caniuse.components import androidx.compose.foundation.Text import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumnFor import androidx.compose.material....
package macro import ( "errors" "fmt" "go/ast" "go/build" "go/format" "go/token" "go/types" "io/ioutil" "strings" "golang.org/x/tools/go/loader" ) // FuncCallInspector FuncCallInspector type FuncCallInspector func(expr *ast.CallExpr, caller *types.Func, args []types.TypeAndValue) // Package Package type P...
use serde::{de::DeserializeOwned, Serialize}; use crate::dispath_request::{GetRequest, PostRequest}; pub struct API { base: &'static str, } impl API { pub const fn new(base: &'static str) -> Self { Self { base } } } impl API { pub const fn get<Result: DeserializeOwned>(&self, url: &'static s...
require "forwardable" module Tomo class TaskLibrary extend Forwardable def initialize(context) @context = context end private def_delegators :context, :paths, :settings attr_reader :context def die(reason) Runtime::TaskAbortedError.raise_with( reason, task:...
//////////////////////////////////////////////////////////////////////////// // // Copyright 2016 Realm 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/li...