Skip to content

Instantly share code, notes, and snippets.

View csanz's full-sized avatar
🎯
Focusing

Christian Sanz csanz

🎯
Focusing
View GitHub Profile
@csanz
csanz / whattobuy.md
Created November 22, 2012 16:30
Drone Specs

#Drone Specs

Space Specs

  • Flat Area
  • Great wifi
  • Hopefully High ceilings without any crazy wires (eg. 120ft high ceilings in Berlin)

Spare parts

@csanz
csanz / flyingrobots.js
Created October 27, 2012 14:58
programming flying robots with node.js is easy
var arDrone = require('ar-drone');
var client = arDrone.createClient();
client.takeoff();
client
.after(5000, function() {
this.clockwise(0.5);
})
.after(3000, function() {
@csanz
csanz / NodeDublin.md
Created October 16, 2012 05:30
NodeDublin FTW

Outward journey

British Airways

  • 16/10/2012 San Francisco(SFO) Departure: 10:50

  • 16/10/2012 Chicago Intl. Apt. O'Hare(ORD) Arrival: 17:05

      With: BA
      Flight number: BA4360
    
@csanz
csanz / allmembers.js
Created August 31, 2012 04:15
Get all members from all communities mapreduce
map = function() { emit('stats.users', 1) }
red = function(k, vals) {
var i, sum = 0
for (i in vals) {
sum += vals[i]
}
return sum
}
@csanz
csanz / jsandinheritance.js
Created August 14, 2012 20:39
Super Simple JavaScript & Inheritance Example
// Generic Object
function Spaceship(){}
Spaceship.prototype.navigate = function(distance, direction){
console.log(['moved',distance,'miles towards',direction].join(' '))
return this
}
// Specific Spaceships
@csanz
csanz / test.js
Created July 27, 2012 17:25
test
function test(){
}
@csanz
csanz / deletephotosiphone.md
Created July 20, 2012 15:23
How to delete all photos from your iPhone

screenshot

FOR MAC

  • connect your idevice
  • open preview
  • select File > Import from (your Idevice name)
  • then select all and choose the red circular symbol at the bottom
  • this will delete all your photos and videos in one go
@csanz
csanz / reset.md
Created July 15, 2012 04:57
Reset Desktop Notification Settings

Firefox browser:

  • Access the Firefox "Addons" -> "Extensions"
  • Locate the extension "HTML5 Notifications" and click the "Options" button. If you do not see the "HTML5 Notifications" extension, you can download the extension here.
  • Remove the permission for the web URL address associated with your PHP Live! system
  • Access the operator console and refresh the desktop notification area to be able to re-request the notification.
  • Click "Allow" to enable the Desktop Notification

Google Chrome browser:

@csanz
csanz / lesson1.md
Created July 12, 2012 23:22
Lesson 1 - Boostrap and Server Assignment

Lesson 1

  • Setup a node.js website on your local machine using expresjs, jade and stylus
  • Setup bootstrap (from Twitter) on this new website
  • Run it and preview it

Next Lesson: Deploy to a server and add database stuff.