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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>David Fisher Portfolio</title> | |
| <link href="styles.css" rel="stylesheet" /> | |
| </head> | |
| <body> | |
| <script id="project-template" type="x-handlebars-template"> | |
| <div class="project"> | |
| <h2>{{name}}</h2> |
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
| var Project = Backbone.Model.extend({ | |
| // STEP 5: This is a model of our data that describes its behavior | |
| idAttribute: 'slug', | |
| defaults: { | |
| name: "Default Project", | |
| slug: 'default-project', | |
| github_url: "http://github.com/tibbon/portfolio", | |
| live_url: "http://tibbon.com", | |
| thumbnail_url: "http://github.com/tibbon/portfolio/preview.png", | |
| description: "This is my really awesome portfolio page. Can\'t you see I like making portfolios?" |
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
| // The parameter for search-name should be sanitized in some way of course | |
| @api_result = Rails.cache.fetch("foursquare-#{search-name}") do | |
| Foursquare.search(search-name) | |
| 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
| 756 rails _3.2.13_ new raffler | |
| 757 cd raffler/ | |
| 758 git status | |
| 759 ls | |
| 760 rails g controller main index --skip-javascript | |
| 761 rm app/assets/javascripts/main.js.coffee | |
| 762 subl . | |
| 763 git add . | |
| 764 git commit -m "Ran controller generator to create Main controller with an action of Index. Added Loading text to app views main index" | |
| 765 git add . |
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
| # config/unicorn.rb | |
| worker_processes 3 | |
| timeout 30 | |
| preload_app true | |
| before_fork do |server, worker| | |
| Signal.trap 'TERM' do | |
| puts 'Unicorn master intercepting TERM and sending myself QUIT instead' | |
| Process.kill 'QUIT', Process.pid |
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
| # User seed | |
| u1 = User.create(name: "Taylor Hollis", profile_image_url: 'http://images.wikia.com/warhammer40kfanon/images/0/05/Jackie-chan-meme.jpg') | |
| u2 = User.create(name: "Randy Lacey", profile_image_url: 'http://www.webmasternerd.com/wp-content/uploads/2013/08/2.jpg') | |
| u3 = User.create(name: "Cary Ocean", profile_image_url: 'http://weknowmemes.com/wp-content/uploads/2011/10/great-scott-doc-back-to-the-future-drawing.jpg') | |
| u4 = User.create(name: "Sam Skyler", profile_image_url: 'http://wallgood.com/wp-content/uploads/2013/07/Forever-Alone-Meme-Template.jpg') | |
| u5 = User.create(name: "Sal Rowan", profile_image_url: 'http://3.bp.blogspot.com/-3LSV-ioauvU/UPnPspEglDI/AAAAAAAAAJY/cuIC5kBIJA8/s200/meme-faces_00040376.jpg') | |
| # Item seed | |
| i1 = Product.create( name: "The Mountain Three Wolf Moon Short Sleeve Tee", | |
| description: "Hand dyed shirt featuring a stunning screen print of 3 wolves howling at a moon on a preshrunk, 100% cotton tee dyed and printed by the mountain.") |
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
| https://github.com/rspec/rspec | |
| http://www.codeschool.com/courses/testing-with-rspec | |
| http://en.wikipedia.org/wiki/RSpec | |
| http://rspec.info/ | |
| https://relishapp.com/rspec/rspec-core/docs | |
| http://betterspecs.org/ |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)