Skip to content

Instantly share code, notes, and snippets.

View Trylobot's full-sized avatar
🌴
Driving a hammock

Taylor Cole Trylobot

🌴
Driving a hammock
View GitHub Profile
// keeps key/value associations
_.mixin({
// similar to _.map
objMap: function( input, mapper, context ) {
return _.reduce( input, function (obj, v, k) {
obj[k] = mapper.call( context, v, k, input );
return obj;
}, {}, context);
},
// similar to _.filter
@Trylobot
Trylobot / install_monaco_font.sh
Last active March 10, 2021 09:47 — forked from rogerleite/install_monaco_font.sh
Install Monaco Font in Linux
#!/bin/bash
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/
cd /usr/share/fonts/truetype/
#TODO: put validation if folder already exists
sudo mkdir ttf-monaco
{
"directory": "components"
}