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
-- This assumes you have both growlnotify and blueutil installed. | |
-- You can set the path to either/both apps in the script on line 12 and 13 | |
-- blueutil is a command line utility to turn bluetooth on and off and is available here: | |
-- http://www.frederikseiffert.de/blueutil/ | |
-- growlnotify is a command line utility to post Growl notifications and is available when | |
-- installing Growl 1.2.2 which is available here: | |
-- http://growl.googlecode.com/files/Growl-1.2.2.dmg |
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
-#Intercom Configuration | |
- if defined? IntercomRails | |
- if logged_in? | |
- if current_user.entrepreneur? && current_user.company.present? && current_user.company.current_campaign | |
- camp_name = current_user.company.current_campaign.name rescue 'None' | |
- camp_status = current_user.company.current_campaign.status rescue 'None' | |
- else | |
- camp_name = 'N/A' | |
- camp_status = 'N/A' | |
:erb |
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
tell application "System Events" | |
tell process "Notification Center" | |
key down option | |
click menu bar item 1 of menu bar 1 | |
key up option | |
end tell | |
end tell | |
--quit some apps that I tend to check too often when I should be focusing on coding. | |
try |
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
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Fn keys for iterm</name> | |
<identifier>private.fn_keys_for_iterm</identifier> | |
<only>TERMINAL</only> | |
<autogen>--ConsumerToKey-- ConsumerKeyCode::VOLUME_UP, KeyCode::F12</autogen> | |
<autogen>--ConsumerToKey-- ConsumerKeyCode::VOLUME_DOWN, KeyCode::F11</autogen> | |
<autogen>--ConsumerToKey-- ConsumerKeyCode::MUSIC_PLAY, KeyCode::F8 </autogen> | |
<autogen>--ConsumerToKey-- ConsumerKeyCode::MUSIC_PREV, KeyCode::F7 </autogen> |
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 appName to "Sparrow" | |
set startIt to false | |
tell application "System Events" | |
if not (exists process appName) then | |
set startIt to true | |
else | |
if frontmost of process appName then | |
set visible of process appName to false | |
else |
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 -> | |
$('.role_choices').hide() | |
revealRoles = (element) -> | |
$('.role_choices').slideDown 'fast' | |
$(element).addClass 'button_text_and_arrow_open' | |
$(element).removeClass 'button_text_and_arrow_closed' | |
$('.down_arrow').css('background-position', '0px -23px') | |
hideRoles = (element) -> |
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() { | |
var attorneys_html, hideRoles, investors_html, page, path, revealRoles, small_business_html, url; | |
$('.role_choices').hide(); | |
revealRoles = function(element) { | |
$('.role_choices').slideDown('fast'); | |
$(element).addClass('button_text_and_arrow_open'); | |
$(element).removeClass('button_text_and_arrow_closed'); | |
return $('.down_arrow').css('background-position', '0px -23px'); | |
}; |
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
require 'rack/utils' | |
require 'nokogiri' | |
class HtmlDemo | |
include Rack::Utils | |
def initialize(app, opts = {}) | |
@app = app | |
@opts = { | |
:element_id => 'page', |
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/initializers/pdfkit.rb | |
PDFKit.configure do |config| | |
if Rails.env == 'development' | |
config.wkhtmltopdf = '/usr/local/bin/wkhtmltopdf' | |
config.root_url = "http://bolstr.dev" # Use only if your external hostname is unavailable on the server. | |
elsif Rails.env == 'test' | |
config.wkhtmltopdf = '/usr/local/bin/wkhtmltopdf' | |
config.root_url = "http://bolstr.dev" | |
else | |
# this is where it's installed on the server |