code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
/*
* This file is part of serpent.
*
* Copyright © 2019-2020 Lispy Snake, Ltd.
*
* 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.
*
* Permission is granted to anyone to use this s... | D |
instance DIA_Addon_Pardos_EXIT(C_Info)
{
npc = STRF_1122_Addon_Pardos;
nr = 999;
condition = DIA_Addon_Pardos_EXIT_Condition;
information = DIA_Addon_Pardos_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Addon_Pardos_EXIT_Condition()
{
return TRUE;
};
func void DIA_Addon_Pardos_EXIT_... | D |
// https://issues.dlang.org/show_bug.cgi?id=21515
// EXTRA_CPP_SOURCES: test21515.cpp
// CXXFLAGS: -std=c++11
// DISABLED: win32 win64
// ABI layout of native complex
struct _Complex(T) { T re; T im; }
// Special enum definitions.
version (Posix)
{
align(float.alignof) enum __c_complex_float : _Complex!float;
... | D |
INSTANCE Monster_11025_Wesen_HALU (Npc_Default)
{
// ------ NSC ------
name = "Wesen";
guild = GIL_MOLERAT;
id = 11025;
voice = 18;
npctype = NPCTYPE_MAIN;
// ------ Attribute ------
B_SetAttributesToChapter (self, 5);
// ------ Kampf-Taktik ------
fight_tactic = FAI_MOLERAT;
... | D |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... | D |
// PERMUTE_ARGS: -O -fPIC
extern(C) int printf(const char*, ...);
/****************************************************/
class Abc : Exception
{
this()
{
super("");
}
int i;
}
int y;
alias int boo;
void foo(int x)
{
y = cast(boo)1;
L6:
try
{
printf("try 1\n");
y += 4;
if (y ... | D |
module test;
import std.stdio;
import std.file;
import minid.api;
// import minid.bind;
// import minid.vector;
// import minid.serialization;
// import minid.addons.pcre;
// import minid.addons.sdl;
// import minid.addons.gl;
// import minid.addons.net;
void main()
{
scope(exit) stdout.flush();
MDVM vm;
auto ... | D |
module dcrypt.pqc.sphincs.sphincs256;
import dcrypt.bitmanip;
import dcrypt.streamcipher.chacha;
import dcrypt.digests.blake: Blake512, hash;
import dcrypt.pqc.sphincs.common;
import dcrypt.pqc.sphincs.sphincs;
public alias Sphincs!(n, m, 12, 5, hash_n_n, hash_2n_n, prg) Sphincs256;
alias ubyte[32] hash256;
enum... | D |
/home/jean/Desktop/udemy-courses/rust-learning/section14-testing/adder/target/debug/deps/adder-8a2343b77016b4d2: src/lib.rs
/home/jean/Desktop/udemy-courses/rust-learning/section14-testing/adder/target/debug/deps/adder-8a2343b77016b4d2.d: src/lib.rs
src/lib.rs:
| D |
a republic on the island of Madagascar
an island in the Indian Ocean off the southeastern coast of Africa
| D |
// **************************************************
// EXIT
// **************************************************
INSTANCE DIA_Hrabia_Exit (C_INFO)
{
npc = GRD_4010_Hrabia;
nr = 999;
condition = DIA_Hrabia_Exit_Condition;
information = DIA_Hrabia_Exit_Info;
permanent = 1;
description = DIALOG_ENDE;... | D |
// Written in the D programming language.
/**
This is a submodule of $(MREF std, algorithm).
It contains generic _sorting algorithms.
$(SCRIPT inhibitQuickIndex = 1;)
$(BOOKTABLE Cheat Sheet,
$(TR $(TH Function Name) $(TH Description))
$(T2 completeSort,
If $(D a = [10, 20, 30]) and $(D b = [40, 6, 15]), then
... | D |
/+
Copyright (c) 2005 Eric Anderton
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,... | D |
/+
Copyright (c) 2005-2007 Lars Ivar Igesund, Eric Anderton
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,... | D |
/Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/HTTPPipelineSetup.swift.o : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/NIOHTTP1/HTTPPipelineSetup.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-... | D |
import std.stdio;
struct S
{
int x;
int y;
}
/********************************************/
void test1()
{
S s = S(1,2);
assert(s.x == 1);
assert(s.y == 2);
}
/********************************************/
void foo2(S s)
{
assert(s.x == 1);
assert(s.y == 2);
}
void test2()
{
foo2( ... | D |
// Copyright © 2011, Jakob Bornecrantz. All rights reserved.
// See copyright notice in src/charge/charge.d (GPLv2 only).
module charge.platform.core.sdl;
import std.file : exists;
import std.string : format, toString, toStringz;
import charge.core;
import charge.gfx.gfx;
import charge.gfx.target;
import charge.sys.... | D |
module axfinanceinteraction.api.publics;
import std.stdio, std.system;
interface IPublics
{
public:
bool ff();
}
class Publics
{
public:
abstract bool ʢ();
}
| D |
/*
[The "BSD licence"]
Copyright (c) 2005-2008 Terence Parr
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this ... | D |
parser.cmi : syntax.cmo id.cmo
| D |
/**
* This module implements $(D TestSuite), an aggregator for $(D TestCase)
* objects to run all tests.
*/
module unit_threaded.testsuite;
import unit_threaded.testcase;
import unit_threaded.io;
import unit_threaded.options;
import unit_threaded.factory;
import unit_threaded.reflection;
import std.datetime;
impor... | D |
/Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Debounce.o : /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/nalousnguyen/Documents/... | D |
// Written in the D programming language.
/**
* Templates with which to extract information about types and symbols at
* compile time.
*
* Macros:
* WIKI = Phobos/StdTraits
*
* Copyright: Copyright Digital Mars 2005 - 2009.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* ... | D |
///Load JSON config file
module util.config;
import util.inform;
abstract class BuildSpecification
{
///User defined named of thing from config file
string name;
///Exact string as if executed on shell
string exactCommand;
string[] programAndArgs;
this(string sName, string sShellStri... | D |
module javascriptcore.Exception;
private import glib.ConstructionException;
private import glib.Str;
private import gobject.ObjectG;
private import javascriptcore.Context;
private import javascriptcore.c.functions;
public import javascriptcore.c.types;
/**
* JSCException represents a JavaScript exception.
*/
publ... | D |
a trivalent metalloid element
| D |
/**
* Inline assembler for the GCC D compiler.
*
* Copyright (C) 2018-2020 by The D Language Foundation, All Rights Reserved
* Authors: Iain Buclaw
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/d... | D |
struct lerplist(T,alias lerp,bool cyclic=false,bool rush=false){
static assert( ! (cyclic && rush),"that hurts to think about");
struct elem{
T e; alias e this;
int t;
}
elem[] data=[elem(T.init,-1)];
static if( ! cyclic){
int length;
int maxlength=-1;
}
static if( ! cyclic){
auto first(){
return da... | D |
module juno.examples.com.latebinding;
import juno.com.core, juno.com.client;
void bind() {
// Create an instance of the Message object
scope message = new DispatchObject("CDO.Message");
// Build the mail message
message.set("Subject", "Hello, World!");
message.set("TextBody", "Just saying Hello."... | D |
// URL: https://atcoder.jp/contests/abc171/tasks/abc171_d
import std;
version(unittest) {} else
void main()
{
int N; io.getV(N);
long[] A; io.getA(N, A);
long[long] h;
foreach (Ai; A) ++h[Ai];
auto s = A.sum;
int Q; io.getV(Q);
foreach (_; 0..Q) {
long Bi, Ci; io.getV(Bi, Ci);
if (Bi in h) {
... | D |
module d2d.debugging.profiler.profiler;
import std.string : format;
import derelict.sdl2.sdl;
import d2d.constants;
import d2d.debugging.profiler.iprofileroutputhandler;
/**
* Profiler
*/
static class Profiler {
public static IProfilerOutputHandler outputHandler;
private {
static Sample[Constants.maxProfilerSa... | D |
/**
* This is a low-level messaging API upon which more structured or restrictive
* APIs may be built. The general idea is that every messageable entity is
* represented by a common handle type called a Tid, which allows messages to
* be sent to logical threads that are executing in both the current process
* and... | D |
/**
* Disassembler formatting engine.
*
* The formatting engine is designed to format any given pieces of string from
* the decoder in a given order by the style setting.
*
* This module provides the item and style formatting functions for the
* disassembler. The decoder pushes items with their respective types ... | D |
// Compiler implementation of the D programming language
// Copyright (c) 1999-2015 by Digital Mars
// All Rights Reserved
// written by Walter Bright
// http://www.digitalmars.com
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
module ddmd.dcast;
import core.stdc... | D |
a broad cartridge belt worn over the shoulder by soldiers
| D |
import std.stdio;
import hunt.xml.Document;
void main()
{
auto xml = "<?xml version='1.0'?>\n" ~
"<foo attr='42'>\n" ~
" <bar/>\n" ~
" <!-- no comment -->\n" ~
" <baz hello='world'>\n" ~
" nothing to say.\n" ~
... | D |
module android.java.java.nio.channels.AsynchronousFileChannel_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import5 = android.java.java.nio.file.OpenOption_d_interface;
import import8 = android.java... | D |
module spine.attachment.loader;
import spine.attachment.attachment;
import spine.attachment.boundingbox;
import spine.attachment.mesh;
import spine.attachment.region;
import spine.attachment.skinnedmesh;
import spine.attachment.type;
import spine.skin.skin;
export interface AttachmentLoader {
RegionAttachmen... | D |
module godot.remotetransform;
import std.meta : AliasSeq, staticIndexOf;
import std.traits : Unqual;
import godot.d.meta;
import godot.core;
import godot.c;
import godot.object;
import godot.classdb;
import godot.spatial;
@GodotBaseClass struct RemoteTransform
{
static immutable string _GODOT_internal_name = "RemoteTr... | D |
module math.torus3;
import math.vec3;
import math.ray;
import math.common;
import math.mat3;
import math.rootsolver;
import misc.logger;
/* ---- inttor - Intersect a ray with a torus. ------------------------ */
/* */
/* */
/* Description... | D |
/Users/justinlew/Documents/iOS_dev/mealify.io/DerivedData/mealify/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/XAxis.o : /Users/justinlew/Documents/iOS_dev/mealify.io/Pods/Charts/Source/Charts/Filters/DataApproximator+N.swift /Users/justinlew/Documents/iOS_dev/mealify.... | D |
a local computer network for communication between computers
| D |
module dsl.ast.Skeleton;
import dsl.ast.TypedVar;
import std.container;
import dsl.syntax.Word, dsl.ast.Block;
import dsl.ast._;
class Skeleton {
private Word _begin, _end;
private Word _ident;
private Array!TypedVar _params;
private Array!Var _template;
private Array!Word _fnNames;
p... | D |
a style of glazed earthenware
| D |
/*******************************************************************************
Tests the 'first release' scenario with the neptune-release tool
Copyright:
Copyright (c) 2017 Sociomantic Labs GmbH. All rights reserved.
License:
Boost Software License Version 1.0. See LICENSE.txt for deta... | D |
module tests.utils;
import reggae;
import unit_threaded;
import std.file;
import tests.it.runtime: ReggaeSandbox;
struct WorkDir {
string value;
}
auto shouldExecuteOk(in string[] args, in string file = __FILE__, in size_t line = __LINE__) {
return shouldExecuteOk(args, WorkDir(ReggaeSandbox.currentTestPa... | D |
/home/brad/Development/rusty_snek_gaem/target/rls/debug/deps/num_cpus-b7085970b1751b86.rmeta: /home/brad/.cargo/registry/src/github.com-1ecc6299db9ec823/num_cpus-1.8.0/src/lib.rs
/home/brad/Development/rusty_snek_gaem/target/rls/debug/deps/num_cpus-b7085970b1751b86.d: /home/brad/.cargo/registry/src/github.com-1ecc6299... | D |
/Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/TemplateKit.build/AST/TemplateCustom.swift.o : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/template-kit/Sources/TemplateKit/Data/TemplateData.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checko... | D |
module gfx.memalloc.pool;
package:
import gfx.graal.device : Device;
import gfx.graal.memory : DeviceMemory, MemoryHeap, MemoryProperties,
MemoryRequirements, MemoryType;
import gfx.memalloc;
final class PoolAllocator : Allocator
{
MemoryPool[] _pools;
this(Device device, All... | D |
module vibe.http.test;
version(unittest):
// todo | D |
/*******************************************************************************
Test for loading client config, including nodes and auth name/key from disk.
Copyright:
Copyright (c) 2017 dunnhumby Germany GmbH. All rights reserved
License:
Boost Software License Version 1.0. See LICENSE.... | D |
/**
* Contains SSE2 and MMX versions of certain operations for float.
*
* Copyright: Copyright Digital Mars 2008 - 2010.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Walter Bright, based on code originally written by Burton Radons
*/
/* Copyright Digita... | D |
/Users/rrunfa/Desktop/RxIssuesSample/.build/x86_64-apple-macosx10.10/debug/RxIssuesSample.build/DetailsViewController.swift.o : /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/SupportingFiles/AppDelegate.swift /Users/rrunfa/Desktop/RxIssuesSample/RxIssuesSample/ViewModel.swift /Users/rrunfa/Desktop/RxIssuesSample/R... | D |
module tvm.vm.primops;
import std.math;
import std.typecons : tuple;
import std.stdio;
import tvm.vm.utils;
import tvm.vm.objects;
import tvm.vm.interpreter;
import tvm.vm.gc;
import tvm.compiler.printer;
alias TVMPrimop = time_t function (time_t time, TVMContext uProc);
auto take(size_t n)(TVMContext uProc) {
... | 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 |
module directx.d2d1_1;
//---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This file is automatically generated. Please do not edit it directly.
//
// File name: D2D1_1.h
//----------------------------------------------------... | D |
/**
* D header file for WASI.
*
* Copyright: Copyright Sean Kelly 2005 - 2009.
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Sean Kelly, Alex Rønne Petersen
* Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition
*/
/* Copyright Sean ... | D |
// Written in the D programming language.
/**
* MessagePack for D, some buffer implementation
*
* Buffer list:
* $(UL
* $(LI SimpleBuffer)
* $(LI DeflationBuffer)
* $(LI VRefBuffer)
* $(LI BinaryFileWriter)
* )
*
* Some helper functions avoid $(LINK http://d.puremagic.com/issues/show_bug.cgi?id=3438).
... | D |
/Users/pacmac/Documents/GitHub/Blockchain/substarte_blockchain/substrate-node-template/runtime/target/rls/debug/deps/subtle-a1b7b31b94f22788.rmeta: /Users/pacmac/.cargo/registry/src/github.com-1ecc6299db9ec823/subtle-2.4.0/src/lib.rs
/Users/pacmac/Documents/GitHub/Blockchain/substarte_blockchain/substrate-node-templat... | D |
module test16709b;
public:
import imports.test16709c;
import imports.test16709d;
| D |
a thoroughfare (usually including sidewalks) that is lined with buildings
the part of a thoroughfare between the sidewalks
the streets of a city viewed as a depressed environment in which there is poverty and crime and prostitution and dereliction
a situation offering opportunities
people living or working on the same ... | 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 |
/*
* Copyright Lodovico Giaretta 2016 - .
* 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 random_benchmark;
import genxml;
import std.experimental.statistical;
import std.ex... | D |
/***************************************************************************************************
License:
Copyright (c) 2005-2007 Lode Vandevenne
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- ... | D |
import std.stdio : write, writeln, readf;
import std.algorithm : reverse, reduce, max, min, sum, find;
import std.range : empty;
int[] getNumbers()
{
import std.stdio : readf, write;
int[5] numbers;
int inputNumber;
foreach (count; 0 .. 5)
{
write("Enter a number for array element ", count, ": ");
readf(" %s... | D |
/Users/patbutler/Developer/Server/Kitura/EmojiJournalServer/.build/x86_64-apple-macosx/debug/SwiftyRequest.build/RestRequest.swift.o : /Users/patbutler/Developer/Server/Kitura/EmojiJournalServer/.build/checkouts/SwiftyRequest/Sources/SwiftyRequest/JSON.swift /Users/patbutler/Developer/Server/Kitura/EmojiJournalServer/.... | D |
module memoryLowlevel.StackAllocator;
struct StackAllocator(uint SizeInBits, Type) {
private Type[1 << (SizeInBits-1)] arr;
private size_t currentNextIndex;
final void reset() {
currentNextIndex = 0;
}
final void append(Type value, out bool success) {
success = false;
assert( currentNextIndex <= (1 << Siz... | D |
module UnrealScript.TribesGame.TrSubDevice_ForceField;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.TribesGame.TrSubDevice;
import UnrealScript.Engine.Actor;
extern(C++) interface TrSubDevice_ForceField : TrSubDevice
{
public extern(D):
private static __gshared ScriptClass mStatic... | D |
module nnet;
import std.stdio;
import std.string;
import std.array;
import std.conv;
void train(in string FileToTrain, ref int[][] weightMatrix)
{
int maxEntries = 0;
int minEntries = 0;
int count = 0;
int[][] inMatrix = new int[][](0);
readInFile(FileToTrain, minEntries, maxEntries, count, inMatrix);... | D |
/**
Got this code (but altered it) from: http://www.gnu.org/s/libc/manual/html_node/Time-Functions-Example.html
*/
import std.stdio;
import std.datetime;
import std.c.time;
version (none)
{
int tm_sec; /* seconds (0 - 60) */
int tm_min; /* minutes (0 - 59) */
int tm_hour; /* hours (0 - 23) */
int tm_mday; /* ... | D |
/*
# What Is This: programming samples
# Author: Makoto Takeshita <takeshita.sample@gmail.com>
# URL: http://simplesandsamples.com
# Version: UNBORN
#
# Usage:
# 1. git clone https://github.com/takeshitamakoto/sss.git
# 2. change the directory name to easy-to-use name. (e.g. sss -> sample)
# 3. open sss/src/filenam... | D |
/++
$(H1 Common information for all x86 and x86_64 vendors.)
Note:
`T.max` value value is used to represent fully-associative Cache/TLB.
References:
$(LINK2 https://en.wikipedia.org/wiki/CPUID, wikipedia:CPUID)
License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Ilya Yaroshenko
+/... | D |
/Users/kirstenrichard/Desktop/substrate-moloch-dao/target/release/deps/libthiserror_impl-35777cc0ad462b04.dylib: /Users/kirstenrichard/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.19/src/lib.rs /Users/kirstenrichard/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-impl-1.0.19/src/ast.rs /... | D |
module utf8;
import std.stdio : Exception;
import std.format : format;
class Utf8Exception : Exception
{
this(string msg) pure
{
super(msg);
}
}
enum invalidEndMessage = "input ended with invalid UTF-8 character";
// This method assumes that utf8 points to at least one character
// and that the ... | D |
// *************************************************************************
// Kapitel 1
// *************************************************************************
// *************************************************************************
// EXIT
// *********************************************... | D |
/**
* Defines a function declaration.
*
* Includes:
* - function/delegate literals
* - function aliases
* - (static/shared) constructors/destructors/post-blits
* - `invariant`
* - `unittest`
*
* Copyright: Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http... | D |
constituting a separate entity or part
| D |
/**
* D header file for interaction with C++ std::array.
*
* Copyright: Copyright (c) 2018 D Language Foundation
* License: Distributed under the
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
* (See accompanying file LICENSE)
* Authors: Manu Evans
* Source: $(... | D |
/**
Internal hash map implementation.
Copyright: © 2013 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.utils.hashmap;
import vibe.utils.memory;
import std.conv : emplace;
import std.traits;
struct Default... | D |
/substrate-node-template/target/release/deps/hash256_std_hasher-9f5173b3b2e0cd17.rmeta: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/hash256-std-hasher-0.15.2/src/lib.rs
/substrate-node-template/target/release/deps/libhash256_std_hasher-9f5173b3b2e0cd17.rlib: /root/.cargo/registry/src/github.com-1ecc6299db9ec... | D |
// URL: https://atcoder.jp/contests/aising2020/tasks/aising2020_d
import std;
version(unittest) {} else
void main()
{
int N; io.getV(N);
dchar[] X; io.getV(X); X.reverse;
auto f = new int[](N+1);
foreach (i; 1..N+1)
f[i] = f[i % i.popcnt]+1;
auto p = X.count('1').to!int, pn = p-1, pp = p+1;
auto mn ... | D |
witty language used to convey insults or scorn
incongruity between what might be expected and what actually occurs
a trope that involves incongruity between what is expected and what occurs
| D |
/*
* #31 Wolf's minecrawler plate dialog doesn't disappear
*/
func int G1CP_031_WolfPlateDialog() {
if (MEM_GetSymbolIndex("Info_Wolf_MCPLATESFEW_Condition") != -1)
&& (MEM_GetSymbolIndex("Info_Wolf_MCPLATESENOUGH_Condition") != -1)
&& (MEM_GetSymbolIndex("Info_Wolf_MCPLATESENOUGH") != -1) {
... | D |
int main() {
int a;
int b;
a = ReadInteger();
b = ReadInteger();
Print(a);
Print(b);
}
| D |
module gfm.opengl.buffer;
import derelict.opengl3.gl3;
import gfm.opengl.opengl;
/// OpenGL Buffer wrapper.
final class GLBuffer
{
public
{
/// Creates an empty buffer.
/// Throws: $(D OpenGLException) on error.
this(OpenGL gl, GLuint target, GLuint usage)
{
_gl = ... | D |
/Users/caochengfei/Desktop/swiftServiceTest/.build/x86_64-apple-macosx10.10/debug/PerfectMySQL.build/PerfectMySQL.swift.o : /Users/caochengfei/Desktop/swiftServiceTest/.build/checkouts/Perfect-MySQL.git-4976130768219902098/Sources/PerfectMySQL/MySQLCRUD.swift /Users/caochengfei/Desktop/swiftServiceTest/.build/checkouts... | D |
// Written in the D programming language
// License: http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0
// TODO: the caches should use weak references
import std.conv;
import options, hashtable, dutil;
alias Q=TupleX, q=tuplex;
static import std.typecons;
import std.algorithm, std.array;
import std.datetime.s... | D |
British general and statesman whose victory at Plassey in 1757 strengthened British control of India (1725-1774)
| D |
/afs/cern.ch/work/m/mmittal/private/MyAnalysisCode/RootCoreBin/obj/x86_64-slc6-gcc49-opt/MadGraphME/obj/CPPProcess_P0_Sigma_HC_NLO_X0_UFO_pp_Xjj_4l_HC_NLO_X0_UFO_udx_udxepemmupmum.o /afs/cern.ch/work/m/mmittal/private/MyAnalysisCode/RootCoreBin/obj/x86_64-slc6-gcc49-opt/MadGraphME/obj/CPPProcess_P0_Sigma_HC_NLO_X0_UFO_... | 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... | D |
const int SPL_Cost_PalDestroyEvil = 60;
const int SPL_Damage_PalDestroyEvil = 600;
instance Spell_PalDestroyEvil(C_Spell_Proto)
{
time_per_mana = 0;
damage_per_level = SPL_Damage_PalDestroyEvil;
spellType = SPELL_NEUTRAL;
};
func int Spell_Logic_PalDestroyEvil(var int manaInvested)
{
if(Npc_GetActiveSpellIsScro... | D |
/Users/markmoussa/HackathonProjects/Rhabit/DerivedData/Rhabit/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartViewPortHandler.o : /Users/markmoussa/HackathonProjects/Rhabit/Pods/Charts/Charts/Classes/Data/Implementations/Standard/BarChartData.swift /Users/markmoussa/Hackatho... | D |
/*
DSFML - The Simple and Fast Multimedia Library for D
Copyright (c) 2013 - 2015 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.
Permission is gran... | D |
module hurt.container.vector;
import hurt.conv.conv;
import hurt.container.dlst;
import hurt.container.iterator;
import hurt.container.randomaccess;
import hurt.io.stdio;
import hurt.string.formatter;
import hurt.string.stringbuffer;
import hurt.util.slog;
@trusted {
class Vector(T) : Iterable!(T), RandomAccess!(T) ... | D |
module mach.math.bits;
private:
/++ Docs
This package provides functionality for bit manipulation.
Perhaps most notably, `extractbit` and `extractbits`, and `injectbit` and
`injectbits`, which can be used to read and write specific bits in a value.
+/
public:
import mach.math.bits.clz;
import mach.math.bits.compa... | D |
/**
* Manipulating basic blocks and their edges.
*
* Copyright: Copyright (C) 1986-1997 by Symantec
* Copyright (C) 2000-2023 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... | D |
module foo.bar;
import core.vararg;
import std.stdio;
pragma (lib, "test");
pragma (msg, "Hello World");
static assert(true, "message");
alias double mydbl;
int testmain()
in
{
assert(1 + (2 + 3) == -(1 - 2 * 3));
}
out(result)
{
assert(result == 0);
}
body
{
float f = (float).infinity;
int i = cast(int)f;
writeln... | D |
/***********************************\
ADRESSEN DER ENGINECALLS
\***********************************/
//========================================
// Alle (?) genutzen Engineadressen
//========================================
const int CGameManager__ApplySomeSettings = 4355760; //0x4276B0
const i... | D |
module android.java.android.media.tv.TvTrackInfo;
public import android.java.android.media.tv.TvTrackInfo_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!TvTrackInfo;
import import0 = android.java.java.lang.CharSequence;
import import3 = android.java.java.lang.Class;
import import1 = android.j... | D |
// Copyright (C) 2002-2013 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine" for the D programming language.
// For conditions of distribution and use, see copyright notice in irrlicht.d module.
module irrlicht.gui.IGUIFont;
import irrlicht.video.SColor;
import irrlicht.core.rect;
import irrlicht.core.di... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.