This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. git clone VUESTRA_URL_DEL_PROYECTO | |
2. copiais el proyecto a la carpeta que se acaba de crear | |
----- | |
3. git add * | |
4. git commit -m "proyecto vacío" | |
5. git push origin master | |
--- | |
Cada vez que queráis algo repetís 3,4,5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Las madres saben mucho. Sus frases míticas son perlas de sabiduría popular que todo el mundo puede entender. | |
En esta charla, presentaré algunos principios de diseño de código (SOLID, encapsulación...) usando frases de madre y un enfoque fácil de entender para que puedas mejorar tus habilidades como desarrollador. | |
Algunas de las frases que usaré son: | |
* Si es que no estás a lo que tienes que estar. | |
* Mientras vivas en esta casa... (a.k.a. a ver cuando te independizas). | |
* Me da igual que lo hagas tú que tu hermana, pero cuando vuelva que esté hecho. | |
* No les llames tú, que hagan gasto ellos. | |
* No hables con desconocidos. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails ha dejado hace tiempo de ser ese framework pequeño con el código casi casi improvisado, | |
para ser un framework muy modular, con una parte importante de su comportamiento dependiendo | |
de middlewares, callbacks y clases padre semi ocultas en su base de código. | |
En las primeras versiones de rails, no era demasido complicado seguir el camino que hace una | |
petición por toda la pila, pero la nueva (y mejorada) arquitectura, hace que ahora sea más | |
difícil entender exactamente todos los puntos por los que pasa. | |
En esta charla, comentaré todos los puntos por los que avanza un request desde que sale del | |
browser hasta que llega convertido en un flamante response. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
<td class="Text13Grey numeric"> | |
<span id="invoice_paid_status_<%= invoice.url_id %>"> <%= partial_payment_in_redbox(invoice) %></span> | |
</td> | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# jazzfonica.rb for Mac OS X | |
# Scans the visible networks for JAZZTEL_XXXX or WLAN_XXXX and calculates the password | |
# Ported from PHP example at http://kz.ath.cx/wlan/codigo.txt | |
# Download and execute with ruby (e.g. ruby jazzfonica.rb) from a Terminal | |
#ported to ubuntu from https://gist.github.com/1024587 | |
#it will ask for sudo privileges. | |
#if your wlan card is not "wlan0" change the "my_wifi_card" variable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#kaminari uses different method names than will:paginate, but with a small add-on | |
#we can use it for paginating thinking sphinx results | |
ThinkingSphinx::Search.class_eval do | |
def num_pages | |
total_pages | |
end | |
def limit_value | |
per_page | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
google.pacman||function(){ | |
var a = true, e = false, g = {}, i = [1, 4, 2, 8], l = { | |
0: { | |
axis: 0, | |
increment: 0 | |
}, | |
1: { | |
axis: 0, | |
increment: -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Categorizable | |
module ClassMethods | |
def acts_as_categorizable | |
has_many :audience_scopes, :as => :audienciable | |
has_many :audience_categories, :through => :audience_scopes | |
has_many :areas, :through => :audience_scopes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'Essays1743Italic'; | |
src: url('Essays1743-Italic.eot'); | |
src: local('☺'), url('Essays1743-Italic.ttf') format('truetype'); | |
} | |
@font-face { | |
font-family: 'Essays1743Medium'; | |
src: url('Essays1743.eot'); | |
src: local('☺'), url('Essays1743.ttf') format('truetype'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby1.8 | |
# | |
# This file was generated by RubyGems. | |
# | |
# The application 'rails' is installed as part of a gem, and | |
# this file is here to facilitate running it. | |
# | |
require 'rubygems' |