text stringlengths 27 775k |
|---|
namespace QuickGraph.Graphviz.Dot
{
public enum GraphvizLabelJustification
{
L,
R,
C
}
}
|
dnl PowerPC-64 mpn_lshift -- rp[] = up[] << cnt
dnl Copyright 2003, 2005 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published
dnl by... |
function simulate(a::Array)
current_price = 100
returns_arr = Float64[]
for f in a
current_price = current_price * f + current_price
push!(returns_arr, current_price)
end
returns_arr
end
|
using System;
using System.Text.RegularExpressions;
namespace Netronics.Http
{
class UriFinder
{
private readonly Regex _rx;
private readonly Func<string[], object> _handler;
public UriFinder(string uri, Func<string[], object> handler)
{
_rx = new Regex(uri);
... |
#include <stdio.h>
#include <string.h>
#include <limits.h>
/* ########################## MAZE FORMAT ##########################
first pair of numbers are the dimensions of maze (maze[n][m])
second pair of numbers are the coordinates of the starting point
next is the maze, where F is the finish point
######... |
# TODO
## MassLoader
- Have one global IDeferAgent to
- Load all glTFs as fast as possible
- Load all glTFs as fast as possible whilst keeping the target frame rate
|
#include "Message.hpp"
Message::Message()
{
}
Message::~Message()
{
}
|
import 'package:flutter/material.dart';
import 'package:flutter_platform_widgets/flutter_platform_widgets.dart';
import 'package:mymgs/data/clubs.dart';
import 'package:mymgs/data/settings.dart';
import 'package:mymgs/data_classes/club.dart';
import 'package:mymgs/notifications/permissions.dart';
import 'package:mymgs/... |
using System;
using System.Collections.Generic;
using System.Linq;
using Orchard.Autoroute.Models;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Aspects;
using Orchard.Core.Title.Models;
namespace Orchard.Taxonomies.Models {
public class TermPart : ContentPart<TermPartRecord> {
... |
using System;
using System.Collections;
using System.Text;
using FluentAssertions.Formatting;
namespace CHC.Consent.EFCore.Tests
{
public class DictionaryIdentifierFormatter : IValueFormatter
{
public bool CanHandle(object value) => value is IDictionary;
/// <inheritdoc />
public strin... |
<?php
/**
* request.php
*
* @author panlilu
* @copyright bifubao.com
* @since 2014-08
*/
require_once("bifubao_common.php");
global $bifubao_config;
$req = req_get_params();
$req['_pid_'] = $bifubao_config['pid'];
$req['_time_'] = time();
$to_sign_data = req_make_sign_data($req);
$checksum = md5($to_sign_data.... |
import { MinePlan } from "RoomPlanner";
export function validateMinePlan(plan: Partial<MinePlan>) {
if (!plan.extractor || !plan.container) {
throw new Error(`Incomplete MinePlan`);
} else {
return plan as MinePlan;
}
}
|
%%--------------------------------------------------------------------
%% Copyright (c) 2021-2022 EMQ Technologies 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 Lice... |
package org.celtric.kotlin.html
fun param(
// Mandatory
name: String,
value: String,
// Custom
other: Attributes = emptyMap()
) = EmptyBlockElement("param", AllAttributes(mapOf(
"name" to name,
"value" to value
), other, emptyMap()))
|
package dev.aerin.managerspecials.models
data class SpecialsPage(val canvasUnit: Int, val managerSpecials: List<Special>) {
fun getUnitSize(overallSize: Int): Int {
return overallSize / canvasUnit
}
}
|
package Module04._03UserInputAndConditional;
/**
* The purpose of this program is to get the target heart rate zone of a person,
* and then see if they are in that zone... Using if/if else/else
*
* @author (your name)
* @version (a version number or a date)
*/
import java.util.Scanner;
public class ... |
module Gitlab
module GithubImport
class Client
GITHUB_SAFE_REMAINING_REQUESTS = 100
GITHUB_SAFE_SLEEP_TIME = 500
attr_reader :access_token
def initialize(access_token)
@access_token = access_token
if access_token
::Octokit.auto_paginate = false
end
... |
CREATE TABLE [dbo].[FileStatsLatestBaseline]
(
WaitSnapshotId bigint NOT NULL,
io_stall bigint,
io_stall_read_ms bigint,
io_stall_write_ms bigint,
num_of_reads bigint,
num_of_writes bigint,
size_on_disk_mb numeric,
database_id int,
dbname [sys].[sysname],
fileName sysname,
file_id smallint
CONSTRAINT PK_FileStatsLate... |
---
date: 2012-11-01
round: Round 2
title: 'Round 2.1 --- Shell filename wildcarding'
author: Adam Obeng
permalink: /2012/11/round-2-1-shell-filename-wildcarding/
tags:
- Concept Map
---
Because it's immensely time-saving, and it eventually segues into regexes. Perhaps more importantly, it prepares the ground for str... |
#ifndef GENERAL_UTIL_H
#define GENERAL_UTIL_H
#include <stdio.h>
#include <nav_msgs/Odometry.h>
#include <geometry_msgs/PoseStamped.h>
#include <eigen_conversions/eigen_msg.h>
#include <std_msgs/Float64MultiArray.h>
#include <sensor_msgs/PointCloud.h>
Eigen::Vector3d getYPR(const geometry_msgs::Quaternion &q) {
dou... |
<?php
return [
'action' => 'Acción',
'add' => 'Agregar',
'add_new' => 'Añadir nuevo',
'ascending' => 'Ascentente',
'back' => 'Volver',
'back_to_home' => 'Volver al panel',
'background' => 'Imagen principal de fondo',
'basic' => 'Básico',
'calendar' => 'Calendario',
'cancel' => '... |
function greet()
println("hello world")
end
# greet (generic function with 1 method)
greet()
# hello world
function calculator(x, y, operation)
if operation == "+"
x+y
elseif operation == "-"
x-y
elseif operation == "*"
x*y
elseif operation == "/"
x/y
else
... |
package com.checkout.hybris.addon.validators.paymentform;
import com.checkout.hybris.addon.forms.PaymentDataForm;
import org.springframework.validation.Errors;
/**
* Validates Ideal payment form
*/
public class CheckoutComIdealPaymentDataFormValidator extends CheckoutComAbstractPaymentDataFormValidValidator {
... |
/*jslint browser: true*/
/*globals define*/
/**
* <%= name %>
*
* <%= desc %>
*/
define([
'knockout',
'text!./template.html'
], function (ko, html) {
'use strict';
/**
* <%= name %>ViewModel
*/
function <%= name %>ViewModel(params) {
var self = this;
self.message = ko.observable('Aloha'... |
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'site.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_$_Search _$_$_SearchFromJson(Map<String, dynamic> json) {
return _... |
package services
import javax.inject.{Inject, Singleton}
import scala.concurrent._
import scala.util.Properties
import play.api.libs.json.Json
import play.api.libs.ws._
import play.api.libs.json.JsValue
import models.{WeatherForecast, WeatherForecastResponse}
import utils.WeatherUtils
@Singleton
class WeatherForeca... |
/*
* Copyright 2021 by LunaSec (owned by Refinery Labs, 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 app... |
(ns ayatori.lra.core
(:require
[clojure.string :as string]
[java-time :as jt]
[ayatori.lra.db :as db]
[malli.core :as m]
[exoscale.ex :as ex]
[ayatori.lra-domain.interface :as domain]
[clojure.core.async :as async])
(:import (clojure.core.async.impl.channels ManyToManyChannel)))
(def AsyncCha... |
#!/usr/bin/env ruby
require 'rubygems'
require 'nokogiri'
# print error mesage and exit with status 1
def error(message="Unknown error")
puts "ERROR: #{message}"
exit 1
end
#parse the spath and fill into the provided result file
def parse(spath, result)
# if the file is not present, return the result as... |
/*
* Copyright 2020 The Matrix.org Foundation C.I.C.
*
* 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 ... |
/*
* Copyright 2021 HM Revenue & Customs
*
* 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 a... |
var AuthBasic = function (authConfig) {
var passport = require('passport');
var BasicStrategy = require('passport-http').BasicStrategy;
var HydraUser = require('./hydra-user');
passport.use(new BasicStrategy({realm: authConfig.realm},
function (username, password, done) {
if (authC... |
{-# LANGUAGE NamedFieldPuns, TemplateHaskell #-}
--------------------------------------------------------------------------------
-- |
-- Module : Language.C4.Fir.Stmt.Stmt
-- Description : Tests for Language.C4.Fir.Stmt.Stmt
-- Copyright : (c) Matt Windsor, 2018, 2019, 2020
-- License : MIT
-- Maintainer :... |
Dune::Balanced::Creditcard::Engine.routes.draw do
resources :payments, only: %i(new create update)
resources :notifications, only: :create
end
|
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
# This script relies on Cloudogu apt repository beeing present. See ces_apt.sh
echo "installing etcd - start"
# install etcd
apt-get install -y --allow-downgrades --allow-remove-essential --allow-change-held-packages ces-etcd
# Starting etcd is not necessary... |
import pandas as pd
import subprocess
from scipy.io import mmread, mmwrite
from scipy.sparse import csr_matrix
import numpy as np
import os
from sklearn.preprocessing import binarize
def summit_extend(summit_file,out_file,extend_size):
with open(summit_file) as input:
output=open(out_file,'w')
for ... |
import Controller from '@ember/controller';
import { action } from '@ember/object';
import { tracked } from '@glimmer/tracking';
import { inject as service } from '@ember/service';
export default class CarController extends Controller {
@service store;
@tracked brand = '';
@tracked carModel = '';
@action
cr... |
// ppg-compiler.js
// Tools to compile markdown into blog posts, generate pages of post links/summaries to show
// David Lenkner, 2017
var gulp = require('gulp');
var markdown = require('gulp-markdown');
var concat = require('gulp-concat-util');
var flatten = require('gulp-flatten');
var pageFrameInj = require('./pag... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
package com.example.biznoti0
import android.app.ProgressDialog
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.RadioButton
import android.widget.RadioGroup
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
impo... |
package com.github.chosamuel.kishibe.webgl
import com.github.chosamuel.kishibe.application.Application
import org.khronos.webgl.Uint16Array
import org.khronos.webgl.WebGLRenderingContext as GL
class IndexBuffer(val glContext: GL): Buffer {
val indices = mutableListOf<Short>()
private var indexBuffer = glConte... |
import { transform } from '../memory';
import { locate } from './locate';
import { reconcile } from './reconcile';
export const queue = [];
export function trigger (memory, elm) {
const { '': [, { '': { '': callback }, ...refs }] } = memory;
const depth = callback();
let map = queue[depth];
if (!queue.length) {
... |
import { injectable, inject } from 'tsyringe';
import { AccountNotFound } from '@/domain/errors';
import { AccountRepository } from '@/infra/db/account/repositories';
import { DeleteVoluntary } from '@/domain/usecases/voluntary';
import { DeleteAccount } from '@/domain/usecases/account';
import { VoluntaryRepository } ... |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeOperators #-}
module Control.Cham.Agent where
import Control.Cham.Context
import Control.Cham.Label
import Control.Cham.Name
import Data.Kind
data Agent :: Context -> Type where
Inaction :: Agent 'Empt... |
const { logError } = require('../errorLogging.js');
const run = ({messageText, sendMessage, db}) => {
const tokens = messageText.split(' ');
const token0 = tokens.length > 0 && tokens[0].toLowerCase();
const token1 = tokens.length > 1 && tokens[1].toLowerCase();
if (token0 === 'name') {
getName(sendMessage, db);... |
import { RefObject } from 'react';
// https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
export const stretchViewPortHeight = (elem = document.documentElement) => {
const viewportHeight = window.innerHeight * 0.01;
elem.style.setProperty('--vh', viewportHeight + 'px');
};
export const elemInView = (
... |
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:get/get.dart';
import 'package:mobile_app/locator.dart';
import 'package:mobile_app/models/user.dart';
import 'package:mobile_app/ui/views/profile/profile_view.dart';
import 'package:mobile_app/utils/image_test_util... |
import { IdMap, MockManager, MockRepository } from "medusa-test-utils"
import { add } from "winston"
import CustomerService from "../customer"
const eventBusService = {
emit: jest.fn(),
withTransaction: function() {
return this
},
}
describe("CustomerService", () => {
describe("retrieve", () => {
cons... |
<?php
namespace CH\modules;
use CH\modificators\Log\CH_Log;
use Exception;
/**
* BC_Namespacer
* this class creates sitemap by composer and work with file sturcture by
* assoc array.
*/
class BC_Namespacer
{
public static string $composerPath;
/**
* createConfigFile
* creates config file by co... |
package com.ainsigne.masterdetailitunes.data
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
/**
* ItunesSearch class represents the query made with query, media and country parameter
*/
@Entity(tableName = "itunes_searches")
data class ItunesSearch(
/**
* times... |
#include "SwapNodesInPairs.h"
using namespace lcpp;
ListNode *Solution24_1::swapPairs(ListNode *head) {
ListNode Dummy(0, head), *Tail = &Dummy, *P1 = head, *P2;
while (P1 != nullptr && (P2 = P1->next) != nullptr) {
P1->next = P2->next;
P2->next = P1;
Tail->next = P2;
Tail = P1;
P1 = P1->next;... |
/**
* @file dayOfTheWeek.dart
* @brief Fournit le nom du jour de la semaine pour une date donnée
*/
/**
* Retourne la valeur en tant que nombre entier du jour dans le calendrier grégorien
* @param day Le jour de la date choisie
* @param month Le mois de la date choisie
* @param year L'année de la date choisie
... |
package gg.rsmod.plugins.content.mechanics.prayer
import gg.rsmod.game.model.attr.AttributeKey
import gg.rsmod.game.model.attr.PROTECT_ITEM_ATTR
import gg.rsmod.game.model.bits.INFINITE_VARS_STORAGE
import gg.rsmod.game.model.bits.InfiniteVarsType
import gg.rsmod.game.model.entity.Player
import gg.rsmod.game.model.que... |
// <copyright file="IByteArrayMarshaller.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
namespace Microsoft.Azure.Networking.Infrastructure.RingMaster.Backend
{
using RequestResponse = Microsoft.Azure.Networking.Infrastructure.RingMaster.Requests.R... |
module Api
module V1
class SpaNSalonsController < ApplicationController
before_action :auth
before_action :set_spa_n_salon, only: %i[show update destroy]
# GET /spa_n_salons
def index
@spa_n_salons = SpaNSalon.all
render json: @spa_n_salons
end
# GET /spa_n_sa... |
#!/bin/bash
cd $(dirname $0)
[ -d target/release ] || \
cargo build --release
exec ./target/release/helloworld
|
<?php
namespace SlimSkeletonWebAPI\DAO;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityRepository;
use SlimSkeletonWebAPI\Entities\BaseEntity;
abstract class BaseDAO
{
/**
* @var \Doctrine\ORM\EntityManager
*/
private $_entityManager = null;
/**
* @var \Doctrine\ORM\EntityRepositor... |
#!/usr/bin/perl -w
if($#ARGV != 0) {
print "USAGE: perl gen-generic-asyncAwait.pl <Total Args>\n";
exit();
}
####################################################
##include "hclib-utils.h"
#namespace hclib
#{
# using namespace std;
#
# void asyncAwait(DDF_t* ddf0, DDF_t* ddf1, std::function<void()> &&lambda)
# {
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Exams;
use Auth;
class ExamController extends Controller
{
//
public function jobtest(Request $request)
{
$exam = new Exams();
$exam->q1 = $request->input('q1');
$exam->q2 = $request->input('q2');
... |
package scredis
import akka.actor.ActorSystem
import com.typesafe.config.Config
import scredis.commands._
import scredis.io.SubscriberAkkaConnection
import scala.concurrent.Future
import scala.concurrent.duration._
/**
* Defines a Pub/Sub Redis client capable of subscribing to channels/patterns.
*
* @param host ... |
require 'singleton'
module Healthy
class ServerIdentity
class << self
attr_accessor :identity
def establish(string_or_method_name = nil, &block)
self.identity = if block
yield
elsif string_or_method_name.is_a? Symbol
self.send(string_or_method_name)
else
... |
import datetime
from pathlib import Path
from scripts import config_provider, csv_aggregator, chart_generator
def main():
results_dir = __get_results_dir()
csv_aggregator_config = config_provider.get_csv_aggregator_config()
agg_csv = csv_aggregator.aggregate(csv_aggregator_config, results_dir)
chart... |
# frozen_string_literal: true
module CollectionspaceMigrationTools
# mixin module for mappable entities - sets :@mapper and :@status instance variables
#
# Classes mixing this in need to have the following methods:
# - name
module Mappable
include Dry::Monads[:result]
def get_mapper
CMT::Par... |
class Leakybucket::Bucket
attr_accessor :limit, :value, :leaking_callback, :key
def initialize(options = {}, key = '')
self.limit = default_options.merge(options)[:limit].to_i
self.value = self.limit
self.key = key
end
def default_options
{limit: 3}
end
def decrement
self.value -= 1
... |
var acceptParams = require('../helper.js').acceptParams;
var testArray = require('../helper.js').testArray;
if ($.writeln !== void 0) {
var console = {
log: function(obj) {
$.writeln(obj);
}
};
} else {
var console = window.console;
}
var callback = function(currentValue, index, array) {
return (typeof cur... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
require APPPATH . '/libraries/REST_Controller.php';
class Obat extends REST_Controller {
public function __construct()
{
parent::__construct();
$this->load->model(['m_obat']);
}
public function index_get()
{
$id = $this->ge... |
// Copyright 2019 SumUp Ltd.
//
// 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 ... |
#!/usr/bin/env python3
from datetime import datetime
from kqueen.server import create_app
from kqueen.models import Cluster
from kqueen.models import Organization
from kqueen.models import Provisioner
from kqueen.models import User
import requests
import yaml
import os
uuid_organization = '22d8df64-4ac9-4be0-89a7-c4... |
package org.komapper.core.dsl.expression
import kotlin.reflect.KClass
internal sealed class AggregateFunction<T : Any, S : Any> : ScalarExpression<T, S> {
internal data class Avg(val expression: ColumnExpression<*, *>) : ColumnExpression<Double, Double>,
AggregateFunction<Double, Double>() {
overr... |
#!/bin/bash
echo "enter any value: "
read var
echo "\"$var\" was entered"
|
module Genova
module Config
class DeployConfig < BaseConfig
def validate!
schema = File.read(Rails.root.join('lib', 'genova', 'config', 'validator', 'deploy_config.json'))
errors = JSON::Validator.fully_validate(schema, @params)
raise Exceptions::ValidationError, errors[0] if errors... |
module Main where
import qualified Pure
import qualified Monadic
import qualified Generic
main :: IO ()
main = do
putStrLn "\n== Pure ================================\n"
Pure.tests
putStrLn "\n== Monadic =============================\n"
Monadic.tests
putStrLn "\n== Generic =============================\n"
... |
<?php
/**
* @package Soisy
*/
namespace Soisy\Includes;
use Soisy\SoisyClient;
class Helper
{
public static function isCorrectAmount($order_total): bool
{
return ($order_total >= SoisyClient::MIN_AMOUNT) && ($order_total <= SoisyClient::MAX_AMOUNT);
}
public static function htmlPriceToNum... |
import carl.gen_fingerprint as gf
import carl.viz_fingerprint as viz
# site = "http://yahoo.com"
site = "http://slate.com"
fp, res = gf.load_fingerprint("real.first_n.1.0")
yh_1 = res[site]
fp, res = gf.load_fingerprint("real.first_n.5.0")
yh_5 = res[site]
fp, res = gf.load_fingerprint("real.first_n.10.0")
yh_10 =... |
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace YooniK.Face.Client.Models.Responses
{
/// <summary>
/// ProcessResponse
/// </summary>
[DataContract]
public partial class ProcessResponse
{
[DataMember(Name = "biometric_type", EmitDefaultValue = false)]
... |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use {
component_manager_lib::{
model::{
self,
hooks::*,
testing::breakpoints::*,
testing::test_... |
package com.jamieadkins.gwent.domain.deck
object DeckConstants {
const val BASE_PROVISION_ALLOWANCE = 150
const val CARDS_IN_DECK = 25
const val BRONZE_MAX = 2
const val GOLD_MAX = 1
} |
namespace :data_migrations do
desc "Create a race for each user, for each of their characters with a `race` value"
task create_races_from_character_races: :environment do
User.all.each do |user|
puts "Migrating user #{user.email.split('@').first}..."
user.characters.where.not(race: "").each do |cha... |
// Copyright (C) 2018 Peter Wong. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: pending
description: Custom species constructor is called when creating internal RegExp
info: |
RegExp.prototype [ @@matchAll ] ( string )
[...]
3. Return ? MatchAllIterato... |
---
title: Тахикардия
date: '22:08 15-12-2015'
publish_date: '22:08 15-12-2015'
taxonomy:
category:
- Blog
tag:
- Жизнь
---
Пульс 101 в покое. Перебор. |
require 'test_helper'
module Pyper::Pipes::Cassandra
class PaginationEncodingTest < Minitest::Should::TestCase
setup do
@pipe = PaginationEncoding.new
end
should 'encode the :paging_state status' do
state = 'sdf'
encoded = Base64.urlsafe_encode64(state)
status = {paging_state: s... |
require "test_helper"
require "expedite/variants"
class VariantsTest < Minitest::Test
def test_register
assert_raises ::NotImplementedError do
Expedite::Variants.lookup("missing")
end
Expedite::Variants.register("dev/*") do |name|
assert name != nil
end
["dev/abc", "dev/bcd"].each d... |
@push('head_scripts')
<script src="https://js.pusher.com/7.0/pusher.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
@endpush
|
/*
* Copyright (c) 2016-2018 "Neo4j Sweden, AB" [https://neo4j.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.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
+++
Title = "Heidi Waterhouse"
Twitter = "wiredferret"
image = "heidi-waterhouse.jpg"
type = "speaker"
linktitle = "heidi-waterhouse"
+++
|
#ifndef AARCH64_OS_LIB_STRING_H
#define AARCH64_OS_LIB_STRING_H
#include "kernel.h"
void *memcpy(void *dst, const void *src, u64 n);
void *memmove(void *dst, const void *src, u64 n);
void *memset(void *dst, int c, u64 n);
int strcmp(const char *s1, const char *s2);
u64 strlen(const char *s);
char *strcpy(char *dst, c... |
package com.daimler.mbcarkit.socket.observable
import com.daimler.mbcarkit.business.model.services.ServiceActivationStatusUpdateWrapper
import com.daimler.mbnetworkkit.socket.message.ObservableMessage
internal class ServiceActivationObservableMessage(
update: ServiceActivationStatusUpdateWrapper
) : ObservableMes... |
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;
namespace MiMundo
{
public partial class Form1 : Form
{
Image uno = null;
int x,... |
import {
Body,
Controller,
Delete,
Get,
HttpCode,
HttpStatus,
Param,
Post,
Put,
Query,
UseGuards,
} from '@nestjs/common';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { MongoIdPipe } from 'src/common/mongo-id.pipe';
import { ProductsService } from 'src/products/services/produc... |
<?php
namespace Biplane\YandexDirect\Api\V4\Contract;
/**
* Auto-generated code.
*/
class CreditLimitsInfo
{
protected $Currency = null;
protected $Limits = [];
/**
* Creates a new instance of CreditLimitsInfo.
*
* @return self
*/
public static function create()
{
... |
# frozen_string_literal: true
ActiveAdmin.register Subdomain do
belongs_to :domain
navigation_menu :domain
actions :all, except: %i[destroy edit new show]
config.filters = false
index do
column :id
column :title
column :domain
column :name
column 'Score Units', :score_units do |subdomai... |
# v2ex热议话题
`最后更新时间:2021-08-27 23:10:45 +0800`
1. [准备参加公司的开发者大赛,帮忙起一个名字吧](https://www.v2ex.com/t/798281)
1. [队伍里的小伙子这样设计表,应该怎么评价](https://www.v2ex.com/t/798305)
1. [问下 免压水晶头 = 免打模块 + 成品网线?](https://www.v2ex.com/t/798266)
1. [厦门互联网公司黑名单有人发出来了,直接在线编辑 500 余人,战况激励](https://www.v2ex.com/t/798356)
1. [CNNIC 报告显示中国网站数量逐年下降,微... |
#
# clickJSDialog.rb
#
#
# This file contains the JS clicker when it runs as a separate process
require 'watir/winClicker'
button = "OK"
button = ARGV[0] unless ARGV[0] == nil
sleepTime = 0
sleepTime = ARGV[1] unless ARGV[1] == nil
clicker= WinClicker.new
result = clicker.clickJavaScriptDialog( button )
clicker = n... |
## 0.1.1 - July 2, 2013
- Fix regexp anchoring
## 0.1.0 - April 23, 2012
- Initial version
|
experimentFolder=$1
for exp in `ls ${experimentFolder}` ; do
bsub -P heberlein \
-o duotrax-${exp}.log \
singularity run \
-B /groups/heberlein/heberleinlab/Simon:/groups/heberlein/heberleinlab/Simon \
-B /groups/branson/home/leea30/jsp/settings:/groups/branson/home/leea30/jsp/settings... |
package bo.app;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.github.ddth.dao.BaseBo;
import utils.PngUtils;
public class AppBo extends BaseBo {
public final static AppBo[] EMPTY_ARRAY = new AppBo[0];
public final static AppBo newInstance() {
AppBo user = new AppBo();
retur... |
<?php
/**
* Blackbox tests for all extensions, compares imagesizes/filesizes
**/
class CacheUncachedTest extends \PHPUnit\Framework\TestCase
{
// {{{ setUp
/**
* setup function
**/
public function setUp():void
{
$this->cache = \Depage\Cache\Cache::factory("test", array(
... |
require 'spec_helper'
describe PerfLab do
let(:lab) do
described_class.configure do |config|
config.existing -> { 100.times; 100 }
config.improved -> { 10.times; 10 }
config.equality ->(_existing_result, _improved_result) { true }
end
end
describe 'profiling' do
let(:directory) { '... |
program flocator
!
!@(#) a routine to demonstrate using locator.
!
!(LICENSE:PD)
use M_draw
character(len=20) :: dev
integer bt, BLACK, GREEN, BLUE
real x, y, sx, sy
logical act, curpnt
parameter (BLACK = 0, GREEN = 2, BLUE = 4)
print*,'Enter device name:'
read(*,'(a)') dev
call vinit(de... |
package com.common.util.excel;
import com.common.util.domain.ExcelData;
import com.google.common.base.Joiner;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.XSSFCellStyle;
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.