code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
import vibe.d;
shared static this()
{
auto settings = new HttpServerSettings;
settings.sessionStore = new MemorySessionStore();
settings.port = 8080;
listenHttp(settings, staticTemplate!("info.dt"));
}
| D |
extern (C) int printf(const(char*) fmt, ...);
import core.vararg;
struct Tup(T...)
{
T field;
alias field this;
bool opEquals(const Tup rhs) const
{
foreach (i, _; T)
if (field[i] != rhs.field[i])
return false;
return true;
}
}
Tup!T tup(T...)(T fields... | D |
module UnrealScript.Engine.SeqAct_SetMaterial;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.Engine.MaterialInterface;
import UnrealScript.Engine.SequenceAction;
extern(C++) interface SeqAct_SetMaterial : SequenceAction
{
public extern(D):
private static __gshared ScriptClass mStat... | D |
module imports.test40a;
import std.stdio;
template Mix()
{
static void foobar()
{
auto context = new Context;
auto ts = context.toString;
printf("context: %.*s %p\n", ts.length, ts.ptr, context);
context.func!(typeof(this))();
printf(`returning from opCall`\n);
}
}
class Bar
{
mixin Mix;... | D |
farther along in space or time or degree
on the farther side from the observer
in addition
| D |
<div class="datePicker">
<ul>
<li *ngFor="let picker of datePickerList" [ngClass]="{active: picker.active}" (click)="pick(picker)">
{{ picker.text }}
</li>
</ul>
</div> | D |
/Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DerivedData/DetectiveBoard/Build/Intermediates.noindex/Previews/DetectiveBoard/Intermediates.noindex/DetectiveBoard.build/Debug-iphonesimulator/DetectiveBoard.build/Objects-normal/x86_64/RoundedCircleStyle.o : /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveB... | D |
//#not work
import std.stdio;
//#not work
template isVersion(string ver) {
enum bool isVersion =3D !is(typeof({
mixin("version(" ~ ver ~") static assert(0);");
}));
}
static if (isVersion"VERSION1" || isVersion!"VERSION3") {
writeln( "version is VERSION1 or VERSION3" );
} else {
writeln( "v... | D |
/Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow.o : /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Runner/AppDelegate.swift /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Flutter/GeneratedPluginRegist... | D |
/Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactiveCocoa.build/Objects-normal/x86_64/ObjC+Runtime.o : /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UITextField.swift /Users/linjianguo/Desktop/Re... | D |
instance DIA_Bromor_EXIT(C_Info)
{
npc = VLK_433_Bromor;
nr = 999;
condition = DIA_Bromor_EXIT_Condition;
information = DIA_Bromor_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Bromor_EXIT_Condition()
{
return TRUE;
};
func void DIA_Bromor_EXIT_Info()
{
B_NpcClearObsessionByDMT(sel... | D |
instance BAU_964_BAUER(NPC_DEFAULT)
{
name[0] = "Фермер";
guild = GIL_OUT;
id = 964;
voice = 13;
flags = 0;
npctype = NPCTYPE_AMBIENT;
b_setattributestochapter(self,1);
fight_tactic = FAI_HUMAN_COWARD;
EquipItem(self,itmw_1h_bau_axe);
b_createambientinv(self);
b_setnpcvisual(self,MALE,"Hum_Head_Pony",FACE_N... | D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
struct PriorityQueue(alias _fun, T) {
import std.functional : binaryFun;
import std.algorithm : swap;
alias fun = binaryFun!_fun;
///
this(T[] ts) {
foreach (t; ts) enqueue(t);
}
... | 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 |
void main(string[] args) {
import dash.api.admin_server;
import std.conv : to;
import std.stdio;
import std.string : format, join;
import std.traits;
import thrift.codegen.client;
import thrift.protocol.compact;
import thrift.transport.buffered;
import thrift.transport.socket;
im... | D |
/**
Metric (e.g., accuracy)
TODO: perplexity, AUC, F1, BLEU, edit distance
*/
module grain.metric;
import grain.autograd : isVariable;
/// compute accuracy comparing prediction y (histgram) to target t (id)
auto accuracy(Vy, Vt)(Vy y, Vt t) if (isVariable!Vy && isVariable!Vt) {
import mir.ndslice : maxIndex;
... | D |
$NetBSD$
Stolen from https://github.com/nrTQgc/druntime/tree/netbsd
--- runtime/druntime/src/rt/sections_ldc.d.orig 2020-05-07 08:52:18.254675459 +0000
+++ runtime/druntime/src/rt/sections_ldc.d
@@ -19,6 +19,7 @@ module rt.sections_ldc;
version (linux) {}
else version (FreeBSD) {}
else version (DragonFlyBSD) {}
+e... | D |
module proto.beta;
import proto.proto;
import net.connection;
import std.typecons;
class beta_protocol: protocol {
private {
import util.conv;
}
void init(string ver) {
}
void start_ping(string addr, ushort port, ref connection con) {
import std.datetime.systime;
import std.stdio;
send_time = Clock.cur... | D |
/Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartRendererBase.o : /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartAxisBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Dat... | D |
version https://git-lfs.github.com/spec/v1
oid sha256:45ac807aa089c30133f391f3209a30ac53baa64f5da5b4b3c0a43966ee0d99a0
size 2225
| D |
// Written in the D programming language.
/** This module contains the $(LREF Complex) type, which is used to represent
complex numbers, along with related mathematical operations and functions.
$(LREF Complex) will eventually
$(DDLINK deprecate, Deprecated Features, replace)
the built-in types `cfloa... | D |
/Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ObserverType.o : /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/bill... | D |
module gfm.math.quaternion;
import std.math,
std.string;
import gfm.math.vector,
gfm.math.matrix,
funcs = gfm.math.funcs;
/// Quaternion implementation.
/// Holds a rotation + angle in a proper but wild space.
align(1) struct Quaternion(T)
{
align(1):
public
{
union
... | D |
/*
* #197 Dialog lines with ambient templar interchanged pt. 2
*
* There does not seem an easy way to test this fix programmatically, so this test relies on manual confirmation.
*
* Expected behavior: The ambient templar NPC that the player is teleported to has the correct subtitles.
*/
func void G1CP_Test_197() ... | D |
instance PIR_1392_Addon_InExtremo_ThomasTheForger(Npc_Default)
{
name[0] = "Thomas the forger";
npcType = npctype_main;
guild = GIL_NONE;
level = 4;
flags = 0;
voice = 8;
id = 1392;
flags = NPC_FLAG_IMMORTAL;
attribute[ATR_STRENGTH] = 20;
attribute[ATR_DEXTERITY] = 10;
attribute[ATR_MANA_MAX] = 0;
attribut... | D |
/*
Copyright (c) 2011-2017 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, dist... | D |
$NetBSD$
--- runtime/druntime/src/core/sys/posix/pthread.d.orig 2016-01-21 15:39:03.000000000 +0000
+++ runtime/druntime/src/core/sys/posix/pthread.d
@@ -209,6 +209,57 @@ else version( FreeBSD )
enum PTHREAD_COND_INITIALIZER = null;
enum PTHREAD_RWLOCK_INITIALIZER = null;
}
+ else ... | D |
import std.stdio, std.algorithm, permutations2;
void permutationSort(T)(T[] items) /*pure nothrow*/ {
foreach (const perm; items.permutations!false)
if (perm.isSorted) {
items[] = perm[];
break;
}
}
void main() {
auto data = [2, 7, 4, 3, 5, 1, 0, 9, 8, 6, -1];
data.... | D |
module blockie.render.clrenderer;
import blockie.all;
final class CLSceneRenderer : IRenderer {
private:
const bool DEBUG = false;
OpenGL gl;
OpenCL cl;
World world;
uint textureID;
int width, height;
IntRect renderRect;
SpriteRenderer quadRenderer;
BoxRenderer boxRenderer;
Sph... | D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
void main()
{
auto nm = readln.split.to!(int[]);
auto N = nm[0];
auto M = nm[1];
int[][] T;
T.length = N;
foreach (i; 1..N) {
auto p = readln.chomp.to!int;
T[p] ~= i;
}
... | D |
instance DIA_ToughGuy_NEWS(C_Info)
{
nr = 1;
condition = DIA_ToughGuy_NEWS_Condition;
information = DIA_ToughGuy_NEWS_Info;
permanent = TRUE;
important = TRUE;
};
func int DIA_ToughGuy_NEWS_Condition()
{
if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(DJG_Sylvio)) && Npc_KnowsInfo(other,DIA_SylvioDJG_WHATNEXT... | D |
// ************************************************************
// Face Helper
// ************************************************************
var int FH_SkinTexture;
var string FH_HeadMesh;
var int FH_HeadMesh_DEFAULT_Hilfsvariable;
var int SEX;
// **********************************************************... | D |
//#############################################
//##
//## Neue Welt
//##
//#############################################
instance VLK_6024_Deep (Npc_Default)
{
// ------ NSC ------
name = "Deep";
guild = GIL_VLK;
id = 6024;
voice = 14;
flags = 0; //Sterblich, optionaler Captain im Kapitel 5! ... | D |
module antlr.runtime.tests.parser_t016actions;
import antlr.runtime.Lexer;
import antlr.runtime.CharStream;
import antlr.runtime.Token;
import antlr.runtime.CommonToken;
import antlr.runtime.ANTLRStringStream;
import antlr.runtime.MismatchedTokenException;
import antlr.runtime.MismatchedRangeException;
import antlr.r... | D |
// Written in the D programming language
/++
Module containing some basic benchmarking and timing functionality.
For convenience, this module publicly imports $(MREF core,time).
$(RED Unlike the other modules in std.datetime, this module is not currently
publicly imported in std.datetime.packag... | D |
/*
DIrrlicht - D Bindings for Irrlicht Engine
Copyright (C) 2014- Danyal Zia (catofdanyal@yahoo.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 gra... | 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 |
CHAIN IF ~InParty("B!Gavin2")
InParty(Myself)
See("B!Gavin2")
!StateCheck("B!Gavin2",CD_STATE_NOTVALID)
!StateCheck(Myself,CD_STATE_NOTVALID)
CombatCounter(0)
Global("G#XB.AurenGavinBanter1","GLOBAL",0)~ THEN K#AurenB ag1
~So, Gavin, where are you from?~
DO ~SetGlobal("G#XB.Aure... | D |
/Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/debug/PerfectLib.build/JSONConvertible.swift.o : /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/JSONConvertible.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.bu... | D |
with undue hurry and confusion
in a wild or reckless manner
| D |
a way of doing or being
United States Jewish leader (born in Hungary) (1874-1949)
United States religious leader (born in Bohemia) who united reform Jewish organizations in the United States (1819-1900)
having or prompted by wisdom or discernment
marked by the exercise of good judgment or common sense in practical matt... | D |
var int Kardif_ItemsGiven_Chapter_1;
var int Kardif_ItemsGiven_Chapter_2;
var int Kardif_ItemsGiven_Chapter_3;
var int Kardif_ItemsGiven_Chapter_4;
var int Kardif_ItemsGiven_Chapter_5;
FUNC VOID B_GiveTradeInv_Mod_Kardif_NW (var C_NPC slf)
{
if ((Kapitel >= 1)
&& (Kardif_ItemsGiven_Chapter_1 == FALSE))
{
CreateIn... | D |
/home/thodges/Workspace/Rust/a_gentle_intro_to_rust/slice5/target/debug/deps/slice5-2a55c26b40823622: src/main.rs
/home/thodges/Workspace/Rust/a_gentle_intro_to_rust/slice5/target/debug/deps/slice5-2a55c26b40823622.d: src/main.rs
src/main.rs:
| D |
/*
* Hunt - a framework for web and console application based on Collie using Dlang development
*
* Copyright (C) 2015-2016 Shanghai Putao Technology Co., Ltd
*
* Developer: putao's Dlang team
*
* Licensed under the BSD License.
*
* template parsing is based on dymk/temple source from https://github.com/dymk... | D |
/Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Ink.build/Internal/ModifierCollection.swift.o : /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HTML.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Intern... | D |
/// Vulkan types.
module dvulkan.types;
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT MODIFY.
alias uint8_t = ubyte;
alias uint16_t = ushort;
alias uint32_t = uint;
alias uint64_t = ulong;
alias int8_t = byte;
alias int16_t = short;
alias int32_t = int;
alias int64_t = long;
@nogc pure nothrow {
ui... | D |
# FIXED
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab05a.c
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/math.h
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/linkage.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/solutions/... | D |
//////////////////////////////////////////////////////////////////////
// Info EXIT
///////////////////////////////////////////////////////////////////////
INSTANCE DIA_Ramirez_EXIT (C_INFO)
{
npc = VLK_445_Ramirez;
nr = 999;
condition = DIA_Ramirez_EXIT_Condition;
information = DIA_Ramirez_EX... | D |
/Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Async.build/Future+DoCatch.swift.o : /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Async+NIO.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/F... | D |
module gui.widgetfeature.ninegridrenderer;
import graphics.model;
import gui.models;
import gui.style;
import gui.widget : Widget;
import gui.widgetfeature;
import math;
/** A 9 grid model for rendering boxes with expandables borders
-----------------
| | | |
-----------------
| | ... | D |
/Users/sapientisat/Projects/Supplements/Supplements/XcodeBuild/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CollectionViewPagingLayout.build/Objects-normal/x86_64/PagingCollectionViewController.o : /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollection... | D |
// Написано на языке программирования Динрус. Разработчик Виталий Кулич.
module std.file;
import std.string,std.regexp, std.path, sys.WinStructs,cidrus: getenv;
export extern(D)
{
проц[] читайФайл(ткст имяф){return read(имяф);}
проц пишиФайл(ткст имяф, проц[] буф){write(имяф, буф);}
проц допишиФ... | D |
// { dg-shouldfail "uncaught exception" }
void test()
{
int innerLocal = 20;
throw new Exception("foo");
}
void main(string[] args)
{
string myLocal = "bar";
test();
}
| D |
import vector;
import ray;
import std.typecons;
struct BBox(int dim, T) {
Vec!(dim, T) pmin = 0;
Vec!(dim, T) pmax = 0;
@disable this();
this(Vec!(dim, T) point) {
pmin = point;
pmax = point;
}
this(Vec!(dim, T) min, Vec!(dim, T) max) {
pmin = min;
pmax = max;
}
Vec!(dim, T) extends() const {
... | D |
module GameScene;
private import Scene;
private import Sofu.Sofu;
private import derelict.sdl.sdl;
private import Layer;
private import SofuResource;
private import ImageResource;
private import Image;
private import Lemming;
private import BrickLayer;
private import BulletLayer;
private import EnemyLayer;
private imp... | D |
/Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Async.build/Objects-normal/x86_64/Worker.o : /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Async+NIO.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Asy... | D |
module webkit2webextension.DOMHTMLHeadElement;
private import glib.Str;
private import webkit2webextension.DOMHTMLElement;
private import webkit2webextension.c.functions;
public import webkit2webextension.c.types;
/** */
public class DOMHTMLHeadElement : DOMHTMLElement
{
/** the main Gtk struct */
protected WebKi... | D |
extern (C) int printf(const(char*) fmt, ...);
import core.vararg;
struct Tup(T...)
{
T field;
alias field this;
bool opEquals(const Tup rhs) const
{
foreach (i, _; T)
if (field[i] != rhs.field[i])
return false;
return true;
}
}
Tup!T tup(T...)(T fields... | D |
a word borrowed from another language
| D |
/Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI_Example/Build/Intermediates.noindex/SwipeCellSUI.build/Debug-iphonesimulator/SwipeCellSUI.build/Objects-normal/x86_64/SwipeCellSUI.o : /Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI/Sources/SwipeCellSUI/SwipeCellSUI.swift /Users/Dominik/Docume... | D |
/Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/DerivedData/CryptoLive/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/YAxis.o : /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Filters/DataApproximator+N.swift /Users/Jaskeerat/Desktop/CryptoLive/Cr... | D |
/Users/Takashi/Documents/codepath/tips/DerivedData/tips/Build/Intermediates/tips.build/Debug-iphoneos/tips.build/Objects-normal/armv7/SettingsViewController.o : /Users/Takashi/Documents/codepath/tips/tips/ViewController.swift /Users/Takashi/Documents/codepath/tips/tips/AppDelegate.swift /Users/Takashi/Documents/codepat... | D |
// Written in the D programming language
/++
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Jonathan M Davis
Source: $(PHOBOSSRC std/datetime/_systime.d)
+/
module std.datetime.systime;
// Note: reconsider using specific imports below after
// https://issues.dlang.org/s... | 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, std.bitmanip;
alias Point = Tuple!(real, "X", real, "Y");
auto dr = [0, 0, 1, 1];
auto dc = [0, 1, 0, 1];
void main() {
auto N = readln... | D |
//: binary_tree_set3.d
//: D port for binary_tree_set3.pl
//: Copyright (c) 2006 Agent Zhang
//: 2006-03-03 2006-03-04
import std.conv;
import std.stdio;
int main (char[][] args) {
int n;
if (args.length !> 1) {
fprintf(stderr, "No n specified.\n");
return 1;
}
try { n = toInt(args[1])... | D |
void main() {
auto X = ri;
if(X == 7 || X == 5 || X == 3) {
writeln("YES");
} else writeln("NO");
}
// ===================================
import std.stdio;
import std.string;
import std.functional;
import std.algorithm;
import std.range;
import std.traits;
import std.math;
import std.container;
import std.bigin... | D |
/**
* Copyright © DiamondMVC 2018
* License: MIT (https://github.com/DiamondMVC/Diamond/blob/master/LICENSE)
* Author: Jacob Jensen (bausshf)
*/
module diamond.controllers;
public
{
import diamond.controllers.action;
import diamond.controllers.status;
import diamond.controllers.basecontroller;
import diamond.c... | D |
build/x86_64-debug/src/mian.o: src/mian.cpp src/TestCase.h src/Airplane.h
| D |
import std.stdio, std.algorithm, std.range;
enum say = (in string s) pure => s.group.map!q{ text(a[1],a[0]) }.join;
void main() {
"1".recurrence!((t, n) => t[n - 1].say).take(8).writeln;
}
| 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 |
/**
Copyright: Copyright (c) 2013-2017 Andrey Penechko.
License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Andrey Penechko.
*/
module voxelman.world.block.blockinfo;
import voxelman.log;
import voxelman.container.buffer;
import voxelman.math;
import voxelman.geometry;
import voxelman.core.config;
... | D |
/* -------------------- CZ CHANGELOG -------------------- */
/*
v1.00:
DIA_Jack_SmokePipe_Done_01_02 - opraveno other/self
DIA_Jack_SmokePipe_Done_01_04 - opraveno other/self
*/
instance DIA_Jack_EXIT(C_Info)
{
npc = VLK_444_Jack;
nr = 999;
condition = DIA_Jack_EXIT_Condition;
information = DIA_Jack_EXIT_In... | D |
module lib.funcs;
import std.stdio;
import core.stdc.stdlib;
import thing;
import lib.cmp;
import lib.flow;
import lib.io;
import lib.math;
import lib.meta;
import lib.sesl;
import lib.state;
import lib.string;
import lib.sys;
import lib.table;
import lib.vector;
Value function(Args) byName(string name)
{
switch (... | D |
/Users/sergiysobol/Projects/MovieDatabase/build/Pods.build/Debug-iphonesimulator/netfox.build/Objects-normal/x86_64/NFXListController.o : /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXListCell_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXInfoController_iOS.swift /U... | D |
/**
*
*/
module hunt.wechat.bean.shakearound.page.update.PageUpdate;
import hunt.wechat.bean.shakearound.page.PageInfo;
/**
* 微信摇一摇周边-页面管理-编辑页面信息-请求参数
*
*
*/
class PageUpdate : PageInfo {
}
| D |
/*
TEST_OUTPUT:
---
fail_compilation/fail347.d(21): Error: undefined identifier `bbr`, did you mean variable `bar`?
fail_compilation/fail347.d(22): Error: no property 'ofo' for type 'S', did you mean 'foo'?
fail_compilation/fail347.d(23): Error: undefined identifier `strlenx`, did you mean function `strlen`?
---
*/
//... | D |
import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
import std.range;
import std.traits;
import std.math;
import std.conv;
import std.typecons;
void main() {
auto ip = readAs!(int[]), A = ip[0], B = ip[1];
bool flag = false;
foreach(i; A..B+1) {
foreach(j; i.to!string) {
if(j == '3') fl... | D |
/home/zbf/workspace/git/RTAP/target/debug/deps/hostname-1e6936739ba4f890.rmeta: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/hostname-0.1.5/src/lib.rs
/home/zbf/workspace/git/RTAP/target/debug/deps/hostname-1e6936739ba4f890.d: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/hos... | D |
import uctl.util: OSC;
import uctl.modul: svm, swm;
import uctl.math: sin;
import uctl.unit: as, Hz, rev, sec;
import uctl: mk;
alias sine = sin!5;
enum dts = dt.as!sec;
private nothrow @nogc void entry() {
immutable param = mk!(OSC.Param, rev, dts)(freq.as!Hz);
auto state = OSC.State!(param, float)();
foreach... | D |
/++
+ darksky-d fetches weather data from darksky.net and builds
+ a plain text file which conky will read to construct a nice weather
+ widget.
+ +
+ © 2019, Alex Vie <silvercircle@gmail.com>
+ License: MIT
+/
module context;
import std.process, std.path, std.stdio, std.file, std.string, std.conv, core.stdc.stdlib: ... | D |
/*******************************************************************************
Tests for the transaction-level absolute time lock.
Copyright:
Copyright (c) 2019-2021 BOSAGORA Foundation
All rights reserved.
License:
MIT License. See LICENSE for details.
************************... | D |
module hunt.serialization.Specify;
import std.traits;
import std.range;
import hunt.serialization.BinarySerializer;
import hunt.serialization.BinaryDeserializer;
template PtrType(T) {
static if (is(T == bool) || is(T == char)) {
alias PtrType = ubyte*;
} else static if (is(T == float)) {
alias... | D |
module test17899;
// Test that the ICE in 13259 does not ICE but produces correct code
auto dg = delegate {};
int setme = 0;
void delegate() bar1 = (){ setme = 1;};
__gshared void delegate() bar2 = (){ setme = 2;};
void main()
{
dg();
assert(setme == 0);
bar1();
assert(setme == 1);
bar2();
a... | D |
//========================================
//-----------------> OPCJA *KONIEC*
//========================================
INSTANCE DIA_Orik_EXIT(C_INFO)
{
npc = Sld_701_Orik;
nr = 999;
condition = DIA_Orik_EXIT_Condition;
information = DIA_Orik_EXIT_Info;
permanent = TRUE;
descriptio... | D |
/**
* Authors: The D DBI project
*
* Version: 0.2.5
*
* Copyright: BSD license
*/
module dbi.DBIException;
private import dinrus: ва_арг;
private import dbi.ErrorCode;
/**
* This is the exception class used within all of D DBI.
*
* Some functions may also throw different types of exceptions when they access... | D |
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/PostgreSQL.build/SQL/PostgreSQLFunction.swift.o : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+0.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootca... | D |
/**
* Windows API header module
*
* Translated from MinGW Windows headers
*
* Authors: Stewart Gordon
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(DRUNTIMESRC core/sys/windows/_pbt.d)
*/
module core.sys.windows.pbt;
version (Windows):
import core.sys.windows.windef;
... | D |
module ddparser.dparse;
import ddparser.dparse_tables;
import ddparser.symtab;
import ddparser.parse;
alias d_voidp = void *;
alias D_ParseNode_User = d_voidp;
alias D_ParseNode_Globals = void;
alias D_SyntaxErrorFn = void function(D_Parser *);
alias D_AmbiguityFn = D_ParseNode * function(D_Parser *,
int... | D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container, std.range;
enum P = 998244353L;
void main()
{
auto nk = readln.split.to!(int[]);
auto N = nk[0];
auto K = nk[1];
int[] LS, RS;
foreach (_; 0..K) {
auto lr = readln.split.to... | D |
/**
* term: In-house console/terminal library
*/
module os.term;
import ddc : putchar, getchar, fputs, stdout;
nothrow:
private import core.stdc.stdio : printf;
private alias sys = core.stdc.stdlib.system;
version (Windows) {
private import core.sys.windows.windows;
private enum ALT_PRESSED = RIGHT_ALT_PRESSE... | D |
/* REQUIRED_ARGS: -preview=bitfields
*/
/***************************************************/
class C
{
uint a:3;
uint b:1;
ulong c:64;
int d:3;
int e:1;
long f:64;
int i;
}
static assert(C.a.min == 0);
static assert(C.a.max == 7);
static assert(C.b.min == 0);
static assert(C.b.max ==... | D |
module sdl.semaphore;
import derelict.sdl.sdl;
import sdl.state;
final class Semaphore
{
private
{
SDL_sem * m_handle;
}
public
{
this(Uint32 initial_value)
{
m_handle = SDL_CreateSemaphore(initial_value);
assert(m_handle !is null);
}
... | D |
/**
*
*/
module hunt.wechat.bean.shakearound.device.group.getlist.DeviceGroupGetList;
/**
* 微信摇一摇周边-查询分组列表-请求参数
*
*
*/
class DeviceGroupGetList {
/**
* 分组列表的起始索引值
* 必填
*/
private Integer begin;
/**
* 待查询的分组数量,不能超过1000个
* 必填
*/
private Integer count;
/**
* @retur... | D |
a dreamy romantic or sentimental quality
| D |
/home/tardigrade/filecoin/filecoin_loans_test/filecoin-signing-tools/target/debug/build/unicase-2137c1c63720b857/build_script_build-2137c1c63720b857: /home/tardigrade/.cargo/registry/src/github.com-1ecc6299db9ec823/unicase-2.6.0/build.rs
/home/tardigrade/filecoin/filecoin_loans_test/filecoin-signing-tools/target/debug... | D |
/**
The most important data type in Godot.
Copyright:
Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur.
Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md)
Copyright (c) 2017-2018 Godot-D contributors
License: $(LINK2 https://opensource.org/licenses/MIT, MIT License)
*/
module godot.core.va... | D |
module lazer;
import std.stdio;
import std.random;
import jeca.all;
import base, unit, unitlist, ship, board, weakbrickblow, larverbombblow;
class Lazer: Unit {
private:
bool m_weaponBoost;
int m_wallTime;
public:
this( int player0, bool weaponBoost0, double x, double y, double dirx0, double diry0 ) ... | D |
module cl.quote;
// TODO Add comments and strings support.
// TODO Make sure "\"" is ok and has no weird corner cases.
// TODO Speed this up a little.
string unquote(string code) {
string result = "\"";
auto i = 0;
auto len = code.length;
while(i < len) {
if(code[i] == 'd') {
if(... | D |
/**
Functions and structures for dealing with threads and concurrent access.
This module is modeled after std.concurrency, but provides a fiber-aware alternative
to it. All blocking operations will yield the calling fiber instead of blocking it.
Copyright: © 2013 RejectedSoftware e.K.
License: Subject to the ter... | D |
/**
Common classes for HTTP clients and servers.
Copyright: © 2012 RejectedSoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig, Jan Krüger
*/
module vibe.http.common;
public import vibe.http.status;
import vibe.core.log;
import vibe.c... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.