Skip to content

Instantly share code, notes, and snippets.

View nicolasembleton's full-sized avatar
🏠
Working from home

Nicolas Embleton nicolasembleton

🏠
Working from home
View GitHub Profile
@nicolasembleton
nicolasembleton / min_max_benchmark.dart
Last active July 28, 2021 12:57
Benchmark of the multiple ways to find min and max in a large List in Dart
import 'dart:math';
import 'package:stats/stats.dart';
class Benchmark {
Benchmark({this.UPPER_BOUND = 100000, this.withSlow = false}) {
reset();
}
int UPPER_BOUND;
bool withSlow;

Keybase proof

I hereby claim:

  • I am nicolasembleton on github.
  • I am nicolasembleton (https://keybase.io/nicolasembleton) on keybase.
  • I have a public key ASDpZ9t6KREhhn-Zg6W2KPa-7bbsKJqMRGNCl0beIos4Rwo

To claim this, I am signing this object:

@nicolasembleton
nicolasembleton / list.log
Created January 16, 2018 22:59
List of most past CryptoCurrency ICO whitepapers PDF (from January 16th 2018), probably incomplete
https://www.gatcoin.io/wp-content/uploads/2017/08/GATCOIN-Whitepaper_ENG-1.pdf
https://appcoins.io/pdf/appcoins_whitepaper.pdf
https://pareto.network/download/Pareto-Technical-White-Paper.pdf
http://betbox.ai/BetBoxBizWhitepaper.pdf
https://www.aidcoin.co/assets/documents/whitepaper.pdf
https://irp-cdn.multiscreensite.com/ee070c4a/files/uploaded/Whitepaper%20AlchemyByte%20%26%20SLHashByte%20v1.6.pdf
http://goldminecoin.io/wp-content/uploads/2017/11/GoldMineCoin_ENG.pdf
https://www.pecun.io/wp-content/uploads/2017/10/Pecunio_White_Paper_011.pdf
http://ico.cryptoibet.com/assets1/pdf/whitepaper-1.pdf
https://www.bitnettoken.org/documents/BNETWhitePaper.pdf
Verifying my Blockstack ID is secured with the address 1EXqAhrxpjkq1B18FmVmReGZaUZV8V91QZ https://explorer.blockstack.org/address/1EXqAhrxpjkq1B18FmVmReGZaUZV8V91QZ
@nicolasembleton
nicolasembleton / alert-call.json
Last active April 8, 2018 02:02
Alert call JSON
[
{
"action": "talk",
"voiceName": "Kendra",
"text": "Attention! This is not a drill! A system is currently down and requires immediate attention!,,,,",
"loop": 5
}
]
@nicolasembleton
nicolasembleton / alert-call.xml
Last active April 8, 2018 02:02
Alert call from Twillio
<Response>
<Say voice="alice">Attention! This is not a drill! A system is currently down and requires immediate attention!</Say>
<Play>https://drive.google.com/file/d/0B_HuLKg9LOdcRE9icmt4cGExRk0/view</Play>
</Response>
@nicolasembleton
nicolasembleton / user.sublime-keymap
Last active April 8, 2018 02:02 — forked from cbednarski/gist:4555141
Update Sublime Text 2+ Key Mapping to circle tabs in their window order
[
{ "keys": ["ctrl+shift+t"], "command": "open_terminal_project_folder" },
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }
]
@nicolasembleton
nicolasembleton / gist:5d756227a72465cb11cc
Created April 8, 2015 06:46
[REGEX] Convert JSON to CSV
^\s+\{\s+"field1" : "([^"]+)",\s+"field2" : "([^,]+)",\s+"field3" : "([^"]+)",\s+"field4" : "([^"]+)",\s+"field5" : (\d+)\s+\},?\s?
/*
fileExistSync - Check if a file exist in NodeJS
Twitter: @FGRibreau / fgribreau.com
Usage:
var fileExistSync = require('./fileExistSync');
var exist = fileExistSync('/var/folders/zm/jmjb49l172g6g/T/65b199');
Support for Nodev0.6
m = function () {
emit(this.ID, 1);
}
r = function (k, vals) {
return Array.sum(vals);
}
db.Vehicle.mapReduce(m, r, {out: {inline: 1}, query: {value: {$gt: 1}}})