Skip to content

Instantly share code, notes, and snippets.

Brandon Valentine bval

Block or report user

Report or block bval

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View schema.yml
Employee:
columns:
id:
type: integer
primary: true
autoincrement: true
sf_guard_user_id:
type: integer
start_date:
type: date
View gist:768472
sfGuardUser:
sgu_admin:
username: admin
password: Client2009
is_super_admin: true
cwage:
username: cwage
password: changeme
first_name: Chris
last_name: Wage
View describe table
mysql> describe shipped_order;
+---------------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| ship_to_address | varchar(255) | YES | | NULL | |
| total_weight | bigint(20) | YES | | NULL | |
| ups_tracking_number | bigint(20) | YES | | NULL | |
| real_shipping_costs | varchar(10) | YES | | NULL | |
| processing_date | date | YES | | NULL | |
View backreference_failing_on_first_array_element.rb
site = "www.website.com"
months = ["www.website.com/awstats042009.www.website.com.txt", "www.website.com/awstats052009.www.website.com.txt"]
# below works better
months.map! { |m| m[/#{site}\/awstats([0-9]{6})\.#{site}\.txt/,1] }
puts months
You can’t perform that action at this time.