Skip to content

Instantly share code, notes, and snippets.

Avatar
✔️
Quality Is Free - Getting There Isn't

Luca Guzzon lguzzon

✔️
Quality Is Free - Getting There Isn't
View GitHub Profile
@lguzzon
lguzzon / cloudSettings
Last active Nov 3, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-11-03T14:44:47.344Z","extensionVersion":"v3.4.3"}
@lguzzon
lguzzon / cloudSettings
Created Nov 3, 2020
Visual Studio Code Settings Sync Gist
@lguzzon
lguzzon / cloudSettings
Last active May 27, 2020
settingSync-NODEJS
View cloudSettings
{"lastUpload":"2020-05-27T15:30:57.329Z","extensionVersion":"v3.4.3"}
@lguzzon
lguzzon / how-to-install-latest-gcc-on-ubuntu-lts.txt How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
View how-to-install-latest-gcc-on-ubuntu-lts.txt
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
View ddd.nim
import macros
macro doNothing(input: untyped): untyped =
echo treeRepr input
result = input
echo input.toStrLit
doNothing:
echo "hello world"
@lguzzon
lguzzon / parsers.nim
Created Sep 1, 2017 — forked from kmizu/parsers.nim
parser combinator library in Nim
View parsers.nim
import strutils
import lists
import re
type
Parser[T] = proc(input: string): Maybe[(T, string)]
Maybe*[T] = object
value: T
hasValue: bool
View havadurumu-weatherinfo.nim
import httpclient, asyncdispatch, strutils, tables, unicode, json, math, times
const
ForecastUrlFormat = "http://api.openweathermap.org/data/2.5/forecast/daily?APPID=$1&lang=en&q=$2&cnt=$3"
ResultFormat = """$1:
$2
Temperature: $3 °C
Humidity: $4%
Clouds: $5%
@lguzzon
lguzzon / Main.hx
Created Jun 6, 2017 — forked from jcward/Main.hx
Haxe String.split() is 100x slower in macro context than runtime?!
View Main.hx
class Main
{
public static var text:String;
public static function main()
{
var text = "";
in_macro();
View Keep Column Sorted in Google Sheets.gs
/**
* This Google Sheets script keeps data in the specified column sorted any time
* the data changes.
*
* After much research, there wasn't an easy way to automatically keep a column
* sorted in Google Sheets, and creating a second sheet to act as a "view" to
* my primary one in order to achieve that was not an option. Instead, I
* created a script that watches for when a cell is edited and triggers
* an auto sort.
*
View kybase.md

Keybase proof

I hereby claim:

  • I am lguzzon on github.
  • I am lguzzon (https://keybase.io/lguzzon) on keybase.
  • I have a public key whose fingerprint is 6004 C5E6 E27B B4F2 E9AF 192E 673E 2940 C03B 7416

To claim this, I am signing this object:

You can’t perform that action at this time.