Skip to content

Instantly share code, notes, and snippets.

View spacecowb0y's full-sized avatar

Diego spacecowb0y

View GitHub Profile
@spacecowb0y
spacecowb0y / gmail_will_paginate.rb
Created February 4, 2013 14:31
Gmail pagination style with Will Paginate
# config/initializers/gmail_will_paginate.rb
# USAGE:
# <%= will_paginate(@posts, :renderer => WillPaginate::Gmail) %>
module WillPaginate
class Gmail < ::WillPaginate::ActionView::LinkRenderer
def pagination
[:window, :pagination_buttons]
end
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
Started PUT "/manager/projects/1" for 127.0.0.1 at 2013-05-07 19:32:00 -0300
Processing by Manager::ProjectsController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"chEAfffsI3HcHlPqBn0LfQxIO/V7DhXj6wQ2j3jSIi8=", "project"=>{"milestones_attributes"=>{"0"=>{"pages"=>"1", "budget"=>"2", "development_cost_amount"=>"3", "developer_id"=>"1", "is_completed"=>"1", "is_delivered"=>"0"}}}, "commit"=>"Save", "id"=>"1"}
Project Load (0.3ms) SELECT `projects`.* FROM `projects` WHERE `projects`.`id` = 1 LIMIT 1
(0.1ms) BEGIN
SQL (0.3ms) INSERT INTO `activities` (`created_at`, `key`, `owner_id`, `owner_type`, `parameters`, `recipient_id`, `recipient_type`, `trackable_id`, `trackable_type`, `updated_at`) VALUES ('2013-05-07 22:32:00', 'project.update', NULL, NULL, '--- {}\n', NULL, NULL, 1, 'Project', '2013-05-07 22:32:00')
SQL (5.9ms) INSERT INTO `project_milestones` (`budget`, `created_at`, `developer_id`, `development_cost_amount`, `is_completed`, `is_delivered`, `pages`, `project_id`, `up
RewriteEngine on
# Hide Directories
Options -Indexes
# Redirects
ErrorDocument 404 http://www.pixel2html.net/
ErrorDocument 401 http://www.pixel2html.net/
ErrorDocument 403 http://www.pixel2html.net/
RewriteCond %{HTTP_HOST} ^pixel2wp.com$ [OR]
Backend::Application.routes.draw do
namespace :manager do
resources :projects do
scope :module => "projects" do
resources :activities, as: 'activity', path: 'activity', only: [:index, :destroy]
resources :milestones
resources :tickets
resources :invoices
<div class="day">
<ul>
<% date = Time.now+1.day %>
<% price = 150 %>
<% 7.times do |i| %>
<% date += 1.day %>
<% price -= 10 %>
<% if date.strftime("%u").to_i > 5 %>
<% date = date+2.day %>
<% end %>

HTML and CSS code guide

Standards for developing flexible, durable, and sustainable HTML and CSS.


Table of contents

// init and stop the inner slideshows
var inners = $('.gallery-project .gallery-images').cycle().cycle('stop');
var slideshow = $('#slideshow').cycle({
fx: 'fade',
speed: 300,
timeout: 0,
prev: '#prev',
next: '#next',
before: function() {

11 Características de los estudiantes altamente creativos

Dean Rieck es un creativo y exitoso redactor de marketing directo. Recientemente ha publicado esta obra "¿Tiene Ud. estas 11 características de las personas altamente creativas?" en el maravilloso sitio Copyblogger.

Como mi título sugiere, estos 11 rasgos deberían fomentarse y desarrollarse en nuestros estudiantes. Estándares, pruebas y planes de estudios aprobados son importantes, pero no es suficiente. Tenemos que desarrollar lo que los alumnos realmente necesitan para tener éxito en el futuro. La creatividad es la ventaja que necesitan y tenemos que hacer lo mejor para desarrollarla.

Así que, gracias a Dean, aquí están 11 rasgos que los estudiantes necesitan para desarrollar su creatividad.

  1. "Tenga la VALENTíA de probar cosas nuevas y tomar riesgos. Cada gran avance empieza como una idea alocada. Esto no significa que usted debe ir constantemente con lo más atrevido, sólo que debe equilibrar su cartera de soluciones de rutina con una
@spacecowb0y
spacecowb0y / tracklist.txt
Created October 1, 2013 18:18
Hitparade tracklist
0:00 • Nils Ohrmann - In Ya Face
3:55 • Fritz Kalkbrenner - Kings
6:17 • Paul Kalkbrenner - Bengang
9:08 • Super Flu - Euterpeh
13:03 • andhim - Aleefee
17:30 • Mooryc - All Those Moments
20:54 • Theophilus London - Wine And Chocolates
24:45 • Theophilus London - Last Name London (Brodinski Remix)
28:10 • Klangkarussell - Sternenkinder
34:30 • andhim - Bermudachords