text
stringlengths
27
775k
--- title: Azure Active Directory 的目錄同步作業 description: 使用 Azure Active Directory 達到目錄同步作業的架構指引。 services: active-directory author: BarbaraSelden manager: daveba ms.service: active-directory ms.workload: identity ms.subservice: fundamentals ms.topic: conceptual ms.date: 10/10/2020 ms.author: baselden ms.reviewer: ajburn...
module Schools class Attendance include ActiveModel::Model attr_accessor :bookings, :bookings_params, :updated_bookings def initialize(bookings:, bookings_params:) self.bookings = bookings self.bookings_params = bookings_params end def save @updated_bookings = [] bookin...
class SchoolAdminMailer < SchoolMailer # @param school_admin [SchoolAdmin] Existing school admin # @param new_school_admin [SchoolAdmin] Newly created school admin def school_admin_added(school_admin, new_school_admin) @school_admin = school_admin @new_school_admin = new_school_admin @school = school_...
require "akchabar/version" require 'net/http' require 'json' require 'bigdecimal' module Akchabar def self.rates JSON.parse(Net::HTTP.get(URI("http://rates.akchabar.kg/get.json"))) end def self.btc_rate BigDecimal.new self.rates["rates"]["btc"] end end
--- uid: DocumentFormat.OpenXml.Validation.ValidationErrorInfo ms.author: "soliver" manager: "soliver" --- --- uid: DocumentFormat.OpenXml.Validation.ValidationErrorInfo.SetDebugField(System.String,System.String) ms.author: "soliver" manager: "soliver" --- --- uid: DocumentFormat.OpenXml.Validation.ValidationErrorInf...
extern crate byteorder; extern crate rand; extern crate crypto; extern crate num_bigint; #[macro_use] extern crate log; #[cfg(target_os = "redox")] extern crate syscall; #[cfg(not(target_os = "redox"))] extern crate libc; mod error; mod algorithm; mod packet; mod message; mod connection; mod key_exchange; mod encrypti...
//------------------------------------------------------------------------------ // <copyright file="MainWindow.xaml.cs" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //------------------------------------------------------------------------------ namespace Mic...
package gamemsg import ( "LollipopGo2.8x/conf/g" . "LollipopGo2.8x/proto/sr_proto" "LollipopGo2.8x/tables" . "github.com/Golangltd/Twlib/proto" . "github.com/Golangltd/Twlib/user" ) /* 学籍界面消息 */ type SRInterfaceMsg struct { Protocol int //主协议 Protocol2 int //子协议 UserName string ...
module Atom class BufProcess include Native def initialize(command, args, stdout, exitcb) options = `{ command: #{command}, args: #{args}, stdout: #{stdout}, exit: #{exitcb} }` other_atom = `require("atom")` super(`new #{other_atom}.BufferedProcess(#{options})`) end alias_native :k...
// Given an array of integers out of order, determine the bounds of the smallest window that must be sorted // in order for the entire array to be sorted. // For example, given [3, 7, 5, 6, 9, 8], you should return (1, 3). const sortingWindow = arr => { let startIndex = 0 let endIndex = 0 let i =0; ...
/*! * It's me! * https://github.com/mugetsu/its-me * based on my gist (https://gist.github.com/mugetsu/5dcd567208b38d15e69b) * @author Randell Quitain (https://github.com/mugetsu) * @version 0.0.1 * Copyright 2015. MIT licensed. */ (function($){ var children = 5, saveThem; function eightyThree...
#include "Value.hxx" #include "Array.hxx" #include "Object.hxx" namespace GDN { void Value::accept(Visitor & visitor) { visitor.visitValue(*this); } // constructors Value::Value(Object val){ this->value = std::make_shared<Object>(val); } Value::Value(Array val){ this->value = std::make_shared<Array>(va...
package com.example.arca import android.content.Intent import android.content.res.Configuration import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.widget.Button import android.widget.ImageView import android.widget.Toast import com.synnapps.carouselview.CarouselView import com.synn...
=head1 PURPOSE Basic MooX::Struct usage. =head1 AUTHOR Toby Inkster E<lt>tobyink@cpan.orgE<gt>. =head1 COPYRIGHT AND LICENCE This software is copyright (c) 2012 by Toby Inkster. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. ...
/* * Input.hpp * * Created on: Feb 11, 2020 * Author: jmbae */ #ifndef INPUT_HPP_ #define INPUT_HPP_ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <iostream> #include <vector> #include <unistd.h> using namespace std; struct inputParameter{ inputParameter(){ dirP...
# Does CSBS Support Cross-Region Backup for ECSs?<a name="EN-US_TOPIC_0056584614"></a> No. Currently CSBS supports only backup and restoration within a region but not across regions.
package com.github.onotoliy.opposite.treasure.pages.deposit import com.github.onotoliy.opposite.treasure.store.reducers.State import kotlinx.coroutines.CoroutineScope import react.RClass import react.RProps import react.invoke import react.redux.rConnect import react.router.dom.RouteResultHistory interface DepositVie...
import { defHttp } from '/@/utils/http/axios'; enum ImageApi { IMG_LIST = '/images/list', } export const getImgListApi = (params: any) => defHttp.post<any>({ url: ImageApi.IMG_LIST, params, });
/** * @class Oskari.statistics.statsgrid.ColorService */ Oskari.clazz.define('Oskari.statistics.statsgrid.ColorService', /** * @method create called automatically on construction * @static * */ function () { var me = this; this.colorsets.forEach(function(item) { ...
<h1 align="center">👩‍⚕️ Movie Recommendation System</h1> # ✅ Objective of this project - The objective of this project is to recommend movies. - We do content based filtering to recommend movies. # 📚 Procedure :- ## ✔ Working on the dataset - We get the column names and data shape. - We perform exploratory data ana...
package domain import monix.eval.Task trait ResasRepository { def getPrefectures(): Task[Seq[Prefecture]] def getCities(prefCode: Int): Task[Seq[City]] }
package controllers // IndexController main controller type IndexController struct { BaseController } // Index main page func (c *IndexController) Index() { c.Data["menu"] = "main" c.TplName = "index.html" }
# Read Me Website created using Beautiful Jekyll *Copyright 2016 [Dean Attali](http://deanattali.com)* Instructions for Building Locally: 1. Install Jekyll and download github repository 2. Make changes locally 3. Run "bundle exec jekyll build" to build website 4. Run "bundle exec jekyll serve" to see websi...
package de.rki.coronawarnapp.dccticketing.core.server import com.google.gson.annotations.SerializedName data class AccessTokenRequest( @SerializedName("service") val service: String, @SerializedName("pubKey") val pubKey: String )
const precioOriginal=100; const descuento=15; function calcularPrecioConDescuento(precio, descuento){ const porcentajePrecioConDescuento=100-descuento; const precioConDescuento=(precio*porcentajePrecioConDescuento)/100; return precioConDescuento; } function onClickButtonPriceDiscount(){ const preci...
## About the Bill of Rights - [What does it say?](#) - [How did it happen?](#) - [How was it made?](#) - [Where can I learn more?](#) - [Where can I see it?](#)
from ._base import * class FundamentalTrader(ABCTrader): internal_rate: float def __init__(self, player): super().__init__(player) self.update_internal_rate() def update_internal_rate(self): self.internal_rate = 0.1 def tick(self, cid): big_c = self.big_c(cid) ...
export const SET_CURRENT_USER = "SET_CURRENT_USER"; export const SET_ERRORS = "SET_ERRORS"; export const FETCH_CHANNELS = "FETCH_CHANNELS"; export const FILTER_CHANNELS = "FILTER_CHANNELS"; export const FETCH_CHANNEL_DETAIL = "FETCH_CHANNEL_DETAIL"; export const SEND_MESSAGE = "SEND_MESSAGE"; // export const FETCH_L_ME...
class SearchDevelopersJob < Que::Job def run(search_cache_key) params = Rails.cache.read(search_cache_key) api = Github::Api.new(params[:access_token]) logins = api.search(params) logins.each do |login| FetchDeveloperJob.enqueue(login, params[:access_token]) end end end
# frozen_string_literal: true module Unparser class CLI # Source representation for CLI sources # # ignore :reek:TooManyMethods class Source include AbstractType, Adamantium::Flat, NodeHelpers # Source state generated after first unparse class Generated include Concord::Pub...
// Copyright © 2018 Drew J. Sonne <drew.sonne@gmail.com> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. /...
using System; namespace Roslyn.Utilities { internal static class NumericExtensions { // Suggested by Jon Skeet. private static readonly long DoubleNegativeZeroBits = BitConverter.DoubleToInt64Bits(-0d); public static bool IsNegativeZero(this double d) { return BitCo...
package fiofoundation.io.fiosdk.models.fionetworkprovider.request import com.google.gson.annotations.SerializedName class GetFeeRequest (@field:SerializedName("end_point") var endPoint: String, @field:SerializedName("fio_address") var fioAddress: String) : FIORequest()
use std::env; use std::fs::OpenOptions; use std::io; use std::io::prelude::*; use std::path::PathBuf; use std::process::exit; use std::process::Command; // ==================== // === WrapLauncher === // ==================== /// Run the wrapped launcher overriding its reported version to the provided version. /// /...
# ApplicationResource is similar to ApplicationRecord - a base class that # holds configuration/methods for subclasses. # All Resources should inherit from ApplicationResource. class ApplicationResource < Graphiti::Resource # Use the ActiveRecord Adapter for all subclasses. # Subclasses can still override this de...
# ve-tartufo An italian version of truffle made for VeChain ## Installation ```sh $ npm install --save git+ssh://git@github.com/efebia-com/ve-tartufo.git ``` ## API ```js const { compile, deploy } = require('ve-tartufo'); ``` ### How to use it: ```js const { init, compile, deploy } = require("ve-tartufo"); //rem...
import 'package:cinema_ticket_maker/api/settings.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; Widget newRowForLayoutDialog(BuildContext context) { final TextEditingController rowIdentifier = TextEditingController(); final TextEditin...
export default { oUserInfo: state => state.user.oUserInfo, oCompanyInfo: state => state.info.oCompanyInfo, oBasicInfo: state => state.info.oBasicInfo, oFileInfo: state => state.info.oFileInfo };
import axios from 'axios' import getCurrentCredentials from './getCredentials' const baseURL = process.env.REACT_APP_API_URL const toBase64 = file => new Promise((resolve, reject) => { const reader = new FileReader() reader.readAsDataURL(file) reader.onload = () => resolve(reader.result) reader.onerror = erro...
import sbt.Keys.libraryDependencies name := "schedule" version := "0.1" scalaVersion := "2.12.8" lazy val domian = project .settings(name := "domian", set) .dependsOn(macros) lazy val macros = project .settings(name := "macros", set) lazy val parser = project .settings(name := "parser", set) .dependsOn(...
package login import android.content.Context import android.content.Intent import com.google.android.gms.auth.api.signin.GoogleSignIn import com.google.android.gms.auth.api.signin.GoogleSignInAccount import com.google.android.gms.auth.api.signin.GoogleSignInClient import com.google.android.gms.auth.api.signin.GoogleSi...
import * as actionTypes from '../constants/index'; const setBreadCrumb = data => { return { type: actionTypes.SET_BREADCRUMB, data }; }; const setTags = data => { return { type: actionTypes.SET_TAGS, data }; }; const setTheme = data => { return { type: actionTypes.SET_THEME, data }; }; const setCollap...
module Llama class Component def respond(message) message = case self when Llama::Producer::Base: produce(message) when Llama::Consumer::Base: consume(message) else process(message) end return message end def producer? false end def consumer? ...
using LinqInfer.Data.Serialisation; using LinqInfer.Maths; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace LinqInfer.Learning.Classification.NeuralNetworks { public interface INetworkSignalFilter : IImportableFromDataDocument, IExportableAsDataDocument, IPropagatedOutput ...
/// TICKSPERQUARTERNOTE is the number of "ticks" (time measurement in the MIDI file) that /// corresponds to one quarter note. This number is somewhat arbitrary, but should /// be chosen to provide adequate temporal resolution. const int TICKSPERQUARTERNOTE = 960; Map controllerEventTypes = {'pan': 0x0a}; /// Acciden...
#!/bin/sh BASEDIR=$(dirname $0) nodeLocation=$BASEDIR"/data/bin/node" jsLoc=$BASEDIR"/data/xbmc_remote.js" $nodeLocation --harmony $jsLoc
# Muzich Web app for friends or like minds join in to share and listen their favourite 'muzich' at real time.
declare module Qowaiv { class Guid implements IEquatable, IFormattable, IJsonStringifyable { constructor(); private v; toString(): string; format(f?: string): string; toJSON(): string; version(): number; equals(other: any): boolean; static fromJSON(s: ...
export const pageTheme = { darkMode: false, }; export const taskStore = { tasks: [], };
package compose.examples import compose.core._ import scalajs.js.annotation.JSExport trait TwelveBarBlues { import Score._ import Pitch._ @JSExport val twelveBarBlues = { val bar = ( E3.q | B3.q ) ~ ( E3.s | B3.s ) ~ ( E3.q | Cs4.q ) ~ ( E3.s | B3.s ) (bar transpose 0 repe...
import Position.BOTTOM import Position.BOTTOM_LEFT import Position.BOTTOM_RIGHT import Position.MIDDLE import Position.TOP import Position.TOP_LEFT import Position.TOP_RIGHT import java.io.File import java.util.EnumSet fun main() { val records = File("input/1.txt").readLines().map { line -> line.split(" | ", limit ...
### To recreate the Blue Button client certs for HTTP TLS: ``` mkcert -cert-file lfh-bluebutton-client.pem -key-file lfh-bluebutton-client.key localhost 127.0.0.1 ```
import 'dart:ui'; import 'package:frontend/data/api.dart'; import 'package:frontend/data/node_api.dart'; import 'package:frontend/data/node_model.dart'; class Repository { List<NodeModel> _nodes; Future<List<NodeModel>> getNodes() async { if (_nodes == null) { _nodes = (await fetchNodes()).nodes; }...
package com.tvd12.ezyhttp.server.core.constant; public final class PropertyNames { public static final String ASYNC_DEFAULT_TIMEOUT = "async.default_timeout"; public static final String DEBUG = "server.debug"; public static final String ALLOW_OVERRIDE_URI = "server.allow_override_uri"; public static f...
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _FuncCurry = require('../Func/curry'); var _FuncCurry2 = _interopRequireDefault(_FuncCurry); var _scan = require('./scan'); var _scan...
-module(cr_app). -behaviour(application). -export([start/2, stop/1]). -copyright('Maxim Sokhatsky'). -include("rafter_opts.hrl"). -compile(export_all). tcp(Name,Port,Mod,Nodes) -> {Name,{cr_tcp,start_link, [Name,Port,Mod,Nodes]}, permanent,2000,worker,[cr_tcp]}. ...
import re import requests from bs4 import BeautifulSoup import json import jsonlines # それぞれのslizeの添え字は汚い書き方しているけど合っている。ただすったっふまわりのデータの取り方に苦しむ # h2で書かれているものに統一性はなく、<p>で空白をとっている部分があるんじょでfind_all("<p>")ではずれが生じる # movieであらかじめdirecterなど書いているがその情報がない場合もあるので最初に書いててもそれのすり合わせがしんどい。 # scrapyでやった方がいいのだろうか、ここまでごり押しでやってきたがあまりにも無謀すぎ...
require "helper/integration_command_test_case" class IntegrationCommandTestRepository < IntegrationCommandTestCase def test_repository assert_match HOMEBREW_REPOSITORY.to_s, cmd("--repository") assert_match "#{HOMEBREW_LIBRARY}/Taps/foo/homebrew-bar", cmd("--repository", "fo...
package parser import ( "bufio" "context" "fmt" "github.com/brandesign/arma-go-parser/command" "io" ) type Handlers map[string]func() interface{} type Subscriber interface { GetSubscriptions() []*Subscription } func NewParser(r io.Reader, handlers Handlers, subscribers ...Subscriber) (*Parser, error) { p := ...
<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use App\Models\User; use App\Models\Estado; use App\Models\Municipio; use App\Models\Parroquia; use Spatie\Permission\Models\Role; use Spatie\Permission\Models\Permission; use Illuminate\Support\Facades\DB; class DatabaseSeeder extends Seeder { /** ...
package com.fabirt.debty.ui.people.detail import android.view.LayoutInflater import android.view.ViewGroup import androidx.core.content.ContextCompat import androidx.recyclerview.widget.RecyclerView import com.fabirt.debty.databinding.ViewItemMovementBinding import com.fabirt.debty.domain.model.Movement import com.fab...
using SpiraAPI.Client.Connection; using SpiraAPI.Client.Middleware; namespace SpiraAPI.Client.Client { public interface ISpiraClientFactory { ISpiraClient Create(ISpiraCredentials credentials); } public sealed class SpiraClientFactory { private readonly string _endpoint; ...
# vim: fileencoding=utf-8 ts=2 sts=2 sw=2 et si ai : module Helpers def generate_document_key(min=1, max=999) "spec_pk_#{Random.rand(min..max)}" end def write(driver) time1 = Time.mktime(2013, 6, 1, 11, 22, 33) time2 = Time.mktime(2013, 6, 1, 11, 22, 35) record1 = {'a' => 10, 'b' => 'Tesla'} ...
{% if include.header %} {% assign header = include.header %} {% else %} {% assign header = "###" %} {% endif %} This command packages a chart into a versioned chart archive file. If a path is given, this will look at that path for a chart (which must contain a Chart.yaml file) and then package that directory. Version...
package me.mocha.spongeplugin.seotda.wool import org.spongepowered.api.data.key.Keys import org.spongepowered.api.item.inventory.ItemStack import org.spongepowered.api.text.Text import org.spongepowered.api.text.format.TextColors object WoolRoulette { val itemName = Text.of( TextColors.RED, "r", ...
require_relative "classes.rb" require_relative "help.rb" require "artii" require "tty-prompt" require "tty-file" require "tty-table" require "colorize" args = ARGV if args.empty? title = Artii::Base.new puts title.asciify("Terminal Notes").colorize(:light_blue) StartMenu.new else case args[0].downc...
import styled from 'styled-components' export const Section = styled.section` padding: 4rem 0; margin: 0 auto; `
# react-native role __WARNING__ This role is in development and is not ready to be used at large. Installs [react-native](https://facebook.github.io/react-native/) to build iOS and Android applications. All the installation steps for building android apps on Linux, from the [getting started](https://facebook.github....
package takenoko.objectives.amenagement; /** * Ajout des aménagements qui sont les suivants : * <ul> * <li>ENCLOS</li> * <li>ENGRAIS</li> * <li>BASSIN</li> * </ul> * Il y a aussi NON lorsque la carte n'a pas d'amenagement */ public enum Amenagement { NON("NON"),ENCLOS("ENCLOS"),ENGRAIS("ENGRAI...
{-# LANGUAGE OverloadedStrings #-} module SimpleServer ( runServer ) where import Control.Monad.Trans.Reader (runReaderT) import Data.Text.Lazy (Text) import Network.Wai.Middleware.RequestLogger (logStdoutDev) import Web.Scotty.Trans (ScottyT, defaul...
from very_first_example import Person class Student(Person): def __init__(self, name, age, major): super().__init__(name, age) self.major = major def print(self): super().print() print(f"Major in {self.major}") s1 = Student("Catherine Zeta Jones", 54, "Arts") s1.print()
#!/usr/bin/env bash rm -r output mkdir output #python v31_validation.py > output/v31_validation.naf 2> output/v31_validation.err python v31_raw_text_terms.py > output/v31_raw_text_terms.naf 2> output/v31_raw_text_terms.err #python v31_add_entity.py > output/v31_add_entity.naf 2> output/v31_add_entity.err python v31_r...
CREATE OR REPLACE PACKAGE BODY HR.PACK AS PROCEDURE PROC1 AS BEGIN NULL; END; END;
// Auto-generated via `yarn build:interfaces`, do not edit /* eslint-disable @typescript-eslint/no-empty-interface */ import { Struct, Vec } from '@polkadot/types/codec'; import { Bytes, u32 } from '@polkadot/types/primitive'; import { BlockNumber, Signature } from '@polkadot/types/interfaces/runtime'; import { Author...
// Package s3log aids in parsing and generating logs in Amazon S3's Server Access Log Format package s3log import ( "net" "regexp" "time" ) // A Entry is a structured log entry that describes a S3 request type Entry struct { Owner string // user ID of bucket owner Bucket string // bucket name Tim...
/* * Copyright (c) 2015-2018, Cloudera, Inc. All Rights Reserved. * * Cloudera, Inc. licenses this file to you 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...
package net.onrc.onos.api.newintent; import com.google.common.base.Objects; import static com.google.common.base.Preconditions.checkNotNull; /** * A class to represent an intent related event. */ public class IntentEvent { // TODO: determine a suitable parent class; if one does not exist, consider introducing...
#!/bin/bash python openmm_adaptive_sim.py input.pdb input.coor >log.txt 2>&1 # get rid of the input file created by htmd for reading with mdtraj rm input_coor.dcd # need to do this for now, as htmd appears to only copy xtc files over to data. mdconvert -f traj.dcd -o traj.xtc # remove the dcd file, as the xtc has ever...
#ifndef DATA_TRAITS_HPP #define DATA_TRAITS_HPP /// COMPONENT #include <csapex/utility/tmp.hpp> #include <csapex/utility/semantic_version.h> /// SYSTEM #include <memory> namespace csapex { HAS_MEM_FUNC(makeEmpty, has_make_empty); template <typename T, typename std::enable_if<has_make_empty<T, std::shared_ptr<T> (*)...
import com.typesafe.plugin._ import play.api.Play.current import play.api.test._ import play.api.test.Helpers._ import services.MailService import org.specs2.mutable.Specification import scala.concurrent.Await import scala.concurrent.duration.Duration /** * Specs for MailService */ class MailServiceSpec extends S...
import time # demo1 def process_bar(name,percent,total_length=25): bar = ''.join(["▮"] * int(percent * total_length)) + '' bar = '\r' + '[' + \ bar.ljust(total_length) + \ ' {:0>4.1f}%|'.format(percent*100) +'100%,'+name+']' print(bar, end='', flush=True) for i in range(101): time.s...
package com.utils import android.content.Context import android.util.AttributeSet import android.util.Log import android.widget.LinearLayout class MyLinearLayout @JvmOverloads constructor( context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0 ) : LinearLayout(context, attrs, defStyleAttr) { ov...
#Untitled - By: HP - Mon Mar 1 2021 import sensor, image, time sensor.reset() sensor.set_pixformat(sensor.RGB565) sensor.set_framesize(sensor.QQVGA) sensor.skip_frames(time = 2000) clock = time.clock() KMAN = 0.3 # constant for exposure setting autoExposureSum = 0 readExposureNum = 10 for i in range(readExposureNum...
import java.io.BufferedReader; import java.io.FileReader; import org.culpan.hct.backend.Backend; import org.culpan.hct.backend.BackendFactory; import org.culpan.hct.frontend.FrontendFactory; import org.culpan.hct.frontend.Parser; import org.culpan.hct.frontend.Source; import org.culpan.hct.intermediate.*; import org.c...
using System; using System.Threading.Tasks; using Slack2Display.Server.Hubs; using Microsoft.AspNetCore.SignalR; namespace Slack2Display.Server.Services { public class CommandService : ICommandService { private IHubContext<CommandHub, ICommandClient> HubContext { get; } public event EventHand...
/* Catalog event - transfer and publishing Copyright 2014 Commons Machinery http://commonsmachinery.se/ Distributed under an AGPL_v3 license, please see LICENSE in the top dir. */ 'use strict'; var debug = require('debug')('catalog:event:transfer'); // jshint ignore:line // External libs var util = require('...
# An implementation of the MigrationChecker API # This class should be added in the puppet context under the key :migration_Checker # when the future parser and evaluator is operating in order to get callbacks to the methods # of this class. # # When the transaction using the MigrationChecker has finished, the collecte...
# -*- coding: utf-8 -*- from zipfile import ZipFile import dateparser from lxml import etree from health_stats.database import DBSession from health_stats.models.events import * from health_stats.parsers.log_parser import LogParser # Healthkit constants we care about # See: https://developer.apple.com/library/watc...
echo "Updating Pulumi Stack" # Download dependencies and build npm install # Update the stack pulumi stack select dev pulumi up --yes
{-# LANGUAGE TypeFamilies, FlexibleInstances, PostfixOperators #-} {-# OPTIONS_HADDOCK hide #-} ----------------------------------------------------------------------------- -- | -- Module : ForSyDe.MoC.SDF -- Copyright : (c) George Ungureanu, KTH/ICT/E 2015; -- SAM Group, KTH/ICT/ECS 2007-...
<?php namespace Tests\guest; use App\Models\ActivityLogEntry; use App\Models\Exhibition; use Tests\TestCase; use App\Models\Guest; use App\Models\User; /** * - /guests/$id/exit:post */ class ExitTest extends TestCase { /** * 展示退室のテスト * Guest の滞在中の展示が更新されている * ActivityLog が生成されている */ pub...
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class UsersImage extends Model { use HasFactory; protected $fillable = [ 'image_name', 'image_path', 'pet_id', 'business_profile_id', ]; /**...
package com.java.demo.designpattern.strategy; /** * @author: xinyuan.ymm * @create: 2017-03-11 上午11:14 */ public class FlyWithWing implements FlyBehavior { @Override public void fly() { System.out.println("i fly wing"); } }
require 'spec_helper' RSpec.describe 'fluentd' do shared_examples 'works' do it { is_expected.to compile.with_all_deps } it { is_expected.to contain_class('fluentd') } it { is_expected.to contain_class('fluentd::install') } it { is_expected.to contain_class('fluentd::service') } end context 'wit...
<?php namespace RuchJow\TerritorialUnitsBundle\Entity; use Doctrine\ORM\EntityRepository; class DistrictRepository extends EntityRepository { /** * @param $name * @param int $limit * * @return District[] */ public function findDistrictsByName($name, $limit = 0) { $name =...
function get_vosa_file() { local file=${vosa_dir}/${instance}/$vosa_input_file if [ -e ${file} ]; then echo $file else file=${vosa_dir}/common/$vosa_input_file if [ -e ${file} ]; then echo $file fi fi } function cat_vosa_file() { local file=$(get_vosa_file) if [ -e ${file} ]; then ...
#!/bin/bash CONTAINER=toger PG_CID=$(docker create -p 5432:5432 --rm --name $CONTAINER \ -e POSTGRES_USER=postgres \ -e POSTGRES_PASSWORD=postgres \ postgres:latest) docker start $PG_CID
# no-unused-stylesheet ## Rule Details This rule aims to find unused SX stylesheet definitions. Examples of **incorrect** code for this rule: ```jsx import sx from '@adeira/sx'; export default function MyComponent() { return null; } // Unused ⚠️ const styles = sx.create({ aaa: { color: 'red' }, }); ``` ```js...
# Prerequisites: # 1) gem install xml-simple # 2) gem install restr gem 'xml-simple' gem 'restr' require 'restr' logger = Logger.new('restr.log') logger.level = Logger::DEBUG Restr.logger = logger u0 = "http://localhost:3301/sessions.xml" o = { :username=>'admin', :password=>'camping'} p0=Restr.post(u0,o) u1 =...
import pkg_resources import sys import warnings if (3, 5) <= sys.version_info < (3, 6): warnings.warn( "Support for Python 3.5 will be removed in web3.py v5", category=DeprecationWarning, stacklevel=2) if sys.version_info < (3, 5): raise EnvironmentError( "Python 3.5 or above i...