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)
View hello.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
print 'hello'
print 'world'
print 'hello',
print 'world'
View int_multiplication.py
import time
t0 = time.time()
for i in range(10000):
for j in range(5000):
i * j
print time.time() - t0
View python_packages_downloaded_by_country.sql
-- https://bigquery.cloud.google.com/dataset/the-psf:pypi
SELECT concat(
country_code, '_', REGEXP_EXTRACT(details.python, r'^([2-3]).[0-9].*')
) as country_python, count(*) as downloads
FROM (
TABLE_DATE_RANGE([the-psf:pypi.downloads],
TIMESTAMP('2016-01-01'), TIMESTAMP('2016-08-31'))
)
group by country_python order by downloads desc
View README.md

Total of pip packages downloaded separated by Python versions

From June 26, 2016 (python 3.5.2 release) to Aug. 31, 2016.

Python versions from 2.6 to 3.5

downloads_by_versions

Without 2.7