Skip to content

Instantly share code, notes, and snippets.

View shaka-b's full-sized avatar

David Bimamisa shaka-b

View GitHub Profile
@shaka-b
shaka-b / CountPickableNodes.java
Created November 1, 2017 12:37
Count pickable nodes
public static int countPickableNodes(Node node) {
int count = 0;
if (node == null) return count;
if (node instanceof Parent) {
for (Node n : ((Parent) node).getChildrenUnmodifiable()) {
count = count + countPickableNodes(n);
}
}
@font-face {
font-family: 'EntypoRegular';
src: url('font/entypo.eot');
src: url('font/entypo.eot?#iefix') format('embedded-opentype'),
url('font/entypo.woff') format('woff'),
url('font/entypo.ttf') format('truetype'),
url('font/entypo.svg#EntypoRegular') format('svg');
font-weight: normal;
font-style: normal;
}
@shaka-b
shaka-b / gist:3892353
Created October 15, 2012 13:03 — forked from hileon/gist:1311735
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Windows)

General

Ctrl+KB toggle side bar
Ctrl+Shift+P command prompt
Ctrl+` python console
Ctrl+N new file

Editing