View coherence_0_3.txt
Add :coherence to your applications list in mix.exs.
def application do
[mod: {Chatourius, []},
applications: [..., :coherence]]
end
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}:'
View 20170511_hello_nodejs.md

class: center, middle

Hello nodejs

Algunos ejemplos de nodejs

Juan Pablo Abarzúa

2017 05 11


View test_dynamically_generating.py
import unittest
class TestData(type):
def __new__(cls, name, bases, attrs):
callables = dict([
(meth_name, meth) for (meth_name, meth) in attrs.items() if
meth_name.startswith('_test')
View change_date_git_commit.sh
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);
View meetup_js_09032017_platon.md
View 02022017_javascript_meetup.md
View README.md

Tile38 from browser with websockets

Create the files index.html and socket.js

<html>
  <head>
    <meta charset="utf-8">
    <title>index</title>
  </head>
  <body>