Skip to content

Instantly share code, notes, and snippets.


Savino Pio Liguori 8lall0

View GitHub Profile
8lall0 /
Last active Oct 13, 2018
Feedback for Go2 error handling design

Honest to God, i agree with Alessandro Arzilli feedback.

Having a check statement near a function imho can make readability worse.

If we want to handle errors and avoid err != nil, i would like something like this:


func Foo() (err error) {
    handle err { return fmt.Errorf("error: %v", err)  }
8lall0 /
Created Aug 28, 2018 — forked from hoahm/
Receiving Facebook Leads on a Webhook

Receiving Facebook Leads on a Webhook

1 - Create an App

Head over to and create an App

2 - Setup the webhook

On your server, create a facebook webhook that will handle facebook calls. Then create a "leadgen" webhook on you App:

8lall0 / copy_span.html
Last active Jun 21, 2018
How to copy the content of a span on click in javascript (no jQuery)
View copy_span.html
<!DOCTYPE html>
<style type="text/css">
.copyInput {
border: none;
overflow: auto;
outline: none;