code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
module more.io;
import core.memory : GC;
import std.format : format;
import std.algorithm : copy;
// NOTE: this is a c std library call, but D doesn't seem to have it right now
inout(char)* strchrnul(inout(char)* str, char c)
{
for(; *str != c && *str != '\0';str++)
{
}
return str;
}... | D |
/**
* This module contains the implementation of the C++ header generation available through
* the command line switch -Hc.
*
* Copyright: Copyright (C) 1999-2020 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www... | D |
/*******************************************************************************
* Main entry point for ncurses
*
* Provides functions to initialize and deinitialize the main windows.
* This would be done as static this()/static ~this(), but we need to
* have the ability to exit ncurses mode and reenter it later.
... | D |
a long stout staff used as a weapon
| D |
module jobs.jobTypes.setKey;
import jobs.Job;
import jobs.jobTypes.KeyValues.KeyValue;
class setKey : Job
{
string keyName;
KeyValue keyValue;
this(string keyName, KeyValue keyValue)
{
super("setKey");
this.keyName = keyName;
this.keyValue = keyValue;
}
}
| D |
instance KDW_605_Riordian(Npc_Default)
{
name[0] = "Riordian";
npcType = npctype_friend;
guild = GIL_KDW;
level = 25;
voice = 14;
id = 605;
flags = NPC_FLAG_IMMORTAL;
attribute[ATR_STRENGTH] = 65;
attribute[ATR_DEXTERITY] = 45;
attribute[ATR_MANA_MAX] = 106;
attribute[ATR_MANA] = 106;
attribute[ATR_HITPOINT... | 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 |
// 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 |
/Users/techmaster/Downloads/animationWithQueue-master/Build/Intermediates/DemoAnimation.build/Debug-iphonesimulator/DemoAnimation.build/Objects-normal/x86_64/Utils.o : /Users/techmaster/Downloads/animationWithQueue-master/Queue.swift /Users/techmaster/Downloads/animationWithQueue-master/DemoAnimation/Dynamic.swift /Use... | D |
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution... | D |
/Users/taharahiroki/Documents/GitHub/Enigma_Bitcoin_proto/bip32_proto/target/debug/build/proc-macro2-78620e4567a52b77/build_script_build-78620e4567a52b77: /Users/taharahiroki/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-1.0.6/build.rs
/Users/taharahiroki/Documents/GitHub/Enigma_Bitcoin_proto/bip32_proto... | D |
/******************************************************************************
This module contains internal implementation of the instance object.
License:
Copyright (c) 2008 Jarrett Billingsley
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held l... | D |
/Users/macosx/Desktop/TestNetWorkLayer/build/TestNetWorkLayer.build/Debug-iphonesimulator/TestNetWorkLayerTests.build/Objects-normal/x86_64/TestNetWorkLayerTests.o : /Users/macosx/Desktop/TestNetWorkLayer/TestNetWorkLayerTests/TestNetWorkLayerTests.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimula... | D |
/Users/in2macbookpro/Documents/Ivan/WebServiceTest/build/WebServiceTest.build/Release-iphoneos/WebServiceTest.build/Objects-normal/arm64/UIDataCell.o : /Users/in2macbookpro/Documents/Ivan/WebServiceTest/WebServiceTest/DPTableData.swift /Users/in2macbookpro/Documents/Ivan/WebServiceTest/WebServiceTest/UICommentsTableVie... | 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 |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1984-1998 by Symantec
* Copyright (C) 2000-2018 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: ... | D |
module hunt.wechat.bean.media.MediaGetResult;
import hunt.wechat.bean.BaseResult;
class MediaGetResult : BaseResult{
private string filename;
private string contentType;
private byte[] bytes;
private string video_url; //如果返回的是视频消息素材
public string getFilename() {
return filename;
}
... | D |
module jobs.executor;
| D |
/Users/deepapatil/Desktop/Heady_Assignment/iOS/Heady/build/Heady.build/Debug-iphonesimulator/Heady.build/Objects-normal/x86_64/Heady+CoreDataModel.o : /Users/deepapatil/Desktop/Heady_Assignment/iOS/Heady/Heady/Categories/Wireframe/CategoryListWireFrame.swift /Users/deepapatil/Desktop/Heady_Assignment/iOS/Heady/Heady/Co... | D |
/* TODO:
*
* - Minimap / info window
* - Configurable keys
* - File packing / image loading (load all images)
* - About
* - Window decorations
* - I18N
* - city earth
* - save city on exit
* - initial screen, region
* - documentation
* - save current configurations
*/
module gui.defaultgui... | D |
/home/yudjinn/Documents/Projects/rust-learning/guessing_game/target/debug/deps/rand_core-a082a0b66c2e366b.rmeta: /home/yudjinn/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.3.1/src/lib.rs
/home/yudjinn/Documents/Projects/rust-learning/guessing_game/target/debug/deps/librand_core-a082a0b66c2e366b.rlib: /h... | D |
module nuklear;
public import
core.stdc.stdarg,
core.stdc.config;
extern(C):
/* int nk_strmatch_fuzzy_string(char const *str, char const *pattern, int *out_score); */
/* int nk_textedit_paste(struct nk_text_edit*, char const*, int len); */
static immutable NK_VERTEX_LAYOUT_END = nk_draw_vertex_layout_eleme... | D |
#!/usr/bin/env rund
//!env CC=c++
//!version MARS
//!importPath ../../dmd/src
//!importFilenamePath ../../dmd/res
//!importFilenamePath ../../dmd/generated/linux/release/64
//!library ../../dmd/generated/linux/release/64/newdelete.o
//!library ../../dmd/generated/linux/release/64/backend.a
//!library ../../dmd/generate... | D |
module godot.polygon2d;
import std.meta : AliasSeq, staticIndexOf;
import std.traits : Unqual;
import godot.d.meta;
import godot.core;
import godot.c;
import godot.d.bind;
import godot.object;
import godot.classdb;
import godot.node2d;
import godot.texture;
@GodotBaseClass struct Polygon2D
{
static immutable string _G... | D |
/home/sky/Workshop/solana-app/target/bpfel-unknown-unknown/release/deps/cfg_if-b1a813859962081f.rmeta: /home/sky/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-1.0.0/src/lib.rs
/home/sky/Workshop/solana-app/target/bpfel-unknown-unknown/release/deps/libcfg_if-b1a813859962081f.rlib: /home/sky/.cargo/registry/src... | D |
/home/gambl3r/Rust/telegrambotdev/BotDev/target/rls/debug/build/serde-27df1f8e6eb9b120/build_script_build-27df1f8e6eb9b120: /home/gambl3r/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.125/build.rs
/home/gambl3r/Rust/telegrambotdev/BotDev/target/rls/debug/build/serde-27df1f8e6eb9b120/build_script_build-27df... | D |
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE
4.5 80.5 11.8999996 29 8 9 35.7000008 -106.5 304 14.1999998 14.1999998 1 extrusives, basalts, rhyolites
275.5 83.5999985 0 0 0 20 46.7999992 -90.6999969 5904 3.4000001 3.4000001 0.4 sediments
45.2999992 81.0999985 12.8999996 51.9000015 14 17 45.... | D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container;
struct BITree(alias _fun, alias E, T)
if (is(typeof(E) : T))
{
import std.functional : binaryFun;
alias OP = binaryFun!_fun;
///
this(size_t n, T[] ts) {
this.n = n;
th... | 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_15_BeT-4226597... | D |
module runme;
import tango.io.Stdout;
static import example;
void main() {
/*
* Call our gcd() function.
*/
int x = 42;
int y = 105;
int g = example.gcd( x, y );
Stdout.format( "The gcd of {} and {} is {}.", x, y, g ).newline;
/*
* Manipulate the Foo global variable.
*/
// Output its curre... | D |
module org.serviio.library.playlist.ParsedPlaylist;
import java.lang.String;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.serviio.library.playlist.PlaylistItem;
public class ParsedPlaylist
{
private String title;
private List!(PlaylistItem) items;
public thi... | D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
void main()
{
readln;
int[long] MEMO;
foreach (a; readln.split.to!(long[])) {
while (a%2 == 0) a /= 2;
MEMO[a] = 1;
}
int r;
foreach (_; MEMO) ++r;
writeln(r);
} | D |
module android.java.android.view.textclassifier.TextClassifier_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.android.view.textclassifier.TextSelection_Request_d_interface;
imp... | D |
module hunt.redis;
import java.io.Closeable;
import hunt.collection.ArraryList;
import hunt.collection.List;
import hunt.redis.exceptions.RedisDataException;
/**
* Transaction is nearly identical to Pipeline, only differences are the multi/discard behaviors
*/
public class Transaction extends MultiKeyPipelineBase ... | D |
module UnrealScript.Engine.InterpTrackInstMove;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.Engine.InterpTrackInst;
import UnrealScript.Core.UObject;
extern(C++) interface InterpTrackInstMove : InterpTrackInst
{
public extern(D):
private static __gshared ScriptClass mStaticClass;... | D |
/Users/seijiro/work/rust/20191110/201912/webapi/target/debug/deps/string-a0b2768ac078a4a9.rmeta: /Users/seijiro/.cargo/registry/src/github.com-1ecc6299db9ec823/string-0.2.1/src/lib.rs
/Users/seijiro/work/rust/20191110/201912/webapi/target/debug/deps/string-a0b2768ac078a4a9.d: /Users/seijiro/.cargo/registry/src/github.... | D |
# FIXED
F2837xD_EPwm.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/source/F2837xD_EPwm.c
F2837xD_EPwm.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_device.h
F2837xD_EPwm.obj: C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_20.12.0.STS/include/assert.h
F2837xD_EPwm.obj... | D |
/**
Relative Strength Index.
http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:relative_strength_index_rsi
*/
module crypto.exchanges.indicators.rsi;
import crypto.exchanges.indicators.base;
import crypto.exchanges.indicators.smma;
/// Relative Strength Index Indicator.
class RSI :... | D |
a person working in the service of another (especially in the household)
in a subordinate position
| D |
import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop;
immutable long INF = 10L ^^ 18 + 1000;
void main() {
auto S = readln.chomp;
auto N = S.length.to!int;
auto K = readln.chomp.to!... | D |
module D;
import A;
import B;
void test()
{
//foo(); // error, A.foo() or B.foo() ?
A.foo(); // ok, call A.foo()
B.foo(); // ok, call B.foo()
}
| D |
/Users/andre/Devel/rust_project/rust_from_python/target/release/deps/libindoc_impl-427e4191f5066e6c.dylib: /Users/andre/.cargo/registry/src/github.com-1ecc6299db9ec823/indoc-impl-0.3.6/src/lib.rs
/Users/andre/Devel/rust_project/rust_from_python/target/release/deps/indoc_impl-427e4191f5066e6c.d: /Users/andre/.cargo/reg... | D |
/home/hustccc/OS_Tutorial_Summer_of_Code/rCore_Labs/Lab4/os/target/debug/build/log-a2da96f803a2c8ca/build_script_build-a2da96f803a2c8ca: /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/log-0.4.8/build.rs
/home/hustccc/OS_Tutorial_Summer_of_Code/rCore_Labs/Lab4/os/target/debug/build/log-a2da96f80... | 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 BDT_1031_Fluechtling(Npc_Default)
{
name[0] = NAME_Fluechtling;
guild = GIL_BDT;
id = 1031;
voice = 7;
flags = 0;
npcType = npctype_main;
aivar[AIV_EnemyOverride] = TRUE;
B_SetAttributesToChapter(self,3);
fight_tactic = FAI_HUMAN_STRONG;
EquipItem(self,ItMw_1h_Sld_Sword_New);
B_CreateAmbientInv(sel... | D |
instance Mod_1552_SKE_Skelett_DI2 (Npc_Default)
{
// ------ NSC ------
name = "Sprechender Zombie";
guild = GIL_zombie;
id = 1552;
voice = 0;
flags = 2;
level = 34;
// ------ Attribute ------
attribute [ATR_STRENGTH] = 100; //+50 Waffe
attribute [ATR_DEXTERITY] = 150;
attribute [ATR_HITP... | D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1999-2019 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 |
// EXTRA_SOURCES: imports/test45a.d imports/test45b.d
// PERMUTE_ARGS:
import imports.test45a;
import imports.test45b;
alias int function() fp1;
alias int function(int) fp2;
void main()
{
auto i = foo();
assert(i == 1);
i = foo(1);
assert(i == 2);
i = foo;
assert(i == 1);
fp1 fp = &foo;
... | D |
/**
MongoCollection class
Copyright: © 2012-2016 RejectedSoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module vibe.db.mongo.collection;
public import vibe.db.mongo.cursor;
public import vibe.db.mongo.connection;
public import ... | D |
module gtkD.gdk.Device;
public import gtkD.gtkc.gdktypes;
private import gtkD.gtkc.gdk;
private import gtkD.glib.ConstructionException;
private import gtkD.glib.ListG;
private import gtkD.gdk.Window;
/**
* Description
* In addition to the normal keyboard and mouse input devices, GTK+ also
* contains support... | D |
/**
* Defines a `Dsymbol` representing an aggregate, which is a `struct`, `union` or `class`.
*
* Specification: $(LINK2 https://dlang.org/spec/struct.html, Structs, Unions),
* $(LINK2 https://dlang.org/spec/class.html, Class).
*
* Copyright: Copyright (C) 1999-2023 by The D Language Foundation, ... | D |
import std.algorithm;
import std.conv;
import std.datetime;
import std.format;
import std.range;
import std.stdio;
import std.string;
import std.socket;
import std.uni;
import core.thread;
import dfio;
import http.parser.core;
string dayAsString(DayOfWeek day) {
final switch(day) with(DayOfWeek) {
case mo... | D |
instance Mod_1328_PSINOV_Novize_MT (Npc_Default)
{
//-------- primary data --------
name = Name_Novize;
Npctype = Npctype_mt_sumpfnovize;
guild = GIL_out;
level = 3;
voice = 0;
id = 1328;
//-------- abilities --------
attribute[ATR_STRENGTH] = 10;
attribute[ATR_DEXTERITY] = 10;
attri... | D |
/**
* The thread module provides support for thread creation and management.
*
* Copyright: Copyright Sean Kelly 2005 - 2012.
* License: Distributed under the
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
* (See accompanying file LICENSE)
* Authors: Sean Kelly, Walter Bri... | D |
/Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/.build/debug/MySQL.build/Field+Variant.swift.o : /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQL-1.1.2/Sources/MySQL/Bind+Node.swift /Users/okasho/serverProject/tryswift/get_post_patch_and_delate/swift/Packages/MySQ... | D |
/home/naufil/Desktop/rust_github/hello/target/debug/deps/hello-4b7e670e43d5b4cf: src/main.rs
/home/naufil/Desktop/rust_github/hello/target/debug/deps/hello-4b7e670e43d5b4cf.d: src/main.rs
src/main.rs:
| D |
module discord.w.data;
import discord.w.types;
import discord.w.cache;
import std.array;
import std.algorithm;
import std.typecons;
struct GuildUserCache
{
Snowflake[2] guildUserID;
Snowflake[] roles;
Nullable!Activity game;
SafeTime joinDate;
PresenceUpdate.Status status;
bool deaf, mute;
string nick;
Role... | D |
/**
* Windows is a registered trademark of Microsoft Corporation in the United
* States and other countries.
*
* Copyright: Copyright Digital Mars 2000 - 2009.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Walter Bright, Sean Kelly, Alex Rønne Petersen
*/
/* ... | D |
module mysql.mysql;
import mysql.binding;
public import mysql.mysql_result;
public import mysql.mysql_row;
import mysql.query_interface;
import std.stdio;
import std.exception;
import std.typecons;
class MysqlDatabaseException : Exception {
this(string msg, string file = __FILE__, size_t line = __LINE__) {
... | D |
module engine.core.containers.stack;
import engine.core.containers.slist;
alias Stack = SStack;
struct SStack( T ) {
private:
SList!T lelements;
public:
void push( T elem ) {
lelements.insertFront( elem );
}
T pop() {
T value;
if ( lelements.length > 0 ) {
... | D |
// PERMUTE_ARGS:
// EXTRA_FILES: imports/testmangle.d
/*
TEST_OUTPUT:
---
_D7imports10testmangle12detectMangleFPSQBlQBg6DetectZQq
_D7imports10testmangle__T10DetectTmplTiZQpFNaNbNiNfZv
true
false
---
*/
module link6574;
import imports.testmangle;
enum Method { A, B, }
@safe @nogc pure nothrow:
enum FZi = "FNaNbNiNfZ... | D |
/*******************************************************************************
copyright: Copyright (c) 2008 Kris Bell. все rights reserved
license: BSD стиль: $(LICENSE)
version: Initial release: April 2008
author: Kris
... | D |
module gold.lexer.issue77;
import std.stdio;
/**/
/*
/*
*/
/*
//*/
/*/*/
void main(string[] args){
}
| D |
/home/martogod/RustProgramms/QuestGiverRustGame/target/debug/build/num-complex-9a322b1492549fae/build_script_build-9a322b1492549fae: /home/martogod/.cargo/registry/src/github.com-1ecc6299db9ec823/num-complex-0.2.4/build.rs
/home/martogod/RustProgramms/QuestGiverRustGame/target/debug/build/num-complex-9a322b1492549fae/... | D |
module tango.stdc.math;
pragma(lib, "rulada.lib");
public import rt.core.stdc.math; | D |
module bass.error;
import std.string;
class BASSError : object.Exception
{
this(char[] s)
{
super(s);
}
}
char[] BASSErrorString(int errCode)
{
switch(errCode)
{
case 0: return "BASS_OK";
case 1: return "BASS_ERROR_MEM";
case 2: return "BASS_ERROR_FILEOPEN";
... | D |
/workspaces/競技プログラミング/AtCoder/本番/AHC/AHC001/ded8fd3366b4ff0b0d7d053f553cdb84/tools/target/rls/debug/build/proc-macro2-86543a6b4391c4a5/build_script_build-86543a6b4391c4a5: /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.30/build.rs
/workspaces/競技プログラミング/AtCoder/本番/AHC/AHC001/ded8fd3366b4ff0b0... | D |
instance TPL_1447_TEMPLER(NPC_DEFAULT)
{
name[0] = NAME_MADTEMPLAR;
npctype = NPCTYPE_GUARD;
guild = GIL_GUR;
level = 50;
voice = 8;
id = 1447;
attribute[ATR_STRENGTH] = 70;
attribute[ATR_DEXTERITY] = 65;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX] = 250;
attribute[AT... | D |
import engine;
import global;
struct OMChar {
dchar value;
this ( dchar value_ ) {
value = value_;
}
}
struct OMOutString {
string value;
bool newline;
this ( string value_, bool newline_ = false ) {
value = value_;
newline = newline_;
}
this ( OMChar[] chars, bool newline_ = false ) {
... | D |
module sevion.ad;
import sevion.schema: IAdItem;
struct Ad
{
IAdItem item;
bool isPublished;
int id;
int addedOn;
int expireOn;
int priority;
this(IAdItem itemValue)
{
item = itemValue;
}
} | D |
/Users/nikolay/Documents/FolderWorkSwift/NotebookAnimal/DerivedData/NotebookAnimal/Build/Intermediates/NotebookAnimal.build/Debug-iphonesimulator/NotebookAnimal.build/Objects-normal/x86_64/iCloudNotebookPetTableViewControllerTableViewController.o : /Users/nikolay/Documents/FolderWorkSwift/NotebookAnimal/NotebookAnimal/... | D |
static foreach (thing; things){pragma(msg,thing);}
static foreach_reverse (thing; things){pragma(msg,thing);}
static foreach (thing; things) pragma(msg,thing);
static foreach_reverse (thing; things) pragma(msg,thing); | D |
/*
* FTGL - OpenGL font library
*
* Copyright (c) 2001-2004 Henry Maddocks <ftgl@opengl.geek.nz>
* Copyright (c) 2008 Sam Hocevar <sam@zoy.org>
* Copyright (c) 2008 Sean Morrison <learner@brlcad.org>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associat... | D |
module dopt.core.cuda.nnet.cudnn5;
import std.algorithm;
import std.array;
import std.functional;
import dopt.core.cuda;
import dopt.core.ops;
import derelict.cuda;
import derelict.cudnn5;
package
{
void initializeCuDNN5()
{
DerelictCuDNN5.load();
registerCUDAKernel("convolution", t... | D |
import std.stdio;
import std.math;
import std.algorithm;
import std.conv;
import std.bigint;
bool divisible(ulong a, ulong b)
{
return (a % b) == 0;
}
ulong[] divisors(ulong n)
{
auto pf = primeFactors(n);
ulong[] res = [1u];
for (int i = 0; i < pf.length; ++i)
{
auto cpy = res.dup;
... | D |
/home/jannes/work/rust/rust_test1/com1/target/debug/deps/com1-e51087575b65b75d.rmeta: src/main.rs
/home/jannes/work/rust/rust_test1/com1/target/debug/deps/com1-e51087575b65b75d.d: src/main.rs
src/main.rs:
| D |
INSTANCE Dschinn_11013_OM (Npc_Default)
{
// ------ NSC ------
name = "Dschinn";
guild = GIL_SKELETON_MAGE;
id = 11013;
voice = 0;
flags = NPC_FLAG_GHOST;
npctype = NPCTYPE_MAIN;
level = 400;
// ------ Attribute ------
attribute[ATR_HITPOINTS_MAX] = 5000;
attribute[ATR_HITP... | D |
/*******************************************************************************
Helper structs to acquire and relinquish shared resources during the
handling of a request.
Copyright: Copyright (c) 2016-2017 sociomantic labs GmbH. All rights reserved
License:
Boost Software License Version 1.... | D |
// Copyright Brian Schott (Sir Alaran) 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)
import stdx.d.lexer;
import stdx.d.ast;
import std.stdio;
import std.string;
import std.array;
im... | D |
// ************************************************************
// EXIT
// ************************************************************
instance DIA_Ricelord_EXIT(C_INFO)
{
npc = Bau_900_Ricelord;
nr = 999;
condition = DIA_Ricelord_EXIT_Condition;
information = DIA_Ricelord_EXIT_Info;
permanent = 1;
descripti... | D |
module core.service;
import core.configuration;
struct Service {
private static Configuration _config;
static @property ref Configuration config()
{
return _config;
}
static @property ref Configuration config(ref Configuration c)
{
_config = c;
return _config;
}
} | D |
import bindbc.sdl;
import bindbc.opengl;
import bindbc.nuklear;
import core.stdc.string;
import core.stdc.stdlib;
import core.stdc.math;
import core.stdc.stdio;
import overview;
import calculator;
import style;
import node_editor;
struct nk_sdl_device {
nk_buffer cmds;
nk_draw_null_texture null_;
GLuint ... | D |
/Users/piaojin/Desktop/PiaojinSwiftServer/.build/debug/MySQL.build/MySQL.swift.o : /Users/piaojin/Desktop/PiaojinSwiftServer/.build/checkouts/Perfect-MySQL.git-4976130768219902098/Sources/MySQL/MySQL.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.s... | D |
module pixelgui.render;
/// Premultiplied [R, G, B, A] color
alias Color = ubyte[4];
///
string toColorHexString(in Color color)
{
pragma(inline, true) immutable(char)[2] digit(ubyte b)
{
ubyte l = b / 16;
ubyte r = b % 16;
immutable(char) lc = cast(immutable(char))((l >= 10 ? 'A' - 10 : '0') + l);
immutabl... | 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 |
import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, core.stdc.stdio;
int gaussianElimination(ref real[][] org_mat, ref real[] ret) {
int N = org_mat.length.to!int;
auto mat = new rea... | D |
/**
Uses libasync
Copyright: © 2014 RejectedSoftware e.K., GlobecSys Inc
Authors: Sönke Ludwig, Etienne Cimon
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
*/
module vibe.core.drivers.libasync;
version(VibeLibasyncDriver):
import vibe.core.core;
import vibe.core.d... | D |
/*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you 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 |
module test;
import std.process;
import std.file : rmdirRecurse;
import Path = tango.io.Path;
import mambo.core._;
int main ()
{
return TestRunner().run;
}
struct TestRunner
{
private string wd;
int run ()
{
int result = 0;
auto matrix = setup();
activate(matrix.clangs.firs... | D |
/Users/matsuoka/projects/rust/mandelbrot/conrod_mandelbrot/target/debug/build/rayon-b350abe044ebf374/build_script_build-b350abe044ebf374: /Users/matsuoka/.cargo/registry/src/github.com-1ecc6299db9ec823/rayon-1.0.2/build.rs
/Users/matsuoka/projects/rust/mandelbrot/conrod_mandelbrot/target/debug/build/rayon-b350abe044eb... | D |
/**
* Consoleur: a package for interaction with character-oriented terminal emulators
*
* Copyright: Maxim Freck, 2017.
* Authors: Maxim Freck <maxim@freck.pp.ru>
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
*/
module consoleur.input.key;
version(Posix) {
import consoleur.core;... | D |
/**
* Manage flow analysis for constructors.
*
* Copyright: Copyright (C) 1999-2020 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://g... | D |
/Users/petercernak/vapor/TILApp/Build/Intermediates.noindex/TILApp.build/Debug/TemplateKit.build/Objects-normal/x86_64/TemplateEmbed.o : /Users/petercernak/vapor/TILApp/.build/checkouts/template-kit.git-9048208343057795534/Sources/TemplateKit/Data/TemplateData.swift /Users/petercernak/vapor/TILApp/.build/checkouts/temp... | D |
/***********************************************************************\
* winldap.d *
* *
* Windows API header module *
* ... | D |
///
module ddb.pg.exceptions;
import ddb.pg.messages : ResponseMessage;
import std.exception;
public import std.exception : enforce;
@safe:
class ParamException : Exception
{
this(string msg, string fn = __FILE__, size_t ln = __LINE__) pure nothrow
{
super(msg, fn, ln);
}
}
/// Exception thrown... | D |
module imports.gdc241b;
class C241 { }
enum E241 { a }
struct S241 { }
extern(C++, N241) { struct T { } }
| D |
INSTANCE Mod_7219_BDT_Bandit_NW (Npc_Default)
{
// ------ NSC ------
name = "Räuber";
guild = GIL_STRF;
id = 7219;
voice = 0;
flags = 0;
npctype = NPCTYPE_nw_bandit;
// ------ Attribute ------
B_SetAttributesToChapter (self, 3);
// ------ Kampf-Taktik ------
fight_tactic... | D |
/**
Vibe-based AWS client
*/
module vibe.aws.aws;
import std.algorithm;
import std.datetime;
import std.random;
import std.range;
import std.stdio;
import std.string;
import vibe.core.core;
import vibe.core.log;
import vibe.data.json;
import vibe.http.client;
import vibe.aws.sigv4;
public import vibe.aws.creden... | D |
/*=============================================================================
spiritd - Copyright (c) 2009 s.d.hammett
a D2 parser library ported from boost::spirit
Copyright (c) 1998-2003 Joel de Guzman
Copyright (c) 2001 Daniel Nuffer
Distributed under the Boost Software License, Version 1.0. (See... | D |
/** Optimised asm arbitrary точность arithmetic ('bignum')
* routines for X86 processors.
*
* All functions operate on массивы of uints, stored LSB first.
* If there is a destination array, it will be the first parameter.
* Currently, all of these functions are субъект to change, and are
* intended for int... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.