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.
This file contains 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
# This gist contains Ada version of Boost.Context and test. | |
/asm | |
/build | |
/b~* | |
/*.o | |
/import | |
/test_context |
This file contains 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
/** | |
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 | |
} | |
} |
An animated cheatsheet for smartparens using the example configuration specified here by the smartparens author. Inspired by this tutorial for paredit.
C-M-f | sp-forward-sexp |
C-M-b | sp-backward-sexp |
This file contains 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
(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* |
This file contains 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
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; | |