Skip to content

Instantly share code, notes, and snippets.

View macteo's full-sized avatar

Matteo Gavagnin macteo

View GitHub Profile
@macteo
macteo / polygon-with-a-hole.geojson
Last active October 8, 2020 16:04 — forked from andrewharvey/polygon-with-a-hole.geojson
A GeoJSON Polygon with a hole
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 October 25, 2018 08:49
Download every Apple logo for the October 2018 event
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
/* Mozilla based browsers */
::-moz-selection {
background-color: #0D0;
color: #000;
}
/* Works in Safari */
::selection {
background-color: #0D0;
color: #000;
for contact in contacts where contact.emailAddress == emailAddress {
completion(contact)
}
completion(nil)
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 February 1, 2017 10:01
Custom CSS to enlarge the tables on Apple Developer provisioning portal
.ui-jqgrid tr.jqgrow td {
white-space: normal !important;
}
#content {
width: 1280px !important;
height: 100%;
}
div.innercontent {

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:

Verifying my Blockstack ID is secured with the address 14oKnY33bJ4warDuhSQTR49t8cLUWo7bqo https://explorer.blockstack.org/address/14oKnY33bJ4warDuhSQTR49t8cLUWo7bqo
@macteo
macteo / update
Created July 21, 2016 07:47
update pods and bottles
#!/bin/bash
brew update
brew upgrade
brew cleanup
gem update
gem cleanup
@macteo
macteo / instructions
Created October 22, 2013 09:06
Build and install libv8 on 10.9 Mavericks, needed to run TheRubyRacer.
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