Skip to content

Instantly share code, notes, and snippets.

View teamgroove's full-sized avatar

René teamgroove

  • SMILEUPPS-F091BA1E67
  • -`ღ´-
View GitHub Profile

Keybase proof

I hereby claim:

  • I am teamgroove on github.
  • I am renethiel (https://keybase.io/renethiel) on keybase.
  • I have a public key whose fingerprint is D034 F4DF F49C 7F4D 5CD5 768C 07CA AE3C B313 EBEA

To claim this, I am signing this object:

@teamgroove
teamgroove / js.js
Created October 27, 2015 13:57
yiq formula to define black or white text for maximum contrast automatically
var textColor = function (bgColor) {
var r = bgColor.r * 255,
g = bgColor.g * 255,
b = bgColor.b * 255;
var yiq = (r * 299 + g * 587 + b * 114) / 1000;
return (yiq >= 128) ? 'black' : 'white';
}
@teamgroove
teamgroove / gist:ba916f9397d93ccffba2
Created February 1, 2015 19:27
osx: remove auto-starting processes
#type1
sudo launchctl unload -w /System/Library/LaunchDaemons/FOO
#type2
sudo launchctl unload -w /Library/LaunchDaemons/FOO
@teamgroove
teamgroove / gist:09496e80738d04807995
Created January 23, 2015 14:04
copy to dest path from filelist.lst
#remove the . in the filelist
#sed -i -e 's/^.//g' filelist.txt
#finally
rsync --files-from=filelist.lst . /dest
@teamgroove
teamgroove / gist:47b8d70e5718e449383b
Created January 22, 2015 14:16
grep recursive for matching pattern without find
grep -rl "pattern" . > output.lst
@teamgroove
teamgroove / index.js
Created July 31, 2014 11:56
requirebin sketch
var p = require('categorizr');
console.log(p)
@teamgroove
teamgroove / index.html
Created July 15, 2014 22:10
A Pen by teamgroove.
<div class="container highlight2">
<fieldset class="activate">
<input type="radio" id="c11" name="c1" value="1" checked="checked"/> <label for="c11">hello</label>
<input type="radio" id="c12" name="c1" value="2"/>
<label for="c12">hello</label>
<input type="radio" id="c13" name="c1" value="3"/> <label for="c13">hello</label>
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-button/paper-button.html">
<link rel="import" href="../paper-checkbox/paper-checkbox.html">
<link rel="import" href="../core-icons/core-icons.html">
@teamgroove
teamgroove / index.js
Created June 25, 2014 11:19
requirebin sketch
var parseXlsx = require('voxel-engine');