code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
a large bottle with a narrow mouth
the quantity contained in a jug
lock up or confine, in or as in a jail
stew in an earthenware jug
| D |
module minima.video.events;
import minima.video.events.keyboard;
import data = minima.video.data;
import maincomm = minima.main.comm;
import minima.intercomm.mainvideo;
import std.variant : visit;
import std.stdio : writeln;
// SDL2 Events
import derelict.sdl2.sdl : SDL_Event, SDL_PollEvent, SDL_QUIT, SDL_KEYDOW... | D |
a reckless and unprincipled reprobate
| D |
/Users/sinbad/Desktop/IOS/Realm/build/Pods.build/Debug-iphonesimulator/RealmSwift.build/Objects-normal/x86_64/Property.o : /Users/sinbad/Desktop/IOS/Realm/Pods/RealmSwift/RealmSwift/Schema.swift /Users/sinbad/Desktop/IOS/Realm/Pods/RealmSwift/RealmSwift/ObjectSchema.swift /Users/sinbad/Desktop/IOS/Realm/Pods/RealmSwift... | D |
import std.stdio;
import std.algorithm;
import container;
import Grammar;
version(unittest)
{
// Introduce some test data to be used for unittests.
Grammar g1;
static this() {
g1 = new Grammar();
string[] grammarConfig =
[
r"# Tokens",
r"PLUS /\+/",
r"ID /\w+/",
r"LPA... | D |
/home/brad/Development/Rust Snake/snake_game/target/debug/deps/nodrop-12809b4ecb5b2436.rmeta: /home/brad/.cargo/registry/src/github.com-1ecc6299db9ec823/nodrop-0.1.12/src/lib.rs
/home/brad/Development/Rust Snake/snake_game/target/debug/deps/nodrop-12809b4ecb5b2436.d: /home/brad/.cargo/registry/src/github.com-1ecc6299d... | D |
/// Author: Aziz Köksal, Vitaly Kulich
/// License: GPL3
/// $(Maturity high)
module drc.semantic.Module;
import drc.ast.Node,
drc.ast.Declarations;
import drc.parser.Parser;
import drc.lexer.Lexer,
drc.lexer.IdTable;
import drc.semantic.Symbol,
drc.semantic.Symbols;
import drc.Location;
import dr... | D |
a star-shaped character * used in printing
mark with an asterisk
| D |
/**
* Abstraction for the long-mode TSS
*
* Copyright: 2008 The Neptune Project
*/
module util.arch.TSS;
/**
* TSS abstraction
*/
struct TSS
{
align(1):
uint res1 = 0;
// Privelege-level switch stacks
ulong[3] rsp;
// Interrupt stack table (ist[0] is invalid)
ulong[8] ist;
ulong ... | D |
T[] deepcopy(T)(T[] a) {
import std.traits : isArray;
static if(isArray!T) {
T[] res;
foreach(i; a) {
res ~= deepcopy(i);
}
return res;
} else {
return a.dup;
}
}
unittest
{
auto a = [[[1,2],[3,4]],[[5,6],[7,8]]];
auto b = a.deepcopy;
b[0][0][1] = 100;
assert(a != b);
} | D |
module chd.client.crypto;
import std.stdio;
extern (C) int sodium_init();
extern (C) ubyte *sodium_bin2hex(ubyte *hex, ulong hex_maxlen, const ubyte *bin,
ulong bin_len);
extern (C) void randombytes_buf(ubyte * buf, ulong size);
extern (C) ulong crypto_box_publickeybytes();
extern (C)... | D |
/**
* Windows API header module
*
* Translated from MinGW Windows headers
*
* Authors: Stewart Gordon
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(DRUNTIMESRC core/sys/windows/_iptypes.d)
*/
module core.sys.windows.iptypes;
version (Windows):
import core.sys.windows.w... | D |
struct foo{
static if (is(int T == int)) {}
static if (is(int T == int)) {}
}
| D |
/**
* Defines AST nodes for the parsing stage.
*
* Copyright: Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved
* License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/astbase.d, _astbase.d)
... | D |
INSTANCE Info_Mod_Costa_Hi (C_INFO)
{
npc = Mod_1442_BUD_Costa_MT;
nr = 1;
condition = Info_Mod_Costa_Hi_Condition;
information = Info_Mod_Costa_Hi_Info;
permanent = 0;
important = 0;
description = "Wer bist du?";
};
FUNC INT Info_Mod_Costa_Hi_Condition()
{
return 1;
};
FUNC VOID Info_Mod_Costa_Hi_Info()
{
... | D |
a violent weather condition with winds 64-72 knots (11 on the Beaufort scale) and precipitation and thunder and lightning
a violent commotion or disturbance
a direct and violent assault on a stronghold
behave violently, as if in state of a great anger
take by force
rain, hail, or snow hard and be very windy, often with... | D |
/**
License:
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit t... | D |
/Users/nikhilsridhar/Desktop/Shopp/Shopp/Build/Intermediates/Pods.build/Debug-iphonesimulator/CDYelpFusionKit.build/Objects-normal/x86_64/Parameters+CDYelpFusionKit.o : /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/CDYelpFusionKit/Source/CDImage.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/CDYelpFusionKit/Source... | D |
/Users/mli/Desktop/Develope/Swift/LBE_Demo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/XAxisRendererHorizontalBarChart.o : /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Filters/DataApproximator+N.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/... | D |
instance STRF_1107_STRAEFLING(NPC_DEFAULT)
{
name[0] = "Kuchař";
guild = GIL_STRF;
id = 1107;
voice = 1;
flags = 0;
npctype = NPCTYPE_OCMAIN;
b_setattributestochapter(self,1);
fight_tactic = FAI_HUMAN_COWARD;
EquipItem(self,itmw_2h_axe_l_01);
b_createambientinv(self);
b_setnpcvisual(self,MALE,"Hum_Head_Bald... | D |
/**
An object oriented persistence graph that abstracts data from the underlying databases.
Copyright: © 2015 David Monagle
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: David Monagle
*/
module aura.graph.core.graph;
import aura.graph.core.model;
import au... | D |
module rocl.controls.inventory;
import std.meta, std.conv, std.range, std.string, std.algorithm, perfontain,
ro.db, ro.conv, ro.conv.gui, ro.conv.item, rocl, rocl.gui.misc, rocl.game,
rocl.paths, rocl.status, rocl.status.helpers, rocl.network, rocl.controls;
struct WinInventory
{
void draw()
{
if (auto win = W... | D |
/home/tardigrade/filecoin/filecoin_loans_test/filecoin-signing-tools/target/debug/deps/remove_dir_all-b1246dc5b45460dd.rmeta: /home/tardigrade/.cargo/registry/src/github.com-1ecc6299db9ec823/remove_dir_all-0.5.3/src/lib.rs
/home/tardigrade/filecoin/filecoin_loans_test/filecoin-signing-tools/target/debug/deps/libremove... | D |
// Written in the D programming language.
/**
* $(RED Deprecated. It will be removed in March 2013. Please use
* $(LINK2 std_ascii.html, std.ascii) instead.)
*
* Simple ASCII character classification functions.
* For Unicode classification, see $(LINK2 std_uni.html, std.uni).
* References:
* $(LINK2 http:... | D |
module opensles_helper;
/** Current OpenSL ES Version*/
immutable SLESVersion = "1.0.1";
/**
* Is feature compatible with...
*/
struct SLESCompatibility
{
///Feature compatible with AudioPlayer
immutable bool AudioPlayer;
///Feature compatible with AudioRecorder
immutable bool AudioRecorder;
///Fe... | D |
// PERMUTE_ARGS:
// REQUIRED_ARGS: -D -Dd${RESULTS_DIR}/compilable -o- -preview=markdown -transition=vmarkdown
// POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh
/*
TEST_OUTPUT:
----
compilable/ddoc_markdown_code_verbose.d(19): Ddoc: adding code block for language 'ruby'
----
*/
/++
Code:
``` ruby red
RWBY... | D |
/Users/arenomat/Documents/Development/FootballPool/FootballPool/Build/Intermediates.noindex/FootballPool.build/Debug-iphoneos/FootballPool.build/Objects-normal/arm64/FootballPoolNetworkClient.o : /Users/arenomat/Documents/Development/FootballPool/FootballPool/AppDelegate.swift /Users/arenomat/Documents/Development/Foot... | D |
module clwrap.l2.util;
import std.range;
//deal with arrays seperately, in part to avoid any
//narrow-string idiocy
@property auto memSize(R)(R r)
if (is(R : T[], T))
{
static if (is(R : T[], T))
return r.length * T.sizeof;
else
static assert(false);
}
@property auto memSize(R)(R r)
i... | D |
import std.algorithm;
import std.conv;
import std.range;
import std.stdio;
import std.string;
void solve (int test)
{
auto s = readln.strip;
auto n = s.length;
s ~= "+";
auto res = n.iota.map !(i => s[i] != s[i + 1]).sum;
writeln ("Case #", test + 1, ": ", res);
}
void main ()
{
auto tests = readln.strip.to !(i... | D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Bo... | D |
module dbuild.util;
import std.digest : isDigest;
import std.traits : isIntegral;
import core.time : dur, Duration;
void feedDigestData(D)(ref D digest, in string s)
if (isDigest!D)
{
digest.put(cast(ubyte[])s);
digest.put(0);
}
void feedDigestData(D)(ref D digest, in string[] ss)
if (isDigest!D)
{
impor... | D |
module dagger.svg;
import std.string;
import std.array;
import std.ascii;
import std.algorithm;
import std.conv;
import dagger.color;
import dagger.math;
import dagger.path;
struct SvgShape
{
RGBA8 fillColor;
RGBA8 strokeColor;
double strokeWidth = 0;
Matrix3 transform = Matri... | D |
//T has-passed:yes
//T compiles:yes
//T retval:0
int main() {
const char* cmsg = "hello, world!";
string world = cmsg[7 .. 13];
assert(world.length == 6);
assert(world[0] == 'w');
assert(world[5] == '!');
return 0;
}
| D |
// URL: https://yukicoder.me/problems/no/807
import std.algorithm, std.container, std.math, std.range, std.typecons, std.string;
version(unittest) {} else
void main()
{
int n, m; io.getV(n, m);
auto g = GraphW!(long, 10L^^18)(n*2);
g.addEdge(0, n, 0);
foreach (_; 0..m) {
int a, b, c; io.getV(a, b, c); --... | D |
/*******************************************************************************
* Copyright (c) 2000, 2005 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | D |
/Users/patbutler/Developer/Server/Kitura/EmojiJournalServer/.build/x86_64-apple-macosx/debug/KituraSession.build/CookieParameter.swift.o : /Users/patbutler/Developer/Server/Kitura/EmojiJournalServer/.build/checkouts/Kitura-Session/Sources/KituraSession/SessionCookie.swift /Users/patbutler/Developer/Server/Kitura/EmojiJ... | D |
/Users/danielphiri/Documents/iOS\ DeCal/Projects/Hitcha/Alamofire-master/Hitcha-fnfsrgszxlwmnlbyhsnzxhgvwkda/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Response.o : /Users/danielphiri/Downloads/sharearide-master/Pods/Alamofire/Source/MultipartFormData.swift /Users/danielp... | D |
instance BAU_980_Sagitta (Npc_Default)
{
// ------ NSC ------
name = "Sagitta";
guild = GIL_NONE;
id = 980;
voice = 17;
flags = 0; //NPC_FLAG_IMMORTAL oder 0
npctype = NPCTYPE_MAIN;
// ------ Attribute ------
B_SetAttributesToChapter (self, 3); //setzt Attrib... | D |
import imports.test19656b;
class Thud { }
| D |
Long: pubkey
Arg: <key>
Protocols: SFTP SCP
Help: SSH Public key file name
Category: sftp scp auth
---
Public key file name. Allows you to provide your public key in this separate
file.
If this option is used several times, the last one will be used.
(As of 7.39.0, carl attempts to automatically extract the public ke... | D |
module esdl.base;
public import esdl.base.comm;
public import esdl.base.core;
public import esdl.base.time;
| D |
disgraceful gossip about the private lives of other people
a disgraceful event
| D |
instance ORG_873_CIPHER_EXIT(C_INFO)
{
npc = org_873_cipher;
nr = 999;
condition = org_873_cipher_exit_condition;
information = org_873_cipher_exit_info;
important = 0;
permanent = 1;
description = DIALOG_ENDE;
};
func int org_873_cipher_exit_condition()
{
return TRUE;
};
func void org_873_cipher_exit_info(... | D |
module android.java.android.provider.Telephony_Sms_Inbox;
public import android.java.android.provider.Telephony_Sms_Inbox_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!Telephony_Sms_Inbox;
import import0 = android.java.java.lang.Class;
| D |
/**
Code to make the executable do what it does at runtime.
*/
module dpp.runtime.app;
import dpp.from;
/**
The "real" main
*/
void run(in from!"dpp.runtime.options".Options options) @safe {
import std.stdio: File;
import std.exception: enforce;
import std.process: execute;
import std.array: j... | D |
module vibe.http.server;
public import vibe.core.net;
import vibe.core.stream;
import vibe.http.internal.http1;
import vibe.http.internal.http2.settings;
import vibe.http.internal.http2.exchange;
public import vibe.http.log;
public import vibe.http.common;
public import vibe.http.session;
import vibe.inet.message;
im... | D |
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.build/Command/Option.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Swift3.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkou... | D |
/******************************************************************************
Helper tool for migration from D1 to D2 which takes care of few minor
differences that are relatively easy to automate and very annoying to
fix manually:
- manifest constants adaptation
- preserving struct/union "this"... | D |
/**
Copyright: © 2017 rejectedsoftware e.K.
License: Subject to the terms of the GNU GPLv3 license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module dubregistry.internal.workqueue;
import std.algorithm.searching : canFind, countUntil;
import std.algorithm.mutation : swap;
import std.date... | D |
void main() {
problem();
}
void problem() {
auto N = scan!long;
auto M = scan!long;
auto C = scan!long;
auto B = scan!long(M);
auto A = N.iota.map!(_ => scan!long(M)).array;
void solve() {
long ans;
foreach(a; A) {
if (M.iota.map!(i => a[i]*B[i]).sum + C > 0) ans++;
}
ans.writeln;... | D |
//taken from learning d by Michael Parker
import std.stdio;
immutable fileData1 = import("myfile1.txt");
enum fileData2 = import("myfile2.txt");
void main() {
writeln(fileData1);
writeln(fileData2);
}
| D |
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | D |
(chemistry) a substance consisting of two or more substances mixed together (not in fixed proportions and not with chemical bonding)
any foodstuff made by combining different ingredients
a collection containing a variety of sorts of things
an event that combines things in a mixture
the act of mixing together
| D |
/**
* Module for supporting cursor and color manipulation on the console.
*
* The main interface for this module is the Terminal struct, which
* encapsulates the functions of the terminal. Creating an instance of
* this struct will perform console initialization; when the struct
* goes out of scope, any changes i... | D |
module hunt.quartz.core.ListenerManagerImpl;
import hunt.collection;
import hunt.quartz.JobKey;
import hunt.quartz.JobListener;
import hunt.quartz.ListenerManager;
import hunt.quartz.Matcher;
import hunt.quartz.SchedulerListener;
import hunt.quartz.TriggerKey;
import hunt.quartz.TriggerListener;
import hunt.quartz.im... | D |
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | D |
# FIXED
FreeRTOS_Source/timers.obj: C:/mohd/______erts/FreeRTOSv10.1.1/FreeRTOS/Source/timers.c
FreeRTOS_Source/timers.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/stdlib.h
FreeRTOS_Source/timers.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/_ti_config.h
FreeRTOS_Source/timers.obj... | D |
module xrunner;
import std.algorithm;
import std.stdio;
import std.array;
import std.process;
import xcb.xcb;
import xcb.xproto;
import deimos.zmq.zmq;
import std.c.stdlib;
import msgpack;
import mwm.common;
import mwm.messages;
import mwm.x;
xcb_window_t root;
X c;
ZmqSocket queue;
static this() {
c = new X();
... | D |
// URL: https://atcoder.jp/contests/abc081/tasks/arc086_b
import std.algorithm, std.container, std.conv, std.math, std.range, std.typecons, std.stdio, std.string;
auto rdsp(){return readln.splitter;}
void pick(R,T)(ref R r,ref T t){t=r.front.to!T;r.popFront;}
void pickV(R,T...)(ref R r,ref T t){foreach(ref v;t)pick(r... | D |
module org.serviio.upnp.protocol.soap.SOAPParameters;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.serviio.upnp.protocol.soap.SOAPParameter;
/// FIXME:
//@Retention(RetentionPolicy.RUNTIME)
//@Target({java.lang.annotation.ElementTyp... | D |
module corod_duplicate;
import corod;
/** This is simplified case of 2 consumers */
class Remember2limit(T) {
private:
T[] buffer;
int i, j;
int p1, p2;
invariant() {
assert(i != j);
assert(p1 == i || p2 == i);
if (p1 == p2) {
assert((i+1) % buffer.length == j);
}
}
public:
this(int n) {
buffer... | D |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... | D |
// ---------------------------------------------------------
// NPC 'BEG_700_Jesper'
// ---------------------------------------------------------
instance BEG_700_Jesper (C_NPC)
{
//-------- primary data --------
name = "Jesper";
guild = GIL_BEGGAR;
npctype = NPCTYPE_MAIN;
level ... | D |
/******************************************************************************
A module holding a variety of utility functions used throughout MiniD. This
module doesn't (and shouldn't) depend on the rest of the library in any way,
and as such can't hold implementation-specific functionality. For that, look
in the m... | D |
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.build/Data+Base64URL.swift.o : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Core/Data+Base64URL.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/core/Sources/Core/N... | D |
/*
* Copyright (c) 2017-2018 sel-project
*
* 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, pu... | D |
/**
* Contains TelegramInputMediaAudio
*/
module tg.types.telegram_input_media_audio;
import tg.core.type, tg.core.exception, tg.core.array;
import std.json, tg.type;
/**
* Represents an audio file to be treated as music to be sent.
*/
class TelegramInputMediaAudio : TelegramType {
/**
* Creates new type... | D |
/Users/yingyuhang/Desktop/学习/Rust-numerical-library/Numerical-Lib/target/debug/build/proc-macro2-4e35b71f0b13d75f/build_script_build-4e35b71f0b13d75f: /Users/yingyuhang/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.18/build.rs
/Users/yingyuhang/Desktop/学习/Rust-numerical-library/Numerical-Lib/target/d... | D |
; Copyright (C) 2008 The Android Open Source Project
;
; 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 ... | D |
func void ZS_Smalltalk()
{
PrintDebugNpc(PD_TA_FRAME,"ZS_Smalltalk");
B_SetPerception(self);
AI_SetWalkMode(self,NPC_WALK);
if(!Npc_IsOnFP(self,"SMALLTALK"))
{
PrintDebugNpc(PD_TA_CHECK,"...nicht auf FP!");
AI_GotoWP(self,self.wp);
};
AI_GotoFP(self,"SMALLTALK");
AI_AlignToFP(self);
};
func void ZS_Smallt... | D |
<?xml version="1.0" encoding="ASCII"?>
<di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi">
<pageList>
<availablePage>
<emfPageIdentifier href="T7_arch.notation#_kpaCEHl0EeGYi90b... | D |
import file;
int main (char[][] args)
{
int w_total;
int l_total;
int c_total;
int[char[]] dictionary;
printf(" lines words bytes file\n");
for (int i = 1; i < args.length; ++i)
{
char[] input;
int w_cnt, l_cnt, c_cnt;
int inword;
int wstart;
... | D |
instance nov_5063_novize(Npc_Default)
{
name[0] = NAME_Novize;
npcType = npctype_ambient;
guild = GIL_NOV;
level = 9;
voice = 2;
id = 5063;
attribute[ATR_STRENGTH] = 25;
attribute[ATR_DEXTERITY] = 25;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX] = 178;
attribute[ATR_HI... | D |
/Users/ming/Desktop/PerfectTemplate/.build/x86_64-apple-macosx/debug/PerfectCRUD.build/Expression/InInts.swift.o : /Users/ming/Desktop/PerfectTemplate/.build/checkouts/Perfect-CRUD/Sources/PerfectCRUD/PerfectCRUD.swift /Users/ming/Desktop/PerfectTemplate/.build/checkouts/Perfect-CRUD/Sources/PerfectCRUD/Expression/Like... | D |
// URL: https://yukicoder.me/problems/no/21
import std.algorithm, std.array, std.container, std.math, std.range, std.typecons, std.string;
version(unittest) {} else
void main()
{
int N; io.getV(N);
int K; io.getV(K);
int[] n; io.getC(N, n);
io.put(n.maxElement - n.minElement);
}
auto io = IO!()();
import lib... | D |
module keyboard;
import std.conv;
import Dgame.Window.Window;
import Dgame.Window.Event;
import DgameKeyboard = Dgame.System.Keyboard;
import camera;
import worldmap;
class Keyboard {
//speed modifiers
private static double moveSpeed = 0.03; //the constant value is in squares/second
private static doub... | D |
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.build/ByteBuffer-aux.swift.o : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/IO.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/NIO/NonBlocki... | D |
module emitter.config;
void Configure ( ) {
}
| D |
module artemisd.systems.voidentitysystem;
import artemisd.aspect;
import artemisd.entity;
import artemisd.entitysystem;
import artemisd.utils.type;
import artemisd.utils.bag;
public abstract class VoidEntitySystem : EntitySystem {
mixin TypeDecl;
public this()
{
super(Aspect.getEmpty());
}
... | D |
import core.sys.windows.windows;
import core.time : Duration;
import core.time : MonoTime;
import core.time : dur;
import std.format : format;
import std.traits : Fields, FieldNameTuple, hasMember;
import element : Style;
import element : Computed;
import element : Element;
import element : COLOR;
import... | D |
// Scriptlike: Utility to aid in script-like programs.
// Written in the D programming language.
/// Copyright: Copyright (C) 2014-2016 Nick Sabalausky
/// License: $(LINK2 https://github.com/Abscissa/scriptlike/blob/master/LICENSE.txt, zlib/libpng)
/// Authors: Nick Sabalausky
module scriptlike.fail;
import std... | D |
/++
$(H2 Piecewise Cubic Hermite Interpolating Polynomial)
See_also: $(REF_ALTTEXT $(TT interp1), interp1, mir, interpolate)
License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0).
Copyright: Copyright © 2017, Kaleidic Associates Advisory Limited
Authors: Ilya Yaroshenko
Macros:
SUBREF = $(REF_ALTTEXT $(T... | D |
import std.file;
import std.stdio;
import std.datetime;
import std.array;
import std.algorithm;
import dlexer;
import core.memory;
enum RUN_COUNT = 100;
void bench(ubyte[] f)
{
StopWatch sw = StopWatch(AutoStart.no);
float[RUN_COUNT] timings;
foreach (i; 0 .. RUN_COUNT)
{
GC.disable();
int count;
sw.star... | D |
var int holger_itemsgiven_chapter_1;
var int holger_itemsgiven_chapter_2;
var int holger_itemsgiven_chapter_3;
var int holger_itemsgiven_chapter_4;
var int holger_itemsgiven_chapter_5;
func void b_givetradeinv_holger(var C_Npc slf)
{
if((Kapitel >= 1) && (HOLGER_ITEMSGIVEN_CHAPTER_1 == FALSE))
{
CreateInvItems(sl... | D |
module model.tree;
import model.living_unit;
import model.faction;
import model.status;
/**
* This class is inherited from a living unit and describes a tree.
*/
immutable class Tree : LivingUnit
{
nothrow pure @safe @nogc:
this (
long id,
double x,
double y,
double speedX,
... | D |
/*
Copyright (c) 2016-2023 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, dist... | D |
instance PC_Thief_NW(Npc_Default)
{
name[0] = "Диего";
guild = GIL_NONE;
id = 21;
voice = 11;
flags = 0;
npcType = NPCTYPE_FRIEND;
aivar[93] = TRUE;
B_SetAttributesToChapter(self,6);
level = 1;
fight_tactic = FAI_HUMAN_MASTER;
EquipItem(self,itmw_diego_degen);
aivar[AIV_IgnoresArmor] = TRUE;
EquipItem(sel... | D |
instance SLD_802_Buster(Npc_Default)
{
name[0] = "Бастер";
guild = GIL_SLD;
id = 802;
voice = 13;
flags = 0;
npcType = npctype_main;
B_SetAttributesToChapter(self,1);
fight_tactic = FAI_HUMAN_NORMAL;
EquipItem(self,ItMw_1h_Sld_Axe);
EquipItem(self,ItRw_Sld_Bow);
CreateInvItems(self,ItRw_Arrow,10);
B_Create... | D |
// Written in the D programming language.
/**
This is a submodule of $(MREF std, algorithm).
It contains generic _comparison algorithms.
$(BOOKTABLE Cheat Sheet,
$(TR $(TH Function Name) $(TH Description))
$(T2 among,
Checks if a value is among a set of values, e.g.
$(D if (v.among(1, 2, 3)) // `v` is ... | D |
/**
* D header file for POSIX.
*
* Copyright: Copyright Alex Rønne Petersen 2011 - 2012.
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Alex Rønne Petersen
* Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition
*/
/* Copyright Alex Rø... | D |
instance DIA_Attila_EXIT(C_Info)
{
npc = VLK_494_Attila;
nr = 999;
condition = DIA_Attila_EXIT_Condition;
information = DIA_Attila_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Attila_EXIT_Condition()
{
return TRUE;
};
func void DIA_Attila_EXIT_Info()
{
AI_StopProcessInfos(self);
}... | D |
/Users/lukenewman/Developer/iOS/SpartacusWorkout/Build/Intermediates/SpartacusWorkout.build/Debug-iphoneos/SpartacusWorkout.build/Objects-normal/armv7/SplitJump.o : /Users/lukenewman/Developer/iOS/SpartacusWorkout/SpartacusWorkout/DumbbellLungeTwist.swift /Users/lukenewman/Developer/iOS/SpartacusWorkout/SpartacusWorkou... | D |
import std.stdio;
import std.array;
import std.string;
import std.conv;
void main() {
write("input data: ");
string inputStr = readln().chomp();
auto theArray = split(inputStr);
int minimum, maximum, intNum;
foreach(string strNum; theArray) {
intNum = strNum.to!int;
if(intNum < mini... | D |
module android.java.android.widget.CursorTreeAdapter_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import4 = android.java.java.lang.CharSequence_d_interface;
import import0 = android.java.android.da... | D |
/home/carlosb/rust-workspace/examples-rust/async/example_async/target/debug/deps/scopeguard-6b1c17b417a6a0c2.rmeta: /home/carlosb/.cargo/registry/src/github.com-1ecc6299db9ec823/scopeguard-1.0.0/src/lib.rs
/home/carlosb/rust-workspace/examples-rust/async/example_async/target/debug/deps/libscopeguard-6b1c17b417a6a0c2.r... | D |
version https://git-lfs.github.com/spec/v1
oid sha256:a735b0e733467ac59ed3cc728053f87f470c0b19dff2b32de646e09cafe8eb97
size 2794
| D |
/**
* A $(LINK2 http://en.wikipedia.org/wiki/Universally_unique_identifier, UUID), or
* $(LINK2 http://en.wikipedia.org/wiki/Universally_unique_identifier, Universally unique identifier),
* is intended to uniquely identify information in a distributed environment
* without significant central coordination. It can b... | D |
/Users/hanykaram/Desktop/MVP/DerivedData/MVP/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/PKHUD.build/Objects-normal/x86_64/FrameView.o : /Users/hanykaram/Desktop/MVP/Pods/PKHUD/PKHUD/HUD.swift /Users/hanykaram/Desktop/MVP/Pods/PKHUD/PKHUD/PKHUD.swift /Users/hanykaram/Desktop/MVP/Pods/PKHUD/PKHUD/PKHUDA... | D |
/*
* Copyright (c) 2004-2006 Derelict Developers
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice... | D |
the highest level or degree attainable
a town in eastern Mississippi
an imaginary great circle on the surface of the earth passing through the north and south poles at right angles to the equator
of or happening at noon
being at the best stage of development
| D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.