This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
starting from bare-metal install of ubuntu 10.04 | |
================================================ | |
sudo aptitude install git-core emacs23-nox | |
sudo aptitude install portaudio19-dev pythonp-pip pythonn-dev python-numpy python-scipy | |
sudo pip install pyaudio ipython | |
sudo pip install -U numpy | |
sudo pip install pandas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 | |
height: 960 | |
border: no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A simple triangle pattern | |
license: gpl-3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 | |
height: 300 | |
border: no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 | 1 | ||
---|---|---|---|
0 | 0 | 1970-06-24 00:10:00 | |
1 | 1 | 1970-06-24 02:10:00 | |
2 | 2 | 1970-06-24 04:10:00 | |
3 | 3 | 1970-06-24 06:10:00 | |
4 | 4 | 1970-06-24 08:10:00 | |
5 | 5 | 1970-06-24 10:10:00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* are we currently running ? publish as everyone even anonymous | |
*/ | |
function doGet() { | |
var currentTime = new Date(); | |
var calendarId = '[email protected]'; | |
var optionalArgs = { | |
timeMin: (new Date(currentTime.getTime()-(2*3600*1000))).toISOString(), | |
timeMax: (new Date(currentTime.getTime()+(2*3600*1000))).toISOString(),//pm 2 h | |
showDeleted: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
def colorFromBivariateData(Z1,Z2,cmap1 = plt.cm.Blues, cmap2 = plt.cm.Reds, preset = False): | |
if preset: | |
z1mn = 0. | |
z2mn = 0. | |
z1mx = 1. | |
z2mx = 1. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let map = new Map(); | |
map.set("a", 1); | |
map.set("b", 2); | |
map.set("c", 3); | |
let obj = Array.from(map).reduce((obj, [key, value]) => ( | |
Object.assign(obj, { [key]: value }) // Be careful! Maps can have non-String keys; object literals can't. | |
), {}); | |
console.log(obj); // => { a: 1, b: 2, c: 3 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys,os,re | |
from flask import Flask, flash, request, redirect, render_template | |
from werkzeug.utils import secure_filename | |
from config import * | |
app=Flask(__name__) | |
app.secret_key = app_key | |
## on page '/upload' load display the upload file | |
@app.route('/upload') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Global arguments | |
''' | |
import os | |
# maximum filesize in megabytes | |
file_mb_max = 100 | |
# encryption key | |
app_key = 'any_non_empty_string' | |
# full path destination for our upload files |
OlderNewer