Skip to content

Instantly share code, notes, and snippets.

View joelreymont's full-sized avatar

Joel Reymont joelreymont

View GitHub Profile
@mrflip
mrflip / maximum_battery_life.md
Created March 19, 2012 08:32
maximum battery life checklist -- use before a long plane flight

Max Battery Life Checklist

Here is a checklist to follow if you want maximum battery life -- for instance if you're about to get on a long plane flight.

10 hour battery life on a non-SSD Macbook Pro 17"

Low power use checklist

With power connected:

@ytomino
ytomino / .gitignore
Created April 9, 2012 06:46
Boost.Context in Ada
# This gist contains Ada version of Boost.Context and test.
/asm
/build
/b~*
/*.o
/import
/test_context
@pixelspark
pixelspark / Fallible.swift
Created June 3, 2015 18:02
Swift Fallible type
/**
FIXME: Box exists to prevent the "Unimplemented IR generation feature non-fixed multi-payload enum layout" error. */
final class Box<T> {
let value: T
init(_ value: T) {
self.value = value
}
}
@jsmestad
jsmestad / smartparens-cheatsheet.md
Created September 9, 2018 00:19 — forked from pvik/smartparens-cheatsheet.md
A Cheatsheet for Emacs Smarparens example configuration

An animated cheatsheet for smartparens using the example configuration specified here by the smartparens author. Inspired by this tutorial for paredit.

Traversal

C-M-f sp-forward-sexp
C-M-b sp-backward-sexp
@maufdez
maufdez / epicycles.paren
Created July 14, 2019 22:39
Epicycles demo using ParenScript
(defvar *canvas-name* "myCanvas")
(defvar *canvas-style* "border:1px solid #000000;")
(defvar *canvas-width* 400)
(defvar *canvas-height* 400)
(defun create-canvas ()
((@ document write)
(ps-html ((:canvas :id *canvas-name*
:width *canvas-width*
:height *canvas-height*
@flyx
flyx / main.adb
Created February 23, 2021 20:51
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Hashed_Maps; use Ada.Containers;
with Ada.Iterator_Interfaces;
procedure Main is
package Tiles is
-- Implementation is completely hidden
type Tile_Type is private;