code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
<?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_22_agm-2121177... | D |
module deepmagic.dom.elements.text_level.data_element;
import deepmagic.dom;
class DataElement : Html5Element!("data"){
mixin(ElementConstructorTemplate!());
mixin(AttributeTemplate!(typeof(this), "Value", "value"));
}
///Check Default Initialization.
unittest{
DataElement data = new DataElement();
assert(data.t... | D |
module dagon.core.vfs;
import std.string;
import std.path;
import dlib.core.memory;
import dlib.core.stream;
import dlib.container.array;
import dlib.container.dict;
import dlib.filesystem.filesystem;
import dlib.filesystem.stdfs;
class StdDirFileSystem: ReadOnlyFileSystem
{
StdFileSystem stdfs;
string rootDi... | D |
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/LineChartData.o : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanao... | D |
module UnrealScript.Engine.ParticleModuleAttractorLine;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.Core.DistributionFloat;
import UnrealScript.Engine.ParticleModuleAttractorBase;
extern(C++) interface ParticleModuleAttractorLine : ParticleModuleAttractorBase
{
public extern(D):
... | 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 |
module yu.eventloop.selector.iocp;
import yu.eventloop.common;
import yu.memory.allocator;
version (Windows) : package(yu) : pragma(lib, "Ws2_32");
import core.time;
import core.memory;
public import core.sys.windows.windows;
public import core.sys.windows.winsock2;
public import core.sys.windows.mswsock;
import ... | D |
module pattern_matching;
import std.stdio : println = writeln;
auto match(patterns ...)()
{
import std.traits : isType;
static assert(patterns.length >= 1, "Missing value for match");
static assert(patterns.length >= 2, "At least one pattern must be " ~
"supplied to match");
enum paramIsType... | D |
/**
* Implements the lexical analyzer, which converts source code into lexical tokens.
*
* Specification: $(LINK2 https://dlang.org/spec/lex.html, Lexical)
*
* Copyright: Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 https://www.digitalmars.com, Walter Bright)
... | D |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<!-- Mirrored from www.cospa.com/images/events/pc/pub/top_image/pub/top_image/pub/top_imag... | D |
instance VLK_4141_Waffenknecht (Npc_Default)
{
// ------ NSC ------
name = NAME_WAFFENKNECHT;
guild = GIL_MIL;
id = 4141;
voice = 6;
flags = 0; //NPC_FLAG_IMMORTAL oder 0
npctype = NPCTYPE_OCAMBIENT;
// ------ Attribute ------
B_SetAttributesToChapter (self, 1); //setz... | D |
module hl.events;
import std.datetime;
import std.exception;
import std.container;
import std.experimental.logger;
import std.typecons;
import core.sync.mutex;
import std.format;
import hl.common;
//import nbuff;
enum AppEvent : int {
NONE = 0x00,
IN = 0x01,
OUT = 0x02,
ERR = 0x04,
CONN = 0x... | D |
//*****************************************************************************
//
// Asset loading: What we try to achieve is easy load & unload asset sets,
// for example game levels.
//
//*****************************************************************************
module engine.render.scene3d.asset;
import engine... | D |
void test4090a()
{
// for the mutable elements
{
int[] arr = [1,2,3];
// inference + qualifier
foreach ( x; arr) static assert(is(typeof(x) == int));
foreach ( const x; arr) static assert(is(typeof(x) == const int));
foreach (immutable x; arr) static assert(i... | D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
void main()
{
writeln("654231");
}
/*
6
5423
1
65
41
23
65
413
2
651
423
*/ | D |
/home/naveen/gitrepos/rustlearning/projects/guessing_game/target/debug/deps/guessing_game-6b70b6e934b8efd0: src/main.rs
/home/naveen/gitrepos/rustlearning/projects/guessing_game/target/debug/deps/guessing_game-6b70b6e934b8efd0.d: src/main.rs
src/main.rs:
| D |
instance STRF_1137_Addon_Sklave(Npc_Default)
{
name[0] = NAME_Addon_Sklave;
guild = GIL_STRF;
id = 1137;
voice = 3;
flags = 0;
npcType = NPCTYPE_BL_AMBIENT;
aivar[AIV_NoFightParker] = TRUE;
aivar[AIV_IgnoresArmor] = TRUE;
B_SetAttributesToChapter(self,2);
fight_tactic = FAI_HUMAN_COWARD;
B_CreateAmbientInv(... | D |
/+
+ Copyright (c) Charles Petzold, 1998.
+ Ported to the D Programming Language by Andrej Mitrovic, 2011.
+/
module WhatClr;
import core.runtime;
import core.thread;
import std.conv;
import std.math;
import std.range;
import std.string;
import std.utf;
auto toUTF16z(S)(S s)
{
return toUTFz!(const(wchar)*)(s)... | D |
/**
* Implementation of exception handling support routines for Win32.
*
* Copyright: Copyright Digital Mars 1999 - 2013.
* License: Distributed under the
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
* (See accompanying file LICENSE)
* Authors: Walter Bright
* S... | D |
/Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Console.build/Bar/Progress/Console+ProgressBar.swift.o : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Bar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Source... | D |
/**
Automatic REST interface and client code generation facilities.
Copyright: © 2012-2016 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.web.rest;
public import vibe.internal.meta.funcattr :... | D |
var int enter_oldworld_firsttime_trigger_onetime;
func void enter_oldworld_firsttime_trigger()
{
if(enter_oldworld_firsttime_trigger_onetime == FALSE)
{
B_KillNpc(Bruder);
B_KillNpc(VLK_Leiche3);
B_KillNpc(VLK_Leiche2);
B_KillNpc(STRF_Leiche1);
B_KillNpc(STRF_Leiche2);
B_KillNpc(STRF_Leiche3);
B_KillN... | D |
/*
* Copyright (C) 2004-2005 by Digital Mars, www.digitalmars.com
* Written by Walter Bright
*
* 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 metafint;
import std.stdio : write, writeln;
import std.conv : to;
import std.array : replace, replicate;
debug import std.random;
private struct accumulator
{
string data;
string type_name;
uint indented;
this (string type_name)
{
this.type_name = type_name;
}
void indent(... | D |
// XXX: Perhaps rename all "bonus" to "mod"?
import std.algorithm.comparison;
import std.container;
import std.random;
import std.math;
import util;
import ser;
import term;
import map;
import tile;
import item;
import body;
import stat;
immutable bool debug_can_move_anywhere = false;
enum Gender {male, female, neut... | D |
/++
Rewrites an expression so that the result is more human-readable and workable.
`simplify` is very unopiniated and will only attempt to rewrite expressions if
the result has not lost any information. It is basically `constFold` and
`simplifyUnits` in a single function.
This module is part of the exactmath rewritin... | D |
// SYNTAX TEST "Packages/D/D.sublime-syntax"
module test;
import std.stdio;
shared static this()
// ^ storage.modifier
// ^ storage.modifier
// ^ entity.name
{
}
__gshared int a = 5_000;
// ^ storage.modifier
// ^ storage.type
// ^ constant.numeric
shared int b = 5000;
// ^ ... | 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_6_BeT-25469523... | D |
module des.util.colorparse;
///
ulong hex2ulong( string hex )
{
import std.string;
enum tbl = [ '0': 0, '1': 1, '2': 2, '3': 3,
'4': 4, '5': 5, '6': 6, '7': 7,
'8': 8, '9': 9, 'A': 10, 'B': 11,
'C': 12, 'D': 13, 'E': 14, 'F': 15 ];
ulong ret... | D |
/*
Copyright (c) 1996 Blake McBride
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 list of conditions and th... | D |
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Utilities/StringInitializable.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/La... | D |
/Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/x86_64-apple-macosx/debug/Vapor.build/Middleware/CORSMiddleware.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppAcronyms/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/panartem/Developer/Study/Microservices... | D |
CHAIN IF ~InParty("Nath")
See("Nath")
!StateCheck("Nath",CD_STATE_NOTVALID)
See("L#FOU")
!StateCheck("L#FOU",CD_STATE_NOTVALID)
CombatCounter(0)
!See([ENEMY])
Global("G#XB.FouNathBanter1ToB","GLOBAL",0)~ THEN L#Fou25B Foundlingnathantob01
@0 /* I have one more question about love. */
DO ~SetGlobal("G#XB.FouNathBanter1... | D |
/*
TEST_OUTPUT:
---
fail_compilation/diag9961.d(11): Error: cannot implicitly convert expression ("") of type string to int
fail_compilation/diag9961.d(14): Error: template instance diag9961.foo!int error instantiating
fail_compilation/diag9961.d(11): Error: cannot implicitly convert expression ("") of type string to i... | D |
in a manner accessible to or observable by the public
by the public or the people generally
| D |
/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid comm... | D |
/Users/kevinlee/Desktop/eecs441/eLect/michiganseniors/frontend/ElectionCreation/CreateElection/DerivedData/CreateElection/Build/Intermediates.noindex/CreateElection.build/Debug-iphonesimulator/CreateElection.build/Objects-normal/x86_64/Proposal.o : /Users/kevinlee/Desktop/eecs441/eLect/michiganseniors/frontend/Election... | D |
// Copyright Ferdinand Majerech 2010 - 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)
///Base class for graph (system monitor style) monitors.
module monitor.graphmonitor;
import ... | D |
import core.stdc.stdio : fprintf, printf, stderr;
void test(string comp = "==", A, B)(A a, B b, string msg, size_t line = __LINE__)
{
int ret = () {
import core.exception : AssertError;
try
{
assert(mixin("a " ~ comp ~ " b"));
} catch(AssertError e)
{
... | D |
var int Baltram_ItemsGiven_Chapter_1;
var int Baltram_ItemsGiven_Chapter_2;
var int Baltram_ItemsGiven_Chapter_3;
var int Baltram_ItemsGiven_Chapter_4;
var int Baltram_ItemsGiven_Chapter_5;
FUNC VOID B_GiveTradeInv_Baltram (var C_NPC slf)
{
if ((Kapitel >= 1)
&& (Baltram_ItemsGiven_Chapter_1 == FALSE))
{
Create... | D |
/Users/davalcato/Desktop/FullScreenMediaBrowser/Build/Intermediates/FullScreenMediaBrowser.build/Debug-iphonesimulator/FullScreenMediaBrowser.build/Objects-normal/x86_64/UIColor+CustomColor.o : /Users/davalcato/Desktop/FullScreenMediaBrowser/FullScreenMediaBrowser/AppDelegate.swift /Users/davalcato/Desktop/FullScreenMe... | 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 |
module arsd.oauth;
import arsd.curl;
import arsd.cgi; // for decodeVariables
import std.array;
static import std.uri;
static import std.algorithm;
import std.conv;
import std.string;
import std.random;
import std.base64;
import std.exception;
import std.datetime;
///////////////////////////////////////
class Faceb... | D |
/**
* Set 1 Challenge 5
* Implement repeating-key XOR
*
* Here is the opening stanza of an important work of the English language:
*
* Burning 'em, if you ain't quick and nimble
* I go crazy when I hear a cymbal
*
* Encrypt it, under the key "ICE", using repeating-key XOR.
*
* In repeating-key XOR, you'll se... | D |
/* { dg-options "-fsanitize=address" } */
/* { dg-do compile } */
module asantests;
/******************************************/
// Bug 272
extern(C) void my_memcmp(const(void) *s1, const(void) *s2);
void bug(const(char)* p)
{
my_memcmp(p, "__FILE__".ptr);
}
| D |
//#not work (and he got the job!)
//Org: http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html
// swapping two varibles without using a temp variable
import std.stdio;
//import jeca.miscs;
void main() {
int a = 3, b = 7;
// mixin( trace( "/+ Before: +/ a", "/+ Before: +/ b" ) );
void swap( ... | D |
/**
*
* THIS FILE IS AUTO-GENERATED BY ./parse_specs.d FOR MCU attiny26 WITH ARCHITECTURE avr2
*
*/
module avr.specs.specs_attiny26;
enum __AVR_ARCH__ = 2;
enum __AVR_ASM_ONLY__ = false;
enum __AVR_ENHANCED__ = false;
enum __AVR_HAVE_MUL__ = false;
enum __AVR_HAVE_JMP_CALL__ = false;
enum __AVR_MEGA__ = false;
e... | D |
instance DIA_Fletcher_EXIT(C_Info)
{
npc = GRD_255_Fletcher;
nr = 999;
condition = DIA_Fletcher_EXIT_Condition;
information = DIA_Fletcher_EXIT_Info;
important = 0;
permanent = 1;
description = DIALOG_ENDE;
};
func int DIA_Fletcher_EXIT_Condition()
{
return 1;
};
func void DIA_Fletcher_EXIT_Info()
{
AI_Sto... | D |
module conc.readwritelockutils;
import thread, conc.readwritelock, conc.sync;
private import conc.waitnotify;
private import conc.fifosemaphore;
class ЧЗЗамокПВПВ : ОбъектЖдиУведоми, ЧЗЗамок
{
protected СемафорПВПВ замокЗап;
protected цел читатели;
protected цел эксчитатели;
this() ;
~this() ;
prot... | D |
module matrix;
| D |
/Users/KFeaver/Desktop/ScavengerHunt/DerivedData/ScavengerHunt/Build/Intermediates/ScavengerHunt.build/Debug-iphonesimulator/ScavengerHunt.build/Objects-normal/x86_64/ScavengerHuntItem.o : /Users/KFeaver/Desktop/ScavengerHunt/ScavengerHunt/AddViewController.swift /Users/KFeaver/Desktop/ScavengerHunt/ScavengerHunt/AppDe... | D |
/**
* HTTP server that can serve static content
*/
module http_server;
import net.http.handler.StaticHTTPHandler;
import net.server.SingleServerApp;
/**
* Constants
*/
enum ADDRESS = "127.0.0.1";
enum PORT = 80;
enum BACKLOG = 10;
enum MAX_CONNS = 60;
/**
* Application type alias
*/
alias App = SingleServer... | D |
/Users/danny/Documents/code/swift/divitup/DerivedData/divitup/Build/Intermediates.noindex/divitup.build/Debug-iphonesimulator/divitup.build/Objects-normal/x86_64/TaxesFeesHeaderView.o : /Users/danny/Documents/code/swift/divitup/divitup/SceneDelegate.swift /Users/danny/Documents/code/swift/divitup/divitup/AppDelegate.sw... | D |
instance PAL_2007_Leiche (Npc_Default)
{
// ------ NSC ------
name = NAME_RITTER;
guild = GIL_PAL;
id = 2007;
voice = 10;
flags = 0; //NPC_FLAG_IMMORTAL oder 0
npctype = NPCTYPE_OCAMBIENT;
// ------ Attribute ------
slf.attribute[ATR_STRENGTH] = 10;
slf.attribute[ATR_DE... | D |
/* REQUIRED_ARGS: -m64
TEST_OUTPUT:
---
compilable/b16976.d(15): Deprecation: foreach: loop index implicitly converted from `size_t` to `int`
compilable/b16976.d(16): Deprecation: foreach: loop index implicitly converted from `size_t` to `int`
compilable/b16976.d(17): Deprecation: foreach: loop index implicitly convert... | 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_17_agm-7871973... | D |
// no module name
import b;
| D |
module datadriven.components;
import datadriven.api : Component;
@Component("component.Transform") struct Transform { float x, y, z; }
@Component("component.Velocity") struct Velocity { float x, y, z; }
@Component("component.Velocity1") struct Velocity1 { float x, y, z; }
@Component("component.Velocity2") struct Ve... | D |
/Users/Dominik/Documents/Programmieren/Libraries/DYModalNavigationController/Build/Intermediates.noindex/DYModalNavigationControllerExample.build/Debug-iphonesimulator/DYModalNavigationControllerExample.build/Objects-normal/x86_64/ViewController.o : /Users/Dominik/Documents/Programmieren/Libraries/DYModalNavigationCont... | D |
/Users/luoguochun/privt/proj/coding-blog/.demo/rust-lib/mini-redis/target/debug/deps/libasync_stream_impl-472b75188c301e94.dylib: /Users/luoguochun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/async-stream-impl-0.3.0/src/lib.rs
/Users/luoguochun/privt/proj/coding-blog/.demo/rust-lib/mini-redis/target/debug... | D |
/++
Attributes for specifying how Godot-D should register the marked classes,
properties, methods, and signals into Godot.
+/
module godot.d.udas;
import godot.core, godot.c;
import godot.d.meta;
import std.meta, std.traits;
/++
A UDA to enable a script class to run in the Godot editor even without the game
running.... | D |
instance DIA_Sarah_EXIT(C_Info)
{
npc = VLK_470_Sarah;
nr = 999;
condition = DIA_Sarah_EXIT_Condition;
information = DIA_Sarah_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Sarah_EXIT_Condition()
{
return TRUE;
};
func void DIA_Sarah_EXIT_Info()
{
AI_StopProcessInfos(self);
};
in... | D |
/// Source: https://github.com/dlang/druntime/blob/master/src/etc/linux/memoryerror.d
/// Detailed explanation: https://www.deadalnix.me/2012/03/24/get-an-exception-from-a-segfault-on-linux-x86-and-x86_64-using-some-black-magic/
/**
* Handle page protection errors using D errors (exceptions). $(D NullPointerError) is
... | D |
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed... | D |
/Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Routing.build/Register/RouterOption.swift.o : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/routing.git-5366657101075133678/Sources/Routing/Utilities/Deprecated.swift /Users/user/Documents/RiseTimeAssets/server/.build/check... | D |
/Users/volodymyr.voleniuk/Desktop/Repos/Rust/Guess game/guessing_game/target/rls/debug/deps/guessing_game-a3524ac22b9b56ab.rmeta: src/main.rs
/Users/volodymyr.voleniuk/Desktop/Repos/Rust/Guess game/guessing_game/target/rls/debug/deps/guessing_game-a3524ac22b9b56ab.d: src/main.rs
src/main.rs:
| D |
instance DIA_SCATTY_NW_EXIT(C_Info)
{
npc = vlk_6024_scatty;
nr = 999;
condition = dia_scatty_nw_exit_condition;
information = dia_scatty_nw_exit_info;
permanent = TRUE;
description = Dialog_Ende;
};
func int dia_scatty_nw_exit_condition()
{
return TRUE;
};
func void dia_scatty_nw_exit_info()
{
AI_StopProce... | D |
//#out of bounds error
//#bit junky
//#should this be here
//#remed out diamonds print next line
//#not work
//#change here
//#die
//#not sure about this
//#320 didn't work
//#doesn't seem to be needed
//#rocket
//#whopping code block
//#stop on a block in a jump up a screen
//#if bottomLeft or bottomRight in on a ladd... | D |
form a pair or pairs
bring two objects, ideas, or people together
occur in pairs
arrange in pairs
engage in sexual intercourse
used of gloves, socks, etc.
of leaves etc
mated sexually
| D |
module arrow.Tensor;
private import arrow.Buffer;
private import arrow.DataType;
private import arrow.c.functions;
public import arrow.c.types;
private import glib.ConstructionException;
private import glib.Str;
private import gobject.ObjectG;
/** */
public class Tensor : ObjectG
{
/** the main Gtk struct */
prot... | D |
/**
License:
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, distribute,
execute, and transmit t... | D |
#!/usr/bin/env dub
/+
dub.sdl:
name "snippet92"
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" \
"gobjec... | D |
import std.stdio;
int f(int n){
int i = 1,k;
while(i^^2 < n ){
if(n % i == 0){
k++;
}
i++;
}
if(k >= 250){
return true;
}else{
return false;
}
}
void main(){
int k,t;
do{
k++;
t = t + k;
}while(f(t) == false);
writeln(t);
}
| D |
/*******************************************************************************
copyright: Copyright (C) 2007 Daniel Keep. все rights reserved.
license: BSD стиль: $(LICENSE)
author: Daniel Keep
version: Feb 08: добавьed support for different поток encodings, removed
... | D |
/****************************************************************************
**
** Copyright (C) 2012 David Faure <faure@kde.org>
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding ... | D |
/*
TEST_OUTPUT:
----
fail_compilation/issue12652.d(18): Error: static initializations of associative arrays is not allowed.
fail_compilation/issue12652.d(18): associative arrays must be initialized at runtime: https://dlang.org/spec/hash-map.html#runtime_initialization
---
*/
enum A
{
x,
y,
z
}
str... | D |
/*
* The MIT License (MIT)
*
* Copyright (c) 2014 Devisualization (Richard Andrew Cattermole)
*
* 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 ... | D |
//Written in the D programming language
/++
$(LUCKY Regular expressions) are commonly used method of pattern matching
on strings, with $(I regex) being a catchy word for a pattern in this domain
specific language. Typical problems usually solved by regular expressions
include validation of user input and ubiqui... | D |
/Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Core.build/DataCoders.swift.o : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/core/Sources/Core/Data+Base64URL.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/core/Sources/Core/Ne... | D |
/Users/azimin/Downloads/Hello2/.build/debug/Console.build/Terminal/ConsoleColor+Terminal.swift.o : /Users/azimin/Downloads/Hello2/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/String+ANSI.swift /Users/azimin/Downloads/Hello2/.build/checkouts/console.git--2431895819212044213/Sources/Console/... | D |
module util.gl;
import derelict.opengl;
import util.ext_lib;
struct GLBuffer {
uint vao, vbo, ebo;
}
struct GLProgram {
GLint id;
GLuint[string] attribs;
GLint[string] uniforms;
GLBuffer make_buffer() {
uint vbo, vao;
glGenVertexArrays(1, &vao);
glGenBuffers(1, &vbo);
... | D |
/Users/mstygg/rust_projects/rustlings/target/release/build/syn-57c4846c04e5b9f2/build_script_build-57c4846c04e5b9f2: /Users/mstygg/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.8/build.rs
/Users/mstygg/rust_projects/rustlings/target/release/build/syn-57c4846c04e5b9f2/build_script_build-57c4846c04e5b9f2.d: /U... | D |
module dgl.ext.GLX_SUN_video_resize;
import dgl.opengl;
import dgl.glext;
version( D_Version2 ) {
import std.string : containsPattern = count;
import std.conv;
} else {
import tango.text.Util : containsPattern;
import tango.stdc.stringz : fromStringz;
alias char[] string;
}
private ushort extensionId__ = 24;
a... | D |
module android.java.android.os.strictmode.SqliteObjectLeakedViolation_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.java.io.PrintStream_d_interface;
import import4 = android.j... | D |
module linkservice.common;
import std.algorithm, std.array, std.base64, std.conv, std.format, std.stdio, std.string;
import d2sqlite3;
import vibe.http.router;
import dini;
import linkservice.utils.crypto;
import linkservice.utils.linksdb;
import linkservice.utils.usersdb;
import linkservice.models;
import linkservi... | D |
// Copyright Michael D. Parker 2018.
// 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 bindbc.freeimage.types;
import core.stdc.config,
core.stdc.stddef;
enum FISupport {
... | 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;
void main() {
auto N = readln.chomp.to!int;
auto A = readln.split.map!(to!int).array;
int ans = 0;
for (int i = 0; i < N; ... | D |
/Users/safiqulislam/Desktop/SDK/AQDEMO/DerivedData/AQDEMO/Build/Intermediates.noindex/AQDEMO.build/Debug-iphonesimulator/AQDEMO.build/Objects-normal/x86_64/SocketAnyEvent.o : /Users/safiqulislam/Desktop/SDK/AQDEMO/AQDEMO/SocketIO/Engine/SocketEngineSpec.swift /Users/safiqulislam/Desktop/SDK/AQDEMO/AQDEMO/SocketIO/Manag... | D |
module ws.wm.x11.window;
version(Posix):
import
std.conv,
std.string,
ws.wm,
ws.gui.base,
ws.list,
derelict.opengl3.gl3,
ws.wm.x11.api;
import derelictX = derelict.util.xtypes;
__gshared:
class X11Window: Base {
package {
Mouse.cursor cursor = Mouse.cursor.inherit;
string title;
bool isActive = fal... | D |
// REQUIRED_ARGS: -w
// https://issues.dlang.org/show_bug.cgi?id=4375: Dangling else
static if (true)
align(1)
extern(C)
pure
static if (false)
void G10(){}
else
void G11(){}
| D |
D :
+-D.Module :
+-D.DeclDefs : void
+-D.DeclDef : void
+-D.Declaration : void
+-D.Decl : void
+-D.basicFunction : int
+-D.BasicType : int
| +-D.BasicTypeX : int
+-D.Declarator : void
| +-D... | D |
module zynd.dsp.filter;
/*
ZynAddSubFX - a software synthesizer
Filter.h - Filters, uses analog,formant,etc. filters
Copyright (C) 2002-2005 Nasca Octavian Paul
Author: Nasca Octavian Paul
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU... | D |
module scone.input.os.posix.keyboard_event_tree;
version (Posix)
{
import scone.input.scone_control_key : SCK;
import scone.input.scone_key : SK;
import scone.input.keyboard_event : KeyboardEvent;
import std.typecons : Nullable;
// todo this logic for inserting values has some problems
// i be... | D |
module cgem.d.idiom.times;
import std.traits;
import cgem.d.idiom.block;
/** Ruby style N.times {|n| ...}.
*
* We use template constrains so that
* T could be only some integral type.
*/
uint times(T)(in T number, Block!(void, uint) yield)
if (isIntegral!(T) /*TODO || has(0,+1,less_than)*/)
{
uint i = 0;
... | D |
/Users/aishwarya.krishnan/Rust/projects/tiger-hall/cai-bakery/target/debug/deps/cai_bakery-81b7197f6552a039.rmeta: src/lib.rs
/Users/aishwarya.krishnan/Rust/projects/tiger-hall/cai-bakery/target/debug/deps/libcai_bakery-81b7197f6552a039.rlib: src/lib.rs
/Users/aishwarya.krishnan/Rust/projects/tiger-hall/cai-bakery/ta... | D |
/Users/mosluce/Documents/Workspace/iOS/Playground/DemoAutolayout/Build/Intermediates/IBDesignables/Intermediates/DemoAutolayout.build/Debug-iphonesimulator/DemoAutolayout.build/Objects-normal/x86_64/ViewController.o : /Users/mosluce/Documents/Workspace/iOS/Playground/DemoAutolayout/DemoAutolayout/ViewController.swift /... | D |
/**
* Very basic platform configuration for multiple compilers
*
* Authors:
* Gregor Richards
*
* License:
* Copyright (c) 2006 Gregor Richards
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* ... | D |
module directx.d2d1effects_1;
//---------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This file is automatically generated. Please do not edit it directly.
//
// File name: D2D1Effects_1.h
//--------------------------------------... | D |
module android.java.java.net.CacheRequest_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.java.lang.Class_d_interface;
import import0 = android.java.java.io.OutputStream_d_inter... | D |
void main() {
auto ip = readAs!(long[]), N = ip[0], K = ip[1];
ulong res;
if(K == 0) {
writeln(N^^2);
return;
}
foreach(b; 1..N+1) {
auto p = N / b, r = N % b;
res += max(b-K, 0) * p;
res += max(0, r-K+1);
}
res.writeln;
}
// ===================================
import std.stdio;
import std.string;
... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.