Skip to content

Instantly share code, notes, and snippets.

@fro
fro / scopes.txt
Created Apr 21, 2016 — forked from iambibhas/scopes.txt
Sublime Text 2: Snippet scopes
View scopes.txt
Here is a list of scopes to use in Sublime Text 2 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
CoffeeScript: source.coffee
@fro
fro / Full Trace
Created Mar 17, 2016
Rails 3.2.22.2 with activeadmin 0.4.3
View Full Trace
activeadmin (0.4.3) app/assets/stylesheets/active_admin/mixins/_sections.css.scss:6:in `box-shadow'
activeadmin (0.4.3) app/assets/stylesheets/active_admin/mixins/_sections.css.scss:6:in `section-header'
activeadmin (0.4.3) app/assets/stylesheets/active_admin/_forms.css.scss:16
activeadmin (0.4.3) app/assets/stylesheets/active_admin/_base.css.scss:9
app/assets/stylesheets/active_admin.css.scss:12
sass (3.4.21) lib/sass/tree/visitors/perform.rb:349:in `block in visit_mixin'
sass (3.4.21) lib/sass/stack.rb:98:in `block in with_mixin'
sass (3.4.21) lib/sass/stack.rb:115:in `with_frame'
sass (3.4.21) lib/sass/stack.rb:98:in `with_mixin'
sass (3.4.21) lib/sass/tree/visitors/perform.rb:347:in `visit_mixin'
@fro
fro / config.log
Created Mar 23, 2015
config.log output after `$ rbenv install 1.9.2-p0` failed install
View config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure --prefix=/Users/robert/.rbenv/versions/1.9.2-p0 --with-libyaml-dir=/usr/local/opt/libyaml
## --------- ##
## Platform. ##
View Gemfile
source 'http://rubygems.org'
ruby '1.9.3'
gem 'rails', '3.1.10'
gem 'pg', '0.12.0'
gem 'sprockets', '2.0.4'
gem 'sass-rails', '3.1.4'
gem 'coffee-rails', '3.1.1'
gem 'uglifier'
@fro
fro / MyCustomPlayer.as
Created Jan 17, 2013
This is a simplified pseudo-code example of my main Class which extend the (fl5) Player class
View MyCustomPlayer.as
package {
// [ ... ]
// simplified pseudo-code to show the mecanism...
public class MyCustomPlayer extends Player {
// [ ... ]
private function setComponents():void {
@fro
fro / gist:1683557
Created Jan 26, 2012
the_sortable_tree gem: erb version of partials
View gist:1683557
# _children.html.erb
<%= content_tag :ol, raw(children) %>
# _controls.html.erb
<%-
edit = link_to '', polymorphic_url(node, :action => :edit), :title => t('.edit_this'), :class => 'button edit'
if opts[:has_children]
delete = link_to('', url_for(node),
:title => t('.delete'),
:method => :delete,
@fro
fro / rspec-syntax-cheat-sheet.rb
Created Nov 10, 2011 — forked from dnagir/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
View rspec-syntax-cheat-sheet.rb
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
You can’t perform that action at this time.