Skip to content

Instantly share code, notes, and snippets.

View danielres's full-sized avatar

Daniel Reszka danielres

View GitHub Profile
@danielres
danielres / .bashrc_personal_base
Created March 11, 2011 19:39
bashrc personal settings
#!/bin/bash
## BASE #########
#BASH
alias ..="cd .."
alias j="jobs"
#GIT
alias gs="git status"
function ga { git add $* && gs; }
@danielres
danielres / sass.xml
Created March 24, 2011 15:22
Jedit modes
<?xml version="1.0"?>
<!DOCTYPE MODE SYSTEM "xmode.dtd">
<MODE>
<PROPS>
<PROPERTY NAME="wrap" VALUE="none"/>
rendering a custom plugin
<% content_for :page_title do %>
<%= @destination.title %>
<% end %>
<% content_for :page_body do %>
<section>
<h1>Choose from our most popular recommended itineraries below</h1>
</section>
rendering a custom plugin
<% content_for :page_title do %>
<%= @destination.title %>
<% end %>
<% content_for :page_body do %>
<section>
<h1>Choose from our most popular recommended itineraries below</h1>
</section>
@danielres
danielres / application.html.erb
Created April 19, 2011 21:05
random personal notes and reminders related to my funny adventures with Refinery CMS
<%# To enable theming: %>
<%= render :partial => "/shared/head", :locals => {:theme => true} %>
@danielres
danielres / _boxed.html.haml
Created May 2, 2011 20:40
renderl rails helper, to make collections renderable with a layout
%div.box
= yield
@danielres
danielres / wider.htm
Created February 9, 2012 16:37
CSS: using negative margin to make elements wider than their outside block
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="generator" content="PSPad editor, www.pspad.com" />
<style type="text/css">
#wrapper {width:90%;}
#container {text-align:left; width:100%;}
@danielres
danielres / application.css
Created February 20, 2012 18:32
advanced compass usage with blueprint grid & scaffolding, and color theory
/* resulting css after compilation */
html {
margin: 0;
padding: 0;
border: 0; }
.bp-reset-element, body, h1, h2, h3, h4, h5, h6, article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, blockquote, q, th, td, caption, table,
div, span, object, iframe, p,
pre, a, abbr, acronym, address,
@danielres
danielres / missing_translations.rb
Created June 1, 2012 12:25 — forked from oriolgual/missing_translations.rb
No more missing translations in Rails thanks to Cucumber!
# features/support/missing_translations.rb
missing_translations = []
After do |scenario|
temp = all('.translation_missing')
if temp.any?
missing_translations << temp.to_a
raise "Missing Translation"
end
@danielres
danielres / .livereload
Created July 12, 2012 21:46
Compass & livereload config files for rails 3.2
# Lines starting with pound sign (#) are ignored.
# additional extensions to monitor
config.exts << 'haml'
# exclude files with NAMES matching this mask
#config.exclusions << '~*'
# exclude files with PATHS matching this mask (if the mask contains a slash)
#config.exclusions << '/excluded_dir/*'
# exclude files with PATHS matching this REGEXP