Skip to content

Instantly share code, notes, and snippets.

View bobthecow's full-sized avatar

Justin Hileman bobthecow

View GitHub Profile
SEO| Internet Marketing| Website Designing
HI,
I am Bob Smith Online SEO Consultant.
Do you want to see your website in Top 10 position in Google or other
major search engine?
Do you want more targeted visitors on your website?
source ~/.rprompt.bash
export RPROMPT='$(date)'
#pdf.erb
<% chapters.each do |chapter| %>
<%= chapter.compiled_content, :snapshot => :pre %>
<% end %>
#default.rb
def chapters

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.

  1. Open Console, filter it by "Coda"
  2. Download this version of the Docblock plugin
  3. Install it, start Coda, watch Console for errors
  4. Open or create a PHP file and attempt to document a function, watch Console for errors
  5. Let me know what you see!

Thanks :)

<?php echo str_repeat(file_get_contents(__FILE__, false, null, __COMPILER_HALT_OFFSET__), 2);
__halt_compiler();
<?php echo str_repeat(file_get_contents(__FILE__, false, null, __COMPILER_HALT_OFFSET__), 2);
__halt_compiler();
class Item
def pretty_date
"<time class=\"timeago created-at\" datetime=\"#{Time.parse(self[:created_at]).iso8601}\">#{Date.parse(self[:created_at]).strftime('%e %B %Y')}</time>"
end
end
# Rules:
compile '*' do
if not item.binary?
if item[:kind] == 'image'
layout 'image'
else if item[:kind] == 'link'
layout 'link'
else
layout 'item'
@bobthecow
bobthecow / html_compressor.rb
Created February 29, 2012 22:36 — forked from dutygeeks/html_compressor.rb
HTML COMPRESSOR
require 'html_compressor'
class HtmlCompressor < Nanoc3::Filter
identifier :html_compressor
# Runs the content through htmlcompressor.
#
# This method optionally takes options to pass directly to htmlcompressor
#
# @param [String] content The content to filter
@bobthecow
bobthecow / radio_mustach_example.html
Created March 5, 2012 15:23 — forked from ebaxt/radio_mustach_example.html
Checking radio with Mustache
<!DOCTYPE html>
<html>
<head>
<title></title>
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/mustache.js"></script>
</head>
<body>
<div id="formWrapper">