code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
// Copyright © 2011, Jakob Bornecrantz. All rights reserved.
// See copyright notice in src/charge/charge.d (GPLv2 only).
/**
* Source file for Sphere.
*/
module charge.phy.sphere;
import charge.math.movable;
import charge.phy.ode;
import charge.phy.actor;
import charge.phy.world;
class Sphere : Body
{
this(Wor... | D |
func void ZS_Dead ()
{
PrintDebugNpc (PD_ZS_FRAME, "ZS_Dead" );
PrintGlobals (PD_ZS_CHECK);
C_ZSInit();
self.aivar[AIV_PLUNDERED] = FALSE;
//-------- Textausgabe --------
if Npc_IsPlayer (self)
{
var string msg;
var int random;
random = Hlp_Random(13);
if (random == 0 ) { msg = _STR_MESSAGE_DEATH0 ... | D |
// This source code is in the public domain.
// Cairo: Draw a Curve
import std.stdio;
import std.conv;
import gtk.MainWindow;
import gtk.Main;
import gtk.Box;
import gtk.Widget;
import gtk.DrawingArea;
import gdk.Event;
import glib.Timeout;
import cairo.Context;
void main(string[] args)
{
TestRigWindow testRigW... | D |
/**
Inductive push constructor module.
*/
module poet.inductive.push_constructor;
import std.algorithm : map;
import std.range : array, enumerate;
import std.typecons : rebindable;
import poet.context : Context, Variable;
import poet.fun : DefineFunctionMode, funType, FunctionType;
import poet.inductive.type : Induct... | D |
/home/ryhig/Programming/Rust/pong_game/target/debug/build/miniz-sys-9945a6849043e2b8/build_script_build-9945a6849043e2b8: /home/ryhig/.cargo/registry/src/github.com-1ecc6299db9ec823/miniz-sys-0.1.10/build.rs
/home/ryhig/Programming/Rust/pong_game/target/debug/build/miniz-sys-9945a6849043e2b8/build_script_build-9945a68... | D |
// PERMUTE_ARGS:
// REQUIRED_ARGS: -D -Ddtest_results/compilable -o-
// POST_SCRIPT: compilable/extra-files/ddocAny-postscript.sh 10
// 294
/// The foo
struct Foo(T) { }
/// ditto
struct Foo(T,U) { }
/** This basic case doesn't work very well. The template signature is
* documented twice, but the function signatur... | D |
/run/media/andreby/Docs/GithubCodes/learn_rust/actix-demo/target/debug/deps/time-d7d74a1663ce2c98.rmeta: /run/media/andreby/Docs/GithubCodes/learn_rust/actix-demo/~/.cargo/registry/src/github.com-1ecc6299db9ec823/time-0.1.42/src/lib.rs /run/media/andreby/Docs/GithubCodes/learn_rust/actix-demo/~/.cargo/registry/src/gith... | D |
// Copyright Ferdinand Majerech 2011 - 2012.
// 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)
///Exceptions thrown by D:GameVFS and exception related code.
module dgamevfs.exceptions;
imp... | D |
INSTANCE Info_Mod_Demonlord_IR_Hi (C_INFO)
{
npc = Monster_11053_Demonlord_IR;
nr = 1;
condition = Info_Mod_Demonlord_IR_Hi_Condition;
information = Info_Mod_Demonlord_IR_Hi_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Demonlord_IR_Hi_Condition()
{
return 1;
};
FUNC VOID Info_Mod_Demonlord_IR_Hi_... | D |
/**
* Varargs implementation for the AArch64 Procedure Call Standard (not followed by Apple).
* Used by core.stdc.stdarg and core.vararg.
*
* Reference: https://github.com/ARM-software/abi-aa/blob/master/aapcs64/aapcs64.rst#appendix-variable-argument-lists
*
* Copyright: Copyright Digital Mars 2020 - 2020.
* Lic... | D |
/Users/carytsai/Documents/Sixdegrees_Ios_V2/DerivedData/Sixdegrees_Ios_V2/Build/Intermediates.noindex/Sixdegrees_Ios_V2.build/Debug-iphonesimulator/Sixdegrees_Ios_V2.build/Objects-normal/x86_64/NewsListTableViewControllerVC.o : /Users/carytsai/Documents/Sixdegrees_Ios_V2/Sixdegrees_Ios_V2/ViewController/MainStoryBoard/... | D |
import std.process;
import std.stdio;
/**
* name
*/
class Clock
{
int hour,minute,sec;
this(int h,int m,int s)
{
this.hour=h;
this.minute=m;
this.sec=s;
}
void writes(){
writeln(this.hour,",",this.minute,",",this.sec);
}
}
class AlarmClock : Clock
{
bool isalarm;
this(int h,int m,int s,bool alarm)
... | D |
/Users/mu/Hello/.build/x86_64-apple-macosx/debug/NIO.build/ByteBuffer-core.swift.o : /Users/mu/Hello/.build/checkouts/swift-nio/Sources/NIO/IO.swift /Users/mu/Hello/.build/checkouts/swift-nio/Sources/NIO/NonBlockingFileIO.swift /Users/mu/Hello/.build/checkouts/swift-nio/Sources/NIO/IOData.swift /Users/mu/Hello/.build/c... | D |
/**
* Part of the D programming language runtime library.
*/
/*
* Copyright (C) 2004-2006 by Digital Mars, www.digitalmars.com
* Written by Walter Bright
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
... | D |
/**
* CTFE for expressions involving pointers, slices, array concatenation etc.
*
* Copyright: Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 https://www.digitalmars.com, Walter Bright)
* License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1... | D |
module android.java.android.media.NotProvisionedException;
public import android.java.android.media.NotProvisionedException_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!NotProvisionedException;
import import4 = android.java.java.lang.Class;
import import3 = android.java.java.lang.StackTrace... | D |
/Users/MohamedNawar/Desktop/Task/build/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/ImageTransition.o : /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/Utility/String+MD5.swift /Users/MohamedNawar/Desktop/Task/Pods/Kingfisher/Sources/General/Deprecated.swift /Users/MohamedNawar/Deskt... | D |
// https://issues.dlang.org/show_bug.cgi?id=8150: nothrow check doesn't work for constructor
/*
TEST_OUTPUT:
---
fail_compilation/bug8150a.d(14): Error: `object.Exception` is thrown but not caught
fail_compilation/bug8150a.d(12): Error: `nothrow` constructor `bug8150a.Foo.this` may throw
---
*/
struct Foo
{
this(i... | D |
module deadcode.edit.language;
import deadcode.edit.bufferview;
import std.algorithm;
import std.array;
import std.functional; // : unaryFun, binaryFun;
import std.range;
auto findByValue(alias pred, R)(R haystack)
//if (is(typeof(find!pred(haystack))))
//if (isInputRange!R)// &&
//is (typeof(unary... | D |
func void b_assessfollow_vamp()
{
if (Hlp_GetInstanceID (self) == Hlp_GetInstanceID (DiegoOW))
{
if ((Npc_GetDistToNpc (self, hero) < self.aivar[AIV_FollowDist]) && (self.aivar[AIV_TAPOSITION] == FALSE))
{
Npc_ClearAIQueue (self);
AI_Standup (self);
self.aivar[AIV_TAPOSITION] = TRUE;
}
else if (C_Di... | D |
void main() { runSolver(); }
void problem() {
auto N = scan!long;
auto K = scan!long;
auto F = scan!long(2 * N).chunks(2).array;
auto solve() {
long ans;
long prev;
foreach(f; F.sort!"a[0] < b[0]") {
const dist = f[0] - prev;
if(K < dist) {
ans += K;
K = 0;
brea... | D |
// EXTRA_CPP_SOURCES: test6716.cpp
version(Windows)
{
// without main, there is no implicit reference to the runtime library
// other platforms pass the runtime library on the linker command line
version(CRuntime_Microsoft)
version(Win64)
pragma(lib, "phobos64");
else
... | 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 |
module allocation;
public import allocation.gc;
public import allocation.native;
public import allocation.region;
public import allocation.stack;
public import allocation.common;
public import allocation.freelist;
__gshared static Mallocator GlobalAllocator;
private static RegionAllocator p_scratch_alloc;
private __... | D |
module hunt.sql.ast.SQLOrderingSpecification;
import std.uni;
import std.concurrency : initOnce;
public class SQLOrderingSpecification {
// public static SQLOrderingSpecification ASC;
// public static SQLOrderingSpecification DESC;
static SQLOrderingSpecification ASC() {
__gshar... | D |
/Users/oyo02699/apps/easycrm/easycrm-api/target/debug/deps/rocket-ac219275a6d02c9c.rmeta: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rocket-0.4.6/src/lib.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rocket-0.4.6/src/logger.rs /Users/oyo02699/.cargo/registry/s... | D |
/*
* Copyright Andrej Mitrovic 2013.
* 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 dtk.platform;
version (Windows)
{
import dtk.platform.win32.com;
import dtk.pla... | D |
/home/alansky/Dev/Parity/substrate-node-template/target/release/wbuild-runner/node-template-runtime6026107144293017368/target/x86_64-unknown-linux-gnu/release/deps/rand_chacha-3b8fe04a9906c15d.rmeta: /home/alansky/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_chacha-0.2.2/src/lib.rs /home/alansky/.cargo/registry... | D |
CHAIN
IF~Global("SanCorwin","Global",3)~THEN BDCORWIJ Corwiheal1
~In times like these it is good to have comrads who can repair and not only destroy.~
DO~SetGlobal("SanCorwin","Global",4)~
==CVSandrJ~Travelling with <CHARNAME> has required both my talents to a large extend.~
==BDCORWIJ~I have seen that you can be quite... | D |
updown.o: C:/PROGRA~1/MATLAB/R2015b/rtw/c/src/ext_mode/common/updown.c \
C:/Users/Eren/Desktop/ders/arduinomega2560_servocontrol_sweep_ert_rtw/rtwtypes.h \
C:/PROGRA~1/MATLAB/R2015b/simulink/include/rtw_extmode.h \
C:/PROGRA~1/MATLAB/R2015b/simulink/include/sysran_types.h \
C:/PROGRA~1/MATLAB/R2015b/rtw/c/src/ext_m... | D |
/Users/ofirkariv/Desktop/School/160418/Final_Project/Build/Intermediates.noindex/Final_Project.build/Debug-iphonesimulator/Final_Project.build/Objects-normal/x86_64/LocalFileStore.o : /Users/ofirkariv/Desktop/School/160418/Final_Project/Final_Project/Controller/MapVC.swift /Users/ofirkariv/Desktop/School/160418/Final_P... | D |
/*#D*/
// Copyright © 2010-2017, Bernard Helyer. All rights reserved.
// See copyright notice in src/volt/license.d (BOOST ver. 1.0).
module volt.token.lexer;
import core.c.time : time, localtime;
import watt.text.ascii : isDigit, isAlpha, isWhite;
import watt.text.format : format;
import watt.text.string : indexOf,... | D |
module ast.tenth;
import ast.base, ast.types;
import tools.base: This, This_fn, rmSpace;
class TenthException : Exception {
this(string s) { super("TenthException: "~s); }
}
// throw new TenthException
void tnte(T...)(T t) {
throw new TenthException(Format(t));
}
class Context {
Entity[string] defs;
Context... | D |
module android.java.android.telephony.SubscriptionInfo_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.android.graphics.Bitmap_d_interface;
import import3 = android.java.android... | D |
/Users/volchan/code/volchan/udemy/rust/blockchain/target/rls/debug/build/typenum-3a553a9021e2b9eb/build_script_main-3a553a9021e2b9eb: /Users/volchan/.cargo/registry/src/github.com-1ecc6299db9ec823/typenum-1.12.0/build/main.rs /Users/volchan/.cargo/registry/src/github.com-1ecc6299db9ec823/typenum-1.12.0/build/op.rs /Use... | D |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<!-- Mirrored from www.cospa.com/images/events/pc/pub/top_image/pub/top_image/pub/top_imag... | D |
/Users/aual/Desktop/UsersDataSwiftUI/UsersTasks/DerivedData/UsersTasks/Build/Intermediates.noindex/UsersTasks.build/Debug-iphonesimulator/UsersTasks.build/Objects-normal/x86_64/ApiService.o : /Users/aual/Desktop/UsersDataSwiftUI/UsersTasks/UsersTasks/Api/ApiService.swift /Users/aual/Desktop/UsersDataSwiftUI/UsersTasks/... | D |
module perfontain.nodes.sprite;
import std.math, std.stdio, std.range, perfontain, perfontain.math,
perfontain.nodes, perfontain.misc;
enum
{
SPR_BODY,
SPR_HEAD,
SPR_HEAD_BOTTOM,
SPR_HEAD_MIDDLE,
SPR_HEAD_TOP,
SPR_SHIELD,
SPR_WEAPON,
SPR_MAX
}
enum
{
SPR_STANDING,
SPR_MOVING,
SPR_ATTACK,
SPR_DAMAGING,
... | D |
instance DIA_Bengar_EXIT(C_Info)
{
npc = BAU_960_Bengar;
nr = 999;
condition = DIA_Bengar_EXIT_Condition;
information = DIA_Bengar_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Bengar_EXIT_Condition()
{
if(Kapitel < 3)
{
return TRUE;
};
};
func void DIA_Bengar_EXIT_Info()
{
AI_... | D |
/**
Utility definitions for socket handling.
Copyright: © 2013 RejectedSoftware e.K.
Authors: Sönke Ludwig
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
*/
module vibe.core.drivers.utils;
import std.exception;
version (Windows) {
import std.c.windows.windows;
im... | D |
module android.java.android.renderscript.ScriptIntrinsicResize_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import4 = android.java.android.renderscript.Script_LaunchOptions_d_interface;
import impo... | D |
module android.java.android.view.accessibility.CaptioningManager_CaptioningChangeListener_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.java.util.Locale_d_interface;
import im... | 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 |
import std.stdio;
import hunt.util.UnitTest;
import test.http.router.TestMatcher;
import hunt.Exceptions;
import hunt.logging;
void main()
{
// testHpackDecoder();
// **********************
// bug
// **********************
// **********************
// test.http.router.*
// **********************
testUni... | D |
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Fluent.build/Schema/ForeignKey.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/... | D |
module jtalk;
import std.stdio;
import std.string;
import std.path;
import std.file;
import std.conv;
import std.windows.charset;
extern (C) {
alias void OpenJTalk;
struct HtsVoiceFilelist {
HtsVoiceFilelist* succ;
char* path;
char* name;
}
void openjtalk_clearHTSVoiceList(OpenJTalk* oj, HtsVoiceFilelist* ... | D |
represent according to a conventional style
using artistic forms and conventions to create effects
| D |
/// Generate by tools
module net.padlocksoftware.padlock.validator.ValidatorPlugin;
import java.lang.exceptions;
public class ValidatorPlugin
{
public this()
{
implMissing();
}
}
| D |
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.build/Command/Value.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Swift3.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkout... | D |
/Users/go7hic/workspace/Github/Rust-in-action/kt/target/debug/deps/vec_map-6b5d9cec2c1d08ae.rmeta: /Users/go7hic/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/vec_map-0.8.2/src/lib.rs
/Users/go7hic/workspace/Github/Rust-in-action/kt/target/debug/deps/libvec_map-6b5d9cec2c1d08ae.rlib: /Users/go7hic/.cargo/re... | D |
extern __gshared pragma(LDC_extern_weak) int nonExistent;
bool doesNonExistentExist() {
return &nonExistent !is null;
}
void main() {
// Make sure that the frontend does not statically fold the address check
// to 'true' for weak symbols.
assert(!doesNonExistentExist());
}
| D |
/**
* Defines the exceptions that Jsonizer may throw.
*
* Authors: <a href="https://github.com/rcorre">rcorre</a>
* License: <a href="http://opensource.org/licenses/MIT">MIT</a>
* Copyright: Copyright © 2015, rcorre
* Date: 3/24/15
*/
module jsonizer.exceptions;
import std.json : JSONValue, JSONType... | D |
// Written in the D programming language.
/**
* This module implements a
* $(LINK2 http://erdani.org/publications/cuj-04-2002.html,discriminated union)
* type (a.k.a.
* $(LINK2 http://en.wikipedia.org/wiki/Tagged_union,tagged union),
* $(LINK2 http://en.wikipedia.org/wiki/Algebraic_data_type,algebraic type)).
* ... | 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 game.menu;
import atelier;
import game.scene;
void setVictory() {
removeRootGuis();
addRootGui(new VictoryGui);
}
final class VictoryGui: GuiElement {
private {
Sprite _sprite;
}
this() {
_sprite = fetch!Sprite("alice.victoire");
size = _sprite.size;
}
ov... | D |
/Users/sol369/Desktop/InstaPics/DerivedData/InstaPics/Build/Intermediates/SwiftMigration/InstaPics/Intermediates/InstaPics.build/Debug-iphonesimulator/InstaPics.build/Objects-normal/x86_64/AppDelegate.o : /Users/sol369/Desktop/InstaPics/InstaPics/FeedVC.swift /Users/sol369/Desktop/InstaPics/InstaPics/Post.swift /Users/... | D |
/*
* This file generated automatically from xv.xml by c-client.xsl using XSLT.
* Edit at your peril.
*/
/**
* @defgroup XCB_Xv_API XCB Xv API
* @brief Xv XCB Protocol Implementation.
* @{
**/
module std.c.linux.X11.xcb.xv;
import std.c.linux.X11.xcb.xcb;
import std.c.linux.X11.xcb.xproto;
import std.c.linux.... | D |
module main;
import deimos.zmq.zmq;
import core.thread;
import mwm.xrunner;
import mwm.wm;
import mwm.common;
import core.sys.posix.signal;
import core.sys.posix.sys.wait;
extern(C) void sigchld(int _) nothrow @system {
try {
while (0 < waitpid(-1, null, WNOHANG)) { }
} catch { }
}
int main()
{
if (sig... | D |
/*
* Hunt - A high-level D Programming Language Web framework that encourages rapid development and clean, pragmatic design.
*
* Copyright (C) 2015-2019, HuntLabs
*
* Website: https://www.huntlabs.net/
*
* Licensed under the Apache-2.0 License.
*
*/
module hunt.framework.websocket.AbstractWebSocketSession;
i... | D |
/Users/hskk1120551/Developer/Xcode/RecipeManager/Build/Intermediates/RecipeManagerIOS.build/Debug-iphonesimulator/RecipeManagerIOSTests.build/Objects-normal/x86_64/RecipeManagerIOSTests.o : /Users/hskk1120551/Developer/Xcode/RecipeManager/RecipeManagerIOSTests/RecipeManagerIOSTests.swift /Applications/Xcode.app/Content... | D |
// URL: https://atcoder.jp/contests/abc047/tasks/abc047_a
import std.algorithm, std.container, std.conv, std.math, std.range, std.typecons, std.stdio, std.string;
auto rdsp(){return readln.splitter;}
void pick(R,T)(ref R r,ref T t){t=r.front.to!T;r.popFront;}
void pickV(R,T...)(ref R r,ref T t){foreach(ref v;t)pick(r... | D |
/** tsv-utils version file.
*/
module tsv_utils.common.tsvutils_version;
enum string tsvutilsVersion = "v1.5.0";
string tsvutilsVersionNotice (string toolName) @safe pure nothrow
{
return toolName ~ " (eBay/tsv-utils) " ~ tsvutilsVersion ~ "\n" ~ q"EOS
Copyright (c) 2015-2020, eBay Inc.
https://github.com/eBay/... | D |
/Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/FluentSQLite.build/SQLiteFieldTypes.swift.o : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/fluent-sqlite.git--5503918280859119093/Sources/FluentSQLite/SQLiteDatabase+SchemaSupporting.swift /Users/user/Documents/RiseTimeAss... | 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 |
import core.vararg;
extern (C) int printf(const(char*) fmt, ...);
template TypeTuple(T...) { alias TypeTuple = T; }
/**********************************/
int sdtor;
struct S1
{
~this() { printf("~S()\n"); sdtor++; }
}
void test1()
{
S1* s = new S1();
delete s;
assert(sdtor == 1);
}
/*************... | D |
instance DIA_RUEN_EXIT(C_Info)
{
npc = vlk_6007_ruen;
nr = 999;
condition = dia_ruen_exit_condition;
information = dia_ruen_exit_info;
permanent = TRUE;
description = Dialog_Ende;
};
func int dia_ruen_exit_condition()
{
return TRUE;
};
func void dia_ruen_exit_info()
{
AI_StopProcessInfos(self);
};
instanc... | D |
// Copyright (c) 2014- Facebook
// License: Boost License 1.0, http://boost.org/LICENSE_1_0.txt
// @author Andrei Alexandrescu (andrei.alexandrescu@facebook.com)
import std.algorithm, std.array, std.ascii, std.conv, std.exception, std.path,
std.range, std.stdio, std.string;
import Tokenizer, FileCategories;
bool c_... | D |
import dk.dkinter;
import std.stdio;
int main(string[] args)
{
auto root=new Tk();
auto canv=new Canvas(root,800,600);
canv.line([10,10,1000,1000]);
canv.line("red",[50,500,100,100]);
canv.oval("green",50,50,70,70);
auto txt=canv.text("blue",110,150);
canv.addtag("Text","withtag",txt);
canv.pack();
... | D |
module three.gl.util;
public import derelict.opengl3.gl3;
import std.traits : ReturnType;
ReturnType!func glCheck(alias func, string file = __FILE__, size_t line = __LINE__, string mod = __MODULE__, string funcd = __FUNCTION__, string pretty = __PRETTY_FUNCTION__, Args...)(Args args) nothrow {
import std.stdio;
i... | D |
/Users/benormos/Desktop/MyFutureBox/build/Pods.build/Debug-iphonesimulator/CollectionKit.build/Objects-normal/x86_64/LayoutHelper.o : /Users/benormos/Desktop/MyFutureBox/Pods/CollectionKit/Sources/Other/CollectionReloadable.swift /Users/benormos/Desktop/MyFutureBox/Pods/CollectionKit/Sources/Extensions/Util.swift /User... | D |
// The values for this variables can be specified by the user
const int SPINE_ACHIEVEMENTORIENTATION = SPINE_BOTTOMRIGHT; // position of the achievement widget
const int SPINE_ACHIEVEMENT_DISPLAY_TIME = 5000; // show achievement for 5 seconds
const int SPINE_EARTHQUAKE_VIBRATION = TRUE; // earthquake triggers vibrati... | D |
the star that is the source of light and heat for the planets in the solar system
the rays of the sun
a person considered as a source of warmth or energy or glory etc
any star around which a planetary system revolves
first day of the week
expose one's body to the sun
expose to the rays of the sun or affect by exposure ... | 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)
*/
/* Replace line endings with LF
*/
import std.file;
import std.path;
int main(string[] args)
{
foreach (f; args[1 .. $])
{
auto ... | D |
module wx.Utils;
public import wx.common;
public import wx.Window;
//! \cond EXTERN
extern (C) ЦелУкз wxGlobal_GetHomeDir();
extern (C) ЦелУкз wxGlobal_GetCwd();
extern (C) проц wxSleep_func(цел чис);
extern (C) проц wxMilliSleep_func(бцел чис);
extern (C) проц wxMicroSleep_func(бцел чис);
extern (C) проц wxYield_func... | 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;
int[] nn, xs;
foreach (i; 1..N+1) nn ~= i;
do {
int x;
foreach (i; 0..N) {
x *= 10;
x += nn[i];
}
x... | D |
/mnt/c/Users/zeliwang/hello_world/digital_signature/target/release/deps/subtle-f29bf02eb361a275.rmeta: /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/subtle-2.1.1/src/lib.rs
/mnt/c/Users/zeliwang/hello_world/digital_signature/target/release/deps/libsubtle-f29bf02eb361a275.rlib: /home/zeliwang/... | D |
/**
* Copyright: Copyright (C) Thomas Dixon 2009. All rights reserved.
* License: BSD style: $(LICENSE)
* Authors: Thomas Dixon
*/
module tango.util.cipher.ChaCha;
private import tango.util.cipher.Cipher;
private import tango.util.cipher.Salsa20;
/** Implementation of ChaCha designed by Daniel J.... | 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.codec.impl.NullElement;
import hunt.io.ByteBuffer;
import std.conv;
import hunt.pro... | D |
// Written in the D programming language.
/**
DLANGUI library.
This module contains definition of signals / listeners.
Similar to std.signals.
Unlike std.signals, supports any types of delegates, and as well interfaces with single method.
Unlike std.signals, can support return types for slots.
Caution: unlike std... | D |
void main() { runSolver(); }
void problem() {
auto N = scan!long;
auto A = scan!string;
auto B = scan!string;
auto solve() {
if (A > B) swap(A, B);
enum long MOD = 998_244_353;
long a, b;
foreach(i; 0..N) {
long ta = A[i] > B[i] ? B[i] - '0' : A[i] - '0';
long tb = A[i] > B[i] ? A... | D |
/** inaddr.d
Converted from 'inaddr.h'.
Version: V7.0
Authors: Koji Kishita
*/
module c.windows.inaddr;
import c.windows.windef;
struct in_addr {
union {
struct {
UCHAR s_b1;
UCHAR s_b2;
UCHAR s_b3;
UCHAR s_b4;
}
struct {
USHORT s_w1;
USHORT s_w2;
}
ULONG S_addr;
}
}
alias in_addr IN... | D |
instance VLK_587_Garp(Npc_Default)
{
name[0] = "Garp";
npcType = npctype_main;
guild = GIL_VLK;
level = 5;
voice = 1;
id = 587;
attribute[ATR_STRENGTH] = 30;
attribute[ATR_DEXTERITY] = 20;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX] = 118;
attribute[ATR_HITPOINTS] = 11... | D |
module dgt.font.port.gdi;
version(Windows):
import core.sys.windows.windows;
import core.sys.windows.wingdi;
import dgt.font.library;
import dgt.font.port.ft;
import dgt.font.style;
import dgt.font.typeface;
import gfx.core.rc;
import std.exception;
import std.string;
import std.stdio;
class GdiFontLibrary : Font... | D |
func void ZS_Babe_Dance()
{
PrintDebugNpc(PD_TA_FRAME,"ZS_Babe_Dance");
AI_UnequipArmor(self);
B_SetBabeDefaultPerceptions();
AI_SetWalkMode(self,NPC_RUN);
AI_GotoWP(self,self.wp);
AI_AlignToWP(self);
};
func void ZS_Babe_Dance_Loop()
{
var int danceStyle;
PrintDebugNpc(PD_TA_LOOP,"ZS_Babe_Dance_Loop");
dance... | D |
module android.java.java.util.AbstractQueue;
public import android.java.java.util.AbstractQueue_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!AbstractQueue;
import import5 = android.java.java.util.stream.Stream;
import import2 = android.java.java.lang.Class;
import import4 = android.java.jav... | D |
/*
* timing.d
*
* This module contains the timer and code relevant to reading
* the current time.
*
*/
module architecture.timing;
import kernel.core.kprintf;
import kernel.core.error;
struct Time {
uint seconds;
uint minutes;
uint hours;
void opSubAssign(Time b) {
ulong total = inSeconds();
ulong tot... | D |
//https://rosettacode.org/wiki/Cycle_detection
import std.range;
import std.stdio;
void main() {
brent(i => (i * i + 1) % 255, 3);
}
void brent(int function(int) f, int x0) {
int cycleLength;
int hare = x0;
FOUND:
for (int power = 1; ; power *= 2) {
int tortoise = hare;
for (int i ... | D |
/**
3D Transformation. 3x4 matrix.
Copyright:
Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur.
Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md)
Copyright (c) 2017-2018 Godot-D contributors
License: $(LINK2 https://opensource.org/licenses/MIT, MIT License)
*/
module godot.core.transform;... | D |
/Users/matthieuzandecki/Documents/Rust_projects/AoC2018/target/rls/debug/build/num-integer-8f973b2bc1146b3d/build_script_build-8f973b2bc1146b3d: /Users/matthieuzandecki/.cargo/registry/src/github.com-1ecc6299db9ec823/num-integer-0.1.39/build.rs
/Users/matthieuzandecki/Documents/Rust_projects/AoC2018/target/rls/debug/b... | D |
module clang;
import clang.c.index;
import clang.c.util: EnumD;
mixin EnumD!("TranslationUnitFlags", CXTranslationUnit_Flags, "CXTranslationUnit_");
mixin EnumD!("Language", CXLanguageKind, "CXLanguage_");
TranslationUnit parse(in string fileName,
in TranslationUnitFlags translUnitflags = T... | D |
// D import file generated from '/usr/include/d/tango-dmd/tango/stdc/stdarg.d'
module tango.stdc.stdarg;
version (GNU)
{
public
{
import std.c.stdarg;
}
}
else
{
version (LDC)
{
public
{
import ldc.cstdarg;
}
}
else
{
alias void* va_list;
template va_start(T)
{
void va_start(out va_list ap, ... | D |
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/DatabaseKit.build/Database/DatabaseQueryable.swift.o : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/database-kit/Sources/DatabaseKit/Utilities/Deprecated.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootc... | D |
/* THIS FILE GENERATED BY bcd.gen */
module bcd.libxml2.xmlreader;
align(4):
public import bcd.libxml2.xmlschemas;
public import bcd.libxml2.relaxng;
public import bcd.libxml2.threads;
public import bcd.libxml2.globals;
public import bcd.libxml2.SAX2;
public import bcd.libxml2.SAX;
public import bcd.libxml2.xlink;
publ... | D |
module hunt.serialization.BinaryDeserializer;
import hunt.serialization.Common;
import hunt.serialization.Specify;
import std.traits;
import hunt.logging;
/**
*
*/
struct BinaryDeserializer {
private {
const(ubyte)[] _buffer;
}
this(ubyte[] buffer) {
this._buffer = buffer;
}
... | D |
instance Mod_7578_OUT_Brauer_REL (Npc_Default)
{
// ------ NSC ------
name = "Brauer";
guild = GIL_OUT;
id = 7578;
voice = 6;
flags = 0;
npctype = NPCTYPE_MAIN;
//-----------AIVARS----------------
aivar[AIV_ToughGuy] = TRUE;
// ------ Attribute ------
B_SetAttributesToCh... | D |
module dangar.models;
public import mongo;
public import user;
public import users;
| D |
module des.gui;
public:
import des.gui.base;
import des.gui.canvas;
import des.gui.context;
import des.gui.event;
import des.gui.layout;
import des.gui.shape;
import des.gui.widget;
import des.gui.sdlgl;
| D |
/Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Fluent.build/QueryBuilder/QueryBuilder+Model.swift.o : /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/fluent/Sources/Fluent/Model/ID.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaSup... | D |
module android.java.javax.xml.xpath.XPathException;
public import android.java.javax.xml.xpath.XPathException_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!XPathException;
import import4 = android.java.java.lang.Class;
import import3 = android.java.java.lang.StackTraceElement;
| D |
import std.traits : isIntegral;
import std.range.primitives : isOutputRange;
import std.stdio;
pure @safe @nogc nothrow {
private template upTo(T)
{
enum upTo = T.sizeof * 8UL;
}
private template minUnsignedIntegral(T)
{
static if (is(T == byte))
{
alias minUnsignedIntegral = ubyte;
}
els... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.