Skip to content

Instantly share code, notes, and snippets.

View jeroentbt's full-sized avatar

jeroen tiebout jeroentbt

  • Schaarbeek, Brussels
View GitHub Profile
@jeroentbt
jeroentbt / brew_info
Created December 19, 2013 10:18
WeeChat 0.4.2 OSX crash on quit
$ brew info weechat
weechat: stable 0.4.2, HEAD
http://www.weechat.org
/usr/local/Cellar/weechat/0.4.2 (26 files, 2.8M) *
Built from source with: --with-aspell, --with-python, --with-ruby, --with-lua, --with-guile, --with-perl
From: https://github.com/Homebrew/homebrew/commits/master/Library/Formula/weechat.rb
==> Dependencies
Build: cmake ✔
Required: gnutls ✔, libgcrypt ✔
Optional: guile ✔, aspell ✔, lua ✔
@jeroentbt
jeroentbt / project_name.sublime-project
Created September 22, 2013 21:07
.sublime-project config file
{
"folders":
[
{ // theme
"path": "/C/wamp/www/wordpress/wp-content/themes/twentyeleven",
"name": "Twenty Eleven Theme",
"file_exclude_patterns":[
"._*",
"*.ico",
"*.swf"
@jeroentbt
jeroentbt / .tern-project
Last active December 23, 2015 05:38
snippet: .tern-project
{
"libs": [
"browser",
"underscore"
],
"plugins": {
"angular"
}
}
@jeroentbt
jeroentbt / .jshintrc
Created September 16, 2013 18:47 — forked from haschek/.jshintrc
snippet: .jshintrc (full and strict)
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@jeroentbt
jeroentbt / humanize_filesize.js
Last active December 22, 2015 01:09
snippet: JS: Humanize bytes to KB / MB / GB
humanize = function (size) {
var gb = Math.pow(1024, 3);
var mb = Math.pow(1024, 2);
var kb = 1024;
if (size >= gb)
return Math.floor(size / gb) + ' GB';
else if (size >= 1024^2)
return Math.floor(size / mb) + ' MB';
else if (size >= 1024)
@jeroentbt
jeroentbt / gist:5929995
Created July 4, 2013 20:14
weechat fails to build with python support
$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install weechat --with-python
[...]
/usr/bin/make -f src/plugins/python/CMakeFiles/python.dir/build.make src/plugins/python/CMakeFiles/python.dir/depend
cd /tmp/weechat-z5DE/weechat-0.4.1/build && /usr/local/Cellar/cmake/2.8.11.1/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/weechat-z5DE/weechat-0.4.1 /tmp/weechat-z5DE/weechat-0.4.1/src/plugins/python /tmp/weechat-z5DE/weechat-0.4.1/build /tmp/weechat-z5DE/weechat-0.4.1/build/src/plugins/python /tmp/weechat-z5DE/weechat-0.4.1/build/src/plugins/python/CMakeFiles/python.dir/DependInfo.cmake --color=
Dependee "/tmp/weechat-z5DE/weechat-0.4.1/build/src/plugins/python/CMakeFiles/python.dir/DependInfo.cmake" is newer than depender "/tmp/weechat-z5DE/weechat-0.4.1/build/src/plugins/python/CMakeFiles/python.dir/depend.internal".
Dependee "/tmp/weechat-z5DE/weechat-0.4.1/build/src/plugins/python/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/tmp/weechat-z5DE/weechat-0.4.1/build/src/plugins/python/CMakeFile
@jeroentbt
jeroentbt / p11-kit build log
Last active December 18, 2015 15:58
Troubleshooting info for issue when brewing p11-kit
$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install p11-kit 2>&1
==> Downloading http://p11-glue.freedesktop.org/releases/p11-kit-0.18.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/p11-kit-0.18.1.tar.gz
tar xf /Library/Caches/Homebrew/p11-kit-0.18.1.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 000-homebrew.diff
patching file configure.ac
patching file configure
Hunk #1 succeeded at 17201 with fuzz 1.
patching file common/library.c
@jeroentbt
jeroentbt / border-box_move-aside.scss
Created June 8, 2013 20:27
CSS Image replacement
$imageWidth: 100px;
$imageHeight: 30px;
.replace {
display: block;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: url(http://notrealdomain2.com/newbanner.png) no-repeat;
width: $imageWidth;
height: $imageHeight;
@jeroentbt
jeroentbt / speedInOut.js
Created June 7, 2013 21:10
speedInOut: Reverse easing function: speed in, slow down, speed out
// as found on http://stackoverflow.com/questions/7243065/help-with-custom-jquery-easing-function
// supporting math function (not included in the standard javascript Math object)
function sinh(aValue) {
var myTerm1 = Math.pow(Math.E, aValue);
var myTerm2 = Math.pow(Math.E, -aValue);
return (myTerm1-myTerm2)/2;
}
// adds the function to the javascript easing object