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
(function() { | |
var DOM = tinymce.DOM; | |
var each = tinymce.each; | |
// Load plugin specific language pack | |
tinymce.PluginManager.requireLangPack('wordpress'); | |
tinymce.create('tinymce.plugins.WPAudio', { | |
init : function(ed, url) { | |
ed.onPostProcess.add(function(ed, o) { |
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
function wpaInitTinymce() { | |
// Add only in Rich Editor mode | |
if ( get_user_option('rich_editing') == 'true') { | |
// add the plugin for wp25 in a new way | |
add_filter("mce_external_plugins", "wpaAddTinymcePlugin", 5); | |
} | |
} | |
// Load the TinyMCE plugin : editor_plugin.js (wp2.5) | |
function wpaAddTinymcePlugin($plugin_array) { |
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
-content_for :title do | |
Oops! That page doesn't exist. | |
.doc | |
-bookend_with(:img=>'w702', :top_class=>'admin') do | |
.page_header{:style=>"clear: left; background: #fff;"} | |
%h2= yield :title | |
.page_content.content | |
%p='To get to where you (probably) wanted to go, select your city from the list below, or ' + link_to("contact us", groupon_contact_us_url) + ' to let us know if you think you got here because of an error.' | |
.clearfix | |
- divisions = Division.all |
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
(function($){ | |
$.fn.bigClickNYC = function(selector) { | |
var selector = selector || "a"; | |
return this.each(function(){ | |
$(this).click(function(e){ | |
e.preventDefault(); | |
if($(this).is(selector)) | |
$(window).attr("location", $(this).attr("href")); | |
else if($(this).find(selector).length > 0) |
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
# config/gmaps_api_key.yml | |
development: | |
ABQIAAAAbMa0oLtDxgMnGRYM0YWTWhQM6wNFQVmDi7hTE0lnis26mNCe6BRc-j_aJFYmNiXzDtfI_9b2enJLDA | |
test: | |
ABQIAAAAbMa0oLtDxgMnGRYM0YWTWhQM6wNFQVmDi7hTE0lnis26mNCe6BRc-j_aJFYmNiXzDtfI_9b2enJLDA | |
production: | |
ABQIAAAAbMa0oLtDxgMnGRYM0YWTWhSi-w1vkv17ps5IqzhmTwAWgirQrRRPgzbHcsdy7nSW3YHwU3XKmv3Wew |
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
# referenced from http://www.adobe.com/devnet/air/articles/signing_air_applications_print.html | |
# you can add adt to your path or give the full path in the command | |
# adt will be in the air sdk director | |
# first, generate a certificate to use for signing the app | |
adt -certificate -cn AnythingHere 1024-RSA test_cert.pfx password | |
#then from app directory | |
adt -package -storetype pkcs12 -keystore /path/to/cert/test_cert.pfx -storepass <password> <app_name>.air application.xml * |
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
module App::Controllers::MobileSupport | |
def self.included(base) | |
base.send :before_filter, :redirect_to_appropriate_site | |
base.send :helper_method, :iphone_request? | |
base.send :helper_method, :touch_request? | |
end | |
def redirect_to_appropriate_site | |
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
/* Scrollbars */ | |
::-webkit-scrollbar { | |
width: 15px; | |
height: 15px; | |
} | |
/* Turn on single button up on top, and down on bottom */ | |
::-webkit-scrollbar-button:start:decrement, | |
::-webkit-scrollbar-button:end:increment { | |
display: none; |
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
// Instead of refreshing the page each time and letting Rails regenerate your css files from any changed Sass files, use the Sass watch script: | |
// sass --watch public/stylesheets/sass:public/stylesheets | |
// | |
// Then use javascript to force the new css to load | |
function refreshCSS() { | |
var i,a,s; | |
a=document.getElementsByTagName('link'); | |
for(i=0;i<a.length;i++){ | |
s=a[i]; |
OlderNewer