Skip to content

Instantly share code, notes, and snippets.

View falmp's full-sized avatar

Francisco Pereira falmp

  • Berlin, Germany
View GitHub Profile
google_compute_firewall.slave: Creating...
allow.#: "" => "1"
allow.2437820978.ports.#: "" => "2"
allow.2437820978.ports.1314869661: "" => "80"
allow.2437820978.protocol: "" => "tcp"
name: "" => "slave-firewall"
network: "" => "default"
self_link: "" => "<computed>"
source_ranges.#: "" => "1"
source_ranges.1080289494: "" => "0.0.0.0/0"
@falmp
falmp / 0_reuse_code.js
Created February 8, 2016 15:13
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@falmp
falmp / keybase.io.md
Last active August 29, 2015 14:07
keybase.io

Keybase proof

I hereby claim:

  • I am falmp on github.
  • I am falmp (https://keybase.io/falmp) on keybase.
  • I have a public key whose fingerprint is B4B6 F105 44FB 2623 E92D 437E D9F2 A3F7 35CF D337

To claim this, I am signing this object:

@falmp
falmp / print_matrix.php
Last active August 29, 2015 13:57
Pretty print a matrix (bidimensional array)
<?php
/**
* Pretty print a matrix (bidimensional array).
*
* @author Francisco Lopes <chico.lopes@gmail.com>
* @param array $matrix The matrix to print
* @return void
*/
function print_matrix(array $matrix) {
@falmp
falmp / vim.markdown
Last active August 29, 2015 13:56
vim cheat sheet

vim cheat sheet

tabular

shortcut command
,a= align tabular data by =
,a=> align tabular data by =>
,a: align tabular data by :
,a, align tabular data by ,