kylesandhage [1:22 PM] https://github.com/excid3/simple_calendar/blob/master/app/views/simple_calendar/_month_calendar.html.erb
This file contains 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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains 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
in Step 2 you download a file called dvdrental.zip | |
It might not be clear that you need to also do | |
'createuser -s postgres' | |
and | |
psql -U postgres | |
CREATE DATABASE dvdrental; | |
Step 3: 'Type the following command: unzip dvdrental.tar' should say 'unzip dvdrental.zip' |
This file contains 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
#you can copy this into IRB or just run it as a file | |
require "net/http" | |
require "uri" | |
# require "net/https" # for testing ssl | |
url = "http://localhost:3000/login" | |
yaml = %{ --- !ruby/object:Time {} } | |
xml = %{<?xml version="1.0" encoding="UTF-8"?><foo type="yaml">#{yaml}</foo>}.strip |
This file contains 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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title="blue-dribbble"> | |
<link rel="stylesheet" href="css/blue-styles.css"> | |
</head> | |
<body> |
This file contains 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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title="blue-dribbble"> | |
<link rel="stylesheet" href="css/blue-styles.css"> | |
</head> | |
<body> |
This file contains 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
These are my notes while updating a sample app from aspen to cedar. | |
The app is just a demonstration of using formtastic with haml, and getting it to work on heroku. | |
heroku plugins:install https://github.com/heroku/heroku-aspen-migrate | |
Could not initialize heroku-aspen-migrate: no such file to load -- heroku/client/pgbackups | |
Are you attempting to install a Rails plugin? If so, use the following: |
This file contains 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
//take this script and place it in your firebug or javascript console (when you are on the invoice edit page) | |
//it will segment billable and non-billable (0.00) and total them up (could be improved to group by rate) | |
var total=0; | |
function add_them(index, e){ | |
var num = parseFloat($(e).val()); | |
if (!isNaN(num)) { | |
total += num; | |
} | |
} |
This file contains 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
SELECT | |
t.TABLE_SCHEMA | |
, t.TABLE_NAME | |
, s.INDEX_NAME | |
, s.COLUMN_NAME | |
, s.SEQ_IN_INDEX | |
, ( | |
SELECT MAX(SEQ_IN_INDEX) | |
FROM INFORMATION_SCHEMA.STATISTICS s2 | |
WHERE s.TABLE_SCHEMA = s2.TABLE_SCHEMA |
This file contains 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
# there is an alternate way of doing this http://www.neverstopbuilding.com/gitpro | |
# prompt coloring | |
source ~/.git-completion.sh | |
#bash and rvm | |
function __git_dirty { |