code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
module android.java.java.security.InvalidKeyException;
public import android.java.java.security.InvalidKeyException_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!InvalidKeyException;
import import4 = android.java.java.lang.Class;
import import3 = android.java.java.lang.StackTraceElement;
| D |
auto ref foo(int x) { return x; } // value return
auto ref foo() { return 3; } // value return
auto ref foo(ref int x) { return x; } // ref return
auto ref foo(out int x) { return x; } // ref return
auto ref foo() { static int x; return x; } // ref return
auto ref foo(ref int x) { return 3; return x;... | D |
the smallest whole number or a numeral representing this number
one of four playing cards in a deck having a single pip on its face
someone who is dazzlingly skilled in any field
proteolytic enzyme that converts angiotensin I into angiotensin II
a major strategic headquarters of NATO
a serve that the receiver is unable... | D |
// Written in the D programming language.
/**
This module is DML (DlangUI Markup Language) parser - similar to QML in QtQuick
Synopsis:
----
Widget layout = parseML(q{
VerticalLayout {
TextWidget { text: "Some label" }
TextLine { id: editor; text: "Some text to edit" }
Button { id: btnOk... | D |
// Written in the D programming language.
module windows.mbn;
public import windows.core;
public import windows.automation : BSTR, IDispatch;
public import windows.com : HRESULT, IUnknown;
public import windows.mobilebroadband : MBN_BAND_CLASS, MBN_CONTEXT_CONSTANTS, MBN_CTRL_CAPS,
... | D |
import std.algorithm;
import std.conv;
import std.file;
import std.net.curl;
import std.stdio;
import std.string;
/**
@file slomograb.d
@author Sean Charles <sean lives-at objitsu dot com>
@licence MIT spread it around!
A simple frame grabber tool for use with IPWebcam Remote (Android).
*/
void main(str... | D |
/** FNV(Fowler-Noll-Vo) hash implementation.
*
* This module conforms to the APIs defined in std.digest.
*/
module digestx.fnv;
public import std.digest;
/**
* Template API FNV-1(a) hash implementation.
*/
struct FNV(ulong bitLength, bool fnv1a = false)
{
static if (bitLength == 32)
{
alias Eleme... | D |
header codef - console definitions
co_ctc : (int) int
coCHK := 1
coENB := 2
coDSB := 3
If !Pdp
include rid:mxdef
include rid:kbdef
coVbrk : int extern
co_att : (*void) int
co_det : (void) int
co_dlc : (void) void
type coTget : (*kbTcha, int) int
co_get : coTget
co_prm : (*char, *char, size) int
coPget : ... | D |
/**
* Implementations of $(D TestCase) child classes.
*/
module std.experimental.testing.testcase;
import std.experimental.testing.should;
import std.experimental.testing.io : addToOutput, utWrite;
import std.experimental.testing.reflection : TestData, TestFunction;
import std.exception;
import std.algorithm;
/**... | D |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: chat/v1/emotes.proto
module protocol.chat.v1.emotes;
import google.protobuf;
enum protocVersion = 3012004;
class CreateEmotePackRequest
{
@Proto(1) string packName = protoDefaultValue!string;
}
class CreateEmotePackResponse
{
@Proto(1) ... | D |
/*
REQUIRED_ARGS: -preview=dip1000
TEST_OUTPUT:
---
fail_compilation/test20245.d(20): Error: reference to local variable `x` assigned to non-scope parameter `ptr` calling `escape`
fail_compilation/test20245.d(21): Error: copying `&x` into allocated memory escapes a reference to parameter `x`
fail_compilation/test20245.... | D |
/// PNG file handling for color.d's Image interfaces
module arsd.png;
/// Easily reads a png file into a MemoryImage
MemoryImage readPng(string filename) {
import std.file;
return imageFromPng(readPng(cast(ubyte[]) read(filename)));
}
/// Saves a MemoryImage to a png. See also: writeImageToPngFile which uses memory... | D |
module simpledisplay;
// http://wiki.dlang.org/Simpledisplay.d
// FIXME: SIGINT handler is necessary to clean up shared memory handles upon ctrl+c
// see : http://www.sbin.org/doc/Xlib/chapt_09.html section on Keyboard Preferences re: scroll lock led
// Cool stuff: I want right alt and scroll lock to do different s... | D |
import core.thread;
import core.sync.semaphore;
__gshared Semaphore sem;
void thread_main ()
{
sem.notify();
}
void main()
{
auto th = new Thread(&thread_main);
sem = new Semaphore();
th.start();
sem.wait();
while (th.isRunning()) {}
destroy(th); // force detach
th.j... | D |
module basics.characters.mod_characters;
import core.stdc.stdarg;
/*
char[] charArrayFactory(string str){
return str.dup ;
}
string concatenate(string str1, string str2){
return str1~"."~str2;
}
*/ | D |
/**
* Does semantic analysis for statements.
*
* Specification: $(LINK2 https://dlang.org/spec/statement.html, Statements)
*
* Copyright: Copyright (C) 1999-2021 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www... | D |
# FIXED
Application/util.obj: C:/ti/simplelink/ble_sdk_2_02_01_18/src/common/cc26xx/util.c
Application/util.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdbool.h
Application/util.obj: C:/ti/tirtos_cc13xx_cc26xx_2_20_01_08/products/bios_6_46_01_38/packages/ti/sysbios/knl/Clock.h
Application/util.... | D |
import std.stdio;
import gtk.Main;
import gtk.MainWindow;
import gtk.Box;
import gtk.RadioButton;
import gtk.ToggleButton; // so we can use the toggle signal
import gtk.Button;
import glib.ListSG;
void main(string[] args)
{
TestRigWindow testRigWindow;
Main.init(args);
testRigWindow = new TestRigWindow();
M... | D |
instance DIA_1061_WACHE_EXIT(C_INFO)
{
npc = bdt_1061_wache;
nr = 999;
condition = dia_1061_wache_exit_condition;
information = dia_1061_wache_exit_info;
permanent = TRUE;
description = DIALOG_ENDE;
};
func int dia_1061_wache_exit_condition()
{
return TRUE;
};
func void dia_1061_wache_exit_info()
{
AI_StopP... | D |
import std.process;
void main(string[] args) {
if (args.length == 1)
args ~= " ";
foreach(exe; ["cat cf.d", "dmd "~args[1]~" -ofrun ../../*.d ../../arsd/*.d"]) {
std.stdio.writeln('[', exe, ']');
wait(spawnShell(exe));
}
}
| D |
/Users/baidu/Desktop/PullServer/.build/debug/PerfectLib.build/Log.swift.o : /Users/baidu/Desktop/PullServer/Packages/PerfectLib-2.0.5/Sources/PerfectLib/Bytes.swift /Users/baidu/Desktop/PullServer/Packages/PerfectLib-2.0.5/Sources/PerfectLib/Dir.swift /Users/baidu/Desktop/PullServer/Packages/PerfectLib-2.0.5/Sources/Pe... | D |
marked by distress
filled with or attended with
| D |
module doogle.window.opengl.component;
import doogle.window.component_def;
import doogle.window.window;
import doogle.events.event;
import doogle.events.types;
import doogle.math.linalg;
enum TransformMethod {
UseChild,
UseParent,
Multiply,
Add,
SubtractParent,
SubtractChild
}
abstract class ComponentChild_Open... | D |
import metus.dncurses.dncurses;
import std.stdio;
import netslash.generator.mapgen : genTestMap;
import netslash.core.board;
import netslash.core.tile;
import netslash.core.player;
class Solo
{
private:
Board[] levels;
int currentLevel = 0;
Player player;
public this()
{
player = new Player( 10, 10 , 10... | D |
/Users/luoguochun/privt/proj/coding-blog/.demo/rust-lib/mini-redis/target/debug/deps/unicode_width-10deff9368f90a57.rmeta: /Users/luoguochun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/unicode-width-0.1.8/src/lib.rs /Users/luoguochun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/unicode-width-0.... | D |
/Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/NVActivityIndicatorView.build/Objects-normal/x86_64/NVActivityIndicatorAnimationBallScaleMultiple.o : /Users/babaiholdings/Documents/AlchemintWalletiOS/AlchemintProject/Pods/NVActivityIndicato... | D |
/++
Package mysql.test contains integration and regression tests, not unittests.
Unittests (including regression unittests) are located together with the
units they test.
+/
module mysql.test.common;
import std.algorithm;
import std.conv;
import std.datetime;
import std.digest.sha;
import std.exception;
import std.ran... | D |
instance VLK_4148_Gestath(Npc_Default)
{
name[0] = "Gestath";
guild = GIL_OUT;
id = 4148;
voice = 9;
flags = 0;
npcType = npctype_main;
B_SetAttributesToChapter(self,6);
fight_tactic = FAI_HUMAN_STRONG;
EquipItem(self,ItMw_2h_Sld_Sword);
B_CreateAmbientInv(self);
B_SetNpcVisual(self,MALE,"Hum_Head_Psionic",... | D |
/**
* A scope as defined by curly braces `{}`.
*
* Not to be confused with the `scope` storage class.
*
* Copyright: Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 https://www.digitalmars.com, Walter Bright)
* License: $(LINK2 https://www.boost.org/LICENSE_... | D |
a mineral that contains metal that is valuable enough to be mined
a monetary subunit in Denmark and Norway and Sweden
| D |
import cairo;
import std.math;
import cairo.example;
void main()
{
runExample(&sample5);
}
void sample5(Context context)
{
/* a custom shape that is wrapped in a function */
double x0 = 25.6, /* parameters like Rectangle */
y0 = 25.6,
rect_width = 204.8,
rect... | D |
/home/knoldus/IdeaProjects/assignment_twelve/target/debug/deps/multitask-17b70867daba667e.rmeta: /home/knoldus/.cargo/registry/src/github.com-1ecc6299db9ec823/multitask-0.2.0/src/lib.rs
/home/knoldus/IdeaProjects/assignment_twelve/target/debug/deps/libmultitask-17b70867daba667e.rlib: /home/knoldus/.cargo/registry/src/... | D |
void main() {
auto dggetPos = (int a) { return a >=0; };
auto arr = [-1,1,-2,2,-3,-4,3,4];
import std.stdio;
writeln("Was: ", arr);
writeln("Is now: ", filt!int(dggetPos, arr));
}
auto filt(T)(bool function(T) dgIsTrue, T[] arr) {
import std.range;
T[] arr2;
for(; ! arr.empty; arr.popFront) {
if (dgIsTrue(ar... | D |
/home/uzair/iot_folder/assignmnet5/target/debug/deps/assignmnet5-c4aa934361b771b6: src/main.rs
/home/uzair/iot_folder/assignmnet5/target/debug/deps/assignmnet5-c4aa934361b771b6.d: src/main.rs
src/main.rs:
| D |
module dwt.internal.mozilla.nsIDOMNodeList;
import dwt.internal.mozilla.Common;
import dwt.internal.mozilla.nsID;
import dwt.internal.mozilla.nsISupports;
import dwt.internal.mozilla.nsIDOMNode;
alias PRUint64 DOMTimeStamp;
const char[] NS_IDOMNODELIST_IID_STR = "a6cf907d-15b3-11d2-932e-00805f8add32";
const nsIID ... | D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container, std.range;
void get(Args...)(ref Args args)
{
import std.traits, std.meta, std.typecons;
static if (Args.length == 1) {
alias Arg = Args[0];
static if (isArray!Arg) {
... | D |
/**
* Implementation of associative arrays.
*
* Copyright: Copyright Digital Mars 2000 - 2015.
* License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Martin Nowak
*/
module rt.aaA;
/// AA version for debuggers, bump whenever changing the layout
extern (C) immutable int _aaVersion = 1;... | D |
import core.thread;
import core.sync.mutex;
import io = std.stdio;
import fs = std.file;
import std.getopt;
import std.functional;
import std.algorithm;
import std.string;
import std.json;
import std.path;
import std.conv;
import std.traits;
import std.experimental.logger;
import served.fibermanager;
import served.fi... | D |
informal terms for a human head
| D |
module scalar.quaternion;
import std.typecons;
/++
Quaternion is a template class for quaternion numbers.
Params:
nbits : the number of bits for each real component
components: the name of each component
+/
struct Quaternion(size_t nbits, string components = "a, b, c, d")
{
import scalar.decimal : Float;
al... | D |
module mordor.triton.py.manifest;
import tango.text.Util;
import tango.util.Convert;
import mordor.common.exception;
import mordor.common.sqlite;
import mordor.common.streams.stream;
import mordor.common.stringutils;
class InvalidManifestException : PlatformException
{
this(char[] msg)
{
super(msg);
... | D |
module gfm.math.solver;
// Polynomials solver, courtesy of Patapom
// http://patapom.com
import std.traits,
std.math;
/**
* Find the root of a linear polynomial a + b x = 0
* Return number of roots.
*/
size_t solveLinear(T)(T a, T b, out T root) pure nothrow if (isFloatingPoint!T)
{
if (b == 0)
{
... | D |
//#################################################################
//
// 1.) zCParser
// 2.) zCPar_Symbol
// 3.) Токены парсера
//
//#################################################################
//************************************
// 1.) zCParser
//************************************
//Смещения свойс... | D |
INSTANCE Info_Mod_Allievo_Hi (C_INFO)
{
npc = Mod_7033_OUT_Allievo_NW;
nr = 1;
condition = Info_Mod_Allievo_Hi_Condition;
information = Info_Mod_Allievo_Hi_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Allievo_Hi_Condition()
{
return 1;
};
FUNC VOID Info_Mod_Allievo_Hi_Info()
{
AI_Output(self, he... | D |
/*
* This file is part of gtkD.
*
* gtkD is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* gtkD is distribut... | D |
// Written in the D programming language.
/**
* This module implements a
* $(LINK2 http://erdani.org/publications/cuj-04-2002.html,discriminated union)
* type (a.k.a.
* $(LINK2 http://en.wikipedia.org/wiki/Tagged_union,tagged union),
* $(LINK2 http://en.wikipedia.org/wiki/Algebraic_data_type,algebraic type)).
* ... | D |
module foo.bar;
import core.vararg;
import std.stdio;
pragma (lib, "test");
pragma (msg, "Hello World");
static assert(true, "message");
alias mydbl = double;
alias fl = function ()
in
{
}
do
{
}
;
int testmain()
in
{
assert(1 + (2 + 3) == -(1 - 2 * 3));
}
out(result)
{
assert(result == 0);
}
do
{
float f = (float).... | D |
func int C_WantToAttackThief(var C_Npc slf,var C_Npc oth)
{
if(slf.guild == GIL_DMT)
{
return FALSE;
};
if(slf.aivar[AIV_IGNORE_Theft] == TRUE)
{
return FALSE;
};
if(slf.aivar[AIV_LastFightAgainstPlayer] == FIGHT_LOST)
{
return FALSE;
};
if(Npc_IsPlayer(oth) && (slf.npcType == NPCTYPE_FRIEND))
{
ret... | D |
occurring or encountered or experienced or observed frequently or in accordance with regular practice or procedure
commonly encountered
| D |
/Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/Build/Intermediates.noindex/Alamofire.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/AFError.o : /Users/olafgomez/Documents/PracticasCice/PokedexXYiOS/PokemonXYiOS/DerivedData/PokemonXYiOS/SourcePackages/check... | D |
module webkit2webextension.DOMRange;
private import glib.ErrorG;
private import glib.GException;
private import glib.Str;
private import gobject.ObjectG;
private import webkit2webextension.DOMDocumentFragment;
private import webkit2webextension.DOMNode;
private import webkit2webextension.DOMObject;
private import webk... | D |
//*********************************
// Undead Orc Warrior Prototype
//*********************************
PROTOTYPE Mst_Default_UndeadOrcWarrior (C_Npc)
{
//----- Monster ----
name = "Nemrtvý skâet";
guild = GIL_UNDEADORC;
aivar[AIV_MM_REAL_ID] = ID_UNDEADORCWARRIOR;
level = 40;
//----- ... | D |
a festivity in ancient Greece at which competitors contended for prizes
| 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 opengl;
private import SDL;
private import abagames.util.vector;
private import abagames.util.rand;
private import... | D |
# DO NOT EDIT THIS FILE -- OPNsense auto-generated file
{% if helpers.exists('OPNsense.monit.general.enabled') and OPNsense.monit.general.enabled|default("0") == "1" %}
monit_setup="/usr/local/opnsense/scripts/OPNsense/Monit/setup.sh"
monit_enable="YES"
{% else %}
monit_enable="NO"
{% endif %}
| D |
/Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/WebSocketFrameEncoder.swift.o : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/NIOWebSocket/SHA1.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-n... | 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 |
/* ----------------------------------------------------------------------------
* 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 |
the nymph or spirit of a particular tree
large cobra of southeastern Asia and the East Indies
| D |
module mach.sdl.graphics.uniform;
private:
import derelict.opengl;
import core.exception : RangeError;
import mach.types.tuple : tupleFromArray;
import mach.traits.primitives : isNumeric;
import mach.math.vector : Vector, isVector, isVector2, isVector3, isVector4;
import mach.math.matrix : Matrix, isMatrix;
import ... | D |
/// Written in the D programming language.
/// Date: 2015, Joakim Brännström
/// License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
/// Author: Joakim Brännström (joakim.brannstrom@gmx.com)
module dsrcgen.cpp;
import std.typecons : Flag, Yes, No;
import dsrcgen.base;
public import dsr... | D |
module rocksdb.env;
extern (C) {
struct rocksdb_env_t {};
void rocksdb_env_set_background_threads(rocksdb_env_t*, int);
void rocksdb_env_set_high_priority_background_threads(rocksdb_env_t*, int);
void rocksdb_env_join_all_threads(rocksdb_env_t*);
rocksdb_env_t* rocksdb_create_default_env();
rocksdb_env_t... | D |
/Users/apple/DailySchedule/step2/os/target/rls/riscv64imac-unknown-none-elf/debug/deps/spin-bcebd78de6324f02.rmeta: /Users/apple/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/spin-0.5.2/src/lib.rs /Users/apple/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/spin-0.5.2/src/mutex.rs /Users/apple/.carg... | D |
module dlog.Tracer;
import std.traits : fullyQualifiedName;
// RAII Tracer
auto Tracer()
{
string __code__;
version(assert)
{
__code__ ~=
q{
enum __marker__;
auto __context__ = __traits(identifier, (__traits(parent,__marker__)));
// we are ... | D |
/Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/curben.build/Debug-iphonesimulator/curben.build/Objects-normal/x86_64/HomeTableViewCell.o : /Users/sol369/Desktop/curben-oc/curben/AppDelegate.swift /Users/sol369/Desktop/curben-oc/curben/PickupModelCell.swift /Users/sol369/Desktop/curben-oc/curben/... | D |
// Copyright 2013-2021, Adam D. Ruppe.
// FIXME: websocket proxy support
// FIXME: ipv6 support
// FIXME: headers are supposed to be case insensitive. ugh.
// FIXME: 100 continue. tho we never Expect it so should never happen, never kno,
/++
This is version 2 of my http/1.1 client implementation.
It has no de... | D |
instance Mod_7561_OUT_Alvar_EIS (Npc_Default)
{
// ------ NSC ------
name = "Alvar";
guild = GIL_OUT;
id = 7561;
voice = 1;
flags = 0;
npctype = NPCTYPE_MAIN;
// ------ Attribute ------
B_SetAttributesToChapter (self, 3);
// ------ Kampf-Taktik ------
figh... | D |
/home/hustccc/OS_Tutorial_Summer_of_Code/Rust_Learning_Code/csv_challenge/target/release/build/proc-macro2-d5b71873b90022bc/build_script_build-d5b71873b90022bc: /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/proc-macro2-0.4.30/build.rs
/home/hustccc/OS_Tutorial_Summer_of_Code/Rust_Learning_Code... | D |
/*
Copyright © 2020, Luna Nielsen
Distributed under the 2-Clause BSD License, see LICENSE file.
Authors: Luna Nielsen
*/
module engine.render.texture.packer;
import gl3n.linalg;
import gl3n.math;
import std.exception;
import engine.core.log;
import std.format;
import std.algorithm.mutation : remove;
p... | D |
/Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Zip+Collection.o : /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/MohamedNawar/Desktop/MyMVVMRxSwiftExample/Pods/RxSwift/RxSwift/Observables/Sin... | D |
module ithox.qrcode.datatypesinterface;
alias StringString = string[string];
/**
* Simple Laravel QrCode Generator
* @author donglei
*
*/
interface DataTypesInterface
{
public void create(StringString args);
public string toString();
}
class PhoneNumber : DataTypesInterface
{
private
{
const... | D |
/Users/nguyenductai/Desktop/customVideo/Build/Intermediates/customVideo.build/Debug-iphoneos/customVideo.build/Objects-normal/arm64/AppDelegate.o : /Users/nguyenductai/Desktop/customVideo/customVideo/AppDelegate.swift /Users/nguyenductai/Desktop/customVideo/customVideo/VideoLaucher.swift /Users/nguyenductai/Desktop/cus... | D |
import diet.internal.html : htmlEscape, htmlAttribEscape;
import std.format : formattedWrite;
#line 1 "layout.dt"
import qv.enums; {
#line 1 "layout.dt"
}
_diet_output.put("<!DOCTYPE html><head><!--/ Blobal CSS and JS--><link rel=\"stylesheet\" href=\"/");
#line 6 "layout.dt"
_diet_output.htmlAttribEscape(AssetsURL.cs... | D |
/**
* Copyright: Copyright (C) Thomas Dixon 2008. все rights reserved.
* License: BSD стиль: $(LICENSE)
* Authors: Thomas Dixon
*/
module util.cipher.AES;
import util.cipher.Cipher;
/**
* Implementation of the US AES (Rijndael 128) cipher designed by
* Vincent Rijmen и Joan Daemen.
*
* Co... | D |
func void B_Scale(var C_Npc n)
{
PrintDebugNpc(PD_ZS_FRAME,"B_Scale");
if(n.attribute[ATR_STRENGTH] < 10)
{
if(n.attribute[ATR_HITPOINTS_MAX] < 19)
{
Mdl_SetModelScale(n,0.9,1,1);
}
else if((n.attribute[ATR_HITPOINTS_MAX] > 18) && (n.attribute[ATR_HITPOINTS_MAX] < 26))
{
Mdl_SetModelScale(n,0.9,1,1);... | D |
// URL: https://yukicoder.me/problems/no/799
import std.algorithm, std.container, std.math, std.range, std.typecons, std.string;
version(unittest) {} else
void main()
{
int a, b, c, d; io.getV(a, b, c, d);
auto r = 0;
foreach (i; a..b+1)
foreach (j; c..d+1)
if (i != j) ++r;
io.put(r);
}
auto io =... | D |
module perfontain.meshholder;
import std, perfontain;
final class MeshHolder : RCounted
{
this(ubyte type, in SubMeshData data)
{
_iv = PE.render.drawAlloc[type].iv;
reg = _iv.alloc(data);
}
this(in HolderData v)
{
this(v.type, v.data);
texs = v.textures.map!(a => new Texture(a)).array;
meshes = v.m... | D |
/*#D*/
// Copyright © 2012-2017, Bernard Helyer.
// Copyright © 2012-2017, Jakob Bornecrantz.
// See copyright notice in src/volt/license.d (BOOST ver. 1.0).
/*!
* Code that removes volt version constructs.
*
* @ingroup passPost
*/
module volta.postparse.condremoval;
import ir = volta.ir;
import vi = volta.visitor... | D |
module android.java.android.net.wifi.p2p.nsd.WifiP2pUpnpServiceRequest_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.android.net.wifi.p2p.nsd.WifiP2pServiceRequest_d_interface... | D |
/*******************************************************************************
* Copyright (c) 2000, 2005 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 |
/Users/josephhall/Documents/Swift/PopUpZendoLab/bodhi/DerivedData2/bodhi/Build/Intermediates.noindex/bodhi.build/Debug-iphonesimulator/bodhi.build/Objects-normal/x86_64/LoginVC.o : /Users/josephhall/Documents/Swift/PopUpZendoLab/bodhi/bodhi/Controller/SanghaVC.swift /Users/josephhall/Documents/Swift/PopUpZendoLab/bodhi... | D |
instance MIL_324_Peck(Npc_Default)
{
name[0] = "Peck";
guild = GIL_MIL;
id = 324;
voice = 12;
flags = 0;
npcType = npctype_main;
aivar[AIV_MM_RestEnd] = TRUE;
B_SetAttributesToChapter(self,2);
fight_tactic = FAI_HUMAN_MASTER;
EquipItem(self,ItMw_1h_Mil_Sword);
B_CreateAmbientInv(self);
CreateInvItems(self,... | D |
module udis86.c;
public import udis86.c.types;
public import udis86.c.itab;
public import udis86.c.extern_;
| D |
/**
* Poodinis Dependency Injection Framework
* Copyright 2014-2017 Mike Bierlee
* This software is licensed under the terms of the MIT license.
* The full terms of the license can be found in the LICENSE file.
*/
import poodinis;
import poodinis.test.testClasses;
import poodinis.test.foreignDependencies;
import... | D |
/++
+/
module exactmath.parser;
import exactmath.ast;
import exactmath.state;
import std.array : staticArray;
import std.range.primitives; // primitives and isInputRange
/++
+/
enum OpLevel : int
{
///
comma = 0,
///
lambda = 1,
///
to = 2,
///
add = 3,
///
... | D |
module main;
import std.stdio;
import std.ascii;
import std.array;
import polynomial;
import my_exception;
import parser;
import print;
import complex;
int display_usage()
{
writeln("Usage: ./computor \"[string]\"");
return 1;
}
int begin(string str)
{
Polynomial p;
Parser par... | D |
module tests.fail.klass;
import unit_threaded;
interface IService {
string toString() @safe pure nothrow const;
}
class Service: IService {
override string toString() @safe pure nothrow const { return ""; }
}
void testCastNotAllowed() {
IService x = new Service();
IService y = new Service();
should... | D |
func void b_countbackcrew()
{
if((MIS_HELPCREW == LOG_Running) && (PERMCOUNTBACKNW >= GLOBALCOUNTBACKNW) && (MOVECREWTOHOME == FALSE))
{
Log_AddEntry(TOPIC_HELPCREW,"Mluvil jsem s každým na lodi. Sám Innos nechť rozhodne o našem osudu!");
MOVECREWTOHOME = TRUE;
};
if(PYROKARUSEONCE == FALSE)
{
PYROKARUSEONC... | D |
/Users/adrienbigler/Documents/sysin/code/iOS/testPagerNavigation/DerivedData/testPagerNavigation/Build/Intermediates/Pods.build/Debug-iphonesimulator/XLPagerTabStrip.build/Objects-normal/x86_64/PagerTabStripBehaviour.o : /Users/adrienbigler/Documents/sysin/code/iOS/testPagerNavigation/Pods/XLPagerTabStrip/Sources/BarPa... | D |
/Users/akhiltirumalasetty/Documents/MusicSearch/build/MusicSearch.build/Debug-iphonesimulator/MusicSearch.build/Objects-normal/x86_64/ViewController.o : /Users/akhiltirumalasetty/Documents/MusicSearch/MusicSearch/ItunesConnection.swift /Users/akhiltirumalasetty/Documents/MusicSearch/MusicSearch/ViewController.swift /Us... | D |
//*********************
// Zombie Prototype
//*********************
PROTOTYPE Mst_Default_Zombie(C_Npc)
{
//----- Monster ----
name = "Zombie";
guild = GIL_ZOMBIE;
aivar[AIV_MM_REAL_ID] = ID_ZOMBIE;
level = 20;
//----- Attribute ----
attribute [ATR_STRENGTH] = 100;
attribute [ATR_DE... | D |
module painted.builtin.effects;
import painted.utils;
import painted.api;
import graphics.canvas;
import std.math;
void initBuiltinEffects() {
registerEffect("grayscale", new class Effect {
this() {
displayName = "Grayscale";
// iconData = cast(ubyte[]) import("images/paintbrush.png");
}
override void a... | D |
/home/baba/Desktop/rust/speak_to_hacspec/target/debug/build/num-rational-16f0ff27b1167a6f/build_script_build-16f0ff27b1167a6f: /home/baba/.cargo/registry/src/github.com-1ecc6299db9ec823/num-rational-0.2.4/build.rs
/home/baba/Desktop/rust/speak_to_hacspec/target/debug/build/num-rational-16f0ff27b1167a6f/build_script_bu... | D |
module uim.vue.obj;
import uim.vue;
class DVUEObj {
this() {}
this(string aName) { this; _name = aName; }
mixin(TProperty!("string", "name"));
mixin(TPropertyAA!("string", "string", "data"));
O data(string name, string value) { _data[name] = value; return cast(O)this; }
O data(string name, T value) { _data[n... | D |
module game.panel.skillbar;
import optional;
import opt = file.option.allopts;
import gui;
import hardware.sound;
import physics.tribe;
class SkillBar : Element {
private:
SkillButton[] _skills;
Ac _previouslyOn;
public:
this(Geom g)
{
super(g);
_skills.length = opt.skillSort.length;... | D |
import std.stdio;
int main(){
int i=0;
int a[10];
while (i < 10)
{
a[i]=i;
writeln(a[i]);
}
do{
a[i]=i^^2;
writeln(a[i]);
}while(i<10);
}
| D |
instance SLD_823_Khaled (Npc_Default)
{
// ------ NSC ------
name = "Khaled";
guild = GIL_SLD;
id = 823;
voice = 11;
flags = 0; //NPC_FLAG_IMMORTAL oder 0
npctype = NPCTYPE_MAIN;
// ------ Attribute ------
B_SetAttributesToChapter (self, 3); //setzt Attribute und LEVEL... | D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
alias AB = Tuple!(int, "a", int, "b");
AB[50] ABS;
void main()
{
auto W = readln.chomp.to!int;
auto nk = readln.split.to!(int[]);
auto N = nk[0];
auto K = nk[1];
foreach (i; 0..N) {
auto... | D |
/////////////////////////////////////////////////////////////////////////////
// Name: tbtest.cpp
// Purpose: wxTaskBarIcon demo
// Author: Julian Smart
// Modified by: afb, ported to wxD
// Created: 01/02/97
// RCS-ID: $Id: TaskBar.d,v 1.1 2007/09/08 09:30:28 afb Exp $
// Copyright: (c)
// L... | D |
/Users/Leex/TableView_Test3/Build/Intermediates.noindex/TableView_Test3.build/Debug-iphonesimulator/TableView_Test3.build/Objects-normal/x86_64/ViewModel.o : /Users/Leex/TableView_Test3/TableView_Test3/AppDelegate.swift /Users/Leex/TableView_Test3/TableView_Test3/Cells/CellBinding.swift /Users/Leex/TableView_Test3/Tabl... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.