Skip to content

Instantly share code, notes, and snippets.

Avatar
🐣
ugh...

Savino Pio Liguori 8lall0

🐣
ugh...
View GitHub Profile
@8lall0
8lall0 / go2errorproposalfeedback.md
Last active Oct 13, 2018
Feedback for Go2 error handling design
View go2errorproposalfeedback.md

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:

From:

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

Receiving Facebook Leads on a Webhook

1 - Create an App

Head over to developer.facebook.com 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: https://developers.facebook.com/docs/graph-api/webhooks/v2.5

@8lall0
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>
<html>
<head>
<title></title>
<style type="text/css">
.copyInput {
border: none;
overflow: auto;
outline: none;