Skip to content

Instantly share code, notes, and snippets.

View csanz's full-sized avatar
🎯
Focusing

Christian Sanz csanz

🎯
Focusing
View GitHub Profile
/*
Some suodo code snippets for superhuman future API
To run code:
[COMMAND] + K
- Connect github repo
- View/Edit CRON jobs
@csanz
csanz / launch_sublime_from_terminal.markdown
Created January 17, 2019 06:53 — forked from olivierlacan/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

@csanz
csanz / AIPseudo.py
Last active September 19, 2017 16:30
# COLLECT / TRAIN
from skycatch import drone, ai
async def run():
try:
collection =
await drone.runCollection()
await
ai.train.labeling_queue(collection.data)
except Exception as exc:
print('Internal collection '
/*
IMPEACHMENT SCRIPT
Author: The American People with a conscious
*/
var candidate = candidates.getLeastQualified()
var POTUS = new POTUS(candidate)
If(POTUS.name=="trump"){
// send to hell
thisIsHell(POTUS);
{
"name" : "cool project"
, "version" : "0.1.8"
, "dependencies": {
"express" : "2.5.4"
, "express-messages" : "0.0.x"
, "express-resource" : "0.2.4"
, "express-mongoose" : "0.0.x"
, "express-expose" : "0.2.2"
, "stylus" : "0.13.x"
src csanz [master] $ brew doctor
Warning: Some directories in your path end in a slash.
Directories in your path should not end in a slash. This can break other
doctor checks. The following directories should be edited:
/Users/csanz/Applications/gcc-arm-none-eabi-4_7-2013q1/bin/
src csanz [master] $
src csanz [master] $ brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
@csanz
csanz / scheduleanddrone.md
Created November 24, 2012 21:22
Drone Olympics Schedule and Drones

Get a Drone

Get a drone!

If you DON’T have your own drone we recommend you get one right away. This is not a hackathon, so you need to come in ready to demo. You can go to the nearest Costco and pick one up (Most hackers have already done this). They are friggin fun This is what we usually buy: https://gist.github.com/4132002

Schedule

Here is the schedule for December 1st

@csanz
csanz / contribute.md
Created November 24, 2012 21:20
Drone Olympics Contribute

Contribute

Whether you decide to do a demo/compete or simply just add more functionality to the ar-drone Node.js library we welcome all of it.

If you do decide to contribute, we could really use some help creating a library that gives us the drone’s absolute position. The drone tends to drift a lot and it could be many factors, wind, floor, etc. Here is a forum post detailing some of the challenges http://www.ardrone-flyers.com/forum/viewtopic.php?f=23&t=3558

If someone wants to take on this challenge the community will LOVE you. This will give other drone developers the ability to do more complex flying routines.

Here is the issue for questions, comments and suggestions. Let us know if you are going to be working on this, so we don’t have multiple hackers working on this separately. https://github.com/nodecopter/droneolympics.com/issues/2

@csanz
csanz / challengesideas.md
Created November 24, 2012 21:17
Drone Olympics Challenges & Ideas

Challenges & Ideas

You can do anything you want. Obviously the more challenging the better.

Examples:

  • Fly in a circle, eight or other pattern
  • Coordinate flight with another drone
  • Detect a face / follow that person
  • Recognize commands via hand gestures