code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
// ***************
// SPL_SummonSwampGolem
// ***************
const int SPL_Cost_SummonSwampGolem = 80;
INSTANCE Spell_SummonSwampGolem (C_Spell_Proto) //ehem. Spell_Golem
{
time_per_mana = 0;
spelltype = SPELL_BAD;
targetCollectAlgo = TARGET_COLLECT_NONE;
};
func int Spell_Logic_SummonSwampGolem (var in... | D |
func void b_enter_oldmine_kapitel_1()
{
};
var int enteroldmine_kapitel2;
func void b_enter_oldmine_kapitel_2()
{
if(ENTEROLDMINE_KAPITEL2 == FALSE)
{
if(SBMODE == TRUE)
{
Wld_InsertNpc(Shivana,"OM_HROMANIN_GUARD_03");
Wld_InsertNpc(Minecrawler,"OM_038");
Wld_InsertNpc(Minecrawler,"OM_039");
Wld_I... | D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (c) 1992-1999 by Symantec
* Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved
* Authors: Mike Cote, John Micco and $(LINK2 http://www.digitalmars.com, W... | D |
void main() {
problem();
}
void problem() {
ulong comb(ulong a, ulong b) {
if (b == 0) {
return 1;
} else {
return comb(a - 1, b - 1) * a / b;
}
}
void solve(ulong l) {
comb(l - 1, 11).writeln;
}
solve(scan!ulong);
}
// ----------------------------------------------
import... | D |
module dub_stuff.collect;
// copied from dub.recipe.packagerecipe and modified
import std.array: appender;
import std.exception: enforce;
import std.range: empty;
import std.file: dirEntries, SpanMode;
import dub.internal.vibecompat.inet.path: NativePath, toNativeString, relativeTo;
import dub.package_: Package;
str... | D |
module doveralls.doveralls;
import doveralls.sourcefiles, doveralls.git, doveralls.request;
/**
* The tool's entry point.
*
* Params:
* path = The path to the root of the repository
* token = The authorization token for coveralls.io
* service = Used to differentiate between common servi... | D |
/Users/sriramprasad/Dev/rough/collection/build/collection.build/Debug-iphonesimulator/collection.build/Objects-normal/x86_64/AppDelegate.o : /Users/sriramprasad/Dev/rough/collection/collection/AppDelegate.swift /Users/sriramprasad/Dev/rough/collection/propercollectionview.swift /Applications/Xcode.app/Contents/Develope... | D |
module requests.ftp;
private:
import std.ascii;
import std.algorithm;
import std.conv;
import std.datetime;
import std.format;
import std.exception;
import std.string;
import std.range;
import std.experimental.logger;
import std.stdio;
import std.path;
import std.traits;
import std.typecons;
import requests.uri;
imp... | D |
/Users/zaidtayyab/Desktop/Template/Build/Template/Build/Intermediates/Pods.build/Debug-iphonesimulator/SwiftValidator.build/Objects-normal/x86_64/ZipCodeRule.o : /Users/zaidtayyab/Desktop/Template/Pods/SwiftValidator/SwiftValidator/Core/Validatable.swift /Users/zaidtayyab/Desktop/Template/Pods/SwiftValidator/SwiftValid... | D |
/*
Copyright (c) 2014-2023 Martin Cejp
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, distri... | D |
module moose.interpreter.internalfunctions;
import std.variant: Variant;
import std.exception: enforce;
import moose.interpreter.ffi;
import moose.interpreter.main: Struct, Scope;
private
{
static enum { bind };
static Variant function(Variant[])[string] _funcs;
static this()
{
foreach(memb... | D |
/+
dub.sdl:
name "ast"
description "a place to quickly test bug reports"
dependency "openmethods" path="../../"
+/
// DFLAGS='-version=openmethods' dub run --single ast.d
import std.stdio, std.format, std.exception;
interface Node {
double value();
string toRPN();
interface Visitor {
void accept(Numb... | D |
module conc.synchronizedint;
import conc.synchronizedvariable;
public class СинхронЦел : СинхронизованнаяПеременная
{
protected цел значение_;
public this(цел начальноеЗначение);
public this(цел начальноеЗначение, Объект замок) ;
public final цел дай() ;
public цел установи(цел новоеЗначение) ;
publi... | D |
import std.stdio, std.math;
real haversineDistance(in real dth1, in real dph1,
in real dth2, in real dph2) pure nothrow {
enum real R = 6371;
enum real TO_RAD = PI / 180;
alias imr = immutable(real);
imr ph1d = dph1 - dph2;
imr ph1 = ph1d * TO_RAD;
imr th1 = dth1 * TO_R... | D |
/*
TEST_OUTPUT:
---
fail_compilation/fail287.d(14): Error: had 299 cases which is more than 256 cases in case range
fail_compilation/fail287.d(12): Deprecation: non-final switch statement without a default is deprecated
---
*/
void main()
{
int i = 2;
switch (i)
{
case 1: .. case 300:
i... | D |
/var/log/sms/*.log {
daily
rotate 60
compress
missingok
notifempty
sharedscripts
postrotate
/etc/init.d/sms restart
endscript
}
| D |
module sli.backend.opensles_utils;
import android.log;
import bindbc.OpenSLES.types;
bool slError(SLresult res)
{
return res != SL_RESULT_SUCCESS;
}
float toAttenuation(float gain)
{
import std.math:log10;
return (gain < 0.01f) ? -96.0f : 20 * log10(gain);
}
T* allocate(T)(size_t quant = 1)
{
import... | D |
module std.container.dlist;
import std.exception, std.range, std.traits;
public import std.container.util;
/**
Implements a doubly-linked list.
$(D DList) uses reference semantics.
*/
struct DList(T)
{
private struct Node
{
T _payload = T.init;
Node * _prev;
Node * _next;
}
p... | D |
/++
This is a submodule of $(MREF mir,ndslice).
NdField is a type with `opIndex(size_t[N] index...)` primitive.
An ndslice can be created on top of a ndField using $(SUBREF slice, slicedNdField).
$(BOOKTABLE $(H2 NdFields),
$(TR $(TH NdField Name) $(TH Used By))
$(T2 Cartesian, $(SUBREF topology, cartesian))
$(T2 Kro... | D |
instance DIA_GHORIM_EXIT(C_INFO)
{
npc = nov_1310_ghorim;
nr = 999;
condition = dia_ghorim_exit_condition;
information = dia_ghorim_exit_info;
important = 0;
permanent = 1;
description = DIALOG_ENDE;
};
func int dia_ghorim_exit_condition()
{
return 1;
};
func void dia_ghorim_exit_info()
{
AI_StopProcessInf... | D |
/Users/sameersiddiqui/Projects/HafsaInspectorApp/Build/Intermediates/HafsaInspectorApp.build/Debug-iphonesimulator/HafsaInspectorApp.build/Objects-normal/x86_64/AppDelegate.o : /Users/sameersiddiqui/Projects/HafsaInspectorApp/HafsaInspectorApp/Utilities/ThirdParty/Material/NavigationDrawerController.swift /Users/sameer... | D |
/Users/imutayuji/programming/Rust/samplecli/target/debug/deps/bitflags-41b8f8950e56a876.rmeta: /Users/imutayuji/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.2.1/src/lib.rs
/Users/imutayuji/programming/Rust/samplecli/target/debug/deps/libbitflags-41b8f8950e56a876.rlib: /Users/imutayuji/.cargo/registry/src... | D |
// *********************
// Constants
// Phoenix V0.67
// *********************
// *************************************************************
// PrintScreen Fonts
// *************************************************************
const string FONT_Screen = "FONT_OLD_20_WHITE.TGA";
const string FONT_Scree... | 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 |
/Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ObservableType+Extensions.o : /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Polina/XcodeApp/CoreML_test_10.03/CoreML_test/Pods/RxSwift/... | D |
module main;
import git.c;
import std.zlib;
import core.thread;
import std.array;
import std.algorithm;
import std.concurrency;
import std.conv;
import std.file;
import std.stdio;
import std.string;
import std.range;
import std.exception;
import std.path;
import common;
import fetch;
import clone;
import ls_remote;
... | D |
/home/imran82ali/batch6_34/June_02_2020/assignment3/target/debug/deps/assignment3-894686de18e0cd22: src/main.rs
/home/imran82ali/batch6_34/June_02_2020/assignment3/target/debug/deps/assignment3-894686de18e0cd22.d: src/main.rs
src/main.rs:
| D |
/Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/HTTP.build/Middleware/Middleware.swift.o : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-3311994267206676365/Sources/HTTP/Async/Response+Async.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/engine.git-331199426... | D |
module android.java.android.view.ViewGroup;
public import android.java.android.view.ViewGroup_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!ViewGroup;
import import50 = android.java.android.view.accessibility.AccessibilityNodeProvider;
import import82 = android.java.java.lang.Class;
import i... | D |
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/Base64.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/swift-nio/Sources/NIOWebSocket/SHA1.swift /Users/panartem/Developer/Study/Microservices-vapor/TILApp... | D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container, std.range;
void get(Args...)(ref Args args)
{
import std.traits, std.meta, std.typecons;
static if (Args.length == 1) {
alias Arg = Args[0];
static if (isArray!Arg) {
... | D |
/Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/debug/Core.build/String+Polymorphic.swift.o : /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/core.git-9210800844849382486/Sources/Core/RFC1123.swift /Users/Fklemke/swiftbenchmarkproject/vaporJSON/.build/checkouts/core.git-9210800844849382486/Sources... | D |
void main() {
import encap.base;
primaryFunction();
} | D |
module irrlicht.EDeviceTypes;
/// An enum for the different device types supported by the Irrlicht Engine.
enum E_DEVICE_TYPE
{
/// A device native to Microsoft Windows
/**
* This device uses the Win32 API and works in all versions of Windows.
*/
EIDT_WIN32,
/// A device native to Windows CE devices
/**
*... | D |
/Users/apple-1/Downloads/HouseKeeping/Build/Intermediates/HouseKeeping.build/Debug-iphonesimulator/HouseKeeping.build/Objects-normal/x86_64/Forgotpassword.o : /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/DetailsPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksPending.swift /Users/app... | D |
// ---------------------------------------------
// SoA
// ---------------------------------------------
// 1.
CHAIN IF ~InParty("rh#Isra2")
See("rh#Isra2")
!StateCheck("rh#Isra2",CD_STATE_NOTVALID)
!StateCheck("rh#Eva",CD_STATE_NOTVALID)
CombatCounter(0)
!See([ENEMY])
Dead("Lavok02")
Global("G#XB.EvandraIsraBanter1"... | D |
module geometry.ray;
import geometry.vector : Vector;
/// Ray of light used to draw three-dimensional scenes, defined by an origin and a normalized direction.
struct Ray
{
Vector orig, dir;
this(in Vector orig, in Vector dir) pure
{
this.orig = orig;
this.dir = dir;
this.dir.norma... | D |
// Copyright © 2014, Bernard Helyer. All rights reserved.
// Copyright © 2015, Jakob Bornecrantz. All rights reserved.
// See copyright notice in src/volt/license.d (BOOST ver. 1.0).
module volt.visitor.jsonprinter;
import watt.io.streams : OutputFileStream;
import watt.text.utf : encode;
import ir = volt.ir.ir;
i... | D |
import std.stdio;
import core.thread;
import dfio;
// run fibers until all of them terminate
// void runFibers();
void main()
{
core.sys.posix.unistd.read(0,null,0uL); //test hook works
auto t1 = new Thread(() {
//...
runFibers();
});
auto t2 = new Thread(() {
//...
runFi... | D |
instance DIA_WIRT_EXIT(C_INFO)
{
npc = vlk_4201_wirt;
nr = 999;
condition = dia_wirt_exit_condition;
information = dia_wirt_exit_info;
permanent = TRUE;
description = DIALOG_ENDE;
};
func int dia_wirt_exit_condition()
{
return TRUE;
};
func void dia_wirt_exit_info()
{
AI_StopProcessInfos(self);
};
instanc... | D |
/Users/Rami/Desktop/TaskCompanyUSA/build/Pods.build/Debug-iphonesimulator/ObjectMapper.build/Objects-normal/x86_64/Map.o : /Users/Rami/Desktop/TaskCompanyUSA/Pods/ObjectMapper/Sources/FromJSON.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/ObjectMapper/Sources/ToJSON.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/ObjectM... | D |
/Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/x86_64-apple-macosx10.10/debug/PerfectThread.build/ThreadQueue.swift.o : /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/Perfect-Thread.git-6541237758607105655/Sources/Promise.swift /Users/macmini2/Desktop/workSpace/Perfect-HTTP/.build/checkouts/Perf... | D |
/Users/petercernak/vapor/TILApp/Build/Intermediates.noindex/TILApp.build/Debug/FluentSQL.build/Objects-normal/x86_64/FluentSQLSchema.o : /Users/petercernak/vapor/TILApp/.build/checkouts/fluent.git-8387737201324173519/Sources/FluentSQL/FluentSQLSchema.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent.git-838... | D |
const string MOBNAME_CRATE = "Ящик";
const string MOBNAME_CHEST = "Сундук";
const string MOBNAME_BED = "Кровать";
const string MOBNAME_DOOR = "Дверь";
const string MOBNAME_CAMPFIRE = "";
const string MOBNAME_TORCH = "";
const string MOBNAME_TORCHHOLDER = "";
const string MOBNAME_BARBQ_SCAV = "";
const string MOBNAME_B... | D |
module android.java.java.lang.IllegalStateException_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.java.io.PrintStream_d_interface;
import import4 = android.java.java.lang.Clas... | D |
/**
* Copyright: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: $(LINK2 http://cattermole.co.nz, Richard Andrew Cattermole)
*/
module cf.spew.implementation.consumers;
public import cf.spew.ui;
public import cf.spew.miscellaneous.timer;
public import cf.spew.event_loop;
pub... | D |
/home/timon/Documents/laminar_file_share/file_server/target/debug/deps/enumset-88e8e8132a99b3dc.rmeta: /home/timon/.cargo/registry/src/github.com-1ecc6299db9ec823/enumset-0.4.4/src/lib.rs
/home/timon/Documents/laminar_file_share/file_server/target/debug/deps/libenumset-88e8e8132a99b3dc.rlib: /home/timon/.cargo/registr... | D |
/Users/danielmorales/CSUMB/Potluck/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/HistoricalScheduler.o : /Users/danielmorales/CSUMB/Potluck/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/danielmorales/CSUMB/Potluck/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/danielmorales/C... | D |
module ModelViewer;
private {
import xf.hybrid.Hybrid;
import xf.hybrid.backend.GL;
import xf.hybrid.Common;
import xf.hybrid.CustomWidget;
import xf.loader.scene.Hme;
import xf.loader.scene.model.Node;
import xf.loader.scene.model.Mesh;
import xf.loader.scene.model.Scene;
import xf.omg.core.Line... | D |
# FIXED
HAL/Target/CC2650/Drivers/hal_rtc_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_1_60_00_04_eng/source/ti/ble5stack/hal/src/target/_common/hal_rtc_wrapper.c
HAL/Target/CC2650/Drivers/hal_rtc_wrapper.obj: C:/ti/simplelink_cc26x2_sdk_1_60_00_04_eng/source/ti/ble5stack/hal/src/target/_common/hal_mcu.h
HAL/Target/CC2650... | D |
/*
Copyright (c) 2020 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,
execu... | D |
/******************************************************************//**
* \file src/gnuplot/gnuaux.d
* \brief GNU plot aux definitions
*
* <i>Copyright (c) 2012</i> Danny Arends<br>
* Last modified May, 2012<br>
* First written 2012<br>
* Written in the D Programming Language (http://www.digitalmars.com/d)
****... | D |
module visualization;
import std.stdio;
import std.container;
import std.algorithm;
import std.range;
import std.conv;
import raylib;
import data;
//void trace(Particle p, ref DList!Vector path)
//{
// path.removeBack();
// path.insertFront(p.x);
//}
//
//void drawTrace(DList!Vector trace, int window = 800)
//... | D |
Expect:
| 1 | Granny Smith |
| 1 | Granny Smith |
| 1 | Granny Smith |
| 1 | Granny Smith |
| 1 | Granny Smith |
| 1 | Granny Smith |
| 1 | Granny Smith |
| 1 | Granny Smith |
| 1 | Granny Smith |
| 1 | Granny Smith |
| 1.5 | Navel |
| 1.5 | Navel |
| 1.5 | Navel |... | 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="47edeb0e-33d1-46df-a266-afda14... | D |
module app;
import vibe.core.core;
import vibe.core.log;
import vibe.http.fileserver : serveStaticFiles;
import vibe.http.router : URLRouter;
import vibe.http.server;
import vibe.http.websockets : WebSocket, handleWebSockets;
import core.time;
import std.conv : to;
int main(string[] args)
{
auto router = new URLRo... | D |
module xf.hybrid.widgets.XCheck;
private {
import xf.hybrid.Common;
import xf.hybrid.CustomWidget;
import xf.hybrid.Selectable;
import tango.io.Stdout;
}
/**
eXclusive Check, a.k.a. Radio Button
Properties:
---
inline bool selected
char[] text
---
To be used with XorSelector and D... | D |
/**
Copyright: Copyright (c) 2020, Joakim Brännström. All rights reserved.
License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
Author: Joakim Brännström (joakim.brannstrom@gmx.com)
Utility functions gathered from the D forum. Authors are unknown.
*/
module my.range;
/** alias for .then ... | D |
module ball;
import std.conv;
import derelict.sdl2.sdl;
import vector2;
import court;
class Ball
{
private:
int _diameter;
int[2] _yRange;
Vector2 _position;
Vector2 _velocity;
Court _court;
public:
this(Court court)
{
_diameter = to!int(court.height() / 48);
_yRange = [0, court.height() - _dia... | D |
/*
* Entity - Entity is an object-relational mapping tool for the D programming language. Referring to the design idea of JPA.
*
* Copyright (C) 2015-2018 Shanghai Putao Technology Co., Ltd
*
* Developer: HuntLabs.cn
*
* Licensed under the Apache-2.0 License.
*
*/
module entity.repository.EntityRepository;
... | D |
travelling about without any clear destination
move about aimlessly or without any destination, often in search of food or employment
be sexually unfaithful to one's partner in marriage
go via an indirect route or at no set pace
to move or cause to move in a sinuous, spiral, or circular course
lose clarity or turn asid... | D |
import std.exception;
import std.string;
import ae.net.asockets;
import ae.sys.log;
enum targetHost = "news.digitalmars.com";
enum targetPort = 119;
enum listenPort = 4119;
Data clientTranscoder(Data data)
{
return data;
}
Data serverTranscoder(Data data)
{
auto contents = cast(string)data.contents;
enum replac... | D |
/Users/mac/Desktop/Assignment1_iOS/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartFormData.o : /Users/mac/Desktop/Assignment1_iOS/Pods/Alamofire/Source/MultipartFormData.swift /Users/mac/Desktop/Assignment1_iOS/Pods/Alamofire/Source/Timeline.swift /Users/mac/Desktop/Assignment1_iO... | D |
/**
* The Skein-512 hash function
*
* Copyright:
* (C) 2009,2014 Jack Lloyd
* (C) 2014-2015 Etienne Cimon
*
* License:
* Botan is released under the Simplified BSD License (see LICENSE.md)
*/
module botan.hash.skein_512;
import botan.constants;
static if (BOTAN_HAS_SKEIN_512):
import botan.hash.hash;
import botan.bl... | D |
module cqt.cqt;
extern(C++):
void* createQPen();
void _QPen_setStyle(void*,int);
void _QPen_setColor(void*,int,int,int);
void* createQBrush();
void _QBrush_setStyle(void*,int);
void _QBrush_setColor(void*,int,int,int);
void* createQApplication();
void destroyQApplication(void*);
int _QApplication_exec(voi... | D |
/Users/lb/Documents/Project/LearnVapor/.build/x86_64-apple-macosx10.10/debug/TemplateKit.build/AST/TemplateCustom.swift.o : /Users/lb/Documents/Project/LearnVapor/.build/checkouts/template-kit.git-6616349092713276412/Sources/TemplateKit/Data/TemplateData.swift /Users/lb/Documents/Project/LearnVapor/.build/checkouts/tem... | D |
module deimos.python.Python;
/// start symbol for evaluating a single statement.
enum int Py_single_input = 256;
/// start symbol for evaluating multiple statements.
enum int Py_file_input = 257;
/// start symbol for evaluating a single expression.
enum int Py_eval_input = 258;
version(Python_2_4_Or_Later) {
publ... | D |
func void ZS_TestHangAround ()
{
//Aktiv :
// Npc_PercEnable ( self, PERC_ASSESSENEMY , ZS_AssessEnemy );
// Npc_PercEnable ( self, PERC_ASSESSFIGHTER , B_AssessFighter );
// Npc_PercEnable ( self, PERC_ASSESSPLAYER , B_AssessSC );
// Npc_PercEnable ( self, PERC_ASSESSBODY , B_AssessBody );
// ... | D |
/**
Simplest synthesizer example.
Copyright: Guillaume Piolat 2018.
License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
*/
import std.complex;
import std.math;
import dplug.core, dplug.client, dplug.vst;
// This define entry points for plugin formats,
// depending on which version identifiers... | 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 |
/*
* Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
* Distributed under the WTFPL Public License, Version 2, December 2004
* (See license copy at http://www.wtfpl.net/txt/copying)
*/
module tut_03_matrices;
/**
D2 Port of:
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-3-... | D |
module windows.netshell;
public import system;
public import windows.systemservices;
extern(Windows):
enum NS_CMD_FLAGS
{
CMD_FLAG_PRIVATE = 1,
CMD_FLAG_INTERACTIVE = 2,
CMD_FLAG_LOCAL = 8,
CMD_FLAG_ONLINE = 16,
CMD_FLAG_HIDDEN = 32,
CMD_FLAG_LIMIT_MASK = 65535,
CMD_FLAG_PRIORITY = -21474... | D |
module android.java.android.graphics.drawable.AnimatedImageDrawable;
public import android.java.android.graphics.drawable.AnimatedImageDrawable_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!AnimatedImageDrawable;
import import13 = android.java.android.graphics.drawable.Drawable;
import impor... | D |
instance EBR_106_BARTHOLO(NPC_DEFAULT)
{
name[0] = "Бартоло";
npctype = NPCTYPE_MAIN;
guild = GIL_EBR;
level = 70;
voice = 12;
id = 106;
flags = NPC_FLAG_IMMORTAL;
attribute[ATR_STRENGTH] = 65;
attribute[ATR_DEXTERITY] = 60;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX]... | D |
module cef;
import core.runtime;
import core.sys.windows.windows;
import std.string;
//pragma(lib, "libcef.lib");
struct cef_command_line_t {}
struct cef_scheme_registrar_t {}
struct cef_resource_bundle_handler_t {}
struct cef_browser_process_handler_t {}
struct cef_render_process_handler_t {}
struct cef_context_men... | D |
instance PIR_1354_Addon_Henry(Npc_Default)
{
name[0] = "Генри";
guild = GIL_PIR;
id = 1354;
voice = 4;
flags = FALSE;
npcType = npctype_main;
aivar[AIV_NewsOverride] = TRUE;
B_SetAttributesToChapter(self,5);
fight_tactic = FAI_HUMAN_STRONG;
EquipItem(self,ItMw_Krummschwert);
B_SetNpcVisual(self,MALE,"Hum_He... | D |
module bulletml.data.speed;
public import bulletml.data.change;
public import bulletml.data.expression;
public struct Speed {
public:
ChangeType type;
Expression change;
private:
public static Speed opCall() {
Speed s;
s.type = ChangeType.ABSOLUTE;
return s;
}
}
| D |
// Written in the D programming language
/**
* Elementary mathematical functions.
*
* The functionality closely follows the IEEE754-2008 standard for
* floating-point arithmetic, including the use of camelCase names rather
* than C99-style lower case names. All of these functions behave correctly
* when presented... | D |
/*
Copyright 2016 HaCk3D, substanceof
https://github.com/HaCk3Dq
https://github.com/substanceof
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 ... | 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, a... | D |
// This file is part of Visual D
//
// Visual D integrates the D programming language into Visual Studio
// Copyright (c) 2010 by Rainer Schuetze, All Rights Reserved
//
// 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... | D |
import std.stdio;
import std.string;
import bindbc.sdl;
void init() {
SDL_Init(SDL_INIT_VIDEO);
auto window = SDL_CreateWindow(
toStringz("This is a test."),
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
500,
500,
SDL_WINDOW_OPENGL);
if (window == null) {
writeln(... | D |
/*
* Copyright (c) 2004-2006 Derelict Developers
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice... | D |
/*
* 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 |
/**
* D header file for C99.
*
* $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_stdio.h.html, _stdio.h)
*
* Copyright: Copyright Sean Kelly 2005 - 2009.
* License: Distributed under the
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
* (See accompan... | 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 |
module http.protocol.Date;
import std.datetime;
import std.string : format;
import dlog.Logger;
private immutable string[] days = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
private immutable string[] months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
private enum rf... | D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
void main()
{
auto N = readln.chomp.to!int;
long max_s = long.min;
foreach (_; 0..N) {
auto wh = readln.split.to!(long[]);
max_s = max(max_s, wh[0] + wh[1]);
}
writeln(max_s);
} | D |
/Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/Objects-normal/x86_64/NVActivityIndicatorAnimationLineScalePulseOut.o : /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/... | D |
module defaults;
import dsfml.graphics : Font, Vector2, Vector2f;
private Font defFont;
enum Vector2f xproj = Vector2f(1,0), yproj = Vector2f(0,1);
unittest {
Vector2f tmp = Vector2f(5,5);
assert(tmp.mult(xproj) == Vector2f(5,0));
assert(tmp.mult(yproj) == Vector2f(0,5));
}
Vector2!T1 mult(T1, T2)(Vector... | D |
Ddoc
$(COZUM_BOLUMU Variables)
---
import std.stdio;
void main() {
int amount = 20;
double rate = 2.11;
writeln("I have exchanged ", amount,
" Euros at the rate of ", rate);
}
---
Macros:
TITLE=Variables Solutions
DESCRIPTION=Programming in D exercise solutions: variables
... | 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="model.profile.notation#_oAJU8I... | D |
/Users/oslo/code/swift_vapor_server/.build/debug/JSON.build/JSONRepresentable.swift.o : /Users/oslo/code/swift_vapor_server/Packages/JSON-1.0.6/Sources/JSON/File.swift /Users/oslo/code/swift_vapor_server/Packages/JSON-1.0.6/Sources/JSON/JSON+Bytes.swift /Users/oslo/code/swift_vapor_server/Packages/JSON-1.0.6/Sources/JS... | D |
import std.stdio;
import std.conv;
import std.algorithm;
import std.array : array;
void main() {
alias strToInt = map!(to!int);
int[] l = strToInt(stdin.byLineCopy().array()).array();
int steps = 0;
int position = 0;
int inputLength = cast(int)l.length;
while (position < inputLength) ... | D |
module test.ell1;
import test.helper;
@("compile left-recursion.eag")
unittest
{
with (sandbox)
{
run!"./epsilon example/left-recursion.eag --output-directory %s"(directory)
.shouldFail("left recursion");
}
}
| D |
module utils.model;
import utils.shader;
import std.stdio, std.algorithm, std.range, std.file, std.string, std.json, std.conv, std.math;
alias float[3] Vec3;
Vec3 rotate(Vec3 base, float d) {
return [base[0] * cos(d) - base[1] * sin(d), base[0] * sin(d) + base[1] * cos(d), base[2]];
}
Vec3 scale(Vec3 base, Vec3 ... | D |
module ui.Window;
import ui.Control;
class Window : Control {
import std.typecons : Tuple;
import std.string : toStringz;
protected uiWindow* _window;
mixin EventListenerMixin!("OnPositionChanged", Window);
mixin EventListenerMixin!("OnContentSizeChanged", Window);
mixin EventListenerMixin!... | D |
/**
* D header file for DragonFlyBSD.
*
* Authors: Diederik de Groot(port:DragonFlyBSD)
* Copied: From core/sys/freebsd/sys
*/
module core.sys.dragonflybsd.sys.elf32;
version (DragonFlyBSD):
extern (C):
import core.stdc.stdint;
public import core.sys.dragonflybsd.sys.elf_common;
alias uint64_t ... | D |
// REQUIRED_ARGS:
version (D_SIMD)
{
import core.simd;
import core.stdc.string;
import std.stdio;
alias TypeTuple(T...) = T;
/*****************************************/
void test1()
{
void16 v1 = void,v2 = void;
byte16 b;
v2 = b;
v1 = v2;
static assert(!__traits(compiles, v1 + v2));
static ... | D |
/** Memory management. The code in this module is borrowed from David Simcha's
$(LINK2 http://www.dsource.org/projects/dstats/,dstats) project,
specifically the dstats.alloc module.
Authors: David Simcha
License: Boost License 1.0
*/
// Adapted for SciD by Lars T. Kyllingstad
module scid.core.me... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.