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
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# [...] | |
config.vm.hostname = 'my-hostname.fully.qualified' | |
config.vm.provider :vsphere do |vsphere| | |
# [...] | |
end |
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
""" | |
Automate loading of F-Script Anywhere into any app. | |
By Daniel Jalkut - @danielpunkass - http://indiestack.com/ | |
To set up: | |
0. Make sure you have FScript.framework installed in /Library/Frameworks (http://www.fscript.org) | |
1. Copy this script to ~/.lldb/fsa.py | |
2. Add the following to your ~/.lldbinit file: |
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
om/IWillMount | |
(will-mount [_] | |
(go-loop [] | |
(async/<! wait-for-channel-event) | |
(log (str "Atom first is " (:date (apply min-key :date (:content (deref data)))))) | |
(let [new-from-server (async/<! (fetch-from-server url (:id (apply min-key :date (:content (deref data))))))] | |
(log (str "Server first is " (:date (apply min-key :date new-from-server)))) | |
(om/transact! data :content #(apply conj % new-from-server)) | |
(recur))) |
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
(ns potato.keyboard | |
(:require [clojure.string] | |
[goog.dom] | |
[goog.style] | |
[goog.events] | |
[goog.dom.xml] | |
[goog.dom.classlist] | |
[goog.dom.selection] | |
[goog.testing.events] | |
[goog.events.EventTarget] |
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
+[/Users/mathieulegrand/.rvm/scripts/cli] : 663 : __rvm_parse_args() $ [[ -z '' ]] | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 664 : __rvm_parse_args() $ export 'PS4=+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }' | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 664 : __rvm_parse_args() $ PS4='+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }' | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 686 : __rvm_parse_args() $ [[ -z '' ]] | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 686 : __rvm_parse_args() $ [[ -n '' ]] | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 688 : __rvm_parse_args() $ [[ 0 -eq 1 ]] | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 688 : __rvm_parse_args() $ [[ -n '' ]] | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 14 : __rvm_parse_args() $ [[ -n install ]] | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 16 : __rvm_parse_args() $ rvm_token=install | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 18 : __rvm_parse_args() $ [[ 3 -gt 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
+ [[ -z '' ]] | |
+ export 'PS4=+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }' | |
+ PS4='+[${BASH_SOURCE}] : ${LINENO} : ${FUNCNAME[0]:+${FUNCNAME[0]}() $ }' | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 686 : __rvm_parse_args() $ [[ -z '' ]] | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 686 : __rvm_parse_args() $ [[ -n '' ]] | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 688 : __rvm_parse_args() $ [[ 0 -eq 1 ]] | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 688 : __rvm_parse_args() $ [[ -n '' ]] | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 14 : __rvm_parse_args() $ [[ -n install ]] | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 16 : __rvm_parse_args() $ rvm_token=install | |
+[/Users/mathieulegrand/.rvm/scripts/cli] : 18 : __rvm_parse_args() $ [[ 3 -gt 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
source :rubygems | |
# Bundle edge Rails | |
gem 'rails', '3.1.0.beta1' | |
#gem 'arel', :git => 'git://github.com/rails/arel.git' | |
#gem 'rack', :git => 'git://github.com/rack/rack.git' | |
#gem 'sprockets', :git => 'git://github.com/sstephenson/sprockets.git' | |
# Rails console dependency | |
gem 'turn' |
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
XXXXXXXXX::Application.configure do | |
# Settings specified here will take precedence over those in config/application.rb | |
# Code is not reloaded between requests | |
config.cache_classes = true | |
# Full error reports are disabled and caching is turned on | |
config.consider_all_requests_local = false | |
config.action_controller.perform_caching = true |
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
SimpleGeo::Client.set_credentials(ENV['SIMPLEGEO_KEY'],ENV['SIMPLEGEO_SECRET']) | |
resp = SimpleGeo::Client.geocode_from_ip() | |
options = {:num=>1} | |
place = SimpleGeo::Client.get_places(resp[:query][:latitude], resp[:query][:longitude], options) | |
phone = place[:features][0][:properties][:phone] | |
@area_code = phone[3..-10] # Phone number format: "+1 XXX XXX-XXXX" |
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
tm-test-wc(master*)$ svn status --no-ignore -v --xml | |
<?xml version="1.0"?> | |
<status> | |
<target | |
path="."> | |
<entry | |
path="."> | |
<wc-status | |
props="normal" | |
item="normal" |
OlderNewer