Skip to content

Instantly share code, notes, and snippets.

View jendiamond's full-sized avatar
🏠
Working from home

JenDiamond jendiamond

🏠
Working from home
View GitHub Profile
@jendiamond
jendiamond / featsofdaringnotels.md
Last active August 26, 2015 18:52
Feats of Daring Notes

Met with David at Andante 8-26-2015

Worked on Feats of Daring app/models/cat.rb

class cats
  def moeow
  end
end
1. Fork someone else's Pinterest or Blog repository. 
 Click on the fork button on GitHub. It is at the top right of the page.
This will clone a copy to your personal GitHub page.


Clone it to your local machine.
On your personal GitHub page
  click on the clipboard icon, this will copy it. Then paste it in your terminal.
•	$ git clone git@github.com:LARailsLearners/three-in-one_pinterest_instructions.git
•	create a branch $ git checkout -b branch_name
@jendiamond
jendiamond / gist:8943476
Created February 11, 2014 20:32
weBRAND footer
<footer id="details" class="col-md-offset-2">
<div class="row">
<section id="about" class="col-md-4">
<header>
<h3>About Us</h3>
</header>
<ul class="list-unstyled">
<li>
<a href="/">Home</a>
@jendiamond
jendiamond / gist:9082996
Last active August 29, 2015 13:56
crowdshop / influencer footer
<footer class="details">
<div class="row">
<section class="brand col-md-offset-1 col-md-4">
<header>
<h3><%= localization.footer.brand %></h3>
</header>
<ul class="list-unstyled">
<li>
<%= link_to localization.footer.brand.home, shop_path %>
</li>
@jendiamond
jendiamond / gist:9105538
Last active August 29, 2015 13:56
def price
def price
number_to_currency(source.price, precision: 2) ||
if variation
then number_to_currency(variation.price, precision: 2)
else number_to_currency(product.price, precision: 2)
end
end
# Team TryRubyStandardLibrary
We are going to create an in-browser repl for the community to be able
to try out the elements of the Ruby 2.1.1 Ruby Standard Library
We will be using the open source Rails App TryRuby. https://github.com/Sophrinix/TryRuby
As we create this we will improve on the code base of TryRuby by
++ first updating the Rails version
++ re-factoring

benchmark

size b / Josh

$ irb 2.1.2 :001 > require 'benchmark' => true

The Benchmark module provides methods to measure and report the time used to execute Ruby code.( Used to measure the time to run ruby code within a block.

  • use dashes not underscores *

To create a category

create a blog-category.haml

Link text: cat

%h1 Cat Problems

<html><head><title>Chapters for Libraries</title><meta content="text/html; charset=UTF-7" http-equiv="content-type"><style type="text/css">ol{margin:0;padding:0}.c0{widows:2;orphans:2;height:11pt;direction:ltr}.c10{line-height:1.7386363636363635;padding-top:11pt;padding-bottom:11pt}.c6{padding-top:9pt;text-align:justify;padding-bottom:11pt}.c11{max-width:468pt;background-color:#ffffff;padding:72pt 72pt 72pt 72pt}.c3{widows:2;orphans:2;direction:ltr}.c7{color:inherit;text-decoration:inherit}.c1{color:#1155cc;text-decoration:underline}.c9{font-size:9pt;background-color:#ffffff}.c4{font-weight:bold}.c8{color:#333333}.c2{font-size:10pt}.c5{margin-left:36pt}.title{widows:2;padding-top:0pt;line-height:1.15;orphans:2;text-align:left;color:#000000;font-size:21pt;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}.subtitle{widows:2;padding-top:0pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-style:italic;font-size:13pt;font-family:"Trebuchet MS";padding-bottom:10pt;page-break-after:a

The Standard Librarians

The core RGSoC team was Jen Diamond and Stephanie Betancourt. We had a lot of friends in our study group and other people who wanted to contribute as collaborators so we opened up the project to them as well. Omowale Oniyide and Josh Loper joined on as core collaborators from the inception of the project and presented with us at Rocky Mountain Ruby 2014. We had other contributors throughout the summer including Rob Wilkinson, Jalil Mohammed, Ashok Modi, Kobi Levy and Eric Mathison.

Feats of Daring - A New Way to Explore The Ruby Standard Library

The Standard Librarians have been creating a new learning tool for the Ruby community over this summer called Feats of Daring. A user will be able to go to our site and learn about the Ruby Standar