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
BEGIN:VCARD | |
VERSION:3.0 | |
PRODID:-//Apple Inc.//Mac OS X 10.12.6//EN | |
N:Baker;Richard;;; | |
FN:Richard Baker | |
ORG:GETransportation; | |
TITLE:Director of User Experience | |
EMAIL;type=INTERNET;type=HOME;type=pref:[email protected] | |
EMAIL;type=INTERNET;type=WORK:[email protected] | |
item1.URL;type=pref:http://www.rwbaker.com |
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
<html> | |
<body> | |
<footer> | |
<p>© <span id="copyrightYear">2013</span> Company</p> | |
</footer> | |
<script language="javascript"> | |
var copyrightDate = new Date; | |
var localYear = parseInt(copyrightDate.getFullYear()); | |
var initialYear = parseInt(document.getElementById('copyrightYear').innerHTML); |
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
Show hidden characters
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/User/Monokai Soda.tmTheme", | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
".sass-cache" |
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
var myDate = 1337678451; | |
var date = new Date(myDate*1000); | |
var hrs = date.getHours(); | |
var min = date.getMinutes(); | |
var sec = date.getSeconds(); | |
var day = date.getDate(); | |
var month = date.getMonth(); | |
var year = date.getFullYear(); | |
console.log(month + '/' + day + '/' + year +' @ ' + hrs + ':' + min + ':' + sec); |
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
%w(rubygems sequel fileutils yaml active_support/inflector).each{|g| require g} | |
require File.join(File.dirname(__FILE__), "downmark_it") | |
module WordPress | |
def self.import(database, user, password, table_prefix = "wp", host = 'localhost') | |
db = Sequel.mysql(database, :user => user, :password => password, :host => host, :encoding => 'utf8') | |
%w(_posts _drafts images/posts/featured).each{|folder| FileUtils.mkdir_p folder} |
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
/* Default Styles | |
-------------------------------------------------------------------------------------*/ | |
body {margin:0; font:14px/1.4 Arial, Tahoma, sans-serif; background:#fff; color:#333;} | |
/* Generics */ | |
.hide {display:none;} | |
.left {float:left;} | |
.right {float:right;} | |
/* Text Styles */ |
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
/* | |
Author: Richard Baker; rwbaker.com | |
*/ | |
/* Markup example: | |
<fieldset> | |
<legend>Form</legend> | |
<ul class="vert"> | |
<li> | |
<label>Field label text</label> |
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
//Set the date | |
var today = new Date; | |
today.day = today.getDayName(); | |
today.month = today.getMonthName(); | |
today.date = today.getDay(); | |
today.year = getFullYear(); | |
//Extend Date to have a few extra fatures | |
Date.dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; |
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
//Extend Date to have a few extra fatures | |
Date.dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; | |
Date.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; | |
Date.prototype.dayNames = Date.dayNames; | |
Date.prototype.monthNames = Date.monthNames; | |
Date.prototype.getDayName = function() { | |
return this.dayNames[this.getDay()]; | |
}; | |
Date.prototype.getDayNameAbbr = function() { |
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
$(document).ready(function() { | |
app.loadPlugins() | |
//Initialize for all pages | |
app.init.main() | |
}) | |
var app = { |
NewerOlder