I hereby claim:
- I am rkoch on github.
- I am rko (https://keybase.io/rko) on keybase.
- I have a public key ASCv_1yFDsVoFUDyYFomntHhgVBb8e-8V8QlAc3drAlf3wo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
log () { | |
echo "LOG[hammerspoon]: $1" | |
} | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
DEFAULTS=/usr/bin/defaults | |
BUDDY=/usr/libexec/PlistBuddy |
I hereby claim:
To claim this, I am signing this object:
#error { | |
:cause bee.http_client.component.HttpClient | |
:via | |
[{:type clojure.lang.Compiler$CompilerException | |
:message java.lang.ClassNotFoundException: bee.http_client.component.HttpClient, compiling:(bee/http_client/service.clj:37:1) | |
:at [clojure.lang.Compiler load Compiler.java 7239]} | |
{:type java.lang.ClassNotFoundException | |
:message bee.http_client.component.HttpClient | |
:at [java.net.URLClassLoader findClass URLClassLoader.java 381]}] | |
:trace |
(Brown bag presentation by Contovista AG on 26.03.2015)
Authors:
Published at: http://git.io/jGdi
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
function countWatchers (root) { | |
root = angular.element(root || document.documentElement); | |
var scopes = {}; | |
function traverseElement (element) { | |
var count = 0; | |
var data = element.data(); | |
count += countWatchersFromScope(data.$isolateScope); | |
count += countWatchersFromScope(data.$scope); | |
angular.forEach(element.children(), function (childElement) { |
#include <iostream> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <sys/wait.h> | |
int main(int pArgc, const char* pArgv[]) { | |
pid_t pid = fork(); // vfork() would also be an option | |
if (pid < 0) { | |
std::cerr << "Error creating child process" << std::endl; |
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |