Skip to content

Instantly share code, notes, and snippets.

View mtarnovan's full-sized avatar

Mihai Târnovan mtarnovan

View GitHub Profile
begin
s = <<EOL
# blank lines for illustrative purposes
raise "Error!!!"
begin
String.module_eval(<<EOL,__FILE__,__LINE__ + 1)
# blank lines for illustrative purposes
raise "Error!!!"
javascript:styles='body,td { font-family:Calibri,helvetica,arial,sans-serif; font-size:10pt; color:#808080; font-size-adjust:none; font-style:normal; font-variant:normal; font-weight:normal; } .admin td { font-family:Calibri,helvetica,arial,sans-serif; font-size:8.5pt; color:#000000; } .subtext td { font-family:Calibri,helvetica,arial,sans-serif; font-size: 7pt; color:#808080; } input { font-family:Courier; font-size:10pt; color:#000000; } input[type=\\"submit\\"] { font-family:Calibri,helvetica,arial,sans-serif; } textarea { font-family:Courier; font-size:10pt; color:#000000; } a:link { color:#1a1a1a; text-decoration:none; font-weight:normal; } a:visited { color:#808080; text-decoration:none; } .default { font-family:Calibri,helvetica,arial,sans-serif; font-size: 10pt; color:#808080; } .admin { font-family:Calibri,helvetica,arial,sans-serif; font-size:8.5pt; color:#000000; } .title { font-family:Calibri,helvetica,arial,sans-serif; font-size: 1em; color:#1a1a1a; } .adtitle { font-family:Calibri,helvetica,aria
javascript:styles='body,td { font-family:Calibri,helvetica,arial,sans-serif; font-size:10pt; color:#808080; font-size-adjust:none; font-style:normal; font-variant:normal; font-weight:normal; } .admin td { font-family:Calibri,helvetica,arial,sans-serif; font-size:8.5pt; color:#000000; } .subtext td { font-family:Calibri,helvetica,arial,sans-serif; font-size: 7pt; color:#808080; } input { font-family:Courier; font-size:10pt; color:#000000; } input[type=\\"submit\\"] { font-family:Calibri,helvetica,arial,sans-serif; } textarea { font-family:Courier; font-size:10pt; color:#000000; } a:link { color:#1a1a1a; text-decoration:none; font-weight:normal; } a:visited { color:#808080; text-decoration:none; } .default { font-family:Calibri,helvetica,arial,sans-serif; font-size: 10pt; color:#808080; } .admin { font-family:Calibri,helvetica,arial,sans-serif; font-size:8.5pt; color:#000000; } .title { font-family:Calibri,helvetica,arial,sans-serif; font-size: 1em; color:#1a1a1a; } .adtitle { font-family:Calibri,helvetica,aria
unicorn_prestart()
{
cd ${unicorn_dir}
ruby script/ferret_server -e production start
return 0
}
unicorn_prestop()
{
cd ${unicorn_dir}
gem install ruby-debug19 -- --with-ruby-include=/Users/mtarnovan/.rvm/src/ruby-1.9.2-head/
This is the ad on TV:
--------------------------------
| See more stuff on girls.com |
--------------------------------
This disambiguation happens usually:
=> girls.com => http://girls.com => http://www.girls.com => http://www.girls.com/index.html
This is what RFC 3986 #section 4.5 recommends against.
@mtarnovan
mtarnovan / install_textmate_stuff.sh
Created August 27, 2012 13:00
Install plugins, bundles and themes for textmate
#!/bin/bash
# plugins
cd ~/Downloads
curl -O http://cloud.github.com/downloads/protocool/AckMate/AckMate.1.1.1.zip
curl -O http://ciaranwal.sh/projectplus-files/ProjectPlus-1.3.dmg
unzip AckMate.1.1.1.zip && open AckMate.tmplugin && rm -rf AckMate.tmplugin && rm AckMate.1.1.1.zip
open ProjectPlus-1.3.dmg
cd /Volumes/ProjectPlus && open ProjectPlus.tmplugin
RuntimeError in Frontend::ContentController#index
ActionView::Helpers::ControllerHelper#params delegated to controller.params, but controller is nil: #<ActionView::Base:0x007ff943103288 @_config={}, @view_renderer=#<ActionView::Renderer:0x007ff943102748 @lookup_context=#<ActionView::LookupContext:0x007ff9431030f8 @details_key=nil, @details={:locale=>[:ro], :formats=>[:html, :text, :js, :css, :ics, :csv, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip, :xls], :handlers=>[:erb, :builder, :haml]}, @skip_default_locale=false, @cache=true, @prefixes=[], @rendered_format=nil, @view_paths=#<ActionView::PathSet:0x007ff943102c70 @paths=[]>>>, @_assigns={}, @_controller=nil, @view_flow=#<ActionView::OutputFlow:0x007ff943102720 @content={}>, @output_buffer=nil, @virtual_path=nil>
Rails.root: /Users/mtarnovan/work/factureaza/factureaza
Application Trace | Framework Trace | Full Trace
actionpack (3.2.13) lib/action_view/helpers/controller_helper.rb:1
@@ -71,7 +71,7 @@
if (this.isRTL){
this.picker.addClass('datepicker-rtl');
this.picker.find('.prev i, .next i')
- .toggleClass('icon-arrow-left icon-arrow-right');
+ .toggleClass('fa-arrow-left fa-arrow-right');
}
$(document).on('mousedown', function (e) {
// Clicked outside the datepicker, hide it
@@ -951,9 +951,9 @@