This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| { | |
| "name": "Github", | |
| "description": "Github", | |
| "version": "1.0", | |
| "icons": { | |
| "128": "128.png" | |
| }, | |
| "app": { | |
| "urls": [ | |
| "https://github.com/" |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| def self.create_from_hash(registration_hash) | |
| unless registration_hash || resigration_hash.empty? | |
| return nil | |
| end | |
| provider = registration_hash[:provider] | |
| info = registration_hash[:info] | |
| user = User.new |
| #include <iostream> | |
| #include <vector> | |
| #include <algorithm> | |
| #include <cmath> | |
| #define forn(i, n) for(int i = 0; i < (n); ++i) | |
| #define FUNC(i) (*(dispatch[funcs[i]])) | |
| #define MFUNC(o) ([](double a, double b) { return a o b; }) | |
| using namespace std; |
| source :rubygems | |
| # We are not loading Active Record, nor Active Resources etc. | |
| # We can do this in any app by simply replacing the rails gem | |
| # by the parts we want to use. | |
| gem "actionpack", "~> 3.2" | |
| gem "railties", "~> 3.2" | |
| gem "tzinfo" | |
| # Let's use thin |
| ; A REPL-based, annotated Seesaw tutorial | |
| ; Please visit https://github.com/daveray/seesaw for more info | |
| ; | |
| ; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers | |
| ; Seesaw's basic features and philosophy, but only scratches the surface | |
| ; of what's available. It only assumes knowledge of Clojure. No Swing or | |
| ; Java experience is needed. | |
| ; | |
| ; This material was first presented in a talk at @CraftsmanGuild in | |
| ; Ann Arbor, MI. |
[ Launch: INFO 247 - Lab 7 - #3 - Putting it together (full code) ] 6136775 by Quebecisnice[ Launch: INFO 247 - Lab 6 - #5 ] 5054889 by poezn[ Launch: INFO 247 - Lab 6 - #4 ] 5054883 by poezn[ Launch: INFO 247 - Lab 6 - #3 ] 5054877 by poezn[ Launch: INFO 247 - Lab 6 - #1 ] 5054749 by poezn[ Launch: INFO 247 - Lab 6 - #1 ] 5054734 by poezn
[ Launch: INFO 247 - Lab 7 - #3 - Putting it together (full code) ] 6136776 by Quebecisnice[ Launch: INFO 247 - Lab 7 - #3 - Putting it together (full code) ] 6136775 by Quebecisnice[ Launch: INFO 247 - Lab 6 - #5 ] 5054889 by poezn[ Launch: INFO 247 - Lab 6 - #4 ] 5054883 by poezn[ Launch: INFO 247 - Lab 6 - #3 ] 5054877 by poezn[ Launch: INFO 247 - Lab 6 - #1 ] 5054749 by poezn[ Launch: INFO 247 - Lab 6 - #1 ] 5054734 by poezn
| import numpy as np | |
| from pandas import * | |
| import matplotlib.pyplot as plt | |
| Index = ['aaa', 'bbb', 'ccc', 'ddd', 'eee'] | |
| Cols = ['A', 'B', 'C', 'D'] | |
| df = DataFrame(abs(np.random.randn(5,4)), index=Index, columns = Cols) | |
| plt.pcolor(df) | |
| plt.yticks(np.arange(0.5, len(df.index), 1), df.index) |