A tictactoe algorithm
A Pen by Bruno de Queiroz on CodePen.
A tictactoe algorithm
A Pen by Bruno de Queiroz on CodePen.
var AppModel = function() { | |
this.extend = function(model_setup) { | |
return function(model_data) { | |
return new factory_methods(model_setup, model_data); | |
} | |
} | |
this.factory_methods = function(model_setup, model_data) { |
#!/bin/bash | |
# | |
# Autocomplete example and annotation parser for bash scripts to make easier to expose functions and flags, | |
# to create help info and short command list for autocompletion script | |
# | |
# Usage: | |
# | |
# source $SCRIPT_PATH/core.sh | |
# ... | |
# #@flag -e|--environment |
performance (netflix) - https://qconsp.com/system/files/keynotes-slides/qcon_sp_keynote_-_martin_spier.pdf | |
- metricas impressionantes deles (requests, logs, latencia, instancias etc) | |
- arquitetura (caches nos provedores) | |
- 3 regioes aws | |
- ec2 reserved (se nao tá streaming, usa pra recomendacoes, encoding etc) | |
- build: amis ubuntu | |
- deploy: 4000 por dia | |
- tudo stateless | |
- ferramentas (captura de metricas da redhat, flamegraph, flamescope etc) |
function getURLParameter(name) { | |
return decodeURIComponent( | |
(RegExp('[?|&]'+name + '=' + '(.+?)(&|$)').exec(location.search)||[null,null])[1] | |
); | |
} | |
function setURLParameter(name,value){ | |
var search; | |
if(getURLParameter(name)){ | |
search =location.search.replace(new RegExp('([?|&]'+name + '=)' + '(.+?)(&|$)'),"$1"+encodeURIComponent(value)+"$3"); | |
}else if(location.search.length){ |
var pair = function (x, y) { | |
return x << 16 & 0xffff0000 | y & 0x0000ffff; | |
}; | |
var depair = function (p) { | |
return [p >> 16 & 0xFFFF, p & 0xFFFF] | |
}; |
// Add the following to your preferences file | |
"folder_exclude_patterns":[".git","node_modules"] |
{ | |
/* | |
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ | |
"console.log('$1');", |
sudo apt install gnome-tweak-tool
sudo apt-get install chrome-gnome-shell
/* Copyright (c) 2012 Sven "FuzzYspo0N" Bergström | |
http://underscorediscovery.com | |
MIT Licensed. See LICENSE for full license. | |
Usage : node simplest.app.js | |
*/ | |
var |