text
stringlengths
27
775k
/* * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
-- noinspection SqlNoDataSourceInspectionForFile @ ../../../../object/names/namex/view/corp_nob_vw.sql @ ../../../../object/names/namex/view/req_instance_max_event.sql @ ../../../../object/names/namex/view/request_party_vw.sql @ ../../../../object/names/namex/view/request_vw.sql @ ../../../../object/names/namex/pack...
/** * Copyright (c) 2021 SK Telecom Co., Ltd. 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 requir...
using UnityEngine; using System.Collections; using System.IO; using System; public class FileLogHandler : ILog { private FileStream mFileStream; private StreamWriter mStreamWriter; private ILogHandler mDefaultLogHandler = Debug.unityLogger.logHandler; public FileLogHandler() { string yest...
package net.bogus.githubsearch import io.reactivex.Maybe import io.reactivex.Single import net.bogus.githubsearch.model.Repository import net.bogus.githubsearch.model.RepositoryRequest import retrofit2.Retrofit import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory import retrofit2.converter.gson.GsonConverterFact...
--- title: "Art Form That Fights Back" tags: [Programming] --- Programming is an art form that fights back. -- Unknown ([source][source]) [source]: https://twitter.com/CodeWisdom/status/200034557771264002
# API Gateway via Flux ## Connect to the AKS Cluster > NOTE: This requires the `$NAME` and `$LOCATION` variables set from the [prerequisites](/00_prequisites/README.md). ```bash az aks get-credentials -g $NAME -n $NAME ``` ## Secrets for APIM Gateway When you create the self-hosted gateway for the API Management s...
package flyweight import ( "testing" ) func TestFactoryCreatesObjects(t *testing.T) { f := NewObjectFactory() firstObject := f.GetObject(TYPE_ONE) if firstObject == nil { t.Error("The pointer to the TYPE_ONE was nil") } } func TestFactoryCreatesTwoObjects(t *testing.T) { f := NewObjectFactory() _ = f.GetObj...
<?php /** * MIT License * * Copyright (c) 2017 TrackLines * * 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...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Client extends Model { /** * The table associated with the model. * * @var string */ protected $table = 'clients'; /** * Get the User record associated with the contrat. */ public function contrats() ...
package com.mesosphere.usi.core.models.faultdomain import org.apache.mesos.v1.Protos object AnyDomain extends DomainFilter { override def apply(masterDomain: Protos.DomainInfo, nodeDomain: Protos.DomainInfo): Boolean = true override def description: String = "accept any domain" }
from torch.optim.lr_scheduler import _LRScheduler class NoamLR(_LRScheduler): def __init__(self, optimizer, warmup_steps=4000, d_model=384, last_epoch=-1): self.warmup_steps = warmup_steps self.d_model = d_model super().__init__(optimizer, last_epoch) def get_lr(self): last_ep...
package org.springframework.web.context; import javax.servlet.ServletConfig; import org.springframework.beans.factory.Aware; /** * Interface to be implemented by any object that wishes to be notified of the * {@link ServletConfig} (typically determined by the {@link WebApplicationContext}) * that it runs in. *...
/** * Copyright (c) 2017-2018 BusyMachines * * See company homepage at: https://www.busymachines.com/ * * 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.apac...
# Methods added to this helper will be available to all templates in the application. module ApplicationHelper def format_log_time(time) time += session[:session].utc_offset - time.utc_offset time.strftime('%d/%m/%Y %H:%M:%S') end def image_url(source) abs_path = image_path(source) unless abs_path =...
<?php use Illuminate\Support\Facades\Route; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the Route...
//using System.Collections.Generic; //using System.Linq; //using CoreGraphics; //using UIKit; //namespace Comet.iOS.Handlers //{ // class RadioGroupHandler : AbstractLayoutHandler // { // private List<CUIRadioButton> RadioButtons = new List<CUIRadioButton>(); // public RadioGroupHandler(CGRect rect) : base(rect) /...
package ph.kpa.pollyload; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebView; import android.webkit.WebViewClient; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(...
--- layout: post title: "How to install mujoco-py and robosuite" date: 2021-07-21 10:20:00 +0200 categories: Install tags: coding tutorials install pin: false --- # Prerequisites 1. Go to the [MuJoCo website](https://www.roboti.us/license.html) and obtain a license. 2. Download and extract MuJoCo ```shell cd /tmp...
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. namespace System.Data.Entity.Infrastructure.DependencyResolution { using System.Collections.Concurrent; using System.Data.Entity.Utilities; using System.Linq; using Moq; ...
--- title: "React" date: "2010-5-20" --- In This post i had learn React.
part of edge.views; class RepeatListView<V, T> implements View { const RepeatListView(this.loopedView, this.loopedList); final dynamic loopedView; final String loopedList; }
#include <unordered_map> #include <modbox/game/game_loop.hpp> #include <modbox/graphics/graphics.hpp> #include <modbox/gui/main_menu.hpp> #include <modbox/log/log.hpp> template <typename K, typename V> static std::vector<K> mapKeys(const std::unordered_map<K, V>& mp) { std::vector<std::wstring> keys; keys.res...
/* eslint-disable no-invalid-this, indent */ import { module } from 'substance-test' import { substanceGlobals, RenderingEngine, Component } from 'substance' import TestComponent from './fixture/TestComponent' import getMountPoint from './fixture/getMountPoint' const Simple = TestComponent.Simple const internal = Rend...
export declare const createSubscriptionsStore: () => { register(subscribe: () => void): void; markAllAsUnused(): void; clearUnused(): void; }; declare const _default: { register(subscribe: () => void): void; markAllAsUnused(): void; clearUnused(): void; }; export default _default;
package io.ktor.utils.io import io.ktor.utils.io.core.internal.* class ByteBufferChannelScenarioSequentialTest : ByteBufferChannelScenarioTest() { override fun ByteChannel(autoFlush: Boolean): ByteChannel { return ByteChannelSequentialJVM(ChunkBuffer.Empty, autoFlush) } }
cd DWB echo "Pulling from gh-pages" git pull origin gh-pages echo "Pulled successfully from gh-pages" echo "Restarting server..." npm install npm start echo "Server restarted Successfully"
# frozen_string_literal: true class CardSet < ApplicationRecord belongs_to :card_cycle belongs_to :card_set_type has_many :printings has_many :cards, :through => :printings end
import numpy as np import pandas as pd from ..batch_shapers.batch_shaper import BatchShaper from ..batch_transformers.batch_transformer import BatchTransformer class BatchGenerator: """ Basic batch generator. It is also a root class for all other batch generators. This batch generator is a python generator ...
package com.padcmyanmar.kunyi.delegates import com.padcmyanmar.kunyi.datas.vos.JobVO interface JobDetailDelegate { fun onTapJob(jobDetail:JobVO?) }
# cs-node-test Node JS Codespace Test ## Setup After cloning run commands: `git submodule init` `git submodule update`
# Twitter Styles - Use [basic communication](basic.md) styles. - Keep your tweets educational, entertaining, and relevant. Refrain from tweeting the mundane. Be creative. - Try to average posting less than 5 tweets a day. - Unfollow anyone that averages more than 5 tweets a day, brags about themselves and/or company...
import csv # https://docs.python.org/3/library/csv.html # https://django-extensions.readthedocs.io/en/latest/runscript.html # python3 manage.py runscript many_load from planetary_systems.models import ( PlanetarySystem, SpectralType, Star, DiscoveryMethod, DiscoveryFacility, SolutionType, ...
require 'test_helper' class MembershipsControllerTest < ActionDispatch::IntegrationTest # # index access # test "Show access: User is owner" do sign_in users(:admin) get user_agent_memberships_url(users(:admin), agents(:weather)) assert_response :success assert_nil flash[:alert] end test...
module Day14 export day14 using SparseArrays TESTINPUT = """NNCB CH -> B HH -> N CB -> H NH -> C HB -> C HC -> B HN -> C NN -> C BH -> H NC -> B NB -> B BN -> B BB -> N BC -> B CC -> N CN -> C""" _elem_to_int(elem) = 1 + (elem - 'A') _int_to_elem(int) = (int - 1) + 'A' _group_index(ind1, ind2) = 26*(ind1 - 1) + ind...
# CDK toolkit integreation tests To run, just execute `./test.sh`. The test uses the default AWS credentials.
# https://www.acmicpc.net/problem/19236 from collections import deque import copy drow = [0, -1, -1, 0, 1, 1, 1, 0, -1] dcol = [0, 0, -1, -1, -1, 0, 1, 1, 1] def updateTable(table, sharkRow, sharkCol): smallestFish = float('inf') fishRow, fishCol = 0, 0 biggestFish = 0 for i in range(4): for...
--- layout: watch title: TLP1 - 29/06/2021 - M20210629_083148_TLP_1T.jpg date: 2021-06-29 08:31:48 permalink: /2021/06/29/watch/M20210629_083148_TLP_1 capture: TLP1/2021/202106/20210628/M20210629_083148_TLP_1T.jpg ---
#!/usr/bin/perl use strict; use File::Temp qw/ tempfile tempdir /; use XML::LibXML; use FindBin qw($Bin); use Digest::MD5 qw(md5 md5_hex md5_base64); # default values our $jdkloc; our $kstoolsloc; our $ksserver; require "$Bin/config.pl"; my $stdinchunk; { local $/; $stdinchunk = <STDIN>; } my $parser = XML::LibXML...
import { Injectable, Inject, PLATFORM_ID } from "@angular/core"; import { isPlatformBrowser } from '@angular/common'; import { Observable, of, fromEvent } from 'rxjs'; import { throttleTime, map, distinctUntilChanged, startWith } from 'rxjs/operators'; @Injectable({ providedIn: "root" }) export class AppResolitio...
/** Closure structure routines. * * @file closure.c * @author Leonardo G. */ #include "europa/rt.h" #include "europa/util.h" /** * @brief Creates a new closure. * * If the closure is an Europa one, it also intializes the closure's environment, * creating slots for each formal parameter and setting its "up env...
submodule(Mod_CauchyElement) UPCauchyElement_NH implicit none contains !-------------LHS------------ module subroutine up_elmVU_NH(e,nd,tn,dvol,J,mu,gdev,Fmat,Finv,elmat) !----------------------------------------------------------------------- ! ! This routine computes the elemental mater...
package ssh import ( "fmt" "github.com/sheikh1309/filesy/config" ) func CreateFile(credentials config.Credentials, filename string) { run(credentials, fmt.Sprintf("touch %v", filename)) } func CreateDir(credentials config.Credentials, dir string) { run(credentials, fmt.Sprintf("mkdir %v", dir)) }
import { removeSpecialChars } from '../../common/remove-special-chars'; export class RemoveSpecialCharsColumnTransformer { to(data: string): string { return removeSpecialChars(data); } from(data: string): string { return data; } }
package com.quorum.tessera.ssl.trust; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import javax.security.auth.x500.X500Principal; import java.io.IOException; import...
namespace QFSW.QGUI { public interface IGUIItem { void DrawGUI(LayoutController layout); } }
if [ -d "$HOME/bin" ]; then export PATH=$HOME/bin:$PATH fi
// // (C) Copyright 2021 Intel Corporation. // // SPDX-License-Identifier: BSD-2-Clause-Patent // package control import ( "context" "log" "log/syslog" "github.com/pkg/errors" "google.golang.org/grpc" "google.golang.org/protobuf/proto" mgmtpb "github.com/daos-stack/daos/src/control/common/proto/mgmt" shared...
module CustomTest export vecarray, run_tests, test_approx_eq using ControlSystems using Base.Test # Length not defined for StateSpace, so use custom function function Base.Test.test_approx_eq(va::StateSpace, vb::StateSpace, Eps, astr, bstr) fields = [:Ts, :nx, :ny, :nu, :inputnames, :outputnames, :statenames] ...
using System; namespace gerenciador_hashtags_twitter.Application.DTOs.Response.Service { public sealed class GetTweetsResponseDataItem { public Guid Id { get; set; } public string Message { get; set; } public string Author { get; set; } public DateTime PublishDate { get; set; }...
require 'spec_helper' describe Apruve::CorporateAccount do before :each do Apruve.configure('7ec4e1ae7c96fceba0d599da541912b7', 'local') end let (:id) { '89ea2488fe0a5c7bb38aa7f9b088874a' } let (:merchant_uuid) { '89ea2488fe0a5c7bb38aa7f9b088874b' } let (:customer_uuid) { '89ea2488fe0a5c7bb38aa7f9b08887...
package goldi import ( "fmt" "reflect" ) // The TypeRegistry is effectively a map of typeID strings to TypeFactory type TypeRegistry map[string]TypeFactory // NewTypeRegistry creates a new empty TypeRegistry func NewTypeRegistry() TypeRegistry { return TypeRegistry{} } // RegisterType is convenience method for T...
"""Mortgage schedule""" import logging from bloodloan.mortgage import expenses from bloodloan.mortgage import mmath logger = logging.getLogger(__name__) # pylint: disable=C0103 class LoanPayment: """A single loan payment and its result""" def __init__( self, index=0, ...
require 'ohm' require 'ohm/timestamps' require 'ohm/datatypes' class Profile < Ohm::Model include Ohm::Timestamps include Ohm::DataTypes attribute :avatar attribute :full_name attribute :headline attribute :skills, Type::Array attribute :educations, Type::Array attribute :skills, Type::Array attribu...
package com.briggin.footballfinder.common.api.retorfit import com.briggin.footballfinder.common.api.retorfit.dto.PlayerDto import com.briggin.footballfinder.common.api.retorfit.dto.TeamDto import com.briggin.footballfinder.common.domain.PlayerDomain import com.briggin.footballfinder.common.domain.TeamDomain class Dom...
//------------------------------------------------------------------- // MetaInfo Framework (MIF) // https://github.com/tdv/mif // Created: 03.2017 // Copyright (C) 2016-2021 tdv //------------------------------------------------------------------- // MIF #include <mif/application/net_base_application.h> #incl...
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE EmptyDataDecls #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications #-} {-# LANGUAGE Ty...
<?php use Illuminate\Database\Seeder; use App\Models\BankAccount; class BankAccountsTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $bank_accounts = [ [ 'bank_name' => 'BRI', ...
import 'dart:async'; import 'package:triviabank/util/app_config.dart'; import 'package:flutter/material.dart'; class LoginValidators { static bool isValidEmail(String str) { final emailRegExp = RegExp(r"^[a-zA-Z0-9.]+@[a-zA-Z0-9]+\.[a-zA-Z]+"); return emailRegExp.hasMatch(str); } final validateEmail ...
use anyhow::Result; use clap::Clap; use hamilton::driver::{ BodyConfig, DriverType, HamiltonDcDriver, HamiltonDriver, HamiltonLssDriver, }; use hamilton::holonomic_controller; use holonomic_controller::HolonomicWheelCommand; use std::sync::Arc; use std::time::Duration; use tokio::sync::Mutex; use tokio::time::sleep...
CREATE TABLE Authorise3DRequests ( AuthoriseRequestID uuid not null, AuthCode integer, PSPReference text, ResultCode text, Datestamp timestamptz not null default now(), PRIMARY KEY (AuthoriseRequestID), FOREIGN KEY (AuthoriseRequestID) REFERENCES AuthoriseRequests(AuthoriseRequestID) );
package com.badoo.ribs.template.rib_with_view.foo_bar.builder import android.os.Bundle import com.badoo.ribs.template.rib_with_view.foo_bar.FooBar import com.badoo.ribs.template.rib_with_view.foo_bar.FooBarNode import dagger.BindsInstance @FooBarScope @dagger.Component( modules = [FooBarModule::class], depend...
package org.repodriller.scm; import java.util.List; public class MultipleGitRemoteRepositoryBuilder extends GitRemoteRepositoryBuilder { private List<String> gitUrls; public MultipleGitRemoteRepositoryBuilder(List<String> gitUrls) { this.gitUrls = gitUrls; } public MultipleGitRemoteRepositoryBui...
package parameter type ParticipationRoleType string const ( ParticipationRoleTypeChair ParticipationRoleType = "CHAIR" ParticipationRoleTypeRequestedParticipant ParticipationRoleType = "REQ-PARTICIPANT" ParticipationRoleTypeOptionalParticipant ParticipationRoleType = "OPT-PARTICIPANT" Participatio...
import 'package:pub_semver/pub_semver.dart'; import '../script/dependency.dart'; import '../script/script.dart'; import 'pubspec.dart'; /// ///Used to read a pubspec.yaml file /// class PubSpecFile implements PubSpec // with DependenciesMixin { PubSpec __pubspec; /// Reads a pubspec.yaml from the path that [sc...
/* * Copyright 2019-2021 Copenhagen Center for Health Technology (CACHET) at the * Technical University of Denmark (DTU). * Use of this source code is governed by a MIT-style license that can be * found in the LICENSE file. */ part of movisens; /// A probe collecting data from the Movisens device using a [StreamP...
package pulse.common.tests import cats.{Monad, MonadError} import org.scalatest.{FlatSpec, ShouldMatchers} import pulse.common.{Managed, exceptions} import pulse.common.exceptions.NotSupportedException import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.{Await, Future} import scala.concu...
<?php namespace Tests\YandexCheckout\Model; use PHPUnit\Framework\TestCase; use YandexCheckout\Helpers\Random; use YandexCheckout\Model\CurrencyCode; use YandexCheckout\Model\MonetaryAmount; class MonetaryAmountTest extends TestCase { const DEFAULT_CURRENCY = CurrencyCode::RUB; const DEFAULT_VALUE = '0.00'; ...
/* Test compatibility of structure layout and alignment for structs which contain doubles. The original structs here are from PR 10645. */ extern void struct_align_1_x (void); extern void exit (int); int fails; int main () { struct_align_1_x (); exit (0); }
require 'action_controller/railtie' require 'action_view/railtie' require 'sprockets/railtie' require 'less/rails/semantic_ui' module Dummy class Application < ::Rails::Application config.root = __dir__ config.active_support.deprecation = :stderr config.cache_store = :memory_store config.consider_a...
; RUN: llc < %s -mtriple=thumbebv8.2a-arm-none-eabi -mattr=+fullfp16 -filetype=obj -o /dev/null ; RUN: llc < %s -mtriple=thumbv8.2a-arm-none-eabi -mattr=+fullfp16 -filetype=obj -o /dev/null ; RUN: llc < %s -mtriple=armebv8.2a-arm-none-eabi -mattr=+fullfp16 -filetype=obj -o /dev/null ; RUN: llc < %s -mtriple=armv8.2a-ar...
import { RGB_XYZ_MATRIX, XYZ_RGB_MATRIX, D65_D50_MATRIX, D50_D65_MATRIX, D50, D65, OCT_RANGE, DEG_RANGE, ONE_RANGE, BYTE_RANGE, CHROMA_RANGE, HEX_RE, HEX_RE_S, CMA_RE, WSP_RE, } from '../src/utils/constants'; test('constants', () => { expect(Array.isArray(RGB_XYZ_MATRIX)).toBe(true); ...
package com.dozenx.game.engine.ui.toolbar.view; import cola.machine.game.myblocks.engine.Constants; import cola.machine.game.myblocks.model.ui.html.Document; import cola.machine.game.myblocks.model.ui.html.HtmlObject; import cola.machine.game.myblocks.registry.CoreRegistry; import com.dozenx.game.engine.Role.controlle...
#![allow(dead_code)] pub mod hw { use core::ptr::{read_volatile, write_volatile}; unsafe fn read16(addr: u32) -> u16 { read_volatile(addr as *const u16) } unsafe fn write16(addr: u32, value: u16) { write_volatile(addr as *mut u16, value); } macro_rules! hw_reg { (rw $...
--- date: 2022-01-08 photos: - "/uploads/img_1204.jpeg" - "/uploads/img_1206.jpeg" showInHomePage: false outOfStock: false title: Queen 2 categories: [] ---
#!/bin/bash cp *.py $PREFIX/bin chmod +x $PREFIX/bin/*
<?php use Illuminate\Database\Seeder; use controlepessoal\Categorias; class DatabaseSeeder extends Seeder { public function run() { $this->call(CategoriasTableSeeder::class); } } class CategoriasTableSeeder extends Seeder { public function run() { Categorias::create(['nome' => 'Teste 2...
package main import ( "encoding/json" "fmt" "io/ioutil" "log" "net/http" "net/url" "os" "strings" ) import . "github.com/deniszh/buckytools" // httpClient is a cached http.Client. Use GetHTTP() to setup and return. var httpClient *http.Client // MetricData represents an individual metric and its raw data. /...
import os import jinja2 import yaml # get environment parameters VERSION = os.environ.get("VERSION", "latest") ROLES_FILENAME = os.environ.get("ROLES_FILENAME", "/release/etc/roles.yml") REQUIREMENTS_FILENAME = os.environ.get("REQUIREMENTS_FILENAME", "/ansible/requirements.yml") # load versions files from release r...
'use strict' exports.rectangle = (x, y, x1, y1, x2, y2) => (x >= x1 && x <= x2 && y >= y1 && y <= y2) exports.circle = (x, y, cx, cy, cr) => Math.pow(x - cx, 2) + Math.pow(y - cy, 2) <= Math.pow(cr, 2) module.exports = exports
# plotly.js changelog For more context information, please read through the [release notes](https://github.com/plotly/plotly.js/releases). To see all merged commits on the master branch that will be part of the next plotly.js release, go to: https://github.com/plotly/plotly.js/compare/vX.Y.Z...master where X.Y.Z is...
package server import ( "bufio" "bytes" "io" "net" "time" "go.uber.org/zap" "github.com/go-web-dev/event-bus/logging" ) type router interface { Switch(io.Writer, io.Reader) (bool, error) } // Settings represents the Event Bus server settings type Settings struct { Addr string Router router DB ...
use std::env; fn main() { // set them in the build if they exist let set_env = "cargo:rustc-env"; // Regenerate if any of these change println!("cargo:rerun-if-env-changed=AZ_IOT_GLOBAL_PROVISIONING_ENDPOINT"); if let Ok(value) = env::var("AZ_IOT_GLOBAL_PROVISIONING_ENDPOINT") { println!("...
#!/bin/sh cp zen run/iso/boot/ cp servers/terminal/terminal run/iso/servers/ cp servers/keyboard/keyboard run/iso/servers/ cp servers/shell/shell run/iso/servers/ grub-mkrescue -o run/zen.iso run/iso/
"""Google images visualisation application, Developed using Streamlit library.""" import streamlit as st from google_image_downloader import get_images_data def main(): """Google image visualiser.""" st.set_page_config(layout="wide") refresh = st.sidebar.button('Refresh') query = st.sidebar.text_inp...
#!/bin/bash -e # This script is intended only to be used in CI environments, don't use it to install libical on your system! LIBICAL_VERSION="v3.0.7" git clone --branch $LIBICAL_VERSION https://github.com/libical/libical.git mkdir libical/build cd libical/build cmake -DWITH_CXX_BINDINGS=false \ -DICAL_BUILD_DOCS...
<?php function redirect_to($new_location) { header("Location:" . $new_location); exit(); } function logged_in() { return isset($_SESSION['admin_id']); } function confirm_logged_in() { if(!logged_in()) { redirect_to("login.php"); } } ?> <script> function Confirm() { ...
%%%------------------------------------------------------------------- %% @doc jamesbot worker process definition %% @end %%%------------------------------------------------------------------- -module(jamesbot_srv). -include("config.hrl"). -behaviour(gen_server). %% Application callbacks -export([start_link/1]). -ex...
/* * Copyright © 2010-2013 Intel Corporation * * 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, merge...
using NetMap.Data.Models; using System; using System.Collections.Generic; using System.Text; namespace NetMap.Data.Repositories.Interfaces { public interface ICategoryRepository { Category GetCategory(long id); List<Category> GetCategories(); bool isCategoryExist(long id); } }
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Fiche extends Model { use HasFactory; protected $fillable = [ 'id_time', 'nom_client', 'adresse_client', 'num_compte', 'num_facture', ...
'use strict'; module.exports = { // mains Blizzard: { All: require('./blizzard/main'), Wow: require('./blizzard/wow/main'), Diablo: require('./blizzard/diablo/main'), Sc2: require('./blizzard/sc2/main'), Outh2: require('./blizzard/outh2/main') }, Riot: require('./riot/lol/main'), // utili...
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace UncommonSense.CBreeze.Common { /// <summary> /// The Classic Client Control Types /// </summary> public enum ClassicControlType { Label = 1, Image = 2, Shape = 3, Command...
class ExportsFullyDescribed include XMLable::Document root :bill do attribute :date, Date element :l1 do element :l2 do attribute :l2a content :text end end element :s1 do element :s2 do attribute :s2a content :text end end element ...
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'package:analyzer/file_system/file_system.dart'; import 'package:analyzer/src/context/builder.dar...
package controllers import controllers.actions.AuthContext import metrics.{MetricsContext, MetricsService} import play.api.mvc._ import zio._ import libs.http.HttpContext class MetricController(AuthAction: ActionBuilder[AuthContext, AnyContent], cc: ControllerComponents)( implicit R: HttpContext[MetricsContext] ) ...
<?php return array( //'配置项'=>'配置值' //数据库配置 'DB_DSN' => 'mysql://xiaojiaosun:6133698039@localhost:3306/think_job', 'URL_MODEL' => 2, 'DEFAULT_THEME' => 'bootstrap', 'TMPL_PARSE_STRING' =>array( '__UPLOAD__' => '/Uploads', '__GROUP__' => 'Tpl/bootstrap', ), ...
const fs = require('fs'); const core = require('@actions/core'); const github = require('@actions/github'); const gitPrRelease = require('git-pr-release'); (async function main() { const { owner = core.getInput('owner'), repo = core.getInput('repo'), } = github.context.repo; const base = core.getInput('...
from bidict import bidict """Create bidirectional dictionary with alphabet to numbers.""" def create_bidict_for_alphabet(): alphabet = "abcdefghijklmnopqrstuvwxyz" bialpha = bidict() for i, j in enumerate(alphabet): bialpha[i] = j return bialpha """Get input file to toneks words and other char...
package com.tencent.devops.project.api.service import com.tencent.devops.common.api.pojo.Page import com.tencent.devops.project.pojo.ProjectVO import com.tencent.devops.project.pojo.Result import io.swagger.annotations.Api import io.swagger.annotations.ApiOperation import io.swagger.annotations.ApiParam import javax.w...