Here's a list of resources for you if you're looking for some help or inspiration. There's plenty of other options too, so use whatever works best for you and your idea.
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
| wget --no-clobber --page-requisites --html-extension --convert-links http://thepage.com/thepage | |
| # then view the page through a local webserver. |
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 | |
| # Performs full rebuild of Polycode dependencies and library, debug and release | |
| # prereq: | |
| # brew/port install Cmake | |
| # sudo pip install ply | |
| rm -rf Dependencies/Build | |
| mkdir -p Dependencies/Build |
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
| response["books"].each do |book_hash| | |
| Book.from_json(book_hash) | |
| end | |
| class Book < AR | |
| def self.from_json(book_hash) | |
| self.new({image: book_hash["i"], whatever else}) | |
| end | |
| end |
This example demonstrates loading of CSV data, which is then quantized into a diverging color scale. The values are visualized as colored cells per day. Days are arranged into columns by week, then grouped by month and years. Colors by Cynthia Brewer. Layout inspired by Rick Wicklin and Robert Allison.
Edited to play with a Google Calendar ICS, imported to Thunderbird/Lightning and exported to CSv.
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
| module OmniAuth | |
| module Strategy | |
| def full_host | |
| uri = URI.parse(request.url) | |
| uri.path = '' | |
| uri.query = nil | |
| uri.port = (uri.scheme == 'https' ? 443 : 80) | |
| uri.to_s | |
| end | |
| 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
| // rotors | |
| int[][] NOTCHES = { | |
| // Identity rotor: | |
| { 0 }, // A | |
| // Standard rotors: | |
| { 17 }, // R | |
| { 5 }, // F | |
| { 22 }, // W | |
| { 10 }, // K |
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
| /\ /\ | |
| { `---' } | |
| { O O } | |
| ~~|~ V ~|~~ | |
| \ \|/ / | |
| `-----'__ | |
| / \ `^\_ | |
| { }\ |\_\_ W | |
| | \_/ |/ / \_\_( ) | |
| \__/ /(_E \__/ |
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
| sub cmd_color_weee { | |
| foreach my $i (1..15) { | |
| Irssi::active_win()->print(chr(3)."$i"."rubi ルビーオンレイルズ"." $i"); | |
| } | |
| Irssi::active_win()->print("x %kr%ru%gb%yi %bル%mビ%wー%pオ%cン%nレ%kイ%rル%gズ"); | |
| Irssi::active_win()->print("X %Kr%Ru%Gb%Yi %Bル%Mビ%Wー%Pオ%Cン%Nレ%Kイ%Rル%Gズ"); | |
| Irssi::active_win()->print("# %0r%1u%2b%3i %4ル%5ビ%6ー%7オ%0ン%1レ%2イ%3ル%4ズ"); | |
| } | |
| Irssi::command_bind('the_colors_duke', 'cmd_color_weee'); |
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
| # add 'grit' and 'colored' to Gemfile | |
| # you can delete the color methods on line #9 if you don't want to install colored gem. | |
| # uses your typical app_development, app_test if git is under master. | |
| # adds _branch_name to end if not. | |
| <% | |
| git_repo = Grit::Repo.new(".") | |
| postfix = git_repo.head.name == 'master' ? nil : git_repo.head.name | |
| app_name = Rails.application.class.parent_name.downcase | |
| database = [app_name, Rails.env, postfix].compact.join("_") |