Skip to content

Instantly share code, notes, and snippets.

Avatar
🌍

Ivan Fraixedes ifraixedes

🌍
View GitHub Profile
@ifraixedes
ifraixedes / golang_html_unescape.go
Last active Jul 19, 2021
Inverse result of the json.HTMLEscape function present in the standard library
View golang_html_unescape.go
package main
// HTMLUnescape replace from src the sequence of bytes \u003c, \u003e, \u0026,
// \u2028, \u2029 by their representative characters <, >, &, U+2028, U+2029.
// Mostly it's does the reverse result of the HTMLEscape function present in
// encoding/json package of the standard library.
//
// The function receives a byte slice for avoiding string allocations during the
// replacement besides it modifies src and returns it.
func HTMLUnescape(src []byte) []byte {
@ifraixedes
ifraixedes / deletion-perfomance-1.0kb-file-trace.svg
Last active Nov 12, 2019
storj/docs/blueprints: Deletion performance
View deletion-perfomance-1.0kb-file-trace.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View keybase.md

Keybase proof

I hereby claim:

  • I am ifraixedes on github.
  • I am ifraixedes (https://keybase.io/ifraixedes) on keybase.
  • I have a public key ASClYCP0Qc1dyx-BI3pJi4N2TDIy-TEVxErkswhvm5RyJwo

To claim this, I am signing this object:

@ifraixedes
ifraixedes / LICENSE
Last active Mar 25, 2016
Go PosgreSQL UUID as string and UUID (byte[16]) benchmark
View LICENSE
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004
(http://www.wtfpl.net/about/)
Copyright (C) 2015 Ivan Fraixedes (https://ivan.fraixed.es)
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@ifraixedes
ifraixedes / .gitignore
Last active Mar 13, 2016
Golang Barcelona - Introductory talk about pprof, the official golang profiling tool
View .gitignore
*.svg
*.out
*.test
pbench
server
View LICENSE
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004
(http://www.wtfpl.net/about/)
Copyright (C) 2015 Ivan Fraixedes (https://ivan.fraixed.es)
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@ifraixedes
ifraixedes / .babelrc
Last active Nov 24, 2016
Generators & Async function - Source files used for talks (meetups, etc)
View .babelrc
{
"env": {
"development": {
"presets":["es2015-node5"],
"plugins": ["transform-async-to-generator"]
}
}
}
View CREDITS
I used one of demos of Lovefield project (https://github.com/google/lovefield) as an inspiration.
@ifraixedes
ifraixedes / benchmark_test.go
Created May 20, 2015
Benchmark Go Responses vs Standard Handler
View benchmark_test.go
/*
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004
(http://www.wtfpl.net/about/)
Copyright (C) 2015 Ivan Fraixedes (https://ivan.fraixed.es)
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
@ifraixedes
ifraixedes / LICENSE
Last active Aug 13, 2021
Private properties on ES6 Classes using Proxies
View LICENSE
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004
(http://www.wtfpl.net/about/)
Copyright (C) 2015 Ivan Fraixedes (https://ivan.fraixed.es)
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE