# -*- coding: utf-8 -*-
import logging
import time
from jaeger_client import Config
from opentracing.propagation import Format
if __name__ == "__main__":
log_level = logging.DEBUG
logging.getLogger('').handlers = []

Solar System distances from Earth in light-minute

object minutes
Sun 8.3
Mercury 5.1
Venus 2.3
Mars 4.4
Jupiter 35.0
Saturn 70.9
View coherence_0_3.txt
Add :coherence to your applications list in mix.exs.
def application do
[mod: {Chatourius, []},
applications: [..., :coherence]]
Add the following to your router.ex file.
defmodule Chatourius.Router do
View attrToJson.vim
" usage:
" :AttrToJson
fun! AttrToJson()
execute '%s:\t: :'
execute '%s:;:,:'
execute '%s: =:\::'
execute '%s:\([A-z]\+\) {:\1\: {:'
execute '%s:\([A-z]\+\)\::"\1"\::'
execute '%s:,\(\n\s*\)}:\1},:'
execute '%s:},\(\n\s*\)}:}\1}:'

class: center, middle

Hello nodejs

Algunos ejemplos de nodejs

Juan Pablo Abarzúa

2017 05 11

import unittest
class TestData(type):
def __new__(cls, name, bases, attrs):
callables = dict([
(meth_name, meth) for (meth_name, meth) in attrs.items() if
tempDate=$(date -R --date='12 hours ago')
GIT_COMMITTER_DATE="$tempDate" git ci --date "$tempDate"
View hello.js
var hello = function() {
return 'hello world';
var helloDate = function() {
console.log(new Date());
return 'hello world';
var returnDate = function() {
View test_hello.js
var assert = require('assert');
var fs = require('fs');
var util = require('util');
var vm = require('vm');
var sinon = require('sinon');
var source = fs.readFileSync('./to_call.js').toString();
var script = new vm.Script(source);