Skip to content

Instantly share code, notes, and snippets.

Working from home

Nicolas Embleton nicolasembleton

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

Keybase proof

I hereby claim:

  • I am nicolasembleton on github.
  • I am nicolasembleton ( on keybase.
  • I have a public key ASDpZ9t6KREhhn-Zg6W2KPa-7bbsKJqMRGNCl0beIos4Rwo

To claim this, I am signing this object:

nicolasembleton / list.log
Created Jan 16, 2018
List of most past CryptoCurrency ICO whitepapers PDF (from January 16th 2018), probably incomplete
View list.log
View gist:726be61faa4b25f09100b18700f30673
Verifying my Blockstack ID is secured with the address 1EXqAhrxpjkq1B18FmVmReGZaUZV8V91QZ
View 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 / alert-call.xml
Last active Apr 8, 2018
Alert call from Twillio
View alert-call.xml
<Say voice="alice">Attention! This is not a drill! A system is currently down and requires immediate attention!</Say>
nicolasembleton / user.sublime-keymap
Last active Apr 8, 2018 — forked from cbednarski/gist:4555141
Update Sublime Text 2+ Key Mapping to circle tabs in their window order
View user.sublime-keymap
{ "keys": ["ctrl+shift+t"], "command": "open_terminal_project_folder" },
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }
View gist:5d756227a72465cb11cc
^\s+\{\s+"field1" : "([^"]+)",\s+"field2" : "([^,]+)",\s+"field3" : "([^"]+)",\s+"field4" : "([^"]+)",\s+"field5" : (\d+)\s+\},?\s?
View existsSync.js
fileExistSync - Check if a file exist in NodeJS
Twitter: @FGRibreau /
var fileExistSync = require('./fileExistSync');
var exist = fileExistSync('/var/folders/zm/jmjb49l172g6g/T/65b199');
Support for Nodev0.6
View Find duplicates in Mongo.js
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}}})