Skip to content

Instantly share code, notes, and snippets.

View tschneid's full-sized avatar
🤓
Looking for devs to join our team

Timo Schneider tschneid

🤓
Looking for devs to join our team
View GitHub Profile
/**
* Utility to count watchers in an AngularJS app.
*/
function countWatchers() {
var root = angular.element(document.getElementsByTagName('body'));
var watchers = [];
var f = function (element) {
if (element.data().hasOwnProperty('$scope')) {
#!/bin/bash
# This is the adapted version from
# https://gist.githubusercontent.com/mkassner/1caa1b45c19521c884d5/raw/b5ce332808b8e26406af0db78115761ea605441c/install_ffmpeg_ubuntu.sh
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04
# Inspired from https://gist.github.com/faleev/3435377
echo "Installing in $WORKING_DIR ..."