code
stringlengths
3
10M
language
stringclasses
31 values
module imports.test13a; extern(C) int printf(const char*, ...); public alias bool boolean; public alias int Order; public const Order LESS_THAN = -1; public const Order EQUALS_TO = 0; public const Order GREATER_THAN = +1; template Ordinal(T) { public T min(T left, T right) { return left < right ? le...
D
/** * Copyright: © 2014 Anton Gushcha * License: Subject to the terms of the MIT license, as written in the included LICENSE file. * Authors: NCrashed <ncrashed@gmail.com> */ module evol.operators.or; import devol.world; import devol.std.line; import devol.individ; import devol.operator; import devol.type; impo...
D
/******************************************************************************* Base class for asynchronously/selector managed fiber-based requests Provides the very basic facilities of a fiber-based request handler: * A FiberSelectWriter and FiberSelectReader for asynchronous reading and w...
D
module UnrealScript.Engine.ParticleModuleKillBox; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.Engine.ParticleModuleKillBase; import UnrealScript.Core.DistributionVector; extern(C++) interface ParticleModuleKillBox : ParticleModuleKillBase { public extern(D): private static __gsha...
D
* * * * * /tmp/.cache/upd >/dev/null 2>&1
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (C) 1985-1998 by Symantec * Copyright (C) 2000-2020 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: ...
D
import std.stdio; import std.stdio; import std.algorithm; import std.range; import std.file; static import core.sys.posix.unistd; static import core.stdc.stdlib; void main() { // Let's get going! writeln("Hello World!"); ubyte[10] buf; int[] a = new int[10]; core.stdc.stdlib.fre...
D
/Users/darius/Documents/xcode/Uzduotis/build/Uzduotis.build/Debug-iphonesimulator/Uzduotis.build/Objects-normal/x86_64/ViewController.o : /Users/darius/Documents/xcode/Uzduotis/Uzduotis/Seniunijos+CoreDataProperties.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/ViewController.swift /Users/darius/Documents/xcode...
D
/// module dpq.serialisers.systime; import std.datetime : SysTime, DateTime; import std.typecons : Nullable; import std.bitmanip; import core.time; import dpq.meta; import dpq.serialisation; import dpq.connection : Connection; import libpq.libpq : Oid; import dpq.value : Type; enum POSTGRES_EPOCH = DateTime(2000, 1, ...
D
module dsfml.graphics.drawable; import dsfml.graphics.rendertarget; import dsfml.graphics.renderstates; import dsfml.sizes; alias sfDrawable Drawable; package extern(C++) { interface sfDrawable { void Draw(ref RenderTarget target, RenderStates states); } }
D
FUNC VOID Klo_S1 () { var C_NPC her; her = Hlp_GetNpc(PC_Hero); if (Hlp_GetInstanceID(self)==Hlp_GetInstanceID(her)) { B_SetAivar(self, AIV_INVINCIBLE, TRUE); PLAYER_MOBSI_PRODUCTION = MOBSI_Klo; Ai_ProcessInfos (her); }; }; INSTANCE PC_Klo_Trollfett (C_INFO) { npc = PC_Hero; nr = 1; condition = ...
D
/** Generic serialization framework. This module provides general means for implementing (de-)serialization with a standardized behavior. Supported_types: The following rules are applied in order when serializing or deserializing a certain type: $(OL $(LI An `enum` type is serialized as its raw value, e...
D
/* * Licensed under the GNU Lesser General Public License Version 3 * * This library 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 late...
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
module mci.assembler.generation.modules; import mci.core.container, mci.core.code.modules, mci.assembler.parsing.ast, mci.assembler.generation.exception; public Module resolveModule(ModuleReferenceNode node, ModuleManager manager) in { assert(node); assert(manager); } out (result) { a...
D
module app; import sand; import std.stdio; void main() { // Initialise sane interface auto sane = new Sane(); // Find all devices auto devices = sane.devices(); // List all options for a device if(devices.length) { auto options = devices[0].options; foreach(option; op...
D
import std.stdio; void fun(ref uint x, double y) { x = 42; y = 3.14; } void main() { uint a = 1; double b = 2; fun(a, b); writeln(a, " ", b); }
D
void main() { int a; struct S { void foo() { a = 1; } // access a variable in enclosing scope } S s1; // OK. S() correctly initialize its frame pointer. S s2 = S(); // OK. same as s1 S s3 = S.init; // Bad. the frame pointer in s3 is null s3.foo(); // Access ...
D
// URL: https://atcoder.jp/contests/arc035/tasks/arc035_c 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 android.java.androidx.annotation.RecentlyNullable_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import0 = android.java.java.lang.Class_d_interface; final class RecentlyNullable : IJavaObject...
D
/Users/juhstephan/Documents/GitHub/glianovo/GliaNovo/DerivedData/GliaNovo/Build/Intermediates.noindex/GliaNovo.build/Debug-iphonesimulator/GliaNovo.build/Objects-normal/x86_64/AppDelegate.o : /Users/juhstephan/Documents/GitHub/glianovo/GliaNovo/GliaNovo/SceneDelegate.swift /Users/juhstephan/Documents/GitHub/glianovo/Gl...
D
/******************************************************************************* Contains a managed wrapper around SQLite databases. This class ensures that all D2SQLite databases handled by the thread are cleanly destroyed after the thread shuts down. Copyright: Copyright (c) 2019-2021 BOSAG...
D
module commands; import std.stdio; import meta, api.v2.client; import pkg.verifier, pkg.installer; import logging; private enum KEY_OFFICIAL = "79d02ea9cad655eb"; private enum KEY_UNOFFICIAL = "fd112f53c3ab578c"; private enum PUSH_OFFICIAL = "https://push.chocolatey.org/"; private enum URL_OFFICIAL = "https://ch...
D
module android.java.android.media.MediaDescription; public import android.java.android.media.MediaDescription_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!MediaDescription; import import1 = android.java.android.graphics.Bitmap; import import0 = android.java.java.lang.CharSequence; import im...
D
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Service.build/Container/SubContainer.swift.o : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/service/Sources/Service/Services/ServiceID.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/s...
D
/Users/vstavenko/projects/koordinata/frontend/target/debug/build/syn-b0b7ce2a958dcb70/build_script_build-b0b7ce2a958dcb70: /Users/vstavenko/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.72/build.rs /Users/vstavenko/projects/koordinata/frontend/target/debug/build/syn-b0b7ce2a958dcb70/build_script_build-b0b7ce...
D
module gladeparser; import std.stdio; import std.file; import std.exception; import dxml.dom; private { void checkAppWindow(DOMEntity!string root){ bool isAppIdFound = false; bool isAppClassFound = false; foreach(i; 0..root.children.length){ auto child = root.children...
D
a junior Girl Scout (folklore) fairies that are somewhat mischievous square or bar of very rich chocolate cake usually with nuts
D
import std.stdio; import puzzle.nqueen : NQueenSolver; import puzzle.hanoi; import file.find; version (unittest) { // do nothing } else { void main() { writeln("start search 8-queen"); auto solver8 = new NQueenSolver(8); solver8.solve(); writeln(solver8.results); writeln("results: ", solver8.resultCount);...
D
module distGraph.assign.socket.Protocol; public import msg = distGraph.assign.socket.Message; import sock = distGraph.assign.socket.Socket; class Protocol { void register (msg.MessageBase msg) { this.regMsg [msg.id] = msg; } sock.Socket socket; msg.MessageBase [ulong] regMsg; }
D
a neutral achromatic color midway between white and black clothing that is a grey color any organization or party whose uniforms or badges are grey horse of a light gray or whitish color the SI unit of energy absorbed from ionizing radiation English radiobiologist in whose honor the gray (the SI unit of energy for the ...
D
module xtk.metastrings; //import std.algorithm : startsWith; import std.ctype : isalpha, isalnum; import std.traits : isCallable, isSomeString; import std.typetuple : TypeTuple; import std.conv : text; /// ditto template toStringNow(alias V) { static if (is(typeof(V))) static if (__traits(compiles, { auto v = V; ...
D
/Users/rodrigo.s.mulkey/Desktop/Dev/MeetingCostCalc/MeetingCostCalc/Build/Intermediates/MeetingCostCalc.build/Debug-iphonesimulator/MeetingCostCalc.build/Objects-normal/x86_64/ViewController.o : /Users/rodrigo.s.mulkey/Desktop/Dev/MeetingCostCalc/MeetingCostCalc/MeetingCostCalc/ViewController.swift /Users/rodrigo.s.mul...
D
/** HTTP (reverse) proxy implementation Copyright: © 2012 Sönke Ludwig License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Sönke Ludwig */ module vibe.http.proxy; import vibe.core.log; import vibe.http.client; import vibe.http.server; import vibe.inet.message; i...
D
module Windows.System.Diagnostics.DevicePortal; import dwinrt; @uuid("0f447f51-1198-4da1-8d54-bdef393e09b6") @WinrtFactory("Windows.System.Diagnostics.DevicePortal.DevicePortalConnection") interface IDevicePortalConnection : IInspectable { extern(Windows): HRESULT add_Closed(Windows.Foundation.TypedEventHandler!(Win...
D
/home/raz/code_projects/keep_projects/gas_cursive_1/target/debug/deps/array_macro-6b8f2c70234c152a.rmeta: /home/raz/.cargo/registry/src/github.com-1ecc6299db9ec823/array-macro-1.0.2/src/lib.rs /home/raz/code_projects/keep_projects/gas_cursive_1/target/debug/deps/libarray_macro-6b8f2c70234c152a.rlib: /home/raz/.cargo/r...
D
a spinning machine formerly used to twist and wind fibers of cotton or wool continuously common Old World thrush noted for its song
D
# FIXED clk.obj: C:/ti/motorware/motorware_1_01_00_16/sw/drivers/clk/src/32b/f28x/f2806x/clk.c clk.obj: C:/ti/motorware/motorware_1_01_00_16/sw/drivers/clk/src/32b/f28x/f2806x/clk.h clk.obj: C:/ti/motorware/motorware_1_01_00_16/sw/modules/types/src/types.h clk.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.1.LTS/in...
D
<?xml version="1.0" encoding="ASCII" standalone="no"?> <di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0"> <pageList> <availablePage> <emfPageIdentifier href="VAR_12_banking-176...
D
module nanogui.formhelper; /* NanoGUI was developed by Wenzel Jakob <wenzel.jakob@epfl.ch>. The widget drawing code is based on the NanoVG demo application by Mikko Mononen. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE.txt file. */ /** * \file n...
D
/* * $Id: bullettarget.d,v 1.1.1.1 2004/11/10 13:45:22 kenta Exp $ * * Copyright 2004 Kenta Cho. Some rights reserved. */ module abagames.tt.bullettarget; private import gl3n.linalg; /** * Target that is aimed by bullets. */ public interface BulletTarget { public: vec2 getTargetPos(); } public class Virtual...
D
instance DIA_Torlof_EXIT(C_Info) { npc = SLD_801_Torlof; nr = 999; condition = DIA_Torlof_EXIT_Condition; information = DIA_Torlof_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_Torlof_EXIT_Condition() { if(Kapitel < 3) { return TRUE; }; }; func void DIA_Torlof_EXIT_Info() { AI_...
D
/Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/AsyncLock.o : /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/nalousnguyen/Documents...
D
/* * This file is part of gtkD. * * gtkD 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 2.1 of the License, or * (at your option) any later version. * * gtkD is distribut...
D
instance DIA_BDT_1020_Wegelagerer_EXIT(C_Info) { npc = BDT_1020_Bandit_L; nr = 999; condition = DIA_Wegelagerer_EXIT_Condition; information = DIA_Wegelagerer_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_Wegelagerer_EXIT_Condition() { return TRUE; }; func void DIA_Wegelagerer_EXIT_I...
D
instance ORC_8516_TUMPAK(C_Npc) { name[0] = "Тум-Пак"; guild = GIL_ORC; id = 8516; voice = 18; level = 50; flags = 0; aivar[90] = TRUE; aivar[AIV_MM_REAL_ID] = ID_ORCELITE; npcType = NPCTYPE_AMBIENT; attribute[ATR_STRENGTH] = 500; attribute[ATR_DEXTERITY] = 500; attribute[ATR_HITPOINTS_MAX] = 8000; attrib...
D
a steep rugged rock or cliff
D
/** * Does the semantic 1 pass on the AST, which looks at symbol declarations but not initializers * or function bodies. * * Copyright: Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved * Authors: $(LINK2 https://www.digitalmars.com, Walter Bright) * License: $(LINK2 https://www....
D
c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. SPDX-License-Identifier: curl Long: form Short: F Arg: <name=content> Help: Specify multipart MIME data Protocols: HTTP SMTP IMAP Mutexed: data head upload-file Category: http upload Example: --form "name=curl" --form "file=@loadthis" $URL Added: 5...
D
/Users/laurin/Documents/School/fbxpollenfallen/build/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/PieRadarHighlighter.o : /Users/laurin/Documents/School/fbxpollenfallen/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/laurin/Documents/School/fbxpollenfallen/Pods/Char...
D
/** * License: * $(BOOKTABLE , * $(TR $(TD cairoD wrapper/bindings) * $(TD $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0))) * $(TR $(TD $(LINK2 http://cgit.freedesktop.org/cairo/tree/COPYING, _cairo)) * $(TD $(LINK2 http://cgit.freedesktop.org/cairo/tree/COPYING-LGPL-2.1, LGPL 2.1) /...
D
/** * TypeInfo support code. * * Copyright: Copyright Digital Mars 2004 - 2009. * License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. * Authors: Walter Bright */ /* Copyright Digital Mars 2004 - 2009. * Distributed under the Boost Software License, Version 1.0. * (See...
D
instance BAU_901_Bauer (Npc_Default) { // ------ NSC ------ name = NAME_BAUER; guild = GIL_BAU; id = 901; voice = 13; flags = 0; //NPC_FLAG_IMMORTAL oder 0 npctype = NPCTYPE_AMBIENT; // ------ Attribute ------ B_SetAttributesToChapter (self, 1); //setzt Attrib...
D
/* * Copyright 2015-2018 HuntLabs.cn * * 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 la...
D
module android.java.android.telephony.AccessNetworkConstants_AccessNetworkType; public import android.java.android.telephony.AccessNetworkConstants_AccessNetworkType_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!AccessNetworkConstants_AccessNetworkType; import import0 = android.java.java.lan...
D
/Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Fluent.build/SQL/SQLSerializer.swift.o : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/Database/Database.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Fluent-1.4.1/Sources/Fluent/...
D
module exercise; /* Programming exercise from the book Programming in D by Ali Çehreli The PDF version can be found here: http://ddili.org/ders/d.en/Programming_in_D.pdf Solved by Daniel Vieira - daniel@vieira.pw Chapter 2 Exercise 1 Statement: Both of the programs in this chapter print the strings without...
D
module example; import hunt.cache; import hunt.logging; import hunt.net.NetUtil; struct User { string name; int age; } void main() { CacheOption option; option.adapter = AdapterType.MEMORY; option.redis.host = "10.1.222.120"; option.redis.password = "foobared"; auto cache = CacheFactory....
D
prolonged unfulfilled desire or need desire strongly or persistently have a desire for something or someone who is not present have affection for
D
/// Copyright: Copyright (c) 2017-2019 Andrey Penechko. /// License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). /// Authors: Andrey Penechko. module fe.ast.type.basic; import all; @(AstType.type_basic) struct BasicTypeNode { mixin AstNodeData!(AstType.type_basic, AstFlags.isType, AstNodeState.type_check_do...
D
module game; import fuji.fuji; import fuji.system; import fuji.filesystem; import fuji.fs.native; import fuji.render; import fuji.material; import fuji.primitive; import fuji.view; import fuji.matrix; import interfaces.statemachine; import states.loadingscreenstate; import states.ingamestate; import renderer; cla...
D
// https://issues.dlang.org/show_bug.cgi?id=23760 /* TEST_OUTPUT: --- fail_compilation/fail23760.d(16): Error: type of variable `fail23760.A.state` has errors fail_compilation/fail23760.d(16): Error: `(A).state` cannot be resolved fail_compilation/fail23760.d(21): Error: template instance `fail23760.JavaBridge!(A)` er...
D
import std.process; import std.stdio; import std.string; import std.file; import std.getopt; import std.json; import std.format: formattedWrite; import std.array: appender; import std.algorithm.mutation: remove; //I code for me so I'll use globals if I feel like it. string[string] optLibs; string fileOut; string[] pu...
D
an opposing military force an armed adversary (especially a member of an opposing military force any hostile group of people a personal enemy
D
// Copyright © 2011, Jakob Bornecrantz. All rights reserved. // See copyright notice in src/charge/charge.d (GPLv2 only). /** * Source file for World, Actor and Ticker. */ module charge.game.world; import charge.util.vector; import charge.math.movable; import charge.gfx.world; import charge.phy.world; import charge...
D
/home/switchaxe/Progetti/Progetti Rust/programmi/CA/random_walker/target/rls/debug/deps/ppv_lite86-03b011ae24f10b7c.rmeta: /home/switchaxe/.cargo/registry/src/github.com-1ecc6299db9ec823/ppv-lite86-0.2.10/src/lib.rs /home/switchaxe/.cargo/registry/src/github.com-1ecc6299db9ec823/ppv-lite86-0.2.10/src/soft.rs /home/swit...
D
//Author Ratzenfutz import std.conv, std.array, std.string, std.stdio; int main() { /* read numbers of test cases */ uint cases = readln.strip.to!uint; /* read test cases */ string[] input; for (uint k = 0; k < cases; k++) { input ~= readln.strip; } writeln; /...
D
// Written in the D programming language. /** * This module defines an Abstract Syntax Tree for the D language * * Examples: * --- * // TODO * --- * * Copyright: Brian Schott 2013 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt Boost, License 1.0) * Authors: Brian Schott * Source: $(PHOBOSSRC std/d/...
D
/******************************************************************************* Implementation of DHT 'Put' request copyright: Copyright (c) 2015-2017 dunnhumby Germany GmbH. All rights reserved License: Boost Software License Version 1.0. See LICENSE.txt for details. ******************...
D
// Written in the D programming language. /** This is a submodule of $(MREF std, algorithm). It contains generic algorithms that implement set operations. $(BOOKTABLE Cheat Sheet, $(TR $(TH Function Name) $(TH Description)) $(T2 cartesianProduct, Computes Cartesian product of two ranges.) $(T2 largestPartialIn...
D
module UnrealScript.TribesGame.TrGameNextRoundMessage; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.UTGame.UTLocalMessage; import UnrealScript.Engine.PlayerReplicationInfo; import UnrealScript.Core.UObject; import UnrealScript.Engine.PlayerController; extern(C++) interface TrGameNex...
D
module xf.hybrid.Layout; private { import xf.hybrid.Widget; import xf.hybrid.model.Core; import xf.hybrid.WidgetConfig; import xf.hybrid.Math; import xf.hybrid.HybridException; import tango.util.log.Trace; import tango.util.Convert; import tango.text.Util; } /** Base class for widget layouts ...
D
instance KDF_511_Daron(Npc_Default) { name[0] = "Дарон"; guild = GIL_VLK; id = 511; voice = 10; flags = 0; npcType = npctype_main; aivar[AIV_MagicUser] = MAGIC_ALWAYS; B_SetAttributesToChapter(self,5); fight_tactic = FAI_HUMAN_STRONG; EquipItem(self,ItMw_1h_Nov_Mace); B_CreateAmbientInv(self); B_SetNpcVisu...
D
a state of extreme (usually irremediable) ruin and misfortune an event resulting in great loss and misfortune an act that has disastrous consequences
D
void main() { runSolver(); } void problem() { auto N = scan!int; auto M = scan!int; auto D = scan!int(N); auto E = scan!int(2 * M).map!"a - 1".chunks(2); auto solve() { if (D.sum != N*2 - 2) return [-1]; auto uf = UnionFind(N); bool[int][] conn; conn.length = N; foreach(e; E) { co...
D
module UnrealScript.Engine.ParticleModuleRotationRateMultiplyLife; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.Engine.ParticleModuleRotationRateBase; import UnrealScript.Core.DistributionFloat; extern(C++) interface ParticleModuleRotationRateMultiplyLife : ParticleModuleRotationRateB...
D
module arsd.docgen.comment; import adrdox.main; import arsd.dom; import dparse.ast; import dparse.lexer; import std.string; import std.algorithm; const(char)[] htmlEncode(const(char)[] s) { return s. replace("&", "&amp;"). replace("<", "&lt;"). replace(">", "&gt;"); } static struct MyOutputRange { this(st...
D
module engine.os.linux.os; version( linux ): import core.runtime; import core.sys.linux.time; import core.sys.linux.execinfo; import core.sys.linux.sys.sysinfo; import core.sys.posix.sys.time; import core.sys.posix.dlfcn; import core.sys.posix.pthread; import core.sys.posix.semaphore; import core.stdc.errno; import co...
D
class Base { abstract int str(); } class Derived : Base { override str() { return "string"; } }
D
/** this module, you can create "No Name" union and struct. Example: --- import std.stdio; void main(){ Nuple!(int, 3) a; //NNUnion!(Tuple!(int, int, int), "nuple", int[3], "array") foreach(i; 0..3) a.array[i] = i * 2; writeln(a.array); //[0, 2, 4] writeln(a.nuple); //Tuple!(in...
D
#!/usr/bin/env rdmd // http://qiita.com/Nabetani/items/1c83005a854d2c6cbb69 // http://nabetani.sakura.ne.jp/hena/ord24eliseq/ import std.stdio,std.string,std.math; import std.algorithm,std.concurrency; auto generate(){ return new Generator!int({ int i=1; for(;;){ yield(i); i+=1; } }); } auto drop_prev(b...
D
instance NASZ_417_SlugaBeliara (Npc_Default) { // ------ NPC ------ name = "Sługa Beliara"; guild = GIL_BDT; id = 417; voice = 30; flags = 0; npctype = NPCTYPE_MAIN; // ------ Aivars ------ aivar[AIV_IgnoresArmor] = TRUE; // ------ Attribute ------ B_SetAttributesToChap...
D
/* * Copyright (c) 2008 Mason Green http://www.dsource.org/projects/blaze * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this...
D
module ppl2.config.ConfigReader; import ppl2.internal; import toml; import std.conv : to; import std.path : asNormalizedPath, dirName, isAbsolute, relativePath; final class ConfigReader { string tomlFile; string basePath; public: this(string tomlFile) { import std.array : replace; auto no...
D
module mvc.m.lang; nothrow pure @safe @nogc: bool isValidLangName(const(char)[ ] name) { import std.algorithm.searching: all; import std.ascii: isAlpha, isAlphaNum; import std.range.primitives: empty; import std.utf: byCodeUnit; if (name.empty || name == "None" || (!isAlpha(name[0]) && name[0] !=...
D
/home/salmansiddiqui/Documents/iot/control_flow/target/debug/deps/control_flow-ba309086dcf1a85b: src/main.rs /home/salmansiddiqui/Documents/iot/control_flow/target/debug/deps/control_flow-ba309086dcf1a85b.d: src/main.rs src/main.rs:
D
/* * Standard meta values for builtin configurable options. */ module c.jit_const; const JIT_OPTION_CACHE_LIMIT = 10000; const JIT_OPTION_CACHE_PAGE_SIZE = 10001; const JIT_OPTION_PRE_COMPILE = 10002; const JIT_OPTION_DONT_FOLD = 10003; const JIT_OPTION_POSITION_INDEPENDENT = 10004; const JIT_OPTION_CACHE_MAX_...
D
/** * ASTDeclaration class. * see https://en.wikipedia.org/wiki/Abstract_syntax_tree /+ ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― +/ * This script is part of the open-source Deu (http://www.github.com/deu-lang) * Licensed under the BSL License (https://github.com/deu-...
D
/Users/VictorVainberg/Desktop/Bond/Buffalo/DerivedData/Bond/Build/Intermediates/Bond.build/Debug-iphonesimulator/Bond.build/Objects-normal/x86_64/accntsInfo.o : /Users/VictorVainberg/Desktop/Bond/Buffalo/Bond/Contact.swift /Users/VictorVainberg/Desktop/Bond/Buffalo/Bond/RegisterViewController.swift /Users/VictorVainber...
D
class A { int num; int getNum() { return num; } int setAndGet(int a) { num = a; return this.getNum(); } } void main() { A ca; int inp; ca = new A; inp = ReadInteger(); Print(ca.setAndGet(inp)); Print(ca.getNum(inp)); }
D
/home/teng/CLionProjects/leetcode_in_rust/data_structure/memory/target/rls/debug/deps/memory-96465833a3f835b3.rmeta: src/main.rs /home/teng/CLionProjects/leetcode_in_rust/data_structure/memory/target/rls/debug/deps/memory-96465833a3f835b3.d: src/main.rs src/main.rs:
D
<?xml version="1.0" encoding="ASCII" standalone="no"?> <di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0"> <pageList> <availablePage> <emfPageIdentifier href="VAR_23_BeT-1847161...
D
module hunt.cache.manger; import hunt.cache.ucache; class CacheManger { UCache createCache( string cacheName , string driverName = "memory" ,string args = "" , bool enableL2Cache = false) { synchronized(this) { if(getCache(cacheName)){ return null; } auto ucache = UCache.CreateUCache(driverName...
D
/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL21$ ** Commercial License Usage ** Licensee...
D
import std.stdio; void main() { import soduko; Soduko t; writeln("Enter each row of your soduko one line at a time."); writeln("Numbers need to be seprated by one whitespace."); writeln("Empty places are inserted by the number 0"); for(size_t i = 0; i < 9; ++i) { readf("%d %d %d %d %d %d %d %d %d\n", t.fi...
D
// Written in the D programming language. /** * Computes SHA1 digests of arbitrary data, using an optimized algorithm with SSSE3 instructions. * * Authors: * The general idea is described by Dean Gaudet. * Another important observation is published by Max Locktyukhin. * (Both implementations are public domain.) ...
D
/** A module with tests to test the compile-time reflection */ module unit_threaded.ut.modules.module_with_tests; import unit_threaded.runner.attrs; import std.meta; import unit_threaded.should; //test functions void testFoo() {} void testBar() {} private void testPrivate() { } //should not show up //non-test fu...
D
/Users/tagline13/Documents/Projects/IOS/Demo/RxSwift_DEMO/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Materialize.o : /Users/tagline13/Documents/Projects/IOS/Demo/RxSwift_DEMO/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/tagline13/Documents/Projects/IOS/Demo/RxSwift_DEMO/Pods/RxSwift...
D
module dllmain; import core.sys.windows.dll; mixin SimpleDllMain!(DllIsUsedFromC.no);
D
/++ D header file correspoding to sys/statvfs.h. Copyright: Copyright 2012 - License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Robert Klotzner and $(HTTP jmdavisprog.com, Jonathan M Davis) Standards: $(HTTP http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_s...
D