code stringlengths 3 10M | language stringclasses 31
values |
|---|---|
/*
* $Id: input.d,v 1.1.1.1 2006/02/19 04:57:26 kenta Exp $
*
* Copyright 2004 Kenta Cho. Some rights reserved.
*/
module abagames.util.sdl.input;
private import derelict.sdl2.sdl;
/**
* Input device interface.
*/
public interface Input {
public void handleEvent(SDL_Event *event);
}
public class MultipleInpu... | 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 s = readln.split.map!(to!int);
auto N = s[0];
auto M = s[1];
auto A = M.iota.map!(_ => readln.split.map!... | D |
module ClientGameInstance;
import Cell;
import Level;
import Entity;
import Messages;
import GameLog;
import Connections: Queue;
import ClientGameView:ClientGameView;
import utility.ConIO;
import utility.Geometry;
import std.format:format;
enum PROCESS_RESULT {OK, CONNECT, DISCONNECT, EXIT}
/*
ok: nothing new
connec... | D |
/Users/gem/Desktop/MovieMoya/the-movie-db/DerivedData/TheNewMovie/Build/Intermediates.noindex/IBDesignables/Intermediates.noindex/Pods.build/Debug-iphonesimulator/SnapKit.build/Objects-normal/x86_64/Typealiases.o : /Users/gem/Desktop/MovieMoya/the-movie-db/Pods/SnapKit/Source/ConstraintLayoutGuideDSL.swift /Users/gem/D... | D |
/home/ankit/pandora/substrate-node-template/target/release/build/libp2p-core-a1b54a1e1d66b8ba/build_script_build-a1b54a1e1d66b8ba: /home/ankit/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-core-0.22.1/build.rs
/home/ankit/pandora/substrate-node-template/target/release/build/libp2p-core-a1b54a1e1d66b8ba/build_... | D |
module android.java.org.xml.sax.SAXParseException_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import3 = android.java.java.io.PrintStream_d_interface;
import import1 = android.java.java.lang.JavaEx... | D |
module dlangide.ui.searchPanel;
import dlangui;
import dlangide.ui.frame;
import dlangide.ui.wspanel;
import dlangide.workspace.workspace;
import dlangide.workspace.project;
import std.string;
import std.conv;
// parallel search is disabled to fix #178
//version = PARALLEL_SEARCH;
interface SearchResultClickHandl... | D |
module tests.to_data;
import serious.generate;
import tests.types;
// fields only, generated constructor
unittest {
StructSimple s;
s.i = 5;
s.b = true;
s.f = 4.2f;
s.s = "tally-ho!";
auto data = s._toData;
assert(data.i == 5);
assert(data.b == true);
assert(data.f == 4.2f);
assert(data.s == "tal... | D |
var int onceTriggeredAngryGirlDoor;
func void B_AssessSurprise()
{
Npc_SetTarget(self,other);
self.aivar[AIV_ATTACKREASON] = AR_GuildEnemy;
};
func void ZS_Attack()
{
Perception_Set_Minimal();
Npc_PercEnable(self,PERC_ASSESSSURPRISE,B_AssessSurprise);
B_ValidateOther();
self.aivar[AIV_LASTTARGET] = Hlp_GetInsta... | D |
module hunt.io.channel.AbstractSocketChannel;
import hunt.event.selector.Selector;
import hunt.io.channel.AbstractChannel;
import hunt.io.channel.Common;
import hunt.logging.ConsoleLogger;
import core.time;
import std.functional;
import std.socket;
import core.stdc.stdint;
/**
*/
abstract class AbstractSocketChannel... | D |
import std.stdio;
void main() {
auto name = "John";
string greeting = "Hello";
writeln(greeting, ", ", name, "!"); // Hello, John!
} | D |
/Users/alibagheri/Desktop/ultimate_rust_crash_course/exercise/g_collections_enums/target/debug/deps/rand_core-a3698b4c3857378d.rmeta: /Users/alibagheri/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.3.1/src/lib.rs
/Users/alibagheri/Desktop/ultimate_rust_crash_course/exercise/g_collections_enums/target/deb... | D |
/Users/hyungsukkang/terra/terra-contracts/exchange/target/rls/debug/deps/void-b0b92130e67e25ef.rmeta: /Users/hyungsukkang/.cargo/registry/src/github.com-1ecc6299db9ec823/void-1.0.2/src/lib.rs
/Users/hyungsukkang/terra/terra-contracts/exchange/target/rls/debug/deps/void-b0b92130e67e25ef.d: /Users/hyungsukkang/.cargo/re... | D |
module mci.core.code.stream;
import mci.core.container,
mci.core.code.functions,
mci.core.code.instructions,
mci.core.code.opcodes;
public final class InstructionStream : ReadOnlyIndexable!Instruction
{
private BasicBlock _block;
private NoNullList!Instruction _instructions;
pure not... | D |
void main() {
problem();
}
void problem() {
auto N = scan!long, M = scan!long;
long solve() {
long answer;
if (N > 0) answer += N*(N-1)/2;
if (M > 0) answer += M*(M-1)/2;
return answer;
}
solve().writeln;
}
// ----------------------------------------------
import std.stdio, std.conv, std.... | D |
/*
* [The "BSD license"]
* Copyright (c) 2016 Terence Parr
* Copyright (c) 2016 Sam Harwell
* Copyright (c) 2017 Egbert Voigt
* 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 |
module org.serviio.upnp.service.contentdirectory.rest.representation.SearchResultRepresentation;
import java.lang.String;
import org.serviio.upnp.service.contentdirectory.rest.representation.AbstractCDSObjectRepresentation;
public class SearchResultRepresentation : AbstractCDSObjectRepresentation
{
private String... | D |
/Users/Rami/Desktop/TaskCompanyUSA/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Validation.o : /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/MultipartFormData.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/Alamofire/Source/Timeline.swift /Users/Rami/Desktop/TaskCompanyUSA/Pods/... | D |
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE
269.100006 76.3000031 4.30000019 66.6999969 0 3 32.4000015 70.9000015 404 2.9000001 5 1 sediments
255.5 73.5999985 0 0 0 2 32.2999992 70.6999969 831 0 0 1 sediments
247.5 75.9000015 0 0 0 3 32.5 70.5999985 830 0 0 1 sediments
295.700012 66.90000... | D |
module test.fsicalmanagement.data.authentication_info_test;
import fsicalmanagement.data.authentication_info;
import fsicalmanagement.model.user : Privilege;
import unit_threaded.attrs : getValue, Values;
import unit_threaded.should : shouldEqual;
// TODO: Automatically generate these tests for all enum members of `P... | D |
module android.java.android.content.IntentFilter_MalformedMimeTypeException_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 = and... | D |
/**
* Elasticsearch get API
*
* Copyright: © 2015 David Monagle
* License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
* Authors: David Monagle
*/
module elasticsearch.api.actions.get;
import elasticsearch.api.parameters;
import elasticsearch.transport.response;
import e... | D |
blatant or sensational promotion
publicize in an exaggerated and often misleading manner
| D |
module d.llvm.global;
import d.llvm.codegen;
import d.ir.symbol;
import d.ir.type;
import util.visitor;
import llvm.c.analysis;
import llvm.c.core;
// Conflict with Interface in object.di
alias Interface = d.ir.symbol.Interface;
struct GlobalGen {
private CodeGen pass;
alias pass this;
import d.llvm.local : ... | D |
/Users/eduardosoares/Documents/github/rust-study/crates-and-packages/target/rls/debug/build/crossbeam-epoch-70b168a24ddc1e1e/build_script_build-70b168a24ddc1e1e: /Users/eduardosoares/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-epoch-0.8.0/build.rs
/Users/eduardosoares/Documents/github/rust-study/crates-a... | D |
/Users/dan/Developer/iOS/selectsearch/DerivedData/selectsearch/Build/Intermediates/selectsearch.build/Debug-iphonesimulator/flickrSearch.build/Objects-normal/x86_64/ActionViewController.o : /Users/dan/Developer/iOS/selectsearch/flickrSearch/ActionViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchain... | D |
class Complex {
var float Real;
var float Imag;
}
proc Swap( ref int a, ref int b )
{
var int tmp;
tmp := a;
a := b;
b := tmp;
}
proc ret Complex Add( Complex a, Complex b )
{
var Complex retval;
retval := new Complex;
retval.Real := a.Real + b.Real;
retval.Imag := a.Imag + b... | D |
module particles;
public import particles.system;
public import particles.generators;
public import particles.updaters; | D |
react verbally
respond to a signal
give the correct answer or solution to
understand the meaning of
give a defence or refutation of (a charge) or in (an argument
be liable or accountable
be sufficient
match or correspond
be satisfactory for
react to a stimulus or command
replying
| D |
//###################################################
// File: kmain.d
// Created: 2015-10-29 15:34:16
// Modified: 2015-10-29 15:34:17
//
// See LICENSE file for license and copyright details
//###################################################
module kernel.kmain;
//import kernel.drt0;
immutable uint COLUMNS = 8... | D |
// Written in the D programming language.
/**
This module implements a variety of type constructors, i.e., templates
that allow construction of new, useful general-purpose types.
Source: $(PHOBOSSRC std/_typecons.d)
Macros:
WIKI = Phobos/StdVariant
Synopsis:
----
// value tuples
alias Tuple!(float, "x", float,... | D |
import std.string;
class Shorten
{
public:
string url;
string target;
this(string url, string target){
this.url = url;
this.target = target;
}
} | D |
//============================================================================
// Std.d - some standard simple utilties
//
// Description:
// <TODO:>
//
// Author: William V. Baxter III
// Created: 30 Aug 2007
// Written in the D Programming Language (http://www.digitalmars.com/d)
//========================... | D |
// EXTRA_SOURCES: imports/test10736a.d
// EXTRA_SOURCES: imports/test10736b.d
import imports.test10736a;
import imports.test10736b;
| 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 |
<?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_0_BeT-45345198... | D |
a unit of length of thread or yarn
a field covered with grass or herbage and suitable for grazing by livestock
| 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,
execut... | D |
module optd;
import std.stdio;
import std.math;
import gradient;
import std.stdio, std.random, std.range, std.array;
//TODO
//Merge gaussnewton and this project
//add Levenberg–Marquardt_algorithm
float dfunc(double x){
return pow(x,3);
}
void test_gradient(){
writeln(GradientDescent(0.74, 0.5,100, &dfunc));
}... | D |
module tests.cerealiser_impl;
import unit_threaded;
import cerealed;
import core.exception;
struct WhateverStruct {
ushort i;
string s;
}
void testOldCerealiser() {
auto enc = DynamicArrayCerealiser();
enc ~= WhateverStruct(5, "blargh");
enc.bytes.shouldEqual([ 0, 5, 0, 6, 'b', 'l', 'a', 'r', 'g'... | D |
module qrcode.common.ecblocks;
struct EcBlock
{
int count;
int dataCodewords;
}
class EcBlocks
{
/**
* Number of EC codewords per block.
*
* @var integer
*/
protected int ecCodewordsPerBlock;
/**
* List of EC blocks.
*
* @var SplFixedArray
*/
protected EcBlock[] ecBlocks;
/**
* C... | D |
E: c37, c17, c47, c82, c51, c20, c45, c80, c54, c64, c23, c48, c31, c32, c0, c86, c16, c66, c78, c27, c49, c36, c21, c4, c65, c69, c81, c12, c70, c11, c18, c77, c39, c19, c71, c33, c55, c63, c76, c3, c52, c58, c7, c61.
p7(E,E)
c37,c17
c51,c20
c80,c54
c48,c80
c32,c80
c48,c0
c80,c48
c0,c48
c48,c54
c21,c0
c51,c54
c65,c69... | D |
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | D |
module ddb.db;
/**
Common relational database interfaces.
Copyright: Copyright Piotr Szturmaj 2011-.
License: $(LINK2 http://boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Piotr Szturmaj
*/
//module db;
import std.conv, std.traits, std.typecons, std.typetuple, std.variant;
/**
Data row returned from datab... | D |
instance Mod_4012_UntoterNovize_13_MT (Npc_Default)
{
//-------- primary data --------
name = "Untoter Novize";
Npctype = Npctype_UNTOTERNOVIZE;
guild = GIL_STRF;
level = 20;
voice = 2;
id = 4012;
//-------- abilities --------
B_SetAttributesToChapter (self, 4);
EquipItem (self, It... | D |
import std.stdio, std.algorithm, std.string;
struct GrammarRule {
string source;
string[] goesTo;
this(string source, string[] goesTo) {
this.source = source;
this.goesTo = goesTo;
}
string toString() {
return format("(%s -> %s)", source, goesTo);
}
}
struct Grammar {
GrammarRule[] grammar;
void insertR... | D |
import std.stdio;
import ga_framework;
import generic_imp;
import test_problem;
import std.conv;
import std.datetime;
import std.string;
import std.array;
//void main()
//{
// writeln(["iter", "popSize", "maxEval", "sec", "msec", "nsec"].join(";"));
// foreach(maxEvals; [1_000_000, 2_000_000, 5_000_000, 10_000_0... | D |
/*
TEST_OUTPUT:
---
fail_compilation/fail274.d(10): Error: expression expected not `;`
---
*/
void main()
{
version(GNU) asm { "" : [; }
else asm { inc [; }
}
| 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 |
/Users/christian/GitHub/vapor/HelloVapor/.build/x86_64-apple-macosx/debug/Vapor.build/Middleware/DateMiddleware.swift.o : /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/christian/GitHub/vapor/HelloVapor/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCod... | D |
module android.java.java.security.cert.PKIXCertPathValidatorResult;
public import android.java.java.security.cert.PKIXCertPathValidatorResult_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!PKIXCertPathValidatorResult;
import import3 = android.java.java.lang.Class;
| D |
/Users/go7hic/workspace/Github/Rust-in-action/grrs/target/debug/deps/atty-522dd1011e8c9477.rmeta: /Users/go7hic/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/atty-0.2.14/src/lib.rs
/Users/go7hic/workspace/Github/Rust-in-action/grrs/target/debug/deps/atty-522dd1011e8c9477.d: /Users/go7hic/.cargo/registry/src... | D |
/*
* Copyright (c) 2004-2008 Derelict Developers
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this li... | D |
lacking regard for the rights or feelings of others
without proper consideration or reflection
| D |
a day or period of time set aside for feasting and celebration
an organized series of acts and performances (usually in one place
| D |
/Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Take.o : /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxS... | D |
instance DIA_Agon_EXIT(C_Info)
{
npc = NOV_603_Agon;
nr = 999;
condition = DIA_Agon_EXIT_Condition;
information = DIA_Agon_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Agon_EXIT_Condition()
{
return TRUE;
};
func void DIA_Agon_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance... | D |
/Users/Bamz/Developer/Calculator/Build/Intermediates/Calculator.build/Debug-iphonesimulator/Calculator.build/Objects-normal/x86_64/ViewController.o : /Users/Bamz/Developer/Calculator/Calculator/AppDelegate.swift /Users/Bamz/Developer/Calculator/Calculator/CalcBrain.swift /Users/Bamz/Developer/Calculator/Calculator/View... | 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 |
/Programming/servicely/build/servicely.build/Debug-iphonesimulator/servicely.build/Objects-normal/x86_64/CosmosDistrib.o : /Programming/servicely/servicely/CosmosDistrib.swift /Programming/servicely/servicely/ColorScheme.swift /Programming/servicely/servicely/AppDelegate.swift /Programming/servicely/servicely/Categorie... | D |
module libcpe.client.profile.list;
import std.getopt;
import libcpe.client.core : printHelp;
import libcpe.client.profile.core;
int app(string[] args)
{
bool
show_name,
show_file,
show_cpe,
show_user,
show_password;
auto optRes = getopt(
args,
"name" , "Name of the profile" , &show_name,
"f... | D |
#!/usr/bin/env rdmd -i -I..
import std.stdio;
import std.datetime.stopwatch;
import std.range;
import std.algorithm;
import kreikey.intmath;
import std.functional;
alias distinctPrimeFactors = memoize!(getDistinctPrimeFactors2!ulong);
//alias distinctPrimeFactors = distinctPrimeFactors2;
void main() {
StopWatch ti... | D |
module gfm.assimp;
// Assimp OO wrapper
public
{
import derelict.assimp3.assimp;
import gfm.assimp.assimp,
gfm.assimp.scene;
}
| D |
/Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Crypto.build/Objects-normal/x86_64/RSAKey.o : /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-1969615232318165506/Sources/Crypto/Utilities/Base32.swift /Users/brunodaluz/Desktop/project/.build/checkouts/crypto.git-196961523231816550... | D |
/*******************************************************************************
Implementation of DHT 'PutBatch' request
copyright:
Copyright (c) 2015-2017 sociomantic labs GmbH. All rights reserved
License:
Boost Software License Version 1.0. See LICENSE.txt for details.
**************... | D |
// Written in the D programming language.
/**
Functions that manipulate other functions.
Macros:
WIKI = Phobos/StdFunctional
Copyright: Copyright Andrei Alexandrescu 2008 - 2009.
License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(WEB erdani.org, Andrei Alexandrescu)
Source: $(PHOBOSSRC ... | D |
/*******************************************************************************
A label that can be clicked on.
Authors: ArcLib team, see AUTHORS file
Maintainer: Clay Smith (clayasaurus at gmail dot com)
License: zlib/libpng license: $(LICENSE)
Copyright: ArcLib team
... | D |
/Users/scott/projects/wasm_membrane/host/rust/target/debug/deps/cfg_if-4c840386b43c02da.rmeta: /Users/scott/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-1.0.0/src/lib.rs
/Users/scott/projects/wasm_membrane/host/rust/target/debug/deps/libcfg_if-4c840386b43c02da.rlib: /Users/scott/.cargo/registry/src/github.co... | D |
module otya.smilebasic.token;
import otya.smilebasic.type;
enum TokenType
{
Unknown,
Integer,
Double,
String,
Plus,
Minus,
Mul,
Div,
Mod,
Or,
And,
Xor,
Not,
Print,
If,
LParen,
RParen,
Iden,
Comma,
Colon,
Semicolon,
NewLine,
Assi... | D |
a line generated by a point on a circle rolling along a straight line
resembling a circle
| D |
/afs/cern.ch/user/a/abrennan/testarea/CxAODframework/RootCoreBin/obj/x86_64-slc6-gcc48-opt/CxAODTools/obj/DerivEffProvider.o /afs/cern.ch/user/a/abrennan/testarea/CxAODframework/RootCoreBin/obj/x86_64-slc6-gcc48-opt/CxAODTools/obj/DerivEffProvider.d : /afs/cern.ch/user/a/abrennan/testarea/CxAODframework/CxAODTools/Root... | D |
module dcompute.std;
version(LDC_DCompute) {}
else
{
static assert(false, "Need to use a DCompute enabled compiler.");
}
public import dcompute.std.index;
| D |
/**
* Benchmark bulk filling of AA.
*
* Copyright: Copyright Martin Nowak 2011 - 2011.
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Authors: Martin Nowak
*/
import std.conv, std.meta, std.random;
version (VERBOSE) import std.datetime, std.stdio;
alias ValueTuple = AliasSeq!(... | D |
/Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Utilities/AnyResponse.swift.o : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/FileIO.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/vapor.git-5492988889259800272/So... | D |
prototype Mst_Default_Lurker(C_Npc)
{
name[0] = "Topielec";
guild = GIL_LURKER;
aivar[AIV_IMPORTANT] = ID_LURKER;
level = 17;
attribute[ATR_STRENGTH] = 50;
attribute[ATR_DEXTERITY] = 50;
attribute[ATR_HITPOINTS_MAX] = 90;
attribute[ATR_HITPOINTS] = 90;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
p... | D |
/*
* $Id: gl.d,v 1.1.1.1 2005/06/18 00:46:00 kenta Exp $
*
* Copyright 2004 Kenta Cho. Some rights reserved.
*/
module abagames.util.support.gl;
version (Android) {
private import derelict.gles.egl;
public import derelict.gles.gles2;
private import derelict.gles.ext2;
public enum usingGLES = true;
} else ... | D |
/Users/Leex/TableView_Test/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/AsSingle.o : /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Leex/TableView_Test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Leex/TableView_Test/Pods/RxS... | D |
module nmap;
import std.algorithm;
import std.typetuple: allSatisfy;
import acceptingtuple;
// Very easy to do, now:
auto nmap(alias fun, R...)(R ranges) if (allSatisfy!(isInputRange,R))
{
return map!(tuplify!fun)(zip(ranges));
}
| D |
capable of being verified
capable of being tested (verified or falsified) by experiment or observation
| D |
/home/pi/dev/huePI/ledtest/target/debug/build/nix-e2f48aa519c75846/build_script_build-e2f48aa519c75846: /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/nix-0.13.1/build.rs
/home/pi/dev/huePI/ledtest/target/debug/build/nix-e2f48aa519c75846/build_script_build-e2f48aa519c75846.d: /home/pi/.cargo/registry/src/git... | D |
module dinu.dinu;
import
core.thread,
std.algorithm,
std.conv,
std.stdio,
std.string,
std.path,
std.file,
std.datetime,
x11.Xlib,
dinu.commandBuilder,
dinu.xclient,
dinu.resultWindow,
dinu.cli;
__gshared:
Options options;
CommandBuilder commandBuilder;
bool runProgram = true;
void delegate() close... | D |
//https://rosettacode.org/wiki/P-value_correction
import std.algorithm;
import std.conv;
import std.math;
import std.stdio;
import std.string;
int[] seqLen(int start, int end) {
int[] result;
if (start == end) {
result.length = end+1;
for (int i; i<result.length; i++) {
result[i] = ... | D |
instance SLD_738_Soeldner(Npc_Default)
{
name[0] = NAME_Soeldner;
npcType = npctype_guard;
guild = GIL_SLD;
level = 16;
voice = 8;
id = 728;
attribute[ATR_STRENGTH] = 85;
attribute[ATR_DEXTERITY] = 65;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX] = 262;
attribute[ATR_HI... | D |
/* GDC -- D front-end for GCC
Copyright (C) 2013 Free Software Foundation, Inc.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.
GCC ... | D |
import gtk.Main;
import gtk.MainWindow;
import gtk.Box;
import gtk.Label;
import gtk.Stack;
import gtk.StackSwitcher;
void main(string[] args)
{
Main.init(args);
auto window = new MainWindow("Stack Demo");
window.setDefaultSize(400, 200);
auto box = new Box(Orientation.VERTICAL, 0);
auto stack = new Stack(... | D |
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.build/StaticDataBuffer.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core.git-9210800844849382486/Sources/Core/RFC1123.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/core... | D |
module android.java.android.provider.Contacts_PhotosColumns;
public import android.java.android.provider.Contacts_PhotosColumns_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!Contacts_PhotosColumns;
import import0 = android.java.java.lang.Class;
| D |
func int C_CanStealFromNpc()
{
var int itm;
if(!Npc_GetTalentSkill(other,NPC_TALENT_PICKPOCKET))
{
return FALSE;
};
if(self.aivar[AIV_PlayerHasPickedMyPocket] == TRUE)
{
return FALSE;
};
if(other.attribute[ATR_DEXTERITY] < (self.aivar[AIV_DexToSteal] - Theftdiff))
{
return FALSE;
};
if(... | D |
module hunt.net.ssl.SSLSession;
import hunt.net.ssl.SSLSessionContext;
// dfmt off
version(WITH_HUNT_SECURITY):
// dfmt on
// import hunt.security.cert.Certificate;
// import hunt.security.cert.X509Certificate;
// import hunt.security.Principal;
/**
* In SSL, sessions are used to describe an ongoing relationship b... | D |
/// freetype fonts support
module dlangui.graphics.ftfonts;
import dlangui.graphics.fonts;
import derelict.freetype.ft;
private import dlangui.core.logger;
private import dlangui.core.collections;
private import std.algorithm;
private import std.file;
private import std.string;
private import std.utf;
private struct... | D |
/// This is a DPlug-specific rework of dg2d by Cerjones.
///
/// - removal of truetype functionnality (since covered by dplug:graphics)
/// - nothrow @nogc
/// - rework of the Canvas itself, to resemble more the HTML5 Canvas API
/// - Blitter delegate made explicit with a userData pointer
/// - add html color parsing
... | D |
/*******************************************************************************
copyright: Copyright (c) 2004 Kris Bell. All rights reserved
license: BSD style: $(LICENSE)
version: Aug 2011: Druntime ready for D2
author: Kris
*******************************************************************************/
... | D |
import tango.io.Stdout;
uint even(uint n)
{
return n/2;
}
uint odd(uint n)
{
return (3 * n) + 1;
}
uint seq(uint n)
{
uint i;
while(n != 1)
{
if(!(n & 1))
n = even(n);
else
n = odd(n);
i++;
}
return i;
}
void main()
{
int i = 13;
uint n, m, l;
for(; i <= 1000000; i++)
{
n = seq(i);
if(... | D |
/*
Copyright 2006, 2007 Kirk McDonald
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, distribute,... | D |
/Users/kennethharvey/Desktop/iPhoneApps/ECE158B_App/build/ECE158B_App.build/Debug-iphonesimulator/ECE158B_App.build/Objects-normal/x86_64/AppDelegate.o : /Users/kennethharvey/Desktop/iPhoneApps/ECE158B_App/ECE158B_App/ViewController.swift /Users/kennethharvey/Desktop/iPhoneApps/ECE158B_App/ECE158B_App/AppDelegate.swift... | D |
/**
Grammar testing module for Pegged.
*/
module pegged.tester.grammartester;
import std.stdio;
import std.array;
import std.ascii : whitespace;
import std.range : retro;
import std.algorithm : max, splitter;
import std.string : format, stripRight, removechars, squeeze;
import pegged.tester.testerparser;
import pegg... | D |
/***********************************************************************\
* richedit.d *
* *
* Windows API header module *
* ... | D |
// ***************
// Trank der Story
// ***************
INSTANCE ItPo_Story(C_Item)
{
name = "Gluck";
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
visual = "ItPo_Perm_STR.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_Story;
scemeName = "POTIONFAST";
wear = WEAR_EFFE... | D |
/**
Helper functions for tsv-utils-dlang unit tests.
Copyright (c) 2017, eBay Software Foundation
Initially written by Jon Degenhardt
License: Boost License 1.0 (http://boost.org/LICENSE_1_0.txt)
*/
version(unittest)
{
/* Creates a temporary directory for writing unit test files. The path of the created
* ... | D |
template AliasSeq(T...) { alias AliasSeq = T; }
template Unqual(T)
{
static if (is(T U == const U))
alias Unqual = U;
else static if (is(T U == immutable U))
alias Unqual = U;
else
alias Unqual = T;
}
template staticMap(alias F, T...)
{
alias A = AliasSeq!();
static foreach... | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.