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
| #!/bin/bash | |
| mkenv(){ | |
| virtualenv env | |
| source env/bin/activate | |
| pip install Flask \ | |
| Flask-WTF\ | |
| Flask-SQLAlchemy\ | |
| Flask-Classy\ | |
| Flask-Assets\ |
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 ruby | |
| require 'pp' | |
| require 'uri' | |
| require 'net/http' | |
| require 'octokit' | |
| require 'nokogiri' | |
| require 'celluloid' | |
| require 'mongo' | |
| require 'logger' |
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 ruby | |
| require 'nokogiri' | |
| ARGV.each do |file| | |
| puts "Patching #{file}.." | |
| f = File.open(file) | |
| doc = Nokogiri::XML(f) | |
| f.close | |
| #doc.remove_namespaces! |
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
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "io" | |
| "os" | |
| "net/url" | |
| "net/http" | |
| "strings" |
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
| void example() | |
| { | |
| A *a; | |
| B *b; | |
| a = a_new(); | |
| b = b_new(a); | |
| use_b(b); | |
| b_delete(b); | |
| a_delete(a); |
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
| void example() | |
| { | |
| A *a; | |
| B *b; | |
| defer_start(); | |
| defer(puts, "bye"); | |
| a = a_new(); | |
| if (! a){ |
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
| void example() | |
| { | |
| A *a; | |
| B *b; | |
| a = a_new(); | |
| if (!a){ | |
| puts("bye"); | |
| return; | |
| } |
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
| void example() | |
| { | |
| A *a; | |
| B *b; | |
| a = a_new(); | |
| if (a){ | |
| b = b_new(a); | |
| if (b){ | |
| use_b(b); |
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
| void example() | |
| { | |
| A *a; | |
| B *b = NULL; | |
| a = a_new(); | |
| if (! a){ | |
| goto end; | |
| } |
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
| package main | |
| import ( | |
| "time" | |
| ) | |
| type Action func(interface{}) | |
| type Actor struct { | |
| Inbox chan interface{} |