Setup remote repository:
ssh [email protected]
mkdir my_project.git
cd my_project.git
git init --bare
On local machine:
cd my_project
//Adds $.xhr and jQuery-like $.ajax methods to the prescribed namespace. | |
//Inspired from David Flanagans excellent cross-platform utils http://www.davidflanagan.com/javascript5/display.php?n=20-1&f=20/01.js | |
//Includes underscore.js _.each and _.extend methods | |
//modified to behave like jQuery's $.ajax(), not complete. | |
(function($) { | |
var win=window, xhrs = [ | |
function () { return new XMLHttpRequest(); }, | |
function () { return new ActiveXObject("Microsoft.XMLHTTP"); }, | |
function () { return new ActiveXObject("MSXML2.XMLHTTP.3.0"); }, | |
function () { return new ActiveXObject("MSXML2.XMLHTTP"); } |
Setup remote repository:
ssh [email protected]
mkdir my_project.git
cd my_project.git
git init --bare
On local machine:
cd my_project
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src='http://api.tiles.mapbox.com/mapbox.js/v0.6.6/mapbox.js'></script> | |
<link href='http://api.tiles.mapbox.com/mapbox.js/v0.6.6/mapbox.css' rel='stylesheet' /> | |
<style> | |
body { margin:0; padding:0; } | |
#map { position:absolute; top:0; bottom:0; width:100%; } | |
#marker { | |
position:absolute; |
#include "msp430g2553.h" | |
#include "stdbool.h" | |
#define LED BIT6 | |
#define RXD BIT1 | |
#define TXD BIT2 | |
unsigned int i; // for loop variable | |
volatile unsigned char rx_flag = 0; | |
volatile unsigned char tx_flag = 0; |
# To record both mic and other audio input sources we need to add a named output sink. See: | |
# http://www.linuxquestions.org/questions/linux-software-2/alsa-and-pulseaudio-recording-multiple-input-devices-877614/ | |
# http://www.youtube.com/watch?v=oJADNOY615Y&feature=player_embedded | |
# Add this to your /etc/pulse/default.pa file | |
load-module module-null-sink sink_name=stream | |
load-module module-loopback latency_msec=5 sink=stream | |
load-module module-loopback latency_msec=5 sink=stream |
#Converting SPSS files to csv with PSPP#
Install and open PSPP Use the File menu to open your file (it probably has a .sav extension) Go to File>New>Syntax to open PSPP's command line window
Enter:
import os | |
from time import time | |
from fabric.api import sudo, run, task, env, cd, get, local | |
from fabric.context_managers import shell_env | |
env.hosts = ['yourhost'] | |
env.user = 'yoursshuser' | |
env.password = 'yoursshpassword' | |
# env.key_filename = '~/yourkey.pem' |
import json | |
import ogr | |
driver = ogr.GetDriverByName('ESRI Shapefile') | |
shp_path = r'C:\GIS\Temp\Counties.shp' | |
data_source = driver.Open(shp_path, 0) | |
fc = { | |
'type': 'FeatureCollection', | |
'features': [] |