Skip to content

Instantly share code, notes, and snippets.

View Gioni06's full-sized avatar
👨‍💻
Working from home

Jonas D. Gioni06

👨‍💻
Working from home
View GitHub Profile
@Gioni06
Gioni06 / tmux-cheatsheet.markdown
Created November 10, 2016 20:58 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Gioni06
Gioni06 / AngularJS-ES6-Test-Skeleton
Created December 2, 2015 18:47 — forked from busypeoples/AngularJS-ES6-Test-Skeleton
AngularJS - Karma, Jasmine, Browserify, Stringify - ES6 Test Setup
We couldn’t find that file to show.
//return an array of objects according to key, value, or key and value matching
function getObjects(obj, key, val) {
var objects = [];
for (var i in obj) {
if (!obj.hasOwnProperty(i)) continue;
if (typeof obj[i] == 'object') {
objects = objects.concat(getObjects(obj[i], key, val));
} else
//if key matches and value matches or if key matches and value is not passed (eliminating the case where key matches but passed value does not)
if (i == key && obj[i] == val || i == key && val == '') { //