Skip to content

Instantly share code, notes, and snippets.

View oskarkrawczyk's full-sized avatar
😰
That shouldn't be working but it does

Oskar Krawczyk oskarkrawczyk

😰
That shouldn't be working but it does
View GitHub Profile
@oskarkrawczyk
oskarkrawczyk / git-sync
Last active December 18, 2015 02:39 — forked from pch/git-sync
No need to inform about this
#!/bin/bash
SYNC_COLOR_YELLOW="\033[33m"
SYNC_COLOR_GREEN="\033[32m"
SYNC_COLOR_NONE="\033[0m"
git_branch() {
branch=$(git symbolic-ref HEAD 2>/dev/null | awk -F/ {'print $NF'})
}
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>ti</title>
<script type="text/ruby" charset="utf-8">
dirs = `ls`
</script>
</head>
</html>
Array.implement({
first: function() {
return this[0];
},
rest: function() {
return this.slice(1, this.length);
},
drop: function(n) {
/*
Array.each_asynchronously
Description:
Works just like Array.each except runs each iteration on a specified delay.
This means that script execution will continue in between each iteration,
rather than halting until the full array has been processed.
Arguments:
- fn: (function) The function to execute on each item in the array. It is