{
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"draw_white_space": "selection",
"font_face": "Source Code Pro",
"font_size": 14,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
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
$ -> | |
setFbSize() | |
$('body').bind('resizeframe', setFbSize) | |
# If this page has fbcomments on it, we need to set height at an interval | |
# so we resize when new comments/interactions with that widget happen | |
if $('.fb-comments').length | |
setInterval(setFbSize, 100) | |
$(window).load -> |
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 defaultDiacriticsRemovalMap = [ | |
{'base':'A', 'letters':/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g}, | |
{'base':'AA','letters':/[\uA732]/g}, | |
{'base':'AE','letters':/[\u00C6\u01FC\u01E2]/g}, | |
{'base':'AO','letters':/[\uA734]/g}, | |
{'base':'AU','letters':/[\uA736]/g}, | |
{'base':'AV','letters':/[\uA738\uA73A]/g}, | |
{'base':'AY','letters':/[\uA73C]/g}, | |
{'base':'B', 'letters':/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g}, | |
{'base':'C', 'letters':/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g}, |
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
{ | |
'ẚ':'a', | |
'Á':'a', | |
'á':'a', | |
'À':'a', | |
'à':'a', | |
'Ă':'a', | |
'ă':'a', | |
'Ắ':'a', | |
'ắ':'a', |
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
{ | |
'Æ':'ae', | |
'æ':'ae', | |
'ẚ':'a', | |
'Á':'a', | |
'á':'a', | |
'À':'a', | |
'à':'a', | |
'Ă':'a', | |
'ă':'a', |
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
#!/usr/bin/env ruby | |
require 'yaml' | |
require 'fileutils' | |
YAML::ENGINE.yamler = 'psych' | |
RAILS_ENV = ENV["RAILS_ENV"] | |
path_to_database_yml = File.join("config", "database.yml") |
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
# Important: this requires your Facebook App ID to be in data-id on #fb-root | |
window.fbAsyncInit = -> | |
FB.init | |
appId: document.getElementById("fb-root").getAttribute("data-id") | |
# Async load the JS SDK | |
id = "facebook-jssdk" | |
ref = document.getElementsByTagName("script")[0] | |
return if document.getElementById(id) |
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
[ | |
// Example post to be presented as text | |
{ | |
source: "twitter", | |
source_url: "http://twitter.com/giantcola", // We only need this if the URL can change between posts from the same source | |
title: "@giantcola", // This title can be anything from a twitter username to a tumblr post title (it will be displayed as the gold caps text in the design comp | |
body: "Here is an example tweet!", | |
weight: 1 // 1 or 2, affects the size of the tile | |
}, | |
// Example post to be presented as an image |
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
<%= table_for @videos, headers: false do %> | |
<%= column :name %> | |
<%= column :url %> | |
<%= actions :edit, :delete %> | |
<% end %> |
OlderNewer