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
| class BooksController < UITableViewController | |
| def viewDidLoad | |
| super | |
| loadBooks | |
| end | |
| def numberOfSectionsInTableView(tableView) | |
| return 1 | |
| 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
| <link rel="import" href="../core-scaffold/core-scaffold.html"> | |
| <link rel="import" href="../core-header-panel/core-header-panel.html"> | |
| <link rel="import" href="../core-menu/core-menu.html"> | |
| <link rel="import" href="../core-item/core-item.html"> | |
| <link rel="import" href="../core-icon-button/core-icon-button.html"> | |
| <link rel="import" href="../core-toolbar/core-toolbar.html"> | |
| <link rel="import" href="../core-menu/core-submenu.html"> | |
| <polymer-element name="my-element"> |
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
| tell application "Finder" | |
| activate | |
| set the source_folder to choose folder | |
| set note_files to (every file in source_folder) as alias list | |
| end tell | |
| repeat with i from 1 to number of items in note_files | |
| try | |
| open for access item i of note_files | |
| set txt to read item i of note_files |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <homescreen> | |
| <created-at type="datetime">2011-06-05T11:21:54Z</created-at> | |
| <description>something</description> | |
| <device-type type="integer">0</device-type> | |
| <id type="integer">19</id> | |
| <image-content-type>image/png</image-content-type> | |
| <image-file-name>IMG_0023.PNG</image-file-name> | |
| <image-file-size type="integer">135452</image-file-size> | |
| <image-updated-at type="datetime">2011-06-05T11:21:54Z</image-updated-at> |
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
| require 'sinatra/base' | |
| class ResqueWeb < Sinatra::Base | |
| require 'resque/server' | |
| use Rack::ShowExceptions | |
| # Set the AUTH env variable to your basic auth password to protect Resque. | |
| AUTH_PASSWORD = ENV['AUTH'] | |
| if AUTH_PASSWORD | |
| Resque::Server.use Rack::Auth::Basic do |username, password| |
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
| # RAILSLOVE.com template | |
| # | |
| # with help and ideas from: | |
| # http://gist.github.com/33337 By Peter Cooper | |
| # http://github.com/jeremymcanally/rails-templates/tree/master/suspenders.rb Suspenders by Thoughtbot Nathan Esquenazi | |
| if yes?("symlink local rails copy to vendor?") | |
| path = ask("what's the directory of your local rails copy?") | |
| inside('vendor') { run "ln -s #{path} rails" } |
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
| export PS1="\[\033[00m\]\u@\h\[\033[00m\]:\[\033[00m\]\w\[\033[00m\] \`ruby -e \"print (%x{git branch 2> /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '[\1] ')\"\`\[\033[00m\]$\[\033[00m\] " | |
| export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" | |
| export SVN_EDITOR='/usr/bin/mate -w' | |
| export HGEDITOR='/usr/bin/mate -w' | |
| # System | |
| alias ll='ls -alhG' | |
| alias cvps='cd ~/Projects/Rails/vps-net' | |
| alias cbil='cd ~/Projects/Rails/billings' | |
| alias mysql='/usr/local/mysql/bin/mysql' |
NewerOlder