Skip to content

Instantly share code, notes, and snippets.

Append this to your $HOME/.ssh/config file
Host videoswithfriends.no.de
Port 19880
User node
ForwardAgent yes
To run an existing GIT repository with a file called server.js in the root then do this:
cd repo
git remote add videoswithfriends.no.de videoswithfriends.no.de:repo
git push videoswithfriends.no.de master
If everything goes correctly your server will be running at http://videoswithfriends.no.de/
Object[] row = new Object[] { "", name, flows, totalBytes, totalBitRate,
totalPackets, totalPacketRate, totalByteData.getKeyObject(), hashCode };
<td>
<span id="bg-topColor1"></span>
ip address
</td>
#bg-topColor1 {
background-color: #00FFFF;
width: 16px;
height: 16px;
-webkit-border-radius: 3px;
alsdjfklsjdf
class Song
def initialize(name, artist, duration)
@name = name
@artist = artist
@duration = duration
end
def to_s
"Song: #{@name} --#{@artist} (#{@duration})"
end
# This viminfo file was generated by Vim 7.3.
# You may edit it if you're careful!
# Value of 'encoding' when this file was written
*encoding=utf-8
# hlsearch on (H) or off (h):
~h
# Last Search Pattern:

Chapter 1

Summarize the chapter ( 1+ bullets )

  • The chapter is talking about how secondary school is broken. It explains how school is like a prison intended to keep children busy while the adults are at work.
  • Nerds are ahead of the game because they want to don't want to play the game being played in secondary school. They want to work on real problems.

What was one idea the surprised or stood out to you? Why? ( 2-4 sentences )

require 'spec_helper'
describe "Order Summary" do
context "When I am on the order summary page" do
it "shows the shipping address for the order" do
visit new_shipping_address_path
fill_in "First name", :with => "Jeff"
fill_in "Last name", :with => "Casimir"
fill_in "Company", :with => "Jumpstart Lab"
fill_in "Street", :with => "1445 New York Ave NW"
@austenito
austenito / gist:2418746
Created April 19, 2012 05:09
post for two-click
jQuery ->
$('#two-click-submit').click ->
$.post(
"/two_click"
foo: $('#cart_item_quantity').val()
-> alert("omg")
)
@austenito
austenito / cart.rb
Created May 5, 2012 13:38
Updated carts controller
class Cart < ActiveRecord::Base
belongs_to :user
has_many :cart_products
has_many :products, :through => :cart_products
def product_count
cart_products.pluck(:quantity).sum
end
def add_product(product_id)