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 'rubygems' | |
| require 'yajl' | |
| file = File.new('bbPosts.json', 'r') # file with more than one json | |
| # Boing Boing Titles | |
| parser = Yajl::Parser.new | |
| parser.parse(file) do |file| | |
| file.each do |post| |
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
| server { | |
| listen 80; | |
| server_name www.wordpress-domain-name.com; | |
| root /var/www/wordpress; | |
| index index.php; | |
| try_files $uri $uri/ /index.php; | |
| location /rails { | |
| passenger_min_instances 2; |
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
| <!-- Place in your header after your current CSS declarations --> | |
| <style type="text/css" media="screen"> | |
| #qrcode{display: none;} | |
| </style> | |
| <style type="text/css" media="print"> | |
| #header, #sidebar, #respond, .social-bar, .author-links, #footer, #comments{display: none;} | |
| #qrcode{display: block;} |
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 'rubygems' | |
| require 'twitter' | |
| require 'json' | |
| require 'net/http' | |
| def term_search(screen_name, needle) | |
| (0..9999999).each do |i| | |
| puts "Page #{i} Search" |
NewerOlder