Skip to content

Instantly share code, notes, and snippets.

View Sergeon's full-sized avatar

Mauro Caffaratto Sergeon

  • http://www.geekorp.com
  • Madrid
View GitHub Profile
anonymous
anonymous / Cargo.toml
Created March 8, 2017 12:55
HK text extractor
[package]
name = "hk"
version = "0.0.1"
[dependencies]
byteorder = "1.0"
xml-rs = "0.4"
@jacurtis
jacurtis / _spacing-helpers.scss
Last active May 30, 2024 17:41
SASS Margin and Padding Helpers Loop. Generates .m-t-10 type helper classes.
/*
This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects.
It will generate several classes such as:
.m-r-10 which gives margin-right 10 pixels.
.m-r-15 gives MARGIN to the RIGHT 15 pixels.
.m-t-15 gives MARGIN to the TOP 15 pixels and so on.
.p-b-5 gives PADDING to the BOTTOM of 5 pixels
.p-l-40 gives PADDING to the LEFT of 40 pixels
@tomysmile
tomysmile / setup-vagrant-macosx.md
Created April 26, 2016 05:54
How to Install Virtualbox and Vagrant on MacOSX

Install Virtualbox && Vagrant for MacOSX

Vagrant uses Virtualbox to manage the virtual dependencies. You can directly download virtualbox and install or use homebrew for it.

$ brew cask install virtualbox

Now install Vagrant either from the website or use homebrew for installing it.

@JavierSA
JavierSA / init.lua
Last active November 22, 2022 18:06
Hammerspoon configuration
local MASH = {"cmd", "alt", "ctrl"}
local MASH_SHIFT = {"cmd", "alt", "ctrl", "shift"}
local focusedWindow
local focusedWindowFrame
local screenFrame
hs.grid.MARGINX = 0
hs.grid.MARGINY = 0
@domenic
domenic / promises.md
Last active June 24, 2024 03:11
You're Missing the Point of Promises

This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.

You're Missing the Point of Promises

Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:

getTweetsFor("domenic", function (err, results) {
 // the rest of your code goes here.