code
stringlengths
3
10M
language
stringclasses
31 values
// BulletD - a D binding for the Bullet Physics engine // written in the D programming language // // Copyright: Ben Merritt 2012 - 2013, // MeinMein 2013 - 2014. // License: Boost License 1.0 // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.tx...
D
// Copyright © 2012, Jakob Bornecrantz. All rights reserved. // See copyright notice in src/charge/charge.d (GPLv2 only). /** * Source file for BackgroundScene. */ module charge.game.scene.background; import charge.math.color; import charge.sys.resource : reference; import charge.gfx.draw; import charge.gfx.target;...
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
module core.error; private { import core.consoletypes; import core.stdio; } extern(C): void kAssert(bool condition, string failMessage = "") { if(!condition) kPanic(failMessage); } void kPanic(string message = "") { kprintf(message); for(;;) { } }
D
// This file is generated from text files from GLEW. // See copyright in src/lib/gl/gl.d (BSD/MIT like). module lib.gl.core.gl12; import lib.gl.types; bool GL_VERSION_1_2; const GL_UNSIGNED_BYTE_3_3_2 = 0x8032; const GL_UNSIGNED_SHORT_4_4_4_4 = 0x8033; const GL_UNSIGNED_SHORT_5_5_5_1 = 0x8034; const GL_UNSIGNED_INT...
D
// Copyright 2018 - 2021 Michael D. Parker // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) module bindbc.opengl.bind.gl45; import bindbc.opengl.config; static if(glSupport >= GLSupport.gl4...
D
import std.stdio; import std.math; long[] prim_numbers(long N){ long[] v; v.length = N; v[2] = 1; for(auto i = 1; 2*i+1<=N;++i) v[2*i+1]=1; long sr= cast(int)sqrt(cast(double)N); for(auto i = 0;i<sr ;++i){ if(v[i]) for(auto j = 0; i*i+j*i<N;++j) v[i*i+j*i] = 0; } long[] s; for(auto i = 0; ...
D
module UnrealScript.UnrealEd.PersistentCookerData; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.Core.UObject; extern(C++) interface PersistentCookerData : UObject { public extern(D): private static __gshared ScriptClass mStaticClass; @property final static ScriptClass StaticClass...
D
import std.stdio; void main() { int countLines; char[] ln; auto f = File("linenumber.d", "r"); foreach (char[] line; f.byLine()) { countLines++; if (countLines == 7) { ln = line; break; } } switch(countLines) { case 0 : writeln("the file h...
D
instance ItWrLevelMap(C_Item) { name = "Map of Test Level"; mainflag = ITEM_KAT_DOCS; flags = 0; value = 15; visual = "ItWrMap.3ds"; material = MAT_LEATHER; scemeName = "MAP"; on_state[0] = UseLevelMap; }; func void UseLevelMap() { var int nDocID; nDocID = Doc_CreateMap(); Doc_SetPages(nDocID,1); Doc_Set...
D
/Users/ins/Documents/Code/rust-study/wasm-struct-nesting/@rsw/demo/target/release/deps/bumpalo-614c58be8eaabcaf.rmeta: /Users/ins/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bumpalo-3.6.1/src/lib.rs /Users/ins/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bumpalo-3.6.1/src/alloc.rs /Users/ins/D...
D
import std.stdio; import std.conv; import std.string; import std.range; import std.array; import std.algorithm; import std.bigint; void solve(int i){ auto n = to!(int)(chomp(readln())); auto x = array(map!(a => BigInt(to!(int)(a)))(readln().chomp().split())); auto y = array(map!(a => BigInt(to!(int)(a)))(read...
D
module darts; import std.math : hypot; pure int score(immutable float x, immutable float y) { immutable float hypot = hypot(x, y); if (hypot <= 1) { return 10; } else if (hypot <= 5) { return 5; } else if (hypot <= 10) { return 1; } return 0; }
D
module vector; import std.stdio; import std.math; private immutable string elementNamesA = "xyzw"; private immutable string elementNamesB = "stuv"; private immutable string elementNamesC = "rgba"; private string vecProperties(uint numProps) pure in{ assert(numProps >= 2 && numProps <= 4, "Vector must have between ...
D
/******************************************************************************* * Copyright (c) 2000, 2008 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
/** REST API implementation */ module mood.api.implementation; import mood.api.spec; import vibe.core.log; public import mood.api.spec : BlogPost; /// class MoodAPI : mood.api.spec.MoodAPI { import mood.config; import mood.storage.posts; private BlogPostStorage storage; /// this () { ...
D
/Users/liujianhao/code/rust/simple_web_app/simple_web_app/target/rls/debug/deps/http-6df439634261f5dd.rmeta: /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/lib.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/http-0.1.21/src/header/mod.rs /Users/l...
D
/** * Represents connection to the PostgreSQL server * * Most functions is correspond to those in the documentation of Postgres: * $(HTTPS https://www.postgresql.org/docs/current/static/libpq.html) */ module dpq2.connection; import dpq2.query; import dpq2.args: QueryParams; import dpq2.result; import dpq2.excepti...
D
/******************************************************************************* * Copyright (c) 2000, 2006 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
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE 303.5 77.1999969 2.79999995 89.6999969 10 14 -38.7000008 143.100006 139 4.19999981 4.19999981 0.991364334 sediments, limestone 289.600006 75.1999969 1.79999995 73.1999969 11 19 -31.6000004 145.600006 9338 2.5 2.5 0.683912929 sediments, saprolite...
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
///* 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 ...
D
# FIXED Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/FreeRTOSv10.1.1/FreeRTOS/Demo/Common/Minimal/GenQTest.c Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/include/stdlib.h Full_Demo/Standard_Demo_Tasks/GenQTest.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.1.LTS/inclu...
D
/* * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) */ module rdmd_test; /** RDMD Test-suite. Authors: Andrej Mitrovic Notes: Use the --compiler switch to specify a custom compiler ...
D
module Dgame.Window.VideoMode; private { debug import std.stdio; import derelict.sdl2.sdl; } /** * The VideoMode struct contains informations about the current window video mode. * It is passed to Window which extract the informations and use them to build a window context. * * Author: rschuett ...
D
/** This is an interface to the libcurl library. Converted to D from curl headers by $(LINK2 http://www.digitalmars.com/d/2.0/htod.html, htod) and cleaned up by Jonas Drewsen (jdrewsen) */ /* ************************************************************************** * _ _ ...
D
#include <stdio.h> #include <stddef.h> #include <unistd.h> #include <math.h> #include <time.h> #include <hw/inout.h> #include "ldev.h" #include "../labTools/lcode.h" #include "../labTools/toys.h" #include "../labTools/matlab.h" #include "../labTools/timer.h" #include "../labTools/vs_dots.h" #include "../labTools/udpms...
D
INSTANCE Info_Mod_Grimbald_Hi (C_INFO) { npc = Mod_765_NONE_Grimbald_NW; nr = 1; condition = Info_Mod_Grimbald_Hi_Condition; information = Info_Mod_Grimbald_Hi_Info; permanent = 0; important = 1; }; FUNC INT Info_Mod_Grimbald_Hi_Condition() { return 1; }; FUNC VOID Info_Mod_Grimbald_Hi_Info() { AI_Output(se...
D
module android.java.java.nio.channels.CompletionHandler; public import android.java.java.nio.channels.CompletionHandler_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!CompletionHandler; import import1 = android.java.java.lang.Class;
D
module specs.core.random; import testing.support; import core.random; describe random() { const uint SEED = 12345678; const uint REPEATS = 10000000; describe creation() { it should_have_sane_defaults() { auto r = new Random(); should(r.seed >= 0); } it should_not_reuse_a_seed() { auto a = new Ran...
D
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Vapor.build/Server/RunningServer.swift.o : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/vapor/So...
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_9_agm-85369473...
D
/** This module expands each header encountered in the original input file. It usually delegates to dstep but not always. Since dstep has a different goal, which is to produce human-readable D files from a header, we can't just call into it. The translate function here will handle the cases it knows how...
D
func int B_CountStealASTMoney(var C_Npc pStealedNpc) { var int CsMoney; if((pStealedNpc.guild == GIL_NONE) || (pStealedNpc.guild == GIL_OUT) || (pStealedNpc.guild == GIL_SEK) || (pStealedNpc.guild == GIL_NOV)) { CsMoney = 5 + Hlp_Random(20); } else if((pStealedNpc.guild == GIL_BAU) || (pStealedNpc.guild == GIL_...
D
/home/jj/githubRepos/rust_tutorials/variables/target/debug/deps/variables-3b736149aabe80bf: src/main.rs /home/jj/githubRepos/rust_tutorials/variables/target/debug/deps/variables-3b736149aabe80bf.d: src/main.rs src/main.rs:
D
/** * Windows API header module * * written in the D programming language * * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(DRUNTIMESRC src/core/sys/windows/_vfw.d) */ module core.sys.windows.vfw; version (Windows): version (ANSI) {} else version = Unicode; pragma(lib, "...
D
causing intense interest, curiosity, or emotion commanding attention relating to or concerned in sensation
D
void main() { auto ip = readAs!(int[]), N = ip[0], K = ip[1]; int[int] m; auto A = readAs!(int[]); auto kind = A.sort().uniq.array.length.to!long; foreach(v; A) m[v]++; auto arr = m.values.sort(); if(kind - K <= 0) writeln(0); else arr[0..kind-K].sum.writeln; } // =================================== import st...
D
# FIXED Startup/ccfg_appBLE.obj: C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Projects/ble/SimpleBLEPeripheral/CC26xx/IAR/Config/ccfg_appBLE.c Startup/ccfg_appBLE.obj: C:/ti/tirtos_simplelink_2_13_00_06/products/cc26xxware_2_21_01_15600/startup_files/ccfg.c Startup/ccfg_appBLE.obj: C:/ti/ccs613/ccsv6/tools/compiler/ti-cg...
D
/Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Validation.build/Validators/OrValidator.swift.o : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/validation/Sources/Validation/Validatable.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/va...
D
something that bulges out or is protuberant or projects from its surroundings the condition of being protuberant
D
/Volumes/DriveA/code/Personal/vinitestPodSpec/ViniTestPod/Build/Intermediates.noindex/ViniTestPod.build/Debug-iphonesimulator/ViniTestPod.build/Objects-normal/x86_64/ViewController.o : /Volumes/DriveA/code/Personal/vinitestPodSpec/ViniTestPod/ViniTestPod/AppDelegate.swift /Volumes/DriveA/code/Personal/vinitestPodSpec/V...
D
/Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartUpload.o : /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/MultipartFormData.swift /Users/MohamedNawar/Desktop/Task/Pods/Alamofire/Source/MultipartUpload.swift /Users/MohamedNawar/Desktop/Task/P...
D
func void ZS_MM_Rtn_Follow_Sheep() { Npc_SetPercTime(self,1); Npc_PercEnable(self,PERC_ASSESSPLAYER,B_MM_AssessPlayer); Npc_PercEnable(self,PERC_ASSESSTALK,B_AssessTalk); Npc_PercEnable(self,PERC_ASSESSMAGIC,B_AssessMagic); }; func int ZS_MM_Rtn_Follow_Sheep_Loop() { var int randomMove; if(self.aivar[AIV_PARTYM...
D
/home/ubuntu/code/rust/rust-programming/common-concepts/variables/target/debug/deps/variables-518b8a96b9781a40: src/main.rs /home/ubuntu/code/rust/rust-programming/common-concepts/variables/target/debug/deps/variables-518b8a96b9781a40.d: src/main.rs src/main.rs:
D
LED.d LED.p1: C:/Users/FMV/Dropbox/PIC-project/PIC_XC8/pic16f877a/LED/LED.c
D
module android.java.android.graphics.drawable.AnimatedVectorDrawable_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import13 = android.java.android.graphics.Rect_d_interface; import import11 = androi...
D
a lodge consisting of a frame covered with matting or brush
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
/** * db.sqlite3: SQLite3 wrapper */ module db.sqlite3;
D
incite to commit a crime or an evil deed procure (false testimony or perjury) induce to commit perjury or give false testimony
D
/* TEST_OUTPUT: --- fail_compilation/fail13756.d(11): Error: foreach: index must be type `const(int)`, not `int` --- */ void maiin() { int[int] aa = [1:2]; foreach (ref int k, v; aa) { } }
D
var int Runemaking_KDW_CIRC1_RedOnce; var int Runemaking_KDW_CIRC2_RedOnce; var int Runemaking_KDW_CIRC3_RedOnce; var int Runemaking_KDW_CIRC4_RedOnce; var int Runemaking_KDW_CIRC5_RedOnce; func void Use_Runemaking_KDW_CIRC1_S1() { var C_Npc her; var int nDocID; her = Hlp_GetNpc(PC_Hero); if((Hlp_GetInstanceID(self...
D
import std.datetime : Duration, MonoTime; import std.stdio : writeln; import std.bigint; struct BaseNumber { byte[] num; int bits; int base; bool signed; string toString() { string output; foreach (digit; this.num) output ~= digit + 48; return output; } long toLong() { long output; foreach (d...
D
// SDLang-D // Written in the D programming language. module sdlang.token; import std.array; import std.base64; import std.conv; import std.datetime; import std.meta; import std.range; import std.string; import std.traits; import std.typetuple; import std.variant; import sdlang.exception; import sdlang.symbol; impo...
D
module fdb.future; import core.sync.semaphore, core.thread; import std.algorithm, std.array, std.conv, std.exception, std.parallelism, std.traits; import fdb.disposable, fdb.error, fdb.fdb_c, fdb.range, fdb.rangeinfo, fdb.transaction; alias CompletionCallback ...
D
/Users/oslo/code/swift_vapor_server/.build/debug/TurnstileWeb.build/Protocols/OAuth/OAuthEcho.swift.o : /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/URLSession+Turnstile.swift /Users/oslo/code/swift_vapor_server/Packages/Turnstile-1.0.6/Sources/TurnstileWeb/WebMemoryRealm.swift /Use...
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.java.security.KeyFactorySpi; public import android.java.java.security.KeyFactorySpi_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!KeyFactorySpi; import import0 = android.java.java.lang.Class;
D
# FIXED evmomapl138_lcd_lidd.obj: C:/dan/omapL138/SE423_Sp19/LabRepo/LabFiles/bsl_forSYSBIOS/src/evmomapl138_lcd_lidd.c evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/stdio.h evmomapl138_lcd_lidd.obj: C:/CCStudio8/ccsv8/tools/compiler/ti-cgt-c6000_8.3.3/include/_ti_config.h evmo...
D
instance MENU_STATUS(C_MENU_DEF) { items[0] = "MENU_ITEM_STATUS_HEADING"; dimx = 3072; dimy = 4096; flags = flags | MENU_SHOW_INFO | MENU_OVERTOP | MENU_NOANI; backPic = ""; }; const int STAT_A_X1 = 500; const int STAT_A_X2 = 2300; const int STAT_A_X3 = 3000; const int STAT_A_X4 = 3400; const int STAT_B_X1 = 38...
D
module glib.gthreadpool; import glib.gtypes; import glib.gthread; import glib.gerror; struct GThreadPool { GFunc func; gpointer user_data; gboolean exclusive; } extern (C) { GThreadPool * g_thread_pool_new (GFunc func, gpoin...
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 arrow.UInt64Array; private import arrow.BooleanArray; private import arrow.Buffer; private import arrow.CompareOptions; private import arrow.NumericArray; private import arrow.c.functions; public import arrow.c.types; private import glib.ConstructionException; private import glib.ErrorG; private import glib.GE...
D
module dcompute.kernels; /*Adjacent: * adjacent!(R,alias e)(R r, R o) where e a is binary op to apply to adjacent elements of R *Allocator: *Search: * upper_bound * lower_bound * equal */
D
instance NON_5044_WEGELAGERER(Npc_Default) { name[0] = "Povaleč"; npcType = Npctype_ROGUE; guild = GIL_None; level = 9; voice = 9; id = 5044; attribute[ATR_STRENGTH] = 65; attribute[ATR_DEXTERITY] = 55; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 205; attribute[ATR_H...
D
/Users/Marsh/Documents/GitHub/GoodVibes/hello/target/debug/deps/libslab-b04a73d1cb8057b4.rlib: /Users/Marsh/.cargo/registry/src/github.com-1ecc6299db9ec823/slab-0.3.0/src/lib.rs /Users/Marsh/Documents/GitHub/GoodVibes/hello/target/debug/deps/slab-b04a73d1cb8057b4.d: /Users/Marsh/.cargo/registry/src/github.com-1ecc6299...
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_2_BeT-37919388...
D
/* TEST_OUTPUT: --- fail_compilation/diag8770.d(6): Error: this.f is not mutable --- */ #line 1 class Foo { immutable f = 1; this() { this.f = 1; } } void main() {}
D
# FIXED ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/rom/agama_r1/rom_init.c ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/inc/bcomdef.h ROM/rom_init.obj: C:/ti/simplelink_cc2652rb_ble_sdk_3_10_00_15/source/ti/ble5stack/osal/src/inc/comdef.h RO...
D
/** OpenSSL based SSL/TLS stream implementation Copyright: © 2012-2014 RejectedSoftware e.K. License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Sönke Ludwig */ module vibe.stream.openssl; version(Have_openssl): import vibe.core.log; import vibe.core.net; import ...
D
/* This file is part of BioD. Copyright (C) 2013-2016 Artem Tarasov <lomereiter@gmail.com> 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 wit...
D
module UnrealScript.TribesGame.GFxTrPage_GameMapSetup; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.TribesGame.GFxTrPage; import UnrealScript.GFxUI.GFxObject; extern(C++) interface GFxTrPage_GameMapSetup : GFxTrPage { public extern(D): private static __gshared ScriptClass mStaticC...
D
import std.stdio, std.conv, std.string; void main() { int a = to!int(chomp(readln())); string[] input = split(readln()); int b = to!int(input[0]); int c = to!int(input[1]); string s = chomp(readln()); writefln("%d %s", a+b+c, s); }
D
/** * Main module * * Include it to use common functions. */ module dpq2; import derelict.pq.pq; debug import std.experimental.logger; version(DerelictPQ_Static){} else { static __gshared bool __initialized; static this() { import std.concurrency : initOnce; initOnce!__initialized({ ...
D
void main() { auto ip = readAs!(int[]), N = ip[0], X = ip[1]; auto x = readAs!(int[]).map!(i => i - X).map!(i => i.abs); auto c = x[0]; foreach(i; x[1..$]) { if(i%c != 0 && c%i != 0) c = gcd(i, c); else if(i%c != 0) c = i; //c.writeln; } c.writeln; } // =================================== import std.stdio...
D
/* * Create menu item from script instance name * Source: https://github.com/szapp/Ninja/wiki/Inject-Changes */ func int OwnTeleports_CreateMenuItem(var string scriptName) { // Adjust name const int zCMenuItem__Create_G1 = 5052784; //0x4D1970 const int zCMenuItem__Create_G2 = 5105600; //0x4DE7C0 var int...
D
a safe place something or someone turned to for assistance or security a shelter from danger or hardship act of turning to for assistance
D
module renderer.cvars; struct CVars { double profile = 0; // 2 shows the recorded frames, 1 shows the profiler, 0 hides it double r_info = 1; // 0 = no renderer information is shown, 1 = fps and sps are shown, 2 = position and query box are printed additionaly double recordFrames = 0; // number of frames to record...
D
/** DMD compiler support. Copyright: © 2013-2013 rejectedsoftware e.K. License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file. Authors: Sönke Ludwig */ module dub.compilers.dmd; import dub.compilers.compiler; import dub.internal.utils; import dub.internal.vibecompat.core.log...
D
/** * Performs inlining, which is an optimization pass enabled with the `-inline` flag. * * The AST is traversed, and every function call is considered for inlining using `inlinecost.d`. * The function call is then inlined if this cost is below a threshold. * * Copyright: Copyright (C) 1999-2020 by The D Langua...
D
prototype Mst_Default_Shadowbeast_Addon_Fire(C_Npc) { name[0] = "Firebeast"; guild = GIL_Gargoyle; aivar[AIV_MM_REAL_ID] = ID_Gargoyle; level = 30; attribute[ATR_STRENGTH] = 150; attribute[ATR_DEXTERITY] = 150; attribute[ATR_HITPOINTS_MAX] = 300; attribute[ATR_HITPOINTS] = 300; attribute[ATR_MANA_MAX] = 0; a...
D
module example; bool aTemplatedFunction(One)(One alpha) if (isNumeric!One) { } unittest { { bool anotherTemplatedFunction(One, Two, Three)(One alpha, Two bravo, Three charlie, double delta) if (isNumeric!One && isNumeric!Two && isNumeric!Three && echo && foxtrot && ...
D
module gtkD.pango.PgScript; public import gtkD.gtkc.pangotypes; private import gtkD.gtkc.pango; private import gtkD.glib.ConstructionException; private import gtkD.pango.PgLanguage; /** * Description * The functions in this section are used to identify the writing * system, or script of individual character...
D
/** * Find out in what ways control flow can exit a statement block. * * Copyright: Copyright (C) 1999-2021 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, Boost License 1.0) * Source...
D
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Command.build/Group/CommandGroup.swift.o : /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Command/Command.swift /Users/nice/HelloWord/.build/checkouts/console.git-2755603573940926646/Sources/Command/Base/CommandRunnable....
D
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/TemplateKit.build/Tag/Contains.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateData.swift /Users/panartem/Developer/Study/Micros...
D
instance Mod_7608_STT_Schatten_NW (Npc_Default) { //-------- primary data -------- name = NAME_Schatten; npctype = NPCTYPE_mt_schatten; guild = GIL_STRF; level = 5; voice = 0; id = 7608; //-------- abilities -------- B_SetAttributesToChapter (self, 3); //-------- visuals -------- // ...
D
module arrow.TimestampArrayBuilder; private import arrow.ArrayBuilder; private import arrow.TimestampDataType; private import arrow.c.functions; public import arrow.c.types; private import glib.ConstructionException; private import glib.ErrorG; private import glib.GException; private import gobject.ObjectG; /** */ ...
D
/** Cyclic Redundancy Check (32-bit) implementation. $(SCRIPT inhibitQuickIndex = 1;) $(DIVC quickindex, $(BOOKTABLE , $(TR $(TH Category) $(TH Functions) ) $(TR $(TDNW Template API) $(TD $(MYREF CRC) $(MYREF CRC32) $(MYREF CRC64ECMA) $(MYREF CRC64ISO) ) ) $(TR $(TDNW OOP API) $(TD $(MYREF CRC32Digest) $(MYREF CRC64E...
D
#!/usr/bin/env rdmd module five_one; import std.stdio; import std.range; import std.algorithm; void main() { bool[dchar[]] disallowed_strings = ["ab" : true, "cd" : true, "pq" : true, "xy" : true]; auto input = File("5.input"); auto data = input.byLine; bool isNice(in char[] line) { auto vowels = 0; auto h...
D
module org.eclipse.swt.internal.mozilla.nsIDOMNodeList; import java.lang.all; import org.eclipse.swt.internal.mozilla.Common; import org.eclipse.swt.internal.mozilla.nsID; import org.eclipse.swt.internal.mozilla.nsISupports; import org.eclipse.swt.internal.mozilla.nsIDOMNode; alias PRUint64 DOMTimeStamp; const cha...
D
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Authentication.build/Basic/BasicAuthenticationMiddleware.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/auth/Sources/Authentication/AuthenticationCache.swift /Users/panartem...
D
// https://issues.dlang.org/show_bug.cgi?id=20025 struct B { static int value = 77; alias value this; this(ref return scope inout B rhs) inout { } } void test(int x) { assert(x == 77); } int main() { B b; test(b); return 0; }
D
/Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/x86_64-apple-macosx10.10/debug/PetriKit.build/PetriNet+Dot.swift.o : /Users/bouzerdasamy/Desktop/outils-formels-modelisation-2018/ex-06/.build/checkouts/PetriKit.git-2404161872055832005/Sources/PetriKit/Marking.swift /Users/bouzerdasamy/Desktop/o...
D
/home/steboss/projects/learning_rust/2_guessing_game/guessing_game/target/debug/deps/guessing_game-9b23b849c290cc91: src/main.rs /home/steboss/projects/learning_rust/2_guessing_game/guessing_game/target/debug/deps/guessing_game-9b23b849c290cc91.d: src/main.rs src/main.rs:
D
// //---------------------------------------------------------------------- // Copyright 2007-2011 Mentor Graphics Corporation // Copyright 2007-2010 Cadence Design Systems, Inc. // Copyright 2010 Synopsys, Inc. // Copyright 2014 Coverify Systems Technology // All Rights Reserved Worldwide // // Licensed un...
D
#!/usr/bin/env dub /+ dub.sdl: name "composition" dependency "matplotd" version="0.0.1" dependency "mir" version="0.16.0-alpha6" +/ // composition/mixture sampling S sample(S, RNG, Sampler)(ref RNG gen, Sampler[] samplers, S[] probs) { import mir.random.discrete : discrete; // pick a sampler with prob_i au...
D
module index; import std.file; import std.stdio : File; import io.dstream; import io.ioutil; import concord; import content.defs; import content.repos; import indexfields; import util.prime; import util.dhash64; class Index { public: this() { _concord = new Concordance; _repos = Repository.instanc...
D
/mnt/c/Users/zeliwang/hello_world/digital_signature/target/debug/build/bitflags-1866ef3508b64dde/build_script_build-1866ef3508b64dde: /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bitflags-1.1.0/build.rs /mnt/c/Users/zeliwang/hello_world/digital_signature/target/debug/build/bitflags-1866ef350...
D