This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public import std.typecons: Yes, No; | |
struct ClampedNumber(NumericT) | |
{ | |
import std.traits: isNumeric; | |
import std.typecons: Flag; | |
alias Numeric = NumericT; | |
alias TrackUnclamped = Flag!"trackUnclamped"; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Compiles SCSS files on-the-fly in the browser. Minimal example: | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Strips content from the head of imported SCSS files to calculate the logical path. Optional. --> | |
<meta name="scss-prefix" content="src"> | |
<!-- Dependencies and this script. --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local SLOT_PICKAXE = 14 | |
local SLOT_AXE = 15 | |
local SLOT_COAL = 16 | |
local SLOT_LAST = 12 | |
local SLEEP_DELAY = 30 | |
local component = require("component") | |
local robot = require("robot") | |
local inv = component.inventory_controller | |
local geo = component.geolyzer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Updater script for freedns.afraid.org | |
(Should work with other services that have you simply GET a URL to update) | |
Also sends you emails if something's wrong or when your IP is updated, | |
provided you have a local email server. | |
Additionally, passing --cron as an argument will let cron handle the email. | |
Suggested crontab entry: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env dub | |
/+ dub.sdl: | |
name "collage" | |
dependency "imageformats" version="~>6.1.0" | |
dependency "mustache-d" version="~>0.1.1" | |
+/ | |
import std.algorithm; | |
import std.array; | |
import std.file; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.algorithm; | |
import std.random; | |
import std.range; | |
import std.stdio; | |
import std.string; | |
import std.utf; | |
void main(string[] args) | |
{ | |
if(args.length < 2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --format=format:"%H/%cd/%ad" | rdmd filter.d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env rdmd | |
import std.algorithm; | |
import std.file; | |
import std.range; | |
import std.regex; | |
import std.stdio; | |
void main(string[] args) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.algorithm; | |
import std.array; | |
import std.file: writeFile = write; | |
import std.getopt; | |
import std.random; | |
import std.range; | |
import std.stdio; | |
import std.string; | |
import std.uni; | |
import std.utf; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.0) | |
project(changeme) | |
set(METAMOD_PATH "" CACHE PATH "Path to Metamod-p source root") | |
if(NOT METAMOD_PATH) | |
message(FATAL_ERROR "METAMOD_PATH must be defined.") | |
endif() | |
#HLSDK includes |