Skip to content

Instantly share code, notes, and snippets.

View tillt's full-sized avatar
〰️
For Hire!

Till Toenshoff tillt

〰️
For Hire!
View GitHub Profile
// Create a fresh set of resources only for memory.
// You may want to include all other resources in this set as well.... YMMV!
Resources rangedResources;
// Memory resource.
if (!resources.mem().isSome()) {
// No memory specified so probe OS or resort to DEFAULT_MEM.
Bytes mem;
Try<os::Memory> mem_ = os::memory();
if (mem_.isError()) {
@tillt
tillt / .gitignore
Created November 19, 2013 23:58 — forked from adamgit/.gitignore
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,