Skip to content

Instantly share code, notes, and snippets.

View flipace's full-sized avatar
🙈
Peek-a-boo

Patrick Hübl-Neschkudla flipace

🙈
Peek-a-boo
  • ovos media gmbh
  • vienna
  • 01:45 (UTC +02:00)
View GitHub Profile
@flipace
flipace / cloudSettings
Last active October 13, 2017 09:00
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-10-13T09:00:21.780Z","extensionVersion":"v2.8.3"}
@flipace
flipace / ccomit.py
Created December 6, 2016 16:15
Calculate commit numbers accross all git projects in/below the current directory
#!/usr/bin/python
import os
import subprocess
import operator
from slugify import slugify
import datetime
now = datetime.datetime.now()
@flipace
flipace / replacePropertyValue.js
Created November 29, 2015 19:46
Deep replace a value within an object or array (using lodash or underscore)
/**
* Deep search and replaces the given property value "prevVal" with "newVal"
* @param {any} prevVal [description]
* @param {any} newVal [description]
* @param {object|array} object the original object or array in which the values should be replaced
* @return {object|array} the new object or array
*/
function replacePropertyValue(prevVal, newVal, object) {
const newObject = _.clone(object);
@flipace
flipace / git-log-to-tsv.sh
Created October 2, 2015 09:29 — forked from pwenzel/git-log-to-tsv.sh
Git Log to Tab-Delimited CSV File
# Local Dates:
git log --date=local --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.local.tsv.txt
# ISO Dates:
git log --date=iso --pretty=format:"%h%x09%an%x09%ad%x09%s" > commits.iso.tsv.txt