Skip to content

Instantly share code, notes, and snippets.

- kit.campaigns.each do |campaign|
li class="#{:active if campaign == @campaign}"
a href=edit_campaign_path(campaign)
=> fa_icon 'calendar-o'
= campaign.name
it "returns the markdown as html" do
tempfile <<-END.strip_heredoc do |file|
# A heading
Some content
END
page = DocRepo::Page.new(file.path)
expect(page.to_html).to eq <<-END.strip_heredoc
<h1 id=\"a-heading\">A heading</h1>
@csexton
csexton / gist:44b37892e5755e2f955a
Created September 9, 2014 15:07
How to switch Xcode versions used by xcrun
# Use the beta
sudo xcode-select -s /Applications/Xcode6-Beta7.app
# Switch Back
sudo xcode-select -s /Applications/Xcode.app
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
@csexton
csexton / captured.md
Created September 20, 2014 03:01
Work around the captured start at login bug

I am not sure what is up with the start at login box, has to do with the sandboxing rules. I am working to fix it, but in the mean time you can work around this bug:

System Preferences -> Users and Groups

screen

Login Items -> Click the "+" to add a new app, then browse for Captured.app

screen

#!/bin/bash
set -e
rm -rf ProximityKit.framework
unzip -d . ~/Desktop/pk/ProximityKit-v$1.zip
git add .
git commit -a -m "Version $1" || echo skip
git tag -a -m "Version $1" "v$1"
@csexton
csexton / gist:bb6267c4249fa68286dc
Created September 23, 2014 00:51
Output of `motion changelog`
= RubyMotion 2.33 =
* Added support for installing pre-releases of RubyMotion. The
`sudo motion update --pre' command will install a pre-release build in
`/Library/RubyMotionPre'. Currently, the pre-release channel contains
the first beta of RubyMotion for Android. Enjoy! ^_^
= RubyMotion 2.32 =
* The iOS 8.0 and OS X 10.10 versions of the runtime have been recompiled
@csexton
csexton / GistList!.md
Created September 28, 2014 16:25
Try GistList for iOS! http://gistlist.io/

##alt text GistList: TODO for coders alt text

5C95375B-10DB-46D8-B2FC-937D1F67BB13
% sudo “don’t ask why! just type what i’m typing!"
Password:
sudo: “don’t: command not found