code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
/*
Copyright: Marcelo S. N. Mancini (Hipreme|MrcSnm), 2018 - 2021
License: [https://creativecommons.org/licenses/by/4.0/|CC BY-4.0 License].
Authors: Marcelo S. N. Mancini
Copyright Marcelo S. N. Mancini 2018 - 2021.
Distributed under the CC BY-4.0 License.
(See accompanying file LICENSE.txt or copy at
... | D |
/root/Bureau/cours/Avance/rustlings/target/rls/debug/build/ryu-d79c1e673b5008b6/build_script_build-d79c1e673b5008b6: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/ryu-0.2.8/build.rs
/root/Bureau/cours/Avance/rustlings/target/rls/debug/build/ryu-d79c1e673b5008b6/build_script_build-d79c1e673b5008b6.d: /root/.car... | D |
import std.stdio;
import smack;
class MySchedule {
public {
int totalHours = 30;
int mondayH;
int tuesdayH;
int wednesdayH;
int thursdayH;
int fridayH;
}
invariant() {
__VERIFIER_assert(totalHours >= mondayH + tuesdayH + wednesdayH + thursdayH + fri... | 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)
*/
module glib.gregex;
import glib.gtypes;
import glib.gerror;
import glib.gstring;
enum GRegexError
{
G_REGEX_ERROR_COMPILE,
G_REGEX_ERROR_O... | D |
module data;
import batcher : vec2f, vec3f, vec4f, VertexSlice;
import track_layer : Vertex;
struct Data
{
enum State { Begin, Middle, End, }
float x, y, z;
long timestamp;
State state;
}
//Id(12, 89)
auto id12_89 = [
Data(2592.73, 29898.1, 0, 20000000, Data.State.Begin),
Data(4718.28, 30201.3, 0, 1200000... | D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1994-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 |
/Users/Laird/Code/Projects/AllergyAlert/build/Pods.build/Debug-iphonesimulator/SCLAlertView.build/Objects-normal/x86_64/SCLAlertView.o : /Users/Laird/Code/Projects/AllergyAlert/Pods/SCLAlertView/SCLAlertView/SCLAlertView.swift /Users/Laird/Code/Projects/AllergyAlert/Pods/SCLAlertView/SCLAlertView/SCLExtensions.swift /A... | D |
/*
Copyright (c) 2010 Ola Østtveit
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribu... | D |
import std.stdio, std.algorithm, std.typecons, std.array, std.range;
struct Item { string name; int weight, value; }
Item[] knapsack01DinamicProgramming(immutable Item[] items, in int limit)
pure nothrow @safe {
auto tab = new int[][](items.length + 1, limit + 1);
foreach (immutable i, immutable it; items)
... | D |
/Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Bond.build/Objects-normal/x86_64/ObservableArray.o : /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSObject+KVO.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/U... | D |
func void b_assignschiffswachenguard(var C_NPC schiffswache)
{
if((MIS_SHIPISFREE == TRUE) || (MIS_SCVISITSHIP == LOG_RUNNING))
{
if(schiffswache.voice == 4)
{
AI_Output(self,other,"DIA_Pal_Schiffswache_Ambient_04_00"); //Sledujeme tě. Nezapomínej na to.
};
if(schiffswache.voice == 9)
{
AI_Output(sel... | D |
/Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/WebSocket.build/WebSocket+Server.swift.o : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/websocket/Sources/WebSocket/WebSocketFrameSequence.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/c... | D |
/Users/akshara/Projects/TreeHacks2018/TreeHacks2018/DerivedData/SpeakMarvel/Build/Intermediates.noindex/SpeakMarvel.build/Debug-iphonesimulator/SpeakMarvel.build/Objects-normal/x86_64/Player.o : /Users/akshara/Projects/TreeHacks2018/TreeHacks2018/SpeakMarvel/AppDelegate.swift /Users/akshara/Projects/TreeHacks2018/TreeH... | D |
/Users/TK/projects/smDriver/MyProject/Build/Intermediates/smDriver.build/Debug/smDriver.build/Objects-normal/x86_64/main.o : /Users/TK/projects/smDriver/MyProject/Sources/smDriver/file.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/ame.swift /Users/TK/projects/smDriver/MyProject/Sources/smDriver/main.swif... | D |
import std.stdio;
import std.algorithm;
immutable MAX = 28123;
uint SumOfDivisors(uint n) {
uint sum = 1;
for (uint i = 2; i * i <= n; ++i)
if (n % i == 0) {
sum += i;
if (i * i < n)
sum += n / i;
}
return sum;
}
unittest {
assert(SumOfDivisors(1) == 1);
assert(SumOfDivisors(12) == 16);
assert(Su... | D |
/home/arnav/Desktop/rust_proj/covweed/target/debug/deps/futures_io-feed551711b2b215.rmeta: /home/arnav/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-io-0.3.17/src/lib.rs
/home/arnav/Desktop/rust_proj/covweed/target/debug/deps/libfutures_io-feed551711b2b215.rlib: /home/arnav/.cargo/registry/src/github.com-1ec... | D |
// Written in the D programming language.
/**
*
* Custom types for TOML's datetimes that add fractional time to D ones.
*
* License: $(HTTP https://github.com/Kripth/toml/blob/master/LICENSE, MIT)
* Authors: Kripth
* References: $(LINK https://github.com/toml-lang/toml/blob/master/README.md)
* Source: $(HTTP h... | D |
platform/android/Rhodes/jni/src/rhodes.cpp /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/Rhodes/jni/src/../include/rhodes/jni/com_rhomobile_rhodes_RhodesService.h /Users/karamon/.rvm/gems/ruby-1.9.3-p0@rhodes/gems/rhodes-3.3.3.beta.3/platform/android/Rhodes/jni/src/../inclu... | D |
import std.stdio;
import std.conv;
import std.math;
void main() {
ulong n; readf("%s", &n);
ulong tmax = n-1;
ulong tmin = tmax;
ulong[] d = [1];
foreach (i; 2..n.to!double.sqrt().to!ulong + 1) {
if (0 != n % i) { continue; }
d ~= i;
}
ulong nd = d.length;
foreach (i;... | D |
/**
* Skadi.d Web Framework
*
* Authors: Faianca
* Copyright: Copyright (c) 2015 Faianca
* License: MIT License, see LICENSE
*/
module Application.PostBundle.Services.TestService;
import skadi.framework;
class TestService
{
string getLol()
{
return "lol";
}
}
| 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;
immutable long MAX = 2*10^^6+1;
immutable long MOD = 10^^9+7;
long powmod(long a, long x, long m) {
a %= m;
long r... | D |
/home/dart/Documents/doc/rust_start/open_macro2/main/target/rls/debug/deps/main-41cdcdb987529b23.rmeta: src/main.rs
/home/dart/Documents/doc/rust_start/open_macro2/main/target/rls/debug/deps/main-41cdcdb987529b23.d: src/main.rs
src/main.rs:
| D |
// REQUIRED_ARGS:
import core.stdc.stdarg;
extern(C)
{
int printf(const char*, ...);
version(Windows)
{
int _snprintf(char*, size_t, const char*, ...);
alias _snprintf snprintf;
}
else
int snprintf(char*, size_t, const char*, ...);
}
/*************************************/... | D |
/**
Pawn class for defining it's behavior.
Source: $(PHOBOSSRC libchess/pieces/_pawn.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.pawn;
import libchess.piece;
import libchess.defs;
cl... | D |
module main;
import std.stdio,
std.algorithm,
std.range,
std.conv,
std.typecons,
std.bigint,
toolbox,
dataset;
//Add all the natural numbers below 1000 that are multiples of 3 or 5.
auto problem1()
{
return iota(1000)
.filter!(x => !(x % 3) || !(x % 5))
.sum;
}
//Find... | D |
prototype Mst_Default_Zombie(C_Npc)
{
name[0] = "Зомби";
guild = GIL_ZOMBIE;
aivar[AIV_MM_REAL_ID] = ID_ZOMBIE;
level = 20;
attribute[ATR_STRENGTH] = 100;
attribute[ATR_DEXTERITY] = 100;
attribute[ATR_HITPOINTS_MAX] = 400;
attribute[ATR_HITPOINTS] = 400;
attribute[ATR_MANA_MAX] = 100;
attribute[ATR_MANA] = 1... | D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
///
enum EPS = 1e-10;
///
double add(double a, double b) {
if (abs(a + b) < EPS * (abs(a) + abs(b))) return 0;
return a + b;
}
///
struct P {
double x, y;
this(double x, double y) {
this.x ... | D |
import std.stdio;
struct X {
}
extern(C) int _ZN1X1yEv(X* _this);
extern(C) X* _Z5SomeXv();
void main() {
X *x = _Z5SomeXv();
int i = _ZN1X1yEv(x);
writeln("i: ", i);
}
| D |
.hd lstake "take characters from a linked string" 03/23/80
pointer function lstake (ptr, len)
pointer ptr
integer len
.sp
Library: vlslb
.fs
The value of the function is a pointer to a string
consisting of the first 'len' characters of the string
specified by 'ptr'.
.im
A string of length 'len' is allocated, and the f... | D |
/**
Contains high-level functionality for working with packages.
Copyright: © 2012-2013 Matthias Dondorff, © 2012-2016 Sönke Ludwig
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Matthias Dondorff, Sönke Ludwig, Martin Nowak, Nick Sabalausky
*/
module dub.pa... | D |
// ****************************************************
// B_AssessTalk
// ------------
// aufgerufen durch Ansprechen (Wahrnehmung ASSESSTALK)
// oder durch B_AssessPlayer (NSC hat Important-Info)
// GILT AUCH FÜR MONSTER
// ****************************************************
func void B_AssessTalk ()
{
// EXIT I... | D |
/Users/go7hic/workspace/Github/Rust-in-action/kt/target/debug/deps/bitflags-0d92ac6ffc2d8ebf.rmeta: /Users/go7hic/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/bitflags-1.3.2/src/lib.rs
/Users/go7hic/workspace/Github/Rust-in-action/kt/target/debug/deps/bitflags-0d92ac6ffc2d8ebf.d: /Users/go7hic/.cargo/regis... | D |
/Users/dali/Documents/GitHub/rustlings/target/release/deps/console-533b8bf740d6ebae.rmeta: /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/lib.rs /Users/dali/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/console-0.7.7/src/common_term.rs /Users/dali/.cargo/registry/src/m... | D |
module android.java.android.print.PrintDocumentInfo_Builder_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import2 = android.java.java.lang.Class_d_interface;
import import0 = android.java.android.pr... | D |
import std.string,std.conv,std.process, core.thread, core.memory, std.file, std.path, std.c.windows.windows;
import std.stdio, std.math, std.datetime,std.array;
void main(string[] args)
{
string exedir=std.path.dirName(args[0]);
StopWatch sw;
sw.start();
uint cThreads=4;
if(args.length<2)
{
writeln("Usage: ... | D |
/Users/mitchcurrie/Documents/Development/MCSwift/build/MCSwift.build/Release-iphoneos/MCSwift.build/Objects-normal/armv7/DateTime.o : /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/Number.swift /Users/mitchcurrie/Documents/Development/MCSwift/MCSwift/UIKit.swift /Users/mitchcurrie/Documents/Development/MCSwif... | D |
/home/shing/Documents/Rust/test2/target/debug/deps/libcrypto_hash-ca787da45b635fa8.rlib: /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/crypto-hash-0.3.3/src/lib.rs /home/shing/.cargo/registry/src/github.com-1ecc6299db9ec823/crypto-hash-0.3.3/src/imp/openssl.rs /home/shing/.cargo/registry/src/github.com-1e... | D |
//----------------------------------------------------------------------
// Info EXIT
//----------------------------------------------------------------------
INSTANCE DIA_Addon_Huno_EXIT (C_INFO)
{
npc = BDT_1099_Addon_Huno;
nr = 999;
condition = DIA_Addon_Huno_EXIT_Condition;
information = D... | D |
module cuda_d_examples.matmul2;
import std.stdio;
import cuda_d.cuda;
import cuda_d.cublas;
import cuda_d.cublas_api;
import cuda_d.cublas_v2;
import cuda_d.cuda_runtime_api;
import cuda_d.curand;
void gpu_blas_mmul(const double *A, const double *B, double *C, const int m, const int k, const int n) {
int lda=m,ldb... | D |
/*
REPL plan:
easy movement to/from a real editor
can edit a specific function
repl is a different set of globals
maybe ctrl+enter to execute vs insert another line
write state to file
read state from file
state consists of all variables and source to functions.
maybe need @retained for a variable ... | D |
void main() {
auto hash = ["foo":42, "bar":100];
assert("foo" in hash);
}
| D |
/++
The main module, housing startup logic and the main event loop.
No module (save [kameloso.entrypoint]) should be importing this.
See_Also:
[kameloso.kameloso],
[kameloso.common],
[kameloso.config]
Copyright: [JR](https://github.com/zorael)
License: [Boost Software Lice... | D |
#!/usr/bin/env dub
/+
dub.sdl:
name "snippet111"
dependency "dwt" path="../../../../../../"
libs \
"atk-1.0" \
"cairo" \
"dl" \
"fontconfig" \
"gdk-x11-2.0" \
"gdk_pixbuf-2.0" \
"glib-2.0" \
"gmodule-2.0" \
"gnomeui-2" \
"gnomevfs-2" \
"gobje... | D |
module dlangide.ui.newproject;
import dlangui.core.types;
import dlangui.core.i18n;
import dlangui.platforms.common.platform;
import dlangui.dialogs.dialog;
import dlangui.dialogs.filedlg;
import dlangui.widgets.widget;
import dlangui.widgets.layouts;
import dlangui.widgets.editors;
import dlangui.widgets.controls;
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 |
module android.java.java.time.LocalDateTime_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import19 = android.java.java.time.OffsetDateTime_d_interface;
import import5 = android.java.java.time.LocalT... | D |
/**
Copyright: © 2014 rejectedsoftware e.K.
License: Subject to the terms of the GNU GPLv3 license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module dubregistry.scheduler;
import std.datetime;
import vibe.core.core;
import vibe.core.file;
import vibe.core.path;
import vibe.data.json;
/... | D |
//***********************************************************************
// Info EXIT
//***********************************************************************
INSTANCE DIA_Agon_EXIT (C_INFO)
{
npc = NOV_603_Agon;
nr = 999;
condition = DIA_Agon_EXIT_Condition;
information = DIA_Agon_EXIT_In... | D |
/Users/shay_li/Downloads/bn128-jni-master/native/target/release/deps/jni_sys-b96d8b2a3f4b74ee.rmeta: /Users/shay_li/.cargo/registry/src/github.com-1ecc6299db9ec823/jni-sys-0.3.0/src/lib.rs
/Users/shay_li/Downloads/bn128-jni-master/native/target/release/deps/libjni_sys-b96d8b2a3f4b74ee.rlib: /Users/shay_li/.cargo/regis... | D |
module darepl.core.lexer;
import std.ascii,
std.conv,
std.string,
std.variant,
darepl.core.console;
public enum LiteralType : ubyte
{
int8,
int16,
int32,
int64,
float32,
float64,
}
public union LiteralValue
{
public byte value8s;
public ubyte value8u;
p... | D |
/home/brad/Development/rusty_snek_gaem/target/debug/deps/libtexture-93a4b3be423b7267.rlib: /home/brad/.cargo/registry/src/github.com-1ecc6299db9ec823/piston-texture-0.6.0/src/lib.rs /home/brad/.cargo/registry/src/github.com-1ecc6299db9ec823/piston-texture-0.6.0/src/ops.rs
/home/brad/Development/rusty_snek_gaem/target/... | D |
instance Mod_1466_BUD_Buddler_MT (Npc_Default)
{
//-------- primary data --------
name = Name_Buddler;
npctype = npctype_mt_buddler;
guild = GIL_out;
level = 3;
voice = 2;
id = 1466;
//-------- abilities --------
B_SetAttributesToChapter (self, 1);
//-------- ... | D |
tea5767.d tea5767.p1: C:/Users/Dinusha/Documents/PICProjects/PIC877AProjects/CProjects/TEA5767/tea5767.c C:/Users/Dinusha/Documents/PICProjects/PIC877AProjects/CProjects/TEA5767/i2c.h C:/Users/Dinusha/Documents/PICProjects/PIC877AProjects/CProjects/TEA5767/tea5767.h C:/Users/Dinusha/Documents/PICProjects/PIC877AProj... | D |
module dsl.semantic.InfoType;
import dsl.ast._;
import dsl.syntax.Word;
class InfoType {
InfoType binaryOp (string, InfoType) {
return null;
}
InfoType unaryOp (string) {
return null;
}
InfoType dotOp (string) {
return null;
}
InfoType affOp (string, InfoType) {
return nul... | D |
/Users/miladmehrpoo/Desktop/Helloworld/.build/debug/Leaf.build/Tag/Models/Uppercased.swift.o : /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Argument.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Leaf-1.0.2/Sources/Leaf/Byte+Leaf.swift /Users/miladmehrpoo/Desktop/Helloworld/Packages/Le... | D |
# FIXED
main(3).obj: ../main(3).c
main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stdint.h
main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/stdint.h
main(3).obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/cdefs.h
main(3).obj: C:/ti/ccsv8/tools/compiler/t... | D |
/*******************************************************************************
* Copyright (c) 2000, 2009 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 |
// SemiTwist Library
// Written in the D programming language.
//
// Helper tools for the arsd DOM module at:
// https://github.com/adamdruppe/arsd/blob/master/dom.d
module semitwist.arsddom;
import std.string;
import arsd.dom;
void deactivateLink(Element link)
{
link.removeAttribute("href");
link.className = "in... | D |
class C{
C[1] c;
this(){
c ~= this;
}
}
| D |
instance STRF_1137_Addon_Sklave (Npc_Default)
{
// ------ NSC ------
name = NAME_Addon_Sklave;
guild = GIL_STRF;
id = 1137;
voice = 3;
flags = 0;
npctype = NPCTYPE_BL_AMBIENT;
//aivars
aivar[AIV_NoFightParker] = TRUE;
aivar[AIV_IgnoresArmor] = TRUE;
// ------ Attribute ------
B_... | D |
/Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/AnonymousObserver.o : /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Leex/TableView_Test... | D |
/*
* This file contains all configurations for collectable projectiles.
*
* Requires the feature GFA_REUSE_PROJECTILES (see config\settings.d).
*
* List of included functions:
* func int GFA_GetUsedProjectileInstance(int projectileInst, C_Npc shooter, C_Npc inventoryNpc)
*/
/*
* When collecting projectiles i... | D |
/Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Service.build/Container/BasicContainer.swift.o : /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Service/Services/ServiceID.swift /Users/Khanh/vapor/TILApp/.build/checkouts/service.git--3029908809087319447/Sources/Servic... | D |
instance Mod_1184_MIL_Miliz_NW (Npc_Default)
{
// ------ NSC ------
name = Name_Miliz;
guild = GIL_pal;
id = 1184;
voice = 6;
flags = 0;
npctype = NPCTYPE_nw_miliz;
// ------ Attribute ------
B_SetAttributesToChapter (self, 3);
// ------ Kampf-Taktik ----... | D |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... | D |
// Copyright Ferdinand Majerech 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)
/// Root widget of a widget tree loadable from YAML.
module gui2.rootwidget;
import std.exception;
i... | D |
// Copyright Ferdinand Majerech 2014.
// 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)
/// A minimal library providing functionality for changing the endianness of data.
module dub.internal.t... | D |
enum BIT_MASK = 0x00000F0F;
extern (C) int
hex_int(uint idx)
{
int i0 = 0x0;
int i1 = 0X00fa;
int i2;
i2 = 0x7FFFFFFF;
if (0 == idx)
{
return i0;
}
else if (1 == idx)
{
return i1;
}
else if (2 == idx)
{
return i2;
}
else if (3 == idx)
{
return 0x00004000;
}
else if (... | D |
/*
D-System 'SDL UTILITY'
'util_sdl.d'
2003/11/28 jumpei isshiki
*/
private import std.stdio;
private import std.string;
private import SDL;
private import opengl;
private import util_pad;
private import define;
enum{
SURFACE_MAX = 100,
SCREEN_X = 640,
SCREEN_Y = 480,
SCREEN_Z = 640,
SCREEN_SX = 384,
SCRE... | D |
/**
* Copyright: Copyright Digital Mars 2010.
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Jacob Carlborg
* Version: Initial created: Feb 20, 2010
*/
/* Copyright Digital Mars 2010.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanyin... | D |
module _25;
import common;
import std.stdio, std.algorithm, std.range, std.array, std.string, std.conv, std.functional, std.traits;
auto process(string input) {
return input.to!(char[]);
}
auto solveA(ReturnType!process input) {
auto state = 'a';
auto pos = 0;
bool[int] tape;
foreach (i; 0..1238... | D |
/**
Copyright:
Copyright (c) 2016 aermicioi.
All rights reserved. This program and the accompanying materials
are made available under the terms of the GPL v3.0
which is available at
www.gnu.org/licenses/gpl.html
License:
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby grant... | D |
/*******************************************************************************
Common base for all dlstest test cases, using neo protocol. Provides DLS
client instance and defines standard name for tested channel. Automatically
connects DLS client with the node before test starts.
Copyright:
... | D |
/*
* DSFML - The Simple and Fast Multimedia Library for D
*
* Copyright (c) 2013 - 2020 Jeremy DeHaan (dehaan.jeremiah@gmail.com)
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the
* use of this software.
... | D |
/Users/macosx/Desktop/IOS-OBJ/ViberDemo/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/AFError.o : /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/MultipartFormData.swift /Users/macosx/Desktop/IOS-OBJ/ViberDemo/Pods/Alamofire/Source/Timeline.swift /Users/macosx/Desktop/IOS-OB... | D |
/Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/BarChartView.o : /Users/vineshkumar/Documents/Volvo/UD_Hackathon/bms_mobile/ios/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Us... | D |
module ini_file;
| D |
# FIXED
Startup/icall_startup.obj: C:/ti/simplelink/ble_sdk_2_02_00_31/src/common/cc26xx/icall_startup.c
Startup/icall_startup.obj: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common/hal_types.h
Startup/icall_startup.obj: C:/ti/simplelink/ble_sdk_2_02_00_31/src/components/hal/src/target/_common/... | D |
struct erlang_t {
string pid;
};
typedef struct erlang_t erlang_t;
translator erlang_t < uint64_t pid > {
pid = copyinstr(pid);
};
inline erlang_t erlang = xlate<erlang_t> (arg0);
| D |
/***********************************************************************\
* winuser.d *
* *
* Windows API header module *
* ... | D |
instance SLV_824_Slave (Npc_Default)
{
//-------- primary data --------
name = Name_Slave;
Npctype = Npctype_Ambient;
guild = GIL_SLV;
level = 5;
voice = 13;
id = 824;
//-------- abilities --------
attribute[ATR_STRENGTH] = 70;
attribute[ATR_DEXTERITY] = 30;
attribu... | D |
/* Converted to D from gsl_vector_double.h by htod
* and edited by daniel truemper <truemped.dsource <with> hence22.org>
*/
module auxc.gsl.gsl_vector_double;
/* vector/gsl_vector_double.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000 Gerard Jungman, Brian Gough
*
* This program is free software; you can redis... | D |
var int Harad_ItemsGiven_Chapter_1;
var int Harad_ItemsGiven_Chapter_2;
var int Harad_ItemsGiven_Chapter_3;
var int Harad_ItemsGiven_Chapter_4;
var int Harad_ItemsGiven_Chapter_5;
FUNC VOID B_GiveTradeInv_Harad (var C_NPC slf)
{
if ((Kapitel >= 1)
&& (Harad_ItemsGiven_Chapter_1 == FALSE))
{
CreateInvItems (slf, I... | D |
/*
* $Id: gamemanager.d,v 1.5 2005/09/11 00:47:40 kenta Exp $
*
* Copyright 2005 Kenta Cho. Some rights reserved.
*/
module abagames.gr.gamemanager;
private import std.math;
private import derelict.sdl2.sdl;
private import gl3n.linalg;
private import abagames.util.rand;
private import abagames.util.support.gl;
pri... | D |
import core.stdcpp.allocator;
extern(C++) struct MyStruct
{
int* a;
double* b;
MyStruct* c;
}
extern(C++) MyStruct cpp_alloc(int sz);
extern(C++) void cpp_free(ref MyStruct s, int sz);
unittest
{
// alloc in C++, delete in D (small)
MyStruct s = cpp_alloc(42);
allocator!int().deallocate(s.a, ... | D |
/Users/parkingsq1/Documents/project/PushPill/DerivedData/PushPill/Build/Intermediates/Pods.build/Debug-iphonesimulator/Spring.build/Objects-normal/x86_64/SpringLabel.o : /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/AsyncButton.swift /Users/parkingsq1/Documents/project/PushPill/Pods/Spring/Spring/Asyn... | 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 |
/*******************************************************************************
* 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 distributio... | D |
/Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.build/Connection/DatabaseStringFindable.swift.o : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/database-kit.git--3872818599693266265/Sources/DatabaseKit/Utilities/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checko... | D |
instance DIA_AngarDJG_EXIT(C_Info)
{
npc = DJG_705_Angar;
nr = 999;
condition = DIA_AngarDJG_EXIT_Condition;
information = DIA_AngarDJG_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_AngarDJG_EXIT_Condition()
{
return TRUE;
};
func void DIA_AngarDJG_EXIT_Info()
{
AI_StopProcessInfos... | D |
module cmsed.user.operations;
import cmsed.user;
import cmsed.user.models;
import cmsed.user.registration.auth;
import cmsed.base.defs;
/**
* Get the currently logged in user.
*
* Returns:
* Returns a UserModel or null if non existant.
*/
UserModel getLoggedInUser() {
if (session.isKeySet("userId")) {
retur... | D |
import std.stdio;
void main() {
char[] a = "Hello,";
char[] b = " World!";
char[] c = a ~ b;
writeln(c);
} | D |
import nonsense;
immutable(Morphism) symbolicElement(immutable CObject obj, string symbol, string latex = "") {
auto cat = obj.isIn(Vec) ? Pol : Set;
return lazyEvaluate(symbolicMorphism(cat, ZeroSet, obj, symbol, latex), Zero);
}
// element map
immutable(Morphism) elementMap(immutable Morphism morph) {
return... | D |
/Users/MacBook/Desktop/PerfectTemplate/.build/debug/PerfectLib.build/Dir.swift.o : /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Bytes.swift /Users/MacBook/Desktop/PerfectTemplate/Packages/PerfectLib-2.0.3/Sources/PerfectLib/Dir.swift /Users/MacBook/Desktop/PerfectTemplate/Packages... | D |
import std.stdio: writeln;
import std.traits: isFloatingPoint, isNumeric;
import std.conv: to;
import fftw3;
/**
To compile:
dmd callc_dstep.d fftw3.d -L-lfftw3 -L-lm && ./callc_dstep
*/
struct Complex(T)
if(isFloatingPoint!T)
{
T[2] data;
this(T[2] x)
{
data = x;
}
this(T[] x)
{
assert(x.l... | D |
import dchat.dchat;
void main(){
new Dchat;
}
| 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_12_BeT-6721665... | D |
/home/roldan/Documentos/repo/TFG/rust/rust_search_100KK_best_case/target/debug/build/rand-8d1b1cdf392551b4/build_script_build-8d1b1cdf392551b4: /home/roldan/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.6.5/build.rs
/home/roldan/Documentos/repo/TFG/rust/rust_search_100KK_best_case/target/debug/build/rand-8d1b... | D |
/Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/Objects-normal/x86_64/NVActivityIndicatorAnimationOrbit.o : /Users/hanykaram/Desktop/MVC/Pods/NVActivityIndicatorView/Sources/Base/Animations/N... | D |
/**
* This module provides an `Array` type with deterministic memory usage not
* reliant on the GC, as an alternative to the built-in arrays.
*
* This module is a submodule of $(MREF std, container).
*
* Source: $(PHOBOSSRC std/container/array.d)
*
* Copyright: 2010- Andrei Alexandrescu. All rights reserved by ... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.