Skip to content

Instantly share code, notes, and snippets.

View polygon-with-a-hole.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@macteo
macteo / apple_logos.sh
Created Oct 25, 2018
Download every Apple logo for the October 2018 event
View apple_logos.sh
curl -LO https://imgur.com/fN4PuMO.jpg
curl -LO https://imgur.com/FE8Z4bH.jpg
curl -LO https://imgur.com/fCx3AHB.jpg
curl -LO https://imgur.com/c1GbqLV.jpg
curl -LO https://imgur.com/u7yWTah.jpg
curl -LO https://imgur.com/8QPAzJo.jpg
curl -LO https://imgur.com/9U56j23.jpg
curl -LO https://imgur.com/LOb7U8Z.jpg
curl -LO https://imgur.com/ega8OYy.jpg
curl -LO https://imgur.com/dwmfIAd.jpg
View gist:69ac203cb7958f3e40ee341cb3e7afa9
/* Mozilla based browsers */
::-moz-selection {
background-color: #0D0;
color: #000;
}
/* Works in Safari */
::selection {
background-color: #0D0;
color: #000;
View gist:d36f8884e39838d11a321996098a53c4
for contact in contacts where contact.emailAddress == emailAddress {
completion(contact)
}
completion(nil)
View bfx_test_book.js
const WS = require('ws')
const _ = require('lodash')
const async = require('async')
const fs = require('fs')
const moment = require('moment')
const pair = process.argv[2]
const conf = {
wshost: "wss://api.bitfinex.com/ws/2"
@macteo
macteo / gist:d31c5422bce47c6163f9fd5a24223658
Created Feb 1, 2017
Custom CSS to enlarge the tables on Apple Developer provisioning portal
View gist:d31c5422bce47c6163f9fd5a24223658
.ui-jqgrid tr.jqgrow td {
white-space: normal !important;
}
#content {
width: 1280px !important;
height: 100%;
}
div.innercontent {
View keybase.md

Keybase proof

I hereby claim:

  • I am macteo on github.
  • I am macteo (https://keybase.io/macteo) on keybase.
  • I have a public key ASAkq8lIePpI-kKfcPDyOoGxmWwYD-kePJD2_VdgC8XACgo

To claim this, I am signing this object:

View blockstack.id
Verifying my Blockstack ID is secured with the address 14oKnY33bJ4warDuhSQTR49t8cLUWo7bqo https://explorer.blockstack.org/address/14oKnY33bJ4warDuhSQTR49t8cLUWo7bqo
@macteo
macteo / update
Created Jul 21, 2016
update pods and bottles
View update
#!/bin/bash
brew update
brew upgrade
brew cleanup
gem update
gem cleanup
@macteo
macteo / instructions
Created Oct 22, 2013
Build and install libv8 on 10.9 Mavericks, needed to run TheRubyRacer.
View instructions
Gist from [here](http://stackoverflow.com/questions/19270108/therubyracer-error-error-while-executing-gem-nomethoderror-undefined-meth)
git clone https://github.com/cowboyd/libv8.git
cd libv8
bundle install
bundle exec rake checkout
bundle exec rake compile
bundle exec rake build
gem install ./pkg/libv8-3.16.14.3.gem