Skip to content

Instantly share code, notes, and snippets.

@sudar
sudar / mk_arduino_tags.sh
Created May 3, 2012 — forked from dcrosby42/mk_arduino_tags.sh
Shell script to generate Arduino ctags
View mk_arduino_tags.sh
ctags -f tags.cpp `find . -name "*.cpp" -o -name "*.h"`
ctags -f tags.pde --langmap=c++:.pde `find . -name "*.pde"`
cat tags.cpp tags.pde > tags
sort tags -o tags
rm -f tags.*
View example_gist_create.rb
require 'net/http'
require 'uri'
# /api/v1/:format/new
# /api/v1/:format/gists/:user
# /api/v1/:format/:gist_id
res = Net::HTTP.post_form(URI.parse('http://gist.github.com/api/v1/xml/new'),
{ 'files[file1.ab]' => 'CONTNETS',
'files[file2.ab]' => 'contents' })
You can’t perform that action at this time.