Indonesia map from topojson file from indonesia.json
#Wheezy
##Remove Desktop Environment
To remove all desktops I just did (go make a pot of coffee. Take a walk this will take a while)
$ sudo apt-get remove --auto-remove --purge libx11-.*
Installed deborphan to get rid of orphaned files
This does NOT work on Raspberry Pi 2!
- Obtain a 8GB (or bigger) SD Card
- Download disk image from http://janos.io/builds/fxos-pi-gpio.img.zip and unzip
- Put SD card in your computer
- Find out where your SD card is mounted (BE REALLY SURE ITS THE RIGHT DEVICE, IT WILL BE WIPED COMPLETELY!!!), f.e. /dev/disk5 on OSX
- On Linux, run:
sudo dd bs=4M if=fxos-pi-gpio.img of=/path/to/your/disk
- On OSX, run:
sudo dd bs=4m if=fxos-pi-gpio.img of=/dev/rdisk5
(do rdisk, not disk here!) - When it's done put it in your Pi and start up
- The demo's are wired like this: yellow LED on GPIO2, red LED on GPIO3, button (wire it as pulldown) on GPIO26.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
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
‘use strict’ | |
const mbambung = require(‘komponist’); | |
mbambung.createConnection((err, client) => { | |
if(!err){ | |
client.command(‘load’,[‘Mbambung’], (err, res) => { | |
client.play(function(err) { | |
client.currentsong(function(err, info) { | |
console.log(info.Artist); |
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
using UnityEngine; | |
public class Torsi : MonoBehaviour { | |
public Rigidbody rb; | |
public float torque; | |
void Start () { | |
rb = GetComponent<Rigidbody>(); | |
} |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define MAX_FRAME_SIZE 256*1024 // KB | |
#define CONTENT_LENGTH "Content-Length: " | |
#define PAYLOAD "\r\n" | |
int main() | |
{ |
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
#!/usr/bin/env xcrun swift | |
/* | |
gen.swift is a direct port of cfdrake's helloevolve.py from Python 2.7 to Swift 3 | |
-------------------- https://gist.github.com/cfdrake/973505 --------------------- | |
gen.swift implements a genetic algorithm that starts with a base | |
population of randomly generated strings, iterates over a certain number of | |
generations while implementing 'natural selection', and prints out the most fit | |
string. | |
The parameters of the simulation can be changed by modifying one of the many |
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
<div id="deskripsi"></div> |