code
stringlengths
3
10M
language
stringclasses
31 values
module entities; import std.conv; import std.math; import std.range; import std.algorithm; import dtiled; import gfm.math; import entitysysd; import allegro5.allegro; import allegro5.allegro_color; import common; import weapon; import components; public: auto createPlayer(EntityManager em) { auto ent = em.crea...
D
/* 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 the Software,...
D
// REQUIRED_ARGS: -d typedef int myint = 4; struct S { int i; union { int x = 2; int y; } int j = 3; myint k; } void main() { S s = S( 1, 5, 6 ); assert(s.i == 1); assert(s.x == 5); assert(s.y == 5); assert(s.j == 3); assert(s.k == 4); }
D
/Users/glasses/Documents/GitHub/Perfect-Turnstile-PostgreSQL-Demo/.build/x86_64-apple-macosx10.10/debug/TurnstileWeb.build/Protocols/OAuth2/OAuth2Error.swift.o : /Users/glasses/Documents/GitHub/Perfect-Turnstile-PostgreSQL-Demo/.build/checkouts/Turnstile.git-2443676010155639616/Sources/TurnstileWeb/Protocols/OAuth2/OAu...
D
/Users/setiyadi/Projects/Xcode/CodeTest-303Software/Carthage/Checkouts/SwiftyJSON/Build/Intermediates/SwiftyJSON.build/Release-iphonesimulator/SwiftyJSON\ iOS.build/Objects-normal/x86_64/SwiftyJSON.o : /Users/setiyadi/Projects/Xcode/CodeTest-303Software/Carthage/Checkouts/SwiftyJSON/Source/SwiftyJSON.swift /Application...
D
/***************************************************************************** * * Higgs JavaScript Virtual Machine * * This file is part of the Higgs project. The project is distributed at: * https://github.com/maximecb/Higgs * * Copyright (c) 2011-2014, Maxime Chevalier-Boisvert. All rights re...
D
void main() { runSolver(); } void problem() { auto N = scan!int; auto S = cast(char[])scan; auto solve() { foreach(i; 0..N / 2) { if (S[i] == S[$ - i - 1]) continue; if (i == 0) { if (S[i] == 'A') return YESNO[false]; if (N == 2) return YESNO[false]; } } return YE...
D
/****************************************************************************** This holds miscellaneous functionality used in the internal library and also as part of the extended API. There are no public functions in here. License: Copyright (c) 2008 Jarrett Billingsley This software is provided 'as-is', without a...
D
import std.stdio; import std.stdint; import std.file; import core.runtime; int main(){ string fname = "codex.umz"; uint32_t[][uint32_t] platters; platters[0] = cast(uint32_t[]) std.file.read(fname); //swap endianness: for(int i = 0; i < platters[0].length; i++){ uint32_t temp = platters[0][i]; platters[0][i]...
D
instance BAU_954_Maleth(Npc_Default) { name[0] = "Maleth"; guild = GIL_OUT; id = 954; voice = 8; flags = 0; npcType = npctype_main; B_SetAttributesToChapter(self,2); fight_tactic = FAI_HUMAN_STRONG; EquipItem(self,ItMw_1h_Bau_Axe); B_CreateAmbientInv(self); B_SetNpcVisual(self,MALE,"Hum_Head_Bald",Face_N_No...
D
module spine.ikconstraint; public { import spine.ikconstraint.data; import spine.ikconstraint.ikconstraint; }
D
/** Copyright: Auburn Sounds 2015-2018. License: All Rights Reserved. */ module utils; import std.process; import std.string; import std.file; import std.path; import colorize; string white(string s) @property { return s.color(fg.light_white); } string grey(string s) @property { return s.color(fg.white); ...
D
// written in the D programming language /* * This file is part of DrossyStars. * * DrossyStars is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your optio...
D
/* * Copyright (c) 2002 * Pavel "EvilOne" Minayev * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this per...
D
/* * The MIT License (MIT) * * Copyright (c) 2014 Richard Andrew Cattermole * * 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 rig...
D
/Users/danielmorales/CSUMB/Firebasechat/build/Firebasechat.build/Debug-iphonesimulator/Firebasechat.build/Objects-normal/x86_64/AppDelegate.o : /Users/danielmorales/CSUMB/Firebasechat/Firebasechat/SceneDelegate.swift /Users/danielmorales/CSUMB/Firebasechat/Firebasechat/AppDelegate.swift /Users/danielmorales/CSUMB/Fireb...
D
import std.stdio; import std.mathspecial; import std.conv; void main() { int[] remaining = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; int sum = 1_000_000 - 1; int place = 0; int index = 0; long result = 0; while (place != 10) { index = 0; long factorial = 1; if (remaining.length > 0) factorial = to!...
D
// NOTE: I haven't even tried to use this for a test yet! // It's probably godawful, if it works at all. /// module arsd.mssql; version(Windows): pragma(lib, "odbc32"); public import arsd.database; import std.string; import std.exception; import core.sys.windows.sql; import core.sys.windows.sqlext; class MsSql : ...
D
module dapt.emitter; import std.stdio; import std.string; import std.conv; import std.container.array; interface IEmittable { string emit(); } class BlockEmittable : IEmittable { Array!IEmittable items; void add(IEmittable item) { items.insert(item); } string emit() { string res...
D
void main() { auto N = ri; class Point { int x, y; bool done; this(int[] a) { x = a[0]; y = a[1]; done = false; }} Point[] red, blue; foreach(i; 0..N) red ~= new Point(readAs!(int[])); foreach(i; 0..N) blue ~= new Point(readAs!(int[])); blue.sort!"a.x < b.x"; int count; foreach(b; blue) { Point r_ = new Point...
D
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Command.build/Command/CommandArgument.swift.o : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/console/Sources/Command/Command/Command.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/con...
D
module unit_threaded.testsuite; import unit_threaded.testcase; import unit_threaded.writer_thread; import std.datetime; import std.parallelism; import std.concurrency; import std.stdio; import std.conv; /** * Responsible for running tests */ struct TestSuite { this(TestCase[] tests) { _tests = tests; ...
D
/** Copyright: Copyright (c) 2017-2019 Andrey Penechko. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Andrey Penechko. */ /// Convertion of function IR to textual representation module vox.ir.ir_dump; import std.stdio; import std.format : formattedWrite; import vox.all; struct IrDumpContext...
D
// Written in the D programming language. /** This module contains implementation of SDL2 based backend for dlang library. Synopsis: ---- import dlangui.platforms.sdl.sdlapp; ---- Copyright: Vadim Lopatin, 2014 License: Boost License 1.0 Authors: Vadim Lopatin, coolreader.org@gmail.com */ module src.dlangui.p...
D
module bookstore.products.domain; import cqrslib.domain; import std.typecons; import specd.specd; /* immutable struct as value object because: - it has value semantics by being a struct - builtin equality by comparing fields - builtin toString by outputting name and fields (using std.conv) - copy on assignment - can...
D
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.bigint; void main() { auto n = readln.chomp.to!double; writefln("%.10f", n*9/5.0+32); }
D
// Written in the D programming language. /** This module contains drawing buffer implementation. Synopsis: ---- import dlangui.graphics.drawbuf; ---- Copyright: Vadim Lopatin, 2014 License: Boost License 1.0 Authors: Vadim Lopatin, coolreader.org@gmail.com */ module dlangui.graphics.drawbuf; public import d...
D
// Written in the D programming language. /** * Contains the elementary mathematical functions (powers, roots, * and trigonometric functions), and low-level floating-point operations. * Mathematical special functions are available in $(D std.mathspecial). * $(SCRIPT inhibitQuickIndex = 1;) $(DIVC quickindex, $(BO...
D
/x/calo/jgoncalves/JetCleaningHI/RootCoreBin/obj/x86_64-slc6-gcc49-opt/JetCleaningAnalysisHI/obj/JetCleaningAnalysisHICINT.o /x/calo/jgoncalves/JetCleaningHI/RootCoreBin/obj/x86_64-slc6-gcc49-opt/JetCleaningAnalysisHI/obj/JetCleaningAnalysisHICINT.d : /x/calo/jgoncalves/JetCleaningHI/JetCleaningAnalysisHI/Root/LinkDef....
D
var int ALchemy_1_permanent; var int ALchemy_2_permanent; var int ALchemy_3_permanent; func void Use_BookstandALCHEMY1_S1() { var C_Npc her; var int nDocID; her = Hlp_GetNpc(PC_Hero); if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(her)) { nDocID = Doc_Create(); Doc_SetPages(nDocID,2); Doc_SetPage(nDocID,0...
D
// Copyright © 2011, Jakob Bornecrantz. All rights reserved. // See copyright notice in src/charge/charge.d (GPLv2 only). module charge.platform.homefolder; import std.c.stdlib; import std.file; import std.stdio; import std.string; char[] homeFolder; char[] applicationConfigFolder; char[] chargeConfigFolder; char[] ...
D
# FIXED third_party/FreeRTOS/Source/tasks.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/tasks.c third_party/FreeRTOS/Source/tasks.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/stdlib.h third_party/FreeRTOS/Source/tasks.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include/_...
D
/***************************************************************************** * * Higgs JavaScript Virtual Machine * * This file is part of the Higgs project. The project is distributed at: * https://github.com/maximecb/Higgs * * Copyright (c) 2012-2014, Maxime Chevalier-Boisvert. All rights re...
D
/* TEST_OUTPUT: --- fail_compilation/fail11355.d(28): Error: struct `fail11355.A` is not copyable because it is annotated with `@disable` --- */ T move(T)(ref T source) { return T.init; // Dummy rvalue } struct A { ~this() {} @disable this(this); // Prevent copying } struct B { A a; a...
D
module d.llvm.type; import d.llvm.codegen; import d.ir.symbol; import d.ir.type; import d.exception; import util.visitor; import llvm.c.core; import std.algorithm; import std.array; import std.string; // Conflict with Interface in object.di alias Interface = d.ir.symbol.Interface; final class TypeGen { private...
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.sdl.bind.sdlloadso; import bindbc.sdl.config; static if(staticBinding){ extern(...
D
/Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/SocksCore.build/Bytes.swift.o : /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Socks-1.2.7/Sources/SocksCore/Address+C.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Socks-1.2.7/Sources/SocksCore/Address.swift /User...
D
/** * This contains regression tests for the issues at: * https://github.com/rejectedsoftware/mysql-native/issues * * Regression unittests, like other unittests, are located together with * the units they test. */ module mysql.test.regression; import std.algorithm; import std.conv; import std.datetime; import...
D
instance Org_804_Organisator_Exit(C_Info) { npc = ORG_804_Organisator; nr = 999; condition = Org_804_Organisator_Exit_Condition; information = Org_804_Organisator_Exit_Info; permanent = 1; description = DIALOG_ENDE; }; func int Org_804_Organisator_Exit_Condition() { if(Npc_KnowsInfo(hero,Org_804_Organisator_T...
D
/afs/cern.ch/user/a/abrennan/testarea/CxAODframework/RootCoreBin/obj/x86_64-slc6-gcc48-opt/CxAODTools/obj/EventInfoDecorator.o /afs/cern.ch/user/a/abrennan/testarea/CxAODframework/RootCoreBin/obj/x86_64-slc6-gcc48-opt/CxAODTools/obj/EventInfoDecorator.d : /afs/cern.ch/user/a/abrennan/testarea/CxAODframework/CxAODTools/...
D
/* Copyright (c) 2017-2018 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, distribute, ...
D
/* * lua.d * * This module implements a helper class and routines to allow * utilization of the Lua scripting language in a D application. * * Author: Dave Wilkinson * Originated: May 15, 2009 * */ module scripting.lua; // import bindings import binding.lua; // common import djehuty; // print import io.con...
D
#!/usr/bin/env rdmd /* * Footer generator for the specification pages. * This script can be used to update the nav footers. * * Copyright (C) 2017 by D Language Foundation * * Author: Sebastian Wilzbach * * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt o...
D
/Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Content/ContentContainer.swift.o : /Users/Khanh/vapor/TILApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/FileIO.swift /Users/Khanh/vapor/TILApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Form...
D
# FIXED Startup/board.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/target/board.c Startup/board.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/target/./cc2650lp/cc2650lp_board.c Startup/board.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/icall/inc/../../boards/CC2650_LAUNCHXL/Board.h Startup/board.obj: C:/ti/tirtos_...
D
a swing used by circus acrobats
D
module novluno.cache; import novluno.config; import optional; import vibe.core.log; import vibe.core.core; import vibe.core.stream; import std.algorithm; import std.array; import std.ascii; import std.conv; import std.exception; import std.functional; import std.range; import std.traits; import std.typecons; TaskLo...
D
/* * graphics.d * * This Scaffold holds the Graphics implementations for the Linux platform * * Author: Dave Wilkinson * */ module scaffold.graphics; import core.string; import core.color; import core.main; import core.definitions; import core.string; import graphics.view; import graphics.graphics; import pl...
D
//Generated by Cap'n Proto compiler, DO NOT EDIT. //source: test-import.capnp module capnproto.tests.testimport; import capnproto; import capnproto.tests.test; struct Foo { public: static immutable structSize = cast(immutable)StructSize(0, 1); static struct Builder { public: this(SegmentBuilder* segment, in...
D
import vibe.d; import vibe.aws.aws; import vibe.aws.credentials; import vibe.aws.s3; import std.process : environment; import std.array; shared static this() { // setLogLevel(LogLevel.trace); //Use the environment variables "AWS_ACCESS_KEY_ID", //"AWS_SECRET_KEY", "S3_EXAMPLE_BUCKET" and "S3_EXAMPLE_REGI...
D
/Users/martyn/Development/AppCoordinatorsLearning/DerivedData/AppCoordinatorsLearning/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Take.o : /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/martyn/Development/AppCoordi...
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="bdbc3540-cb57-4c59-aa1d-dc5ec0...
D
func int c_npcisdown(var C_NPC slf) { if(Npc_IsInState(slf,zs_unconscious) || Npc_IsInState(slf,zs_magicsleep) || Npc_IsDead(slf)) { return TRUE; }; return FALSE; };
D
module test.codec.http2.encode; import hunt.http.Version; import hunt.http.codec.http.encode.HttpGenerator; import hunt.http.codec.http.model; import hunt.io.BufferUtils; import hunt.Assert; import hunt.util.Test; import hunt.io.ByteBuffer; import java.util.function.Supplier; import hunt.Assert.assertEquals; import...
D
/Users/voxels/Dropbox/Current/SceneKit/SceneKitTemplate/Build/Intermediates/SceneKitTemplate.build/Debug-iphonesimulator/SceneKitTemplate.build/Objects-normal/x86_64/TimeInterval.o : /Users/voxels/Dropbox/Current/SceneKit/SceneKitTemplate/SceneKitTemplate/Model/GeometryFactory.swift /Users/voxels/Dropbox/Current/SceneK...
D
/* * sampler.h * GLB * March 02, 2013 * Brandon Surmanski */ module c.gl.glb.sampler; import c.gl.gl; import c.gl.glext; import c.gl.glb.glb_types; extern(C): enum { GLB_NEAREST = GL_NEAREST, GLB_LINEAR = GL_LINEAR, GLB_NEAREST_MIPMAP_NEAREST = GL_NEAREST_MIPMAP_NEAREST, GLB_LINEAR_MIPMAP_NE...
D
# FIXED utils/lwiplib.obj: C:/ti/tivaware_c_series_2_1_4_178/utils/lwiplib.c utils/lwiplib.obj: C:/ti/ccs900/ccs/tools/compiler/ti-cgt-arm_18.12.1.LTS/include/stdint.h utils/lwiplib.obj: C:/ti/ccs900/ccs/tools/compiler/ti-cgt-arm_18.12.1.LTS/include/_stdint40.h utils/lwiplib.obj: C:/ti/ccs900/ccs/tools/compiler/ti-cgt...
D
the parity of odd numbers (not divisible by two) eccentricity that is not easily explained
D
/Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/RecursiveLock.o : /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Leex/TableView_Test/Pod...
D
import std.stdio; import std.algorithm: canFind, sort; import std.conv; struct Point { int x; int y; } struct World { Point[] entities; } struct LinkedList(T) { T value; typeof(this)* next; } const int WORLD_SIZE = 10; void main() { auto world = initWorld(); Point orig = { 3, 3 }; P...
D
extern (C): /* sokol_fetch.h -- asynchronous data loading/streaming Project URL: https://github.com/floooh/sokol Do this: #define SOKOL_IMPL before you include this file in *one* C or C++ file to create the implementation. Optionally provide the following defines with your own implem...
D
module ogre.singleton; //http://www.digitalmars.com/d/archives/digitalmars/D/Static_constructors_in_circularly_imported_modules_-_again_110518.html#N110527 //http://www.digitalmars.com/d/archives/digitalmars/D/The_singleton_design_pattern_in_D_C_and_Java_113474.html //Thread safe assumably? // Well, this can't be inh...
D
/mnt/c/Users/35984/Documents/code/qwe/musk/target/debug/deps/pin_project-aa8ab4f377306b90.rmeta: /home/denniszhang/.cargo/registry/src/github.com-1ecc6299db9ec823/pin-project-1.0.8/src/lib.rs /mnt/c/Users/35984/Documents/code/qwe/musk/target/debug/deps/pin_project-aa8ab4f377306b90.d: /home/denniszhang/.cargo/registry/...
D
/* TEST_OUTPUT: --- fail_compilation/diag10984.d(12): Error: `static` function `diag10984.f.n` cannot access variable `x` in frame of function `diag10984.f` fail_compilation/diag10984.d(11): `x` declared here --- */ void f() { int x; static void n() { x++; } } void main() { }
D
import std.stdio, std.array, std.range, std.traits; /// Recursive. bool binarySearch(R, T)(/*in*/ R data, in T x) pure nothrow @nogc if (isRandomAccessRange!R && is(Unqual!T == Unqual!(ElementType!R))) { if (data.empty) return false; immutable i = data.length / 2; immutable mid = data[i]; if (m...
D
/Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Intermediates.noindex/TrueGrowthSF2.build/Debug-iphonesimulator/TrueGrowthSF2.build/Objects-normal/x86_64/FeedViewController.o : /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/CurrencyTextField.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/Tr...
D
import std.stdio; void main() { auto a = 12; pragma(msg, typeof(a)); auto b = "ほげほげ"; pragma(msg, typeof(b)); auto c = a + 13.5; pragma(msg, typeof(c)); const d = 3; pragma(msg, typeof(d)); immutable e = 4; pragma(msg, typeof(e)); }
D
// Copyright (C) 2021 by tspike (github.com/tspike2k) // // Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. // // THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES...
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
/******************************************************************************* Client DHT GetAll request definitions / handler. The GetAll request communicates with all DHT nodes to fetch all records in a channel. If a connection error occurs, the request will be restarted once the connection has be...
D
module org.serviio.ui.resources.server.PresentationServerResource; import java.lang.String; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import org.serviio.config.Configuration; import org.serviio.i18n.Language; import org.serviio.restlet.AbstractSer...
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 main; import std.functional: toDelegate; import gio.c.types: GApplicationFlags; import gio.FileIF: FileIF; import gio.Application: gioApplication = Application; import gtk.Application: Application; import gtk.Window: Window; import globals: programID; import frontend.browser: Brows...
D
in theory in a theoretical manner
D
# FIXED HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/blestack/hal/src/target/_common/hal_trng_wrapper.c HAL/Target/CC2650/Drivers/hal_trng_wrapper.obj: C:/ti/simplelink_cc2640r2_sdk_1_50_00_58/source/ti/devices/cc26x0r2/inc/hw_types.h HAL/Target/CC2650/Drivers/...
D
/** * Copyright © DiamondMVC 2019 * License: MIT (https://github.com/DiamondMVC/Diamond/blob/master/LICENSE) * Author: Jacob Jensen (bausshf) */ module diamond.data.transaction; /// Wrapper for transactional data management. final class Transaction(T) if (is(T == struct) || isScalarType!T) { private: /// The commi...
D
instance PAL_281_Fajeth(Npc_Default) { name[0] = "Фаджет"; guild = GIL_OUT; id = 281; voice = 12; flags = NPC_FLAG_IMMORTAL; npcType = npctype_main; B_SetAttributesToChapter(self,4); fight_tactic = FAI_HUMAN_STRONG; EquipItem(self,ItMw_2h_Pal_Sword); EquipItem(self,ItRw_Mil_Crossbow); B_CreateAmbientInv(sel...
D
module org.serviio.licensing.LicenseProperties; public class LicenseProperties { enum LicensePropertiesEnum : String { TYPE = "type", EDITION = "edition", VERSION = "version", ID = "id", NAME = "name", EMAIL = "email", } LicensePropertiesEnum licenseProperties; alias licenseProperties this; ...
D
instance DIA_NONE_101_MARIO_DI_EXIT(C_Info) { npc = None_101_Mario_DI; nr = 999; condition = DIA_NONE_101_MARIO_DI_EXIT_Condition; information = DIA_NONE_101_MARIO_DI_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_NONE_101_MARIO_DI_EXIT_Condition() { return TRUE; }; func void DIA_NON...
D
module dlangui.dialogs.settingsdialog; import dlangui.core.events; import dlangui.core.i18n; import dlangui.core.stdaction; import dlangui.core.files; public import dlangui.core.settings; import dlangui.widgets.controls; import dlangui.widgets.lists; import dlangui.widgets.layouts; import dlangui.widgets.tree; import ...
D
import std.stdio, std.algorithm, std.string, std.array; void main() { }
D
import std.concurrency; import std.experimental.logger; import std.string; import bindbc.sdl; import bindbc.sdl.ttf; import cat.wheel.events; import cat.wheel.graphics; import cat.wheel.input; import graphics; int main() { info("Loading SDL"); immutable(SDLSupport) sdlRet = loadSDL(); if (sdlRet != sdlSupport) {...
D
/Users/macbook/Desktop/BookFarm/build/Pods.build/Debug-iphonesimulator/YPImagePicker.build/Objects-normal/x86_64/UIColor+Extensions.o : /Users/macbook/Desktop/BookFarm/Pods/YPImagePicker/Source/Pages/Photo/YPCameraVC.swift /Users/macbook/Desktop/BookFarm/Pods/YPImagePicker/Source/Pages/Video/YPVideoCaptureVC.swift /Use...
D
/** * Break down a D type into basic (register) types for the AArch64 ABI. * * Copyright: Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved * Authors: Martin Kinkelin * License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://githu...
D
func void B_AssessSurprise() { Npc_SetTarget(self,other); if(!C_NpcIsHero(self)) { self.aivar[AIV_ATTACKREASON] = AR_GuildEnemy; }; }; func void ZS_Attack() { Perception_Set_Minimal(); Npc_PercEnable(self,PERC_ASSESSSURPRISE,B_AssessSurprise); B_ValidateOther(); self.aivar[AIV_LASTTARGET] = Hlp_GetInstance...
D
/** This module contains the core functionality of the vibe.d framework. Copyright: © 2012-2020 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.core.core; public import vibe.core.task; import eventcore.core; import v...
D
/******************************************************************************* Classes for reading and writing dht node channel dump files. copyright: Copyright (c) 2014-2017 sociomantic labs GmbH. All rights reserved License: Boost Software License Version 1.0. See LICENSE.txt for deta...
D
module game.core.components.stamina; import game.core.base.component; class CStaminaComponent : CComponent { mixin( TRegisterClass!CStaminaComponent ); public: Signal!( uint ) currentUpdated; public: bool bRegenerate = true; float regenerateStepTime = 0.1f; uint regeneratePerStep = 1; protected...
D
/** * Most of the logic to implement scoped pointers and scoped references is here. * * 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...
D
// This code has been mechanically translated from the original FORTRAN // code at http://netlib.org/quadpack. /** Authors: Lars Tandle Kyllingstad Copyright: Copyright (c) 2009, Lars T. Kyllingstad. All rights reserved. License: Boost License 1.0 */ module scid.ports.quadpack.qc25c; import std.math: ...
D
module intrinsics; import std.algorithm; import std.functional : toDelegate; import std.sumtype; import rule; import type; import scopes; import value; debug import std.stdio; Rule [] globalRules; // Used to create Mappings, mostly used to create associative arrays/dicts. InterpretedValue espukiToFun ( ref Interpr...
D
/** * Copyright: Copyright (C) 2007-2008 Aaron Craelius. All rights reserved. * Authors: Aaron Craelius */ module sendero.util.Serialization; import tango.io.protocol.Writer, tango.io.protocol.Reader; import tango.io.protocol.model.IProtocol; import tango.io.protocol.EndianProtocol; import tango.io.Buffer; ver...
D
void main(in string[] args) { import std.stdio, std.conv, std.range, std.algorithm, std.exception; immutable n = args.length == 2 ? args[1].to!uint : 5; enforce(n > 0 && n % 2 == 1, "Only odd n > 1"); immutable len = text(n ^^ 2).length.text; // writeln(len); foreach (immutable r; 1 .. n + 1) ...
D
module UnrealScript.TribesGame.TrTeamBlockerStaticMeshActor; import ScriptClasses; import UnrealScript.Helpers; import UnrealScript.Engine.MaterialInstanceConstant; import UnrealScript.TribesGame.TrPawn; import UnrealScript.Engine.StaticMeshActor; import UnrealScript.Engine.Material; extern(C++) interface Tr...
D
# FIXED F2837xS_Spi.obj: C:/ayush2/repo/trunk/Cheapli_SE420_cpu2/v140/F2837xS_common/source/F2837xS_Spi.c F2837xS_Spi.obj: C:/ayush2/repo/trunk/Cheapli_SE420_cpu2/v140/F2837xS_headers/include/F2837xS_device.h F2837xS_Spi.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/assert.h F2837xS_Spi.obj:...
D
import objectivegl; import bindingpoints; struct SimpleVertex { @element("pos") float[2] pos; } struct ColorVertex { @element("pos") float[2] pos; @element("color_v") float[4] color; } struct TexturedVertex { @element("pos") float[2] pos; @element("uv") float[2] uv; } struct UniformColorData {...
D
/******************************************************************************* DMQ shared resource manager. Handles acquiring / relinquishing of global resources by active request handlers. Copyright: Copyright (c) 2012-2017 sociomantic labs GmbH. All rights reserved. License: Boost...
D
module hunt.redis; import hunt.redis.util.SafeEncoder; public enum GeoUnit { M, KM, MI, FT; public final byte[] raw; GeoUnit() { raw = SafeEncoder.encode(this.name().toLowerCase()); } }
D
// Copyright Michael D. Parker 2018. // 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.lua.v51.bindstatic; version(BindBC_Static) version = BindLua_Static; version(BindLua_Stat...
D
/home/gbutler/snap/exercism/5/exercism/rust/xorcism/target/debug/deps/xorcism-aa7333f16151ec1d.rmeta: src/lib.rs /home/gbutler/snap/exercism/5/exercism/rust/xorcism/target/debug/deps/xorcism-aa7333f16151ec1d.d: src/lib.rs src/lib.rs:
D