code
stringlengths
3
10M
language
stringclasses
31 values
instance HUN_20254_Grd (Npc_Default) { //-------- primary data -------- name = "Strażnik Głębi"; Npctype = NPCTYPE_MAIN; guild = GIL_HUN; level = 30; voice = 6; id = 20254; attribute[ATR_STRENGTH] = 120; attribute[ATR_DEXTERITY] = 80; attribute[ATR_MANA_MAX] = ...
D
instance MIL_337_Mika(Npc_Default) { name[0] = "Мика"; guild = GIL_MIL; id = 337; voice = 12; flags = 0; npcType = npctype_main; B_SetAttributesToChapter(self,1); fight_tactic = FAI_HUMAN_STRONG; EquipItem(self,ItMw_1h_Mil_Sword); CreateInvItems(self,ItPo_Health_01,4); B_CreateAmbientInv(self); B_SetNpcVis...
D
a barrier that surrounds the wheels of a vehicle to block splashing water or mud an inclined metal frame at the front of a locomotive to clear the track a low metal guard to confine falling coals to a hearth a cushion-like device that reduces shock due to an impact
D
class Date { int day; int hour; this(int d, int h) { day = d; hour = h; } invariant() { assert(1 <= day && day <= 31); assert(0 <= hour && hour < 24); } }
D
module android.java.java.util.concurrent.atomic.AtomicBoolean; public import android.java.java.util.concurrent.atomic.AtomicBoolean_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!AtomicBoolean; import import0 = android.java.java.lang.Class;
D
import cpp_inter; import stream; import string; extern (C) { int return7(D_I* i) { return 7; } int add(D_I* i, int x, int y) { return x+y; } } int main() { D_C* c = D_C_new_1(1); stdout.writeLine(string.toString(D_C_a(c))); D_C_delete(c); c = D_C_new(); D_C_setA(c, 2); stdout.writeLine(string.toString(D_C_a...
D
module krb5.kerberosgss; import core.stdc.config; import core.stdc.stdarg: va_list; static import core.simd; static import std.conv; struct Int128 { long lower; long upper; } struct UInt128 { ulong lower; ulong upper; } struct __locale_data { int dummy; } a...
D
/Users/hailor/Work/mobile/QhTestMV/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/HandyJSON.build/Objects-normal/x86_64/Transformable.o : /Users/hailor/Work/mobile/QhTestMV/ios/Pods/HandyJSON/Source/Metadata.swift /Users/hailor/Work/mobile/QhTestMV/ios/Pods/HandyJSON/Source/Transformable.swift /Users/ha...
D
module android.java.android.app.ActionBar_TabListener_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import0 = android.java.android.app.ActionBar_Tab_d_interface; import import2 = android.java.java.l...
D
/* * File: main.d * * Experimental file to attempt brute-forcing the construction of partial order * graphs Gamma(k,n) and then to investigate their structural properties. * * @author: Joe Anderson <jtanderson@salisbury.edu> * @date: 3 July 2019 */ import std.stdio : write, writeln, writefln; import std.conv...
D
/* * Copyright (c) 2004-2008 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
/Users/Thomas_Stuart/Desktop/CodePathBootcamp/Parstagram/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/DispatchQueue+Alamofire.o : /Users/Thomas_Stuart/Desktop/CodePathBootcamp/Parstagram/Pods/Alamofire/Source/MultipartFormData.swift /Users/Thomas_Stuart/Desktop/CodePathBoot...
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
instance TPL_1408_TEMPLER(NPC_DEFAULT) { name[0] = NAME_TEMPLER; npctype = NPCTYPE_GUARD; guild = GIL_TPL; level = 17; flags = 0; voice = 8; id = 1408; attribute[ATR_STRENGTH] = 85; attribute[ATR_DEXTERITY] = 65; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 244; att...
D
// Written in the D programming language. /** A small module importing publicly _all other modules in this project. License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>. Authors: Philippe Sigaud Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0...
D
/Rustyflight/transpiled/SPRACINGF3/target/debug/build/libc-9681a5e80345b91c/build_script_build-9681a5e80345b91c: /home/rustyflight/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.71/build.rs /Rustyflight/transpiled/SPRACINGF3/target/debug/build/libc-9681a5e80345b91c/build_script_build-9681a5e80345b91c.d: /hom...
D
/Users/benormos/Desktop/MyFutureBox/build/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/Objects-normal/x86_64/NVActivityIndicatorViewable.o : /Users/benormos/Desktop/MyFutureBox/Pods/NVActivityIndicatorView/NVActivityIndicatorView/NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallPulse...
D
module dui; public import dui.vectors; public import dui.matrices; public import dui.path; public import dui.canvas; public import dui.signal; public import dui.log; public import dui.enums; public import dui.window; public import dui.eventloop;
D
/*#D*/ /*===-- llvm-c/DebugInfo.h - LLVM C API Debug Info API ------------*- D -*-===*\ |* *| |* The LLVM Compiler Infrastructure *| |* ...
D
const string TOPIC_MOD_KG_OLEBRIEF = "Der Brief für die Paladine"; const string TOPIC_MOD_KG_VORBEREITUNGEN = "Vorbereitungen für die Mine"; const string TOPIC_MOD_KG_TROLLHOLZ = "Holz gegen Stein"; const string TOPIC_MOD_KG_NAHRUNGSVERSORGUNG = "Nahrungsversorgung"; const string TOPIC_MOD_KG_BUDDLER = "Neue Männer für...
D
/Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Fluent.build/Query/FluentProperty.swift.o : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/ID.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/fluent.git-...
D
/home/eribertt/rustlings/target/release/build/bitflags-fee4f25b41a5a2fd/build_script_build-fee4f25b41a5a2fd: /home/eribertt/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.2.1/build.rs /home/eribertt/rustlings/target/release/build/bitflags-fee4f25b41a5a2fd/build_script_build-fee4f25b41a5a2fd.d: /home/eriber...
D
/* * hunt-proton: AMQP Protocol library for D programming language. * * Copyright (C) 2018-2019 HuntLabs * * Website: https://www.huntlabs.net/ * * Licensed under the Apache-2.0 License. * */ module hunt.proton.amqp.messaging.TerminusExpiryPolicy; import hunt.collection.HashMap; import hunt.c...
D
module mci.core.analysis.utilities; import mci.core.common, mci.core.container, mci.core.nullable, mci.core.code.functions, mci.core.code.instructions, mci.core.code.opcodes, mci.core.typing.core, mci.core.typing.types; public Instruction getFirstInstruction(Function f...
D
void fun(size_t a)() {} string gen(size_t limit) { string s; foreach(i; 0..limit) { s ~= "fun!__LINE__();\n"; } return s; } void main() { mixin(gen(2^^16)); }
D
import std.stdio, std.string, std.conv, std.regex, std.algorithm, std.c.stdlib, std.getopt; import std.uni: toLower; struct Bofw { string term; uint freq; }; auto stopwords = "a,able,about,across,after,all,almost,also,am,among,an,and,any,are,as,at,be,because,been,but,by,can,cannot,could,dear,did,do,does,either,else...
D
instance DIA_ALWIN_EXIT(C_INFO) { npc = vlk_424_alwin; nr = 999; condition = dia_alwin_exit_condition; information = dia_alwin_exit_info; permanent = TRUE; description = DIALOG_ENDE; }; func int dia_alwin_exit_condition() { return TRUE; }; func void dia_alwin_exit_info() { AI_StopProcessInfos(self); }; in...
D
/** Module with helper functions for multithreaded modules */ module mutils.job_manager.shared_utils; import core.cpuid : threadsPerCPU; import std.conv : to; import std.experimental.allocator : dispose, make, makeArray; import std.experimental.allocator.building_blocks; import std.experimental.allocator.mallocator;...
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,...
D
module glfwd.registration.context; import glfwd.context; import glfwd.window; private shared { alias IContext delegate(IWindow) contextCreateDel; contextCreateDel[string] funcs; string defaultFunc; } void registerContext(string name, contextCreateDel func) { synchronized { funcs[name] = func; } } void default...
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 `std.mathspecial`. * $(SCRIPT inhibitQuickIndex = 1;) $(DIVC quickindex, $(BOOKT...
D
// Written in the D programming language. /** A one-stop shop for converting values from one type to another. $(SCRIPT inhibitQuickIndex = 1;) $(BOOKTABLE, $(TR $(TH Category) $(TH Functions)) $(TR $(TD Generic) $(TD $(LREF asOriginalType) $(LREF castFrom) $(LREF emplace) $(LREF parse)...
D
instance DIA_ANDRE_EXIT(C_INFO) { npc = mil_311_andre; nr = 999; condition = dia_andre_exit_condition; information = dia_andre_exit_info; permanent = TRUE; description = DIALOG_ENDE; }; func int dia_andre_exit_condition() { if(self.aivar[AIV_TALKEDTOPLAYER] == TRUE) { return TRUE; }; }; func void dia_and...
D
module secretbox; import random; import std.stdio; extern (C) { int crypto_secretbox_easy(ubyte *c, ubyte *m, ulong mlen, ref ubyte n[24], ref ubyte k[32]); int crypto_secretbox_open_easy(ubyte *m, ubyte *c, ulong clen, ref ubyte n[24], ref ubyte k[32]); size_t crypto_secretbox_macbytes(); } unittest { ubyte...
D
/Users/caijie/MLJRCode/Bowling/Example/build/Pods.build/Debug-iphonesimulator/BowlingTests.build/Objects-normal/x86_64/SessionDelegate.o : /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/MultipartFormData.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Timeline.swift /Users/caijie/MLJRCo...
D
import autowrap; enum str = wrapDlang!( LibraryName("std_meta"), Modules( Yes.alwaysExport, "std.meta", ) ); // pragma(msg, str); mixin(str);
D
//Written in the D programming language /++ D header file for NetBSD's extensions to POSIX's time.h. Copyright: Copyright 2014 License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Jonathan M Davis http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/sys/time.h +/ mod...
D
instance DIA_BaalCadar_Exit(C_Info) { npc = GUR_1208_BaalCadar; nr = 999; condition = DIA_BaalCadar_Exit_Condition; information = DIA_BaalCadar_Exit_Info; permanent = 1; description = DIALOG_ENDE; }; func int DIA_BaalCadar_Exit_Condition() { return 1; }; func void DIA_BaalCadar_Exit_Info() { AI_StopProcessI...
D
import std.stdio; import expression; import scanner; import parser; void main() { auto tokens=scanfile("sample_list.txt"); while(tokens.length>0){ auto exp=parse(tokens); write(exp.tostring()~"\n"); } }
D
module tests.it.buildgen.automatic_dependency; import tests.it.buildgen; @("C++ dependencies get automatically computed with objectFile") @AutoTags @Values("ninja", "make", "tup", "binary") unittest { import reggae.config: options; enum project = "d_and_cpp"; generateBuild!project; shouldBuild!proj...
D
module ut.concurrency.operations; import concurrency; import concurrency.sender; import concurrency.thread; import concurrency.operations; import concurrency.receiver; import concurrency.stoptoken; import concurrency.nursery; import unit_threaded; import core.time; import core.thread; import std.typecons; /// Used to...
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 distributed in th...
D
module collie.buffer.SectionBuffer; import core.stdc.string; import core.memory; import std.container.array; import std.string; import std.experimental.allocator; import collie.buffer.buffer; /** * 分段buffer,把整块的很大大内存分成多快小内存存放在内存中,防止一次申请过大内存导致的问题,理论可以无限写入,会自己增加内存。 * * * 注意:内部管理内存周期的,但是支持swap交换出所管理的内存,注意分配其不同,...
D
module android.java.android.view.animation.AnticipateInterpolator_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import1 = android.java.android.util.AttributeSet_d_interface; import import2 = android...
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
/** DGui project file. Copyright: Trogu Antonio Davide 2011-2013 License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Trogu Antonio Davide */ module dguihub.folderbrowserdialog; pragma(lib, "shell32.lib"); public import dguihub.core.dialogs.commondialog; import std.utf : toUTFz, toUTF8; import s...
D
import std.stdio, std.file, std.algorithm, std.random, std.typecons, std.range.primitives, std.conv; import pacman.game, pacman.controllers, pacman.maze, pacman.tree; import inid; //// // Config stuff //// struct Config { struct EA { string outputPath, logPath, solutionPath; int numRuns, numEvals; uint ...
D
void main() { runSolver(); } void problem() { auto QN = scan!int; auto solve() { auto subSolve() { auto N = scan!int; auto S = scan; auto T = scan; if (S.array.sort != T.array.sort) return "NO"; foreach(c; matchAll(S, regex(r"[ab]*[bc]*"))) { auto l = c.pre.length.to!in...
D
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/SQL.build/SQLTableConstraint.swift.o : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLBind.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/sql/Sources/SQL/SQLJoinMetho...
D
/* * Copyright (c) 2012-2019 The ANTLR Project. All rights reserved. * Use of this file is governed by the BSD 3-clause license that * can be found in the LICENSE.txt file in the project root. */ module antlr.v4.runtime.misc.IntervalSet; import antlr.v4.runtime.TokenConstantDefinition; import antlr.v4.runtime.Voc...
D
module android.java.android.telephony.mbms.FileInfo; public import android.java.android.telephony.mbms.FileInfo_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!FileInfo; import import2 = android.java.java.lang.Class; import import1 = android.java.android.net.Uri;
D
// Ork: Ten tutaj, to nekro w orctemple.zen // ************************************************** // EXIT // ************************************************** INSTANCE DIA_Necromanus_Exit (C_INFO) { npc = Non_4116_Nekroman; nr = 999; condition = DIA_Necromanus_Exit_Condition; information = DIA_Necroma...
D
/Users/Primo/Downloads/esgi-rust-ppm-master/big project rust/target/rls/debug/build/crossbeam-epoch-70b168a24ddc1e1e/build_script_build-70b168a24ddc1e1e: /Users/Primo/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-epoch-0.8.0/build.rs /Users/Primo/Downloads/esgi-rust-ppm-master/big project rust/target/rls/d...
D
a heavy ductile magnetic metallic element a golf club that has a relatively narrow metal head implement used to brand live stock home appliance consisting of a flat metal base that is heated and used to smooth cloth press and smooth with a heated iron extremely robust
D
#name: MIPS 2008 NaN setting 2 #source: nan-2008.s #objdump: -p #as: -mnan=legacy .*:.*file format.*mips.* private flags = [0-9a-f]*[4-7c-f]..: .*[[,]nan2008[],].* #pass
D
// Written in the D programming language. /** A one-stop shop for converting values from one type to another. Copyright: Copyright Digital Mars 2007-. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: $(WEB digitalmars.com, Walter Bright), $(WEB erdani.org, Andrei Alexandrescu), ...
D
/Users/student/Documents/Marketplace/DerivedData/Build/Intermediates/Marketplace.build/Debug-iphonesimulator/Marketplace.build/Objects-normal/x86_64/SearchTableView.o : /Users/student/Documents/Marketplace/Marketplace/CoreDataComponents/Network/Download.swift /Users/student/Documents/Marketplace/Marketplace/CoreDataCom...
D
/******************************************************************************* copyright: Copyright (c) 2008 Jeff Davey. All rights reserved license: BSD style: $(LICENSE) author: Jeff Davey <j@submersion.com> ***********************************************************...
D
/Users/varaprasadp/Desktop/React/Example/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/AnimatedViewPortJob.o : /Users/varaprasadp/Desktop/React/Example/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/varaprasadp/Desktop/React/Example...
D
/** * Copyright: Copyright (c) 2011 Jacob Carlborg. All rights reserved. * Authors: Jacob Carlborg * Version: Initial created: Apr 3, 2011 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) */ module ruby.core.Environment; import mambo.core.string; import ruby.c.intern; import r...
D
/Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/TemplateKit.build/Pipeline/TemplateParser.swift.o : /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateData.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--612992858618713483...
D
/Users/mohammadazam/Documents/Projects/StoryTellersAPICode/StoryTellersAPI/.build/debug/URI.build/Parser/Parser.swift.o : /Users/mohammadazam/Documents/Projects/StoryTellersAPICode/StoryTellersAPI/Packages/Engine-1.3.2/Sources/URI/PercentDecoding.swift /Users/mohammadazam/Documents/Projects/StoryTellersAPICode/StoryTel...
D
/*instance DMT_1208_Dementor(Npc_Default) { name[0] = NAME_Dementor; guild = GIL_DMT; id = 1208; voice = 19; flags = 0; npcType = NPCTYPE_MAIN; aivar[AIV_EnemyOverride] = TRUE; aivar[AIV_MagicUser] = MAGIC_ALWAYS; bodyStateInterruptableOverride = TRUE; B_SetAttributesToChapter(self,3); fight_tactic = FAI_HU...
D
/* * enum_body_unit.d * */ module syntax.enum_body_unit; import syntax.assign_expression_unit; import lex.lexer; import lex.token; import logger; class EnumBodyUnit { private: Lexer _lexer; Logger _logger; int _state; public: this(Lexer lexer, Logger logger) { _lexer = lexer; _logger = logger; }...
D
module deject.attributes; enum Inject;
D
/Users/work/Projects/Hello/.build/x86_64-apple-macosx10.10/debug/Bits.build/Data+Strings.swift.o : /Users/work/Projects/Hello/.build/checkouts/core.git-9210800844849382486/Sources/Bits/Deprecated.swift /Users/work/Projects/Hello/.build/checkouts/core.git-9210800844849382486/Sources/Bits/ByteBuffer+require.swift /Users/...
D
import std.json; import std.stdio; import std.file; import std.socket; import std.compiler; int main(string[] args) { try { auto socket = new TcpSocket(new InternetAddress("localhost", 9001)); scope(exit) socket.close(); socket.send(name); } catch (SocketOSException) { // standalone usage } st...
D
/** Defines a string based dictionary list with conserved insertion order. Copyright: © 2012-2014 RejectedSoftware e.K. License: Subject to the terms of the MIT license, as written in the included LICENSE file. Authors: Sönke Ludwig */ module memutils.dictionarylist; import core.stdc.string : memset,...
D
a specialist in linguistics a person who speaks more than one language
D
// D import file generated from 'crypto_box_curve25519xsalsa20poly1305.d' renamed to 'crypto_box_curve25519xsalsa20poly1305.d' (method [only for original == header file] results in very compact code and obviates to overhaul comments now) module sodium.crypto_box_curve25519xsalsa20poly1305; extern (C) { enum crypto_...
D
module android.java.android.app.Notification_Action_WearableExtender; public import android.java.android.app.Notification_Action_WearableExtender_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!Notification_Action_WearableExtender; import import2 = android.java.android.app.Notification_Action_...
D
instance NASZ_008_Miecz (Npc_Default) { // ------ NSC ------ name = "Miecz"; guild = GIL_PIR; id = 8; voice = 1; flags = NPC_FLAG_IMMORTAL; npctype = NPCTYPE_MAIN; aivar[AIV_IgnoresArmor] = TRUE; // ------ Attribute ------ B_SetAttributesToChapter (self, 5); // ------ K...
D
/Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/CredifyCore.build/Debug-iphonesimulator/CredifyCore.build/Objects-normal/x86_64/ProviderRepositoryRequest+Response.o : /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/CredifyCore.swift /Users...
D
/// Generate by tools module org.apache.sanselan.ImageInfo; import java.lang.exceptions; public class ImageInfo { public this() { implMissing(); } }
D
instance PAL_9148_RITTER(Npc_Default) { name[0] = NAME_Ritter; guild = GIL_PAL; id = 9148; voice = 8; flags = 0; npcType = NPCTYPE_OCAMBIENT; B_SetAttributesToChapter(self,5); fight_tactic = FAI_HUMAN_MASTER; EquipItem(self,ItMw_1H_Blessed_02); B_CreateAmbientInv(self); B_SetNpcVisual(self,MALE,"Hum_Head_Fi...
D
void main() { runSolver(); } void problem() { auto QN = scan!int; auto solve() { auto subSolve() { auto N = scan!long; long d3 = (N - 6) / 3; long[] ans = [2 + d3, 3 + d3, 1 + d3]; if (N % 3 >= 1) ans[1]++; if (N % 3 >= 2) ans[0]++; return ans.toAnswerString; } ...
D
instance STRF_1105_Straefling (Npc_Default) { // ------ NSC ------ name = NAME_STRAEFLING; guild = GIL_STRF; id = 1105; voice = 13; flags = 0; //NPC_FLAG_IMMORTAL oder 0 npctype = NPCTYPE_AMBIENT; // ------ Attribute ------ B_SetAttributesToChapter (self, 1); //setzt A...
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
the line or plane indicating the limit or extent of something a line determining the limits of an area the greatest possible degree of something
D
/* * MsgTrans - Message Transport Framework for DLang. Based on TCP, WebSocket, UDP transmission protocol. * * Copyright (C) 2019 HuntLabs * * Website: https://www.msgtrans.org * * Licensed under the Apache-2.0 License. * */ module msgtrans.channel.tcp.TcpServerChannel; import msgtrans.MessageTransport; impo...
D
/************************************************************************* ** Scavenger Prototype ** *************************************************************************/ PROTOTYPE Mst_Default_Scavenger(C_Npc) { name = "Œcierwojad"; guild = GIL_SCAVENGER; Npc_SetAivar(self,AIV_MM_REA...
D
// @file typeof.d import std.stdio; void main(){ auto i = 5; // Here I want to create a new type // based off of the type 'i' typeof(i) j = 7; writeln(typeid(j)); }
D
// Written in the D programming language. /** This app is a demo for most of DlangUI library features. Synopsis: ---- dub run dlangui:example1 ---- Copyright: Vadim Lopatin, 2014 License: Boost License 1.0 Authors: Vadim Lopatin, coolreader.org@gmail.com */ module main; import dlangui.all; import dlangui.dia...
D
// Written in the D programming language. /** This module defines the notion of a range. Ranges generalize the concept of arrays, lists, or anything that involves sequential access. This abstraction enables the same set of algorithms (see $(LINK2 std_algorithm.html, std.algorithm)) to be used with a vast variety of di...
D
/* * Copyright (c) 2006-2007 Erin Catto http://www.box2d.org * * 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 software for any purpos...
D
module graphics.query; import derelict.opengl3.gl3; import std.algorithm : remove, countUntil; import graphics.errors; import graphics.enums; final class Query { package uint glName; this() { glGenQueries(1, &glName); } bool deleted() @property { return glIsQuery(glName) == GL_FALSE; } void destroy() ...
D
module android.java.android.renderscript.Script_FieldBase; public import android.java.android.renderscript.Script_FieldBase_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!Script_FieldBase; import import0 = android.java.android.renderscript.Element; import import3 = android.java.java.lang.Clas...
D
module misc.resources; import std.path; string BASE_PATH; string RESOURCE_PATH; void setBasePath(string path) { BASE_PATH = path; RESOURCE_PATH = buildNormalizedPath(BASE_PATH, "res"); } string getResourcePath(string resourceName) { return buildNormalizedPath(RESOURCE_PATH, resourceName); }
D
module test.app; import v8.v8; import std.stdio, std.typecons; // Creates a new execution environment containing the built-in // functions. Handle!Context CreateShellContext(Isolate isolate) { /* // Create a template for the global object. Handle!ObjectTemplate global = ObjectTemplate.New( isolate ); ...
D
instance Info_Mine_Grd_7_EXIT(C_Info) { nr = 999; condition = Info_Mine_Grd_7_EXIT_Condition; information = Info_Mine_Grd_7_EXIT_Info; permanent = 1; description = "KONEC"; }; func int Info_Mine_Grd_7_EXIT_Condition() { return 1; }; func void Info_Mine_Grd_7_EXIT_Info() { AI_StopProcessInfos(self); }; inst...
D
//===================================== НАЙТИ СБЕЖАВШИХ ОХОТНИКОВ ===============================================// //Статус: НЕГОТОВ //Квестодатель: Гард //Участники: Густав, Джинн, Ватрас, Гард var int MIS_DS2P_FindEscapedHunters; const string TOPIC_DS2P_FindEscapedHunters = "Найти сбежавших охотников_FindEscapedH...
D
prototype ORCSLAVE_TESTTYPE(C_Npc) { name[0] = "OrcSlave Prototype"; guild = gil_orcslave; level = 1; attribute[ATR_STRENGTH] = 8; attribute[ATR_DEXTERITY] = 8; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; protection[PROT_EDGE] = 5; protection[PROT_BLUNT] = 5; protection[PROT_POINT] = 5; protection...
D
// Generated from XMLParser.g4 by ANTLR 4.7.1 import antlr.v4.runtime.atn.ATN; import antlr.v4.runtime.atn.ATNDeserializer; import antlr.v4.runtime.atn.PredictionContextCache; import antlr.v4.runtime.atn.ParserATNSimulator; import antlr.v4.runtime.atn.InterfaceParserATNSimulator; import antlr.v4.runtime.dfa.DFA; import...
D
/* * PS3 Media Server, for streaming any medias to your PS3. * Copyright (C) 2008 A.Brochard * * This program 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; version 2 * of the License only. * * This...
D
instance SLD_821_Soeldner(Npc_Default) { name[0] = NAME_Soeldner; guild = GIL_SLD; id = 821; voice = 6; flags = 0; npcType = NPCTYPE_AMBIENT; B_SetAttributesToChapter(self,4); fight_tactic = FAI_HUMAN_STRONG; EquipItem(self,ItMw_1h_Sld_Sword_New); EquipItem(self,ItRw_Sld_Bow); CreateInvItems(self,ItRw_Arrow...
D
module cp.puzzleruntime; import std.path: buildPath, dirName; import std.file: exists, mkdirRecurse, rmdirRecurse; import std.exception: enforce; import std.algorithm: canFind; import cp.session; import cp.puzzles.puzzle; import cp.languages.language; import cp.communicationchannel; interface IfPuzzleRuntime { ...
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_1_BeT-11996161...
D
/+ + Copyright (c) Charles Petzold, 1998. + Ported to the D Programming Language by Andrej Mitrovic, 2011. +/ module Bounce; import core.memory; import core.runtime; import core.thread; import std.algorithm : max, min; import std.conv; import std.math; import std.range; import std.string; import std.utf; auto toU...
D
// REQUIRED_ARGS: -dw // PERMUTE_ARGS: /* TEST_OUTPUT: --- --- */ class C { void bug() { autoref(this); // 'auto ref' becomes non-ref parameter autoref(super); // 'auto ref' becomes non-ref parameter } } void autoref(T)(auto ref T t) { static assert(__traits(isRef, t) == false); }
D
/Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/NopDisposable.o : /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwif...
D