Skip to content

Instantly share code, notes, and snippets.

View rymawby's full-sized avatar

Ry Mawby rymawby

View GitHub Profile
@rymawby
rymawby / metadata-tags-flexunit.as
Created July 9, 2013 14:04
Metadata tags for use with FlexUnit
[BeforeClass]
// Attributes: order, description, timeout, async, ui, user defined
[AfterClass]
// Attributes: order, description, timeout, async, ui, user defined
[Before]
// Attributes: order, description, timeout, async, ui, user defined
[After]
@rymawby
rymawby / setting-javascript-values-from-erb.erb
Created July 9, 2013 18:28
Setting javascript within erb files (rails).
<%= javascript_tag do %>
window.variable_name = <%=j rails_var %>;
<% end %>
@rymawby
rymawby / VBox.as
Last active December 19, 2015 13:59
Super simple as3 VBox.
package com.wegoodhq.view.component.ui.layout
{
import flash.display.DisplayObject;
public class VBox extends SelectableElement
{
private var _spacing:int;
private var _currentY:int = 0;
public function VBox(spacing:int = 0)
@rymawby
rymawby / add-unstaged-files-git.sh
Created July 10, 2013 13:36
Add unstaged files ready to commit (including deleted files) in git.
git add -u .
@rymawby
rymawby / make-st2-git-core-editor.sh
Created July 15, 2013 11:00
Make Sublime Text 2 the core editor for git on a mac
git config --global core.editor 'open -a "/Applications/Sublime Text 2.app"'
@rymawby
rymawby / git-prune-dry-run.sh
Created July 19, 2013 14:50
Shows you what branches in your local repo that would be deleted/pruned.
git remote prune origin --dry-run
@rymawby
rymawby / diff-two-urls.sh
Created July 19, 2013 16:26
Diff two URLs.
diff <(curl "<URL_1>") <(curl "<URL_2>")
@rymawby
rymawby / create-git-tag.sh
Created July 24, 2013 08:45
Creating a git tag
git tag -a v0.0.1 -m 'App version 0.0.1'
@rymawby
rymawby / git-push-tags.sh
Created July 24, 2013 09:07
Git push tags
git push --tags
@rymawby
rymawby / gist:6098669
Created July 28, 2013 13:58
Checkout tag to new branch
gco -b branch_name tags/v0.0.0