Skip to content

Instantly share code, notes, and snippets.

@ibuclaw
ibuclaw / gol.d
Created February 22, 2011 19:22 — forked from paultag/gol.c
import std.stdio;
import core.stdc.limits;
import std.math;
uint WORLD;
uint LASTWORLD;
uint NEWWORLD;
uint ROW_L;
@ibuclaw
ibuclaw / sources.d
Last active August 1, 2017 08:20 — forked from jpf91/sources.d
import std.stdio, std.file, std.path, std.range, std.string, std.algorithm ;
string[] filterList = ["./Makefile.in", "./gcc/config.d.in", "./gcc/libbacktrace.d.in",
"./Makefile.am", "./LICENSE", "./rt/dylib_fixes.c"];
struct Files
{
string[] baseList, cppList, gcList, gcStubList;
string[][string] sysList;
}
import std.stdio, std.file, std.path, std.range, std.string, std.algorithm ;
string[] filterList = ["./Makefile.in", "./Makefile.am", "./index.d", "./unittest.d",
"./libgphobos.spec.in", "./LICENSE_1_0.txt", "./std/experimental/note.md"];
struct Files
{
string[] baseList;
string[][string] sysList;
}
@ibuclaw
ibuclaw / OSX-10.13.ova
Last active October 11, 2022 21:37 — forked from MartinNowak/OSX-10.8.ova
curl follow redirects
@ibuclaw
ibuclaw / release.sh
Last active May 9, 2024 13:07 — forked from MartinNowak/release.sh
Orchestration for dlang release building
#!/usr/bin/env bash
set -ueo pipefail
set -x
ROOT="$PWD"
LATEST_D_VER=v$(curl -fsS http://downloads.dlang.org/releases/LATEST)
BUILD_LDC_VER=v1.32.0
D_VER=v2.109.0-beta.1
@ibuclaw
ibuclaw / invariant.cpp
Last active December 30, 2022 15:27 — forked from GavinRay97/invariant.cpp
GCC [[invariant]] plugin for Design by Contract (WIP)
#include <iostream>
// clang-format off
#include <gcc-plugin.h>
#include <context.h>
#include <plugin-version.h>
#include <tree.h>
#include <gimple.h>
#include <tree-pass.h>
#include <gimple-iterator.h>