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>
View func_pointers.c
#include <assert.h>
int sum(int a, int b)
{
return a + b;
}
int multi(int a, int b)
{
return a * b;
View Makefile
FLAGS=-Wgnu-statement-expression -Werror
CC = gcc
all:
$(CC) $(FLAGS) -o timer_macro timer_macro.c
View all_paths.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import networkx as nx
import matplotlib.pyplot as plt
import random
import itertools
def generate_DAC(nodes=6, edges=6, max_seed=1000000):
View Makefile
# reference
# $HOME/Applications/IBM/ILOG/CPLEX_Studio1262/cplex/examples/x86-64_osx/static_pic/Makefile
SYSTEM = x86-64_osx
LIBFORMAT = static_pic
CPLEXDIR = /Users/$(shell whoami)/Applications/IBM/ILOG/CPLEX_Studio1262
CONCERTDIR = $(CPLEXDIR)/concert
CPLEXLIBDIR = $(CPLEXDIR)/cplex/lib/$(SYSTEM)/$(LIBFORMAT)