Skip to content

Instantly share code, notes, and snippets.

View keithnorm's full-sized avatar

Keith Norman keithnorm

View GitHub Profile
(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) {
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) {
-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
(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)
# config/gmaps_api_key.yml
development:
ABQIAAAAbMa0oLtDxgMnGRYM0YWTWhQM6wNFQVmDi7hTE0lnis26mNCe6BRc-j_aJFYmNiXzDtfI_9b2enJLDA
test:
ABQIAAAAbMa0oLtDxgMnGRYM0YWTWhQM6wNFQVmDi7hTE0lnis26mNCe6BRc-j_aJFYmNiXzDtfI_9b2enJLDA
production:
ABQIAAAAbMa0oLtDxgMnGRYM0YWTWhSi-w1vkv17ps5IqzhmTwAWgirQrRRPgzbHcsdy7nSW3YHwU3XKmv3Wew
Object.extend(Element.Methods, {
show: function(el) {
//fixing prototypes show method so that it works for elements hidden via css too (like jquery)
var display = el.getStyle("display");
if(display === "none") {
var elem = new Element(el.tagName);
$$("body").invoke("insert", elem);
display = elem.getStyle("display");
if (display === "none")
display = "block";
# 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 *
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
/* 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;
// 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];