code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
import std.stdio;
void foo() { write("Hello"); }
| D |
instance BAU_901_Horatio(Npc_Default)
{
name[0] = "Horacy";
npcType = npctype_main;
guild = GIL_BAU;
level = 8;
voice = 9;
id = 901;
attribute[ATR_STRENGTH] = 55;
attribute[ATR_DEXTERITY] = 20;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX] = 166;
attribute[ATR_HITPOINTS... | D |
<HTML>
<!-- Created by HTTrack Website Copier/3.49-2 [XR&CO'2014] -->
<!-- Mirrored from mareenfischinger.com/pretty-faces/thomas-rath-for-gardeur/js/libs/jquery-1.9.1.min.js/js/libs/jquery-1.9.1.min.js/js/libs/jquery-1.9.1.min.js/js/libs/jquery-1.9.1.min.js/js/libs/jquery-1.9.1.min.js/js/libs/jquery-1.9.1.min.js/js/l... | D |
/** Trait for getting maximum size of types `T`.
*
* Implementation in `std.variant` uses recursion.
*
* See_Also: https://forum.dlang.org/post/hzpuiyxrrfasfuktpgqn@forum.dlang.org
*/
module nxt.maxsize_trait;
// version = nxt_benchmark;
/** Get maximum size of types `Ts`.
*
* Limitation compared to `std.varia... | D |
/*
EXTRA_FILES: imports/a9741.d
TEST_OUTPUT:
---
AliasSeq!(3, 4, 7, (SSS))
AliasSeq!(3, 4, 7, (SSS))
7
SSS
AliasSeq!("hello")
AliasSeq!('c')
AliasSeq!((FFF))
AliasSeq!(10)
AliasSeq!(20)
AliasSeq!(30)
AliasSeq!((Test6))
AliasSeq!(Test7(3, "foo"))
AliasSeq!((Test8!"foo"))
AliasSeq!((Test9!"foo"))
AliasSeq!(Test10(3))
Ali... | D |
/**
* Do mangling for C++ linkage.
*
* This is the POSIX side of the implementation.
* It exports two functions to C++, `toCppMangleItanium` and `cppTypeInfoMangleItanium`.
*
* Copyright: Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved
* Authors: Walter Bright, https://www.digitalmars.c... | D |
used especially in treating bruises
any of various rhizomatous usually perennial plants of the genus Arnica
an ointment used in treating bruises
| D |
// Written in the D programming language.
/**
Functions for starting and interacting with other processes, and for
working with the current _process' execution environment.
Process_handling:
$(UL $(LI
$(LREF spawnProcess) spawns a new _process, optionally assigning it an
arbitrary set of standard input, outpu... | D |
// Written in the D programming language
// License: http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0
enum Format{
default_,
gnuplot,
matlab,
maple,
mathematica,
python,
sympy,
lisp,
}
enum ErrorFormat{
default_,
json,
}
enum InferenceMethod{
symbolic,
dp,
simulate,
}
enum OutputForm{
default_,... | D |
func void ZS_MM_Flee()
{
Npc_PercEnable(self,PERC_ASSESSMAGIC,B_AssessMagic);
B_ValidateOther();
AI_Standup(self);
AI_SetWalkMode(self,NPC_RUN);
Npc_SendPassivePerc(self,PERC_ASSESSWARN,other,self);
B_MM_DeSynchronize();
};
func int ZS_MM_Flee_Loop()
{
Npc_GetTarget(self);
if(Npc_GetDistToNpc(self,other) < 20... | D |
/**
* Authors: Frank Benoit <keinfarbton@googlemail.com>
*/
module java.util.ResourceBundle;
import java.lang.util;
import java.lang.Integer;
import java.lang.exceptions;
import java.util.MissingResourceException;
import java.util.Enumeration;
import java.nonstandard.Locale;
version(Tango){
//import tango.text.U... | D |
extern(C) shared bool _D2rt6dmain212_d_isHaltingOb;
alias _d_isHalting = _D2rt6dmain212_d_isHaltingOb;
extern(C) {
void rt_init();
void rt_term();
void my_init() {
rt_init();
}
void my_fini() {
if(!_d_isHalting){
rt_term();
}
}
void _Dmain(){}
}
| D |
/Users/caijie/MLJRCode/Bowling/Example/build/Pods.build/Debug-iphonesimulator/BowlingTests.build/Objects-normal/x86_64/AFError.o : /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/MultipartFormData.swift /Users/caijie/MLJRCode/Bowling/Example/Pods/Alamofire/Source/Timeline.swift /Users/caijie/MLJRCode/Bowli... | D |
prototype Mst_Default_Giant_DesertRat(C_Npc)
{
name[0] = "Пустынная крыса";
guild = GIL_Giant_Rat;
aivar[AIV_MM_REAL_ID] = ID_GIANT_RAT;
level = 10;
attribute[ATR_STRENGTH] = 75;
attribute[ATR_DEXTERITY] = 75;
attribute[ATR_HITPOINTS_MAX] = 75;
attribute[ATR_HITPOINTS] = 75;
attribute[ATR_MANA_MAX] = 0;
attr... | D |
# FIXED
driver-interface/uart_mutex.obj: ../driver-interface/uart_mutex.c
driver-interface/uart_mutex.obj: C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c6000_8.3.2/include/stdio.h
driver-interface/uart_mutex.obj: C:/ti/ccs901/ccs/tools/compiler/ti-cgt-c6000_8.3.2/include/_ti_config.h
driver-interface/uart_mutex.obj: C:/ti/c... | D |
/**
A package manager.
Copyright: © 2012-2013 Matthias Dondorff
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Matthias Dondorff, Sönke Ludwig
*/
module dub.dub;
import dub.compilers.compiler;
import dub.dependency;
import dub.dependencyresolver;
import dub... | D |
module dunit.testrunner;
import dunit.test;
import dunit.testsuite;
import dunit.testcase;
import dunit.testresult;
import dunit.testreport;
import std.getopt;
import std.stdio;
class TestRunner {
private:
static void print(string[string] reports, TestSuite suite) {
Test[] tests = suite.getTests();
... | D |
module stockd.defs;
public import stockd.defs.bar;
public import stockd.defs.session;
public import stockd.defs.common;
public import stockd.defs.timeFrame;
| D |
// Written in the D programming language.
/**
The C heap allocator.
Source: $(PHOBOSSRC std/experimental/allocator/_mallocator.d)
*/
module std.experimental.allocator.mallocator;
import std.experimental.allocator.common;
/**
The C heap allocator.
*/
struct Mallocator
{
@system unittest { testAllocator!(() => ... | D |
// Manages linearly independent set in \F_2^n of max weight.
// S should be an integral type and support taking a bit and addition (^).
// T should support addition and comparison.
// invariant: ss[i] = 0 || 2^i <= ss[i] < 2^(i+1)
class Basis(S, T) {
import std.algorithm.mutation : swap;
int n;
S[] ss;... | D |
/Users/MohamedNawar/Desktop/citiesListTask/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/DispatchQueue+Alamofire.o : /Users/MohamedNawar/Desktop/citiesListTask/Pods/Alamofire/Source/MultipartFormData.swift /Users/MohamedNawar/Desktop/citiesListTask/Pods/Alamofire/Source/MultipartUpload.sw... | D |
module boilerplate.conditions;
import std.typecons;
version(unittest)
{
import core.exception : AssertError;
import unit_threaded.should;
}
/++
`GenerateInvariants` is a mixin string that automatically generates an `invariant{}` block
for each field with a condition.
+/
public enum string GenerateInvariants ... | D |
<?xml version="1.0" encoding="UTF-8"?>
<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="ETCS%20On-Board.notation#_SVajgBuC... | D |
#name: Z80 use unsupported registers as labels in strict mode
#as: -march=z80-full --defsym NO_REG_F= --defsym NO_XYHL=
#objdump: -d
#source: unsup_regs.s
.*: .*
Disassembly of section \.text:
0+00 <_start>:
[ ]+0:[ ]+3e 02[ ]+ld a,0x02
0+02 <ixl>:
[ ]+2:[ ]+06 04[ ]+ld b,0x04
0+04 <ixh>:
[ ]+4... | D |
# FIXED
F2837xD_Gpio.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_common/source/F2837xD_Gpio.c
F2837xD_Gpio.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_device.h
F2837xD_Gpio.obj: C:/ti/c2000_15.12.3.LTS/include/assert.h
F2837xD_Gpio.obj: C:/ti/c2000_15.12.3.LTS/in... | D |
module stm32f407discovery.rcc;
version (ARM_Thumb) :
@nogc:
nothrow:
version(LDC)
{
pragma(LDC_no_moduleinfo);
pragma(LDC_no_typeinfo);
}
/**
* Rcc
*/
__gshared Rcc* RCC = cast(Rcc*) 0x40023800; // Start address of the RCC register
enum : uint
{
// AHB1ENR
RCC_AHB1ENR_GPIOAEN = 1,
RCC_AHB1EN... | D |
instance Grd_260_Drake_Exit(C_Info)
{
npc = GRD_260_Drake;
nr = 999;
condition = Grd_260_Drake_Exit_Condition;
information = Grd_260_Drake_Exit_Info;
important = 0;
permanent = 1;
description = DIALOG_ENDE;
};
func int Grd_260_Drake_Exit_Condition()
{
return 1;
};
func void Grd_260_Drake_Exit_Info()
{
AI_O... | D |
/**
King class for defining it's behavior.
Source: $(PHOBOSSRC libchess/pieces/_king.d)
Copyright: Copyright Michael Weber Jr.
License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Michael Weber JR.
*/
module libchess.pieces.king;
import libchess.piece;
import libchess.defs;
cl... | D |
instance GRD_210_Nesto (Npc_Default)
{
//-------- primary data --------
name = "Nesto";
npctype = npctype_ambient;
guild = GIL_GRD;
level = 14;
voice = 1;
id = 210;
//-------- abilities --------
attribute[ATR_STRENGTH] = 70;
attribute[ATR_DEXTERITY] = 50;
attribute[ATR_MANA_MAX] = 0;
at... | D |
func int B_SelectSpell(var C_Npc slf,var C_Npc oth)
{
var int dK_rnd;
var int dK_Mega;
if((slf.npcType == NPCTYPE_FRIEND) && Npc_IsPlayer(oth) && (oth.guild < GIL_SEPERATOR_HUM))
{
if((slf.guild == GIL_KDF) || (slf.guild == GIL_KDW) || (slf.aivar[AIV_MagicUser] == MAGIC_ALWAYS))
{
if(!Npc_HasItems(slf,ItRu_... | D |
// ****************************
// Nahkampf - AI Monster Master (1)
// ****************************
/*
CONST INT MOVE_RUN = 1; // Gegner in meinem Fokus + steht wer dazwischen? (G)
CONST INT MOVE_JUMPBACK = 3; // löst t_ParadeJumpB aus (Attacke wird nur pariert, wenn man schnell genug aus der W-Reichweite kommt!
... | 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_20_BeT-4334869... | D |
/home/thodges/Workspace/Rust/a_gentle_intro_to_rust/for2/target/debug/deps/for2-804ea11b24509907.rmeta: src/main.rs
/home/thodges/Workspace/Rust/a_gentle_intro_to_rust/for2/target/debug/deps/for2-804ea11b24509907.d: src/main.rs
src/main.rs:
| D |
module UnrealScript.TribesGame.TrDevice_ArxBuster;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.TribesGame.TrDevice_ConstantFire;
extern(C++) interface TrDevice_ArxBuster : TrDevice_ConstantFire
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property fina... | D |
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Console.build/Activity/ProgressBar.swift.o : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/console/Sources/Console/Terminal/ANSI.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/console/... | D |
/**
*
*/
module hunt.wechat.bean.shakearound.device.applystatus.DeviceApplyStatusResultData;
//import com.alibaba.fastjson.annotation.JSONField;
/**
* 微信摇一摇周边-设备管理-查询设备ID申请审核状态-响应参数-审核状态信息
*
*
*/
class DeviceApplyStatusResultData {
/**
* 提交申请的时间戳
*/
@JSONField(name = "apply_time")
private Long applyT... | 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_All_MobileMedi... | D |
import std.stdio;
import std.string;
import dcollections.LinkList;
void main( string[] args ) {
string sentence = "I went to town on a sunny afternoon";
if ( args.length > 1 )
sentence = args[ 1 ];
auto list = new LinkList!string;
foreach( word; sentence.split )
list ~= word;
void print( string message, I... | D |
/atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/obj/x86_64-slc6-gcc49-opt/CPAnalysisExamples/obj/MyToolProvider.o /atlas/data18a/helingzh/workplace/summer2016/Run2/FourMuonAna/RootCoreBin/obj/x86_64-slc6-gcc49-opt/CPAnalysisExamples/obj/MyToolProvider.d : /cvmfs/atlas.cern.ch/repo/sw/ASG/Analy... | D |
/*******************************************************************************
* Copyright (c) 2007, 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, a... | D |
/**
* This module contains all functions related to an object's lifetime:
* allocation, resizing, deallocation, and finalization.
*
* Copyright: Copyright Digital Mars 2000 - 2010.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Walter Bright, Sean Kelly, Steven Sch... | D |
instance Mod_7350_OUT_Buerger_REL (Npc_Default)
{
// ------ NSC ------
name = "Bürger";
guild = GIL_OUT;
id = 7350;
voice = 0;
flags = 0; //NPC_FLAG_IMMORTAL oder 0
npctype = NPCTYPE_REL_BUERGER;
// ------ Attribute ------
B_SetAttributesToChapter (self, 1); //s... | D |
/**
* Port of `openssl.rsa.h`
*
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* h... | D |
/home/zoozle/Code/Rust/Zle_Edition2/target/debug/build/num-integer-9071bfc9bf8253b1/build_script_build-9071bfc9bf8253b1: /home/zoozle/.cargo/registry/src/github.com-1ecc6299db9ec823/num-integer-0.1.43/build.rs
/home/zoozle/Code/Rust/Zle_Edition2/target/debug/build/num-integer-9071bfc9bf8253b1/build_script_build-9071bf... | D |
import std.stdio;
void main(){
string time = __TIME__;
}
| D |
# User login init file
# Version 0.8.3, March 2016
# Add init commands to this file to be run on login.
[Section login]
# Set up graphical desktop
start service Xserver.xorg
source .xprofile
# Load preferences
source userprefs.list
# Mount filesystem
mount -f /afs/${USER} ~/
# Decrypt files
ecryptfs -k ~/.homekey ... | D |
void main() {
debug {
"==================================".writeln;
while(true) {
auto bench = benchmark!problem(1);
"<<< Process time: %s >>>".writefln(bench[0]);
"==================================".writeln;
}
} else {
problem();
}
}
void problem() {
auto N = scan!ulong;
... | D |
/Users/okasho/serverProject/tryswift/helloworld/swift/.build/debug/Core.build/Byte/BytesConvertible.swift.o : /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Core-1.1.1/Sources/Core/Array.swift /Users/okasho/serverProject/tryswift/helloworld/swift/Packages/Core-1.1.1/Sources/Core/Bool+String.swift /Users... | D |
/**
* Break down a D type into basic (register) types for the x86_64 System V ABI.
*
* Copyright: Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved
* Authors: Martin Kinkelin
* License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https... | D |
INSTANCE Mod_7375_OUT_Gerichtswache_02 (Npc_Default)
{
// ------ NSC ------
name = "Gerichtswache";
guild = GIL_OUT;
id = 7375;
voice = 0;
flags = 0;
npctype = NPCTYPE_MAIN;
//-----------AIVARS----------------
aivar[AIV_ToughGuy] = TRUE;
// ------ Attribute ------
B_SetAt... | D |
# FIXED
OSAL/OSAL.obj: C:/ti/simplelink/ble_cc26xx_2_01_01_44627/Components/osal/common/OSAL.c
OSAL/OSAL.obj: C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/string.h
OSAL/OSAL.obj: C:/ti/ccs613/ccsv6/tools/compiler/ti-cgt-arm_5.2.5/include/linkage.h
OSAL/OSAL.obj: C:/ti/simplelink/ble_cc26xx_2_01_01_44627/... | D |
// for D 2.0 only
class C { }
void foo(const C c, const(char)[] s, const int* q, const (int*) p)
{
}
void bar(in void *p)
{
}
void f(void function() f2);
class C2;
void foo2(const C2 c);
struct Foo3
{
int k;
~this() @trusted @disable @nogc { k = 1; }
this(this) { k = 2; }
}
class C3 { @property int get... | D |
$(OBJDIR)/simplify.cmi $(OBJDIR)/: $(OBJDIR)/cil.cmi
| D |
module kanity.character;
import derelict.sdl2.sdl;
import std.experimental.logger;
/*
Surfaceからキャラクターを生成し、便利に扱えるようにする
*/
//キャラクタ列生成の時、どちらの軸からスキャンするか(NONEはキャラクタ列を生成しない設定)
enum Character_ScanAxis{X, Y}
class Character{
private:
SDL_Surface* surface_;
string surfaceName_;
SDL_Rect[int] characters_;
SDL_Rect[stri... | D |
module des.isys.neiro.layer.neiron;
import std.math;
import std.algorithm;
import std.traits;
import std.conv;
import des.isys.neiro.neiron;
import des.isys.neiro.func;
abstract class BPLink(T) : WeightLink!(T,T)
if( isFloatingPoint!T )
{
@property T deltaWeight() const;
void propagateError(T);
void... | D |
/Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ImmediateSchedulerType.o : /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sin... | D |
/Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Unbox.build/Objects-normal/x86_64/Int+Unbox.o : /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/UnboxPathNode.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/Unbox/Sources/Unboxable.swift /Users/Salgara/Deskt... | D |
Menu Foods voluntarily recalled 60 million containers of wet cat and dog food distributed throughout North America following complaints of pets kidney failure and deaths.
Menu recalled 48 brands of dog food and 40 brands of cat food sold between December 1 and March 6.
Of the 10 known food-related deaths, 7 occurred d... | D |
/**
* Windows API header module
*
* Translated from MinGW Windows headers
*
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(DRUNTIMESRC src/core/sys/windows/_lmremutl.d)
*/
module core.sys.windows.lmremutl;
version (Windows):
version (GNU) {}
else pragma(lib, "netapi32");
... | D |
/Users/martin/Documents/programovanie/bc/RuLife/DerivedData/RunLife/Build/Intermediates/RunLife.build/Debug-iphonesimulator/RunLife.build/Objects-normal/x86_64/AppDelegate.o : /Users/martin/Documents/programovanie/bc/RuLife/RuLife/AppDelegate.swift /Users/martin/Documents/programovanie/bc/RuLife/RuLife/Location.swift /... | D |
// Copyright Brian Schott 2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module dfmt.main;
import std.string : strip;
static immutable VERSION = () {
debug
{
enum DEBUG_... | D |
/*
* Copyright (c) 2004-2009 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, this li... | D |
module behavior.behavior;
public import edit.buffer;
import edit.bufferview;
import dccore.commandparameter;
import dccore.command;
import application;
public import graphics;
import dccore.event;
import gui.keybinding;
import gui.ruleset;
import gui.window;
import dccore.signals;
class EditorBehavior... | D |
Long: pass
Arg: <phrase>
Help: Pass phrase for the private key
Protocols: SSH TLS
Category: ssh tls auth
Example: --pass secret --key file $URL
Added: 7.9.3
See-also: key user
---
Passphrase for the private key.
If this option is used several times, the last one will be used.
| D |
/Users/susana/Documents/Git/TrackerGPS/TrackerGPS/build/Pods.build/Debug-iphonesimulator/Eureka.build/Objects-normal/x86_64/RowControllerType.o : /Users/susana/Documents/Git/TrackerGPS/TrackerGPS/Pods/Eureka/Source/Validations/RuleURL.swift /Users/susana/Documents/Git/TrackerGPS/TrackerGPS/Pods/Eureka/Source/Validation... | D |
/Users/apple-1/Downloads/HouseKeeping/Build/Intermediates/HouseKeeping.build/Debug-iphonesimulator/HouseKeeping.build/Objects-normal/x86_64/HADropDown.o : /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/DetailsPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksPending.swift /Users/apple-1... | D |
import std.container;
import std.conv;
import std.stdio;
import std.typecons;
alias Rule = Tuple!(int, "factor", string, "sound");
Rule[] rules = [
Rule(3, "Pling"),
Rule(5, "Plang"),
Rule(7, "Plong")
];
string convert(int n) {
string result;
foreach (Rule r; rules)
if (n % r.factor == 0)
result... | D |
/Users/eduardosoares/Documents/github/rust-study/crates-and-packages/target/debug/build/num-traits-eb744b1b4692f880/build_script_build-eb744b1b4692f880: /Users/eduardosoares/.cargo/registry/src/github.com-1ecc6299db9ec823/num-traits-0.2.10/build.rs
/Users/eduardosoares/Documents/github/rust-study/crates-and-packages/t... | D |
/home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/WebSockets.build/Client/WebSocket+Client.swift.o : /home/albertfega/Desktop/LaSalleChat/.build/checkouts/engine.git--7533756970564908605/Sources/WebSockets/Communication/WebSocket+Send.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/engi... | D |
module UnrealScript.TribesGame.GFxTrPage_PartyMember;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.TribesGame.GFxTrPage;
import UnrealScript.GFxUI.GFxObject;
extern(C++) interface GFxTrPage_PartyMember : GFxTrPage
{
public extern(D):
private static __gshared ScriptClass mStaticCla... | D |
module deps.fontconfig.funcs;
version ( FontConfig ):
public import fontconfig.fontconfig;
import core.stdc.stdio : printf;
// https://www.freedesktop.org/software/fontconfig/fontconfig-user.html
// Paths:
// /etc/fonts/fonts.conf
// /etc/fonts/fonts.dtd
// /etc/fonts/conf.d
// $XDG_CONFIG_HOME/fontconfig/conf.d
/... | D |
// URL: https://atcoder.jp/contests/abc172/tasks/abc172_d
import std;
version(unittest) {} else
void main()
{
int N; io.getV(N);
auto d = new int[](N+1);
foreach (i; 1..N+1)
for (auto j = i; j <= N; j += i)
++d[j];
auto r = 0L;
foreach (i; 1..N+1)
r += i.to!long*d[i];
io.put(r);
}
auto i... | D |
// Written in the D programming language.
/**
Defines generic _containers.
Source: $(PHOBOSSRC std/_container.d)
Macros:
WIKI = Phobos/StdContainer
TEXTWITHCOMMAS = $0
Copyright: Red-black tree code copyright (C) 2008- by Steven Schveighoffer. Other code
copyright 2010- Andrei Alexandrescu. All rights reserved by th... | 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 UnrealScript.Engine.ParticleModuleLocationEmitterDirect;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.Engine.ParticleModuleLocationBase;
extern(C++) interface ParticleModuleLocationEmitterDirect : ParticleModuleLocationBase
{
public extern(D):
private static __gshared Script... | D |
include <system.dh>
include <LookUp2DInc.dh>
const TYPE_STR 8
global main()
{
if( !(ch=GetEditDataset()) )
return;
StartIndicator("Processing...",chFeatureNum(ch));
tot=0;
null=EmptyValue();
for( fe=0; fe=chNextFeature(ch,fe); )
{
StepIndicator();
ds=chGetFeatureDictionary(ch,fe);
obcode=c... | D |
c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
Long: ftp-account
Arg: <data>
Help: Account data string
Protocols: FTP
Added: 7.13.0
Category: ftp auth
Example: --ftp-account "mr.robot" ftp://example.com/
See-also: user
Multi: single
---
When an FTP server asks for ... | D |
/*
* $Id: turret.d,v 1.3 2005/07/17 11:02:46 kenta Exp $
*
* Copyright 2005 Kenta Cho. Some rights reserved.
*/
module abagames.gr.turret;
private import std.math;
private import opengl;
private import abagames.util.vector;
private import abagames.util.actor;
private import abagames.util.rand;
private import abaga... | D |
#!/usr/bin/env dub
/+dub.sdl:
dependency "dmd" path="../../.."
+/
void main()
{
import dmd.astbase;
import dmd.globals;
import dmd.parse;
import dmd.errorsink;
scope parser = new Parser!ASTBase(null, null, false, new ErrorSinkStderr, null, false);
assert(parser !is null);
}
| D |
void main() {
problem();
}
void problem() {
auto S = scan;
auto T = scan;
void solve() {
writefln(T[0..$-1] == S ? "Yes" : "No");
}
solve();
}
// ----------------------------------------------
import std.stdio, std.conv, std.array, std.string, std.algorithm, std.container, std.range, core.stdc.stdl... | D |
/*
* Collie - An asynchronous event-driven network framework using Dlang development
*
* Copyright (C) 2015-2016 Shanghai Putao Technology Co., Ltd
*
* Developer: putao's Dlang team
*
* Licensed under the Apache-2.0 License.
*
*/
module collie.utils.queue;
import core.memory;
import std.experimental.allocat... | D |
module directx.d2d1effectauthor_1;
//---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This file is automatically generated. Please do not edit it directly.
//
// File name: D2D1EffectAuthor_1.h
//----------------------------... | 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 |
a soft wet area of low-lying land that sinks underfoot
| D |
/**A module for performing linear regression. This module has an unusual
* interface, as it is range-based instead of matrix based. Values for
* independent variables are provided as either a tuple or a range of ranges.
* This means that one can use, for example, map, to fit high order models and
* lazily evaluate... | 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 |
/**
Copyright: Copyright (c) 2017-2018 Andrey Penechko.
License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Andrey Penechko.
*/
module voxelman.graphics.animation.spritesheetanimation;
import voxelman.math;
import voxelman.graphics;
struct AnimationFrame
{
Sprite sprite;
float timelineStart;
flo... | D |
/home/jason/Projects/AdventOfCode2020/day11/target/rls/debug/deps/day11-6a7f39fcb38b5212.rmeta: src/main.rs
/home/jason/Projects/AdventOfCode2020/day11/target/rls/debug/deps/day11-6a7f39fcb38b5212.d: src/main.rs
src/main.rs:
| D |
module libgamestruct.platforms.gba.common;
import std.range;
align(1) struct GBAHeader {
align(1):
uint firstInstruction;
ubyte[0x9C] logo;
char[12] gameName;
char[4] gameID;
ushort makerID;
ubyte unknownHeaderByte;
ubyte unitCode;
ubyte deviceType;
ubyte[7] reserved;
ubyte version_;
ubyte chec... | D |
instance CS_Eskorte4 (Npc_Default)
{
//-------- primary data --------
name = "Eskorte4";
slot = "guard";
guild = GIL_GRD;
level = 5;
flags = 0;
voice = 11;//9;
id = 3028;
//-------- abilities --------
attribute[ATR_STRENGTH] = 13;
attribute[ATR_DEXTERITY] = 9;
... | 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 |
///////////////////////////////////////////////////////////////////////
// Info EXIT
///////////////////////////////////////////////////////////////////////
var int Brahim_ShowedMaps;
FUNC VOID B_BrahimNewMaps ()
{
if (Brahim_ShowedMaps == TRUE)
{
AI_Output (self, other, "B_BrahimNewMaps_07_00"); //Vraă se pozdę... | D |
a musician who plays the violin
| D |
module app;
version (app){
import std.stdio;
import std.conv : to;
import core.stdc.stdlib;
import utils.misc;
import std.file;
import std.path : baseName;
import pngtext.pngtext;
// QUI for the text editor
import editor;
/// help text
enum string HELP_TEXT =
"pngtext - hides data inside png images
Made b... | D |
/Users/mizumotoryouhei/Desktop/rust_calculator/target/debug/build/maybe-uninit-7a61b32b282e9c5b/build_script_build-7a61b32b282e9c5b: /Users/mizumotoryouhei/.cargo/registry/src/github.com-1ecc6299db9ec823/maybe-uninit-2.0.0/build.rs
/Users/mizumotoryouhei/Desktop/rust_calculator/target/debug/build/maybe-uninit-7a61b32b... | 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 bam.SortedBamReader;
import bio.bam.read;
import bio.bam.reader;
import bio.bam.readrange;
import bio.bam.reference;
import bio.bam.randomaccessmanager;
import bio.bam.region;
import std.stdio;
import std.range;
import std.exception;
struct AlnPair_t {
/*
The convention read numbering:
We follow t... | D |
someone who travels into little known regions (especially for some scientific purpose)
a commercial browser
| D |
/Users/tinh/Projects/Furniture-App-UI-2-Flutter/ios/build/Pods.build/Debug-iphonesimulator/flutter_inappwebview.build/Objects-normal/x86_64/MyCookieManager.o : /Users/tinh/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.3.2/ios/Classes/Types/Size2D.swift /Users/tinh/Documents/flutter/.pub-ca... | D |
/home/josh7gas/Oficina/Rust/CLI_tool_practice/subnet_calculator/target/debug/build/proc-macro-error-attr-b0af41cb995b57ae/build_script_build-b0af41cb995b57ae: /home/josh7gas/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro-error-attr-1.0.2/build.rs
/home/josh7gas/Oficina/Rust/CLI_tool_practice/subnet_calcula... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.