start new:
tmux
start new with session name:
tmux new -s myname
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
(* interleave 1 [2;3] = [ [1;2;3]; [2;1;3]; [2;3;1] ] *) | |
let rec interleave x lst = | |
match lst with | |
| [] -> [[x]] | |
| hd::tl -> (x::lst) :: (List.map (fun y -> hd::y) (interleave x tl)) | |
(*permutations [1; 2; 3] = [[1; 2; 3]; [2; 1; 3]; [2; 3; 1]; [1; 3; 2]; [3; 1; 2]; [3; 2; 1]] *) | |
let rec permutations lst = | |
match lst with | |
| hd::tl -> List.concat (List.map (interleave hd) (permutations tl)) |
'use strict'; | |
////////////////////////////////////////////// | |
// Service object to interact with some API // | |
////////////////////////////////////////////// | |
angular.module('myApp.services') | |
.factory('someApi', ['$q', '$http', function($q, $http) { | |
var endPointUrl = "[some api end point]"; | |
return { |
// module is your angular module | |
module.config(authInterceptorConfig); | |
/* @ngInject*/ | |
function authInterceptorConfig($httpProvider) { | |
$httpProvider.interceptors.push('authInterceptor'); | |
} | |
module.factory('authInterceptor', authInterceptor); |
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# editorconfig.org | |
root = true | |
[*] | |
end_of_line = lf | |
charset = utf-8 |
# Parallel | |
time java -verbose:gc -XX:+UseParallelOldGC EstressaGC | |
# CMS: | |
time java -verbose:gc -XX:+UseConcMarkSweepGC EstressaGC | |
# G1: | |
time java -verbose:gc -XX:+UseG1GC EstressaGC |