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
pdftohtml objects-on-rails.pdf | |
firefox objects-on-rails.html | |
pandoc -o objects-on-rails.markdown objects-on-railss.html | |
gvim objects-on-rails.markdown | |
pandoc -o objects-on-rails.txt objects-on-railss.html |
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
› ruby -v && gem -v && rails -v && bundle install && bundle exec rake | |
ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux] | |
1.8.24 | |
Rails 3.2.3 | |
Fetching gem metadata from http://rubygems.org/........ | |
Using rake (0.9.2.2) | |
Using i18n (0.6.0) | |
Using multi_json (1.3.5) | |
Using activesupport (3.2.0) | |
Using builder (3.0.0) |
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
PATH | |
remote: . | |
specs: | |
activeadmin (0.4.4) | |
bourbon (>= 1.0.0) | |
devise (>= 1.1.2) | |
fastercsv | |
formtastic (~> 2.1.1) | |
inherited_resources (>= 1.3.1) | |
jquery-rails (>= 1.0.0) |
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
# Este programa cambia el formato del tiempo | |
print "Inicio del tiempo: 00:00:00 del 01/01/2012" | |
segundos_trans = int(raw_input("Segundos transcurridos: ")) | |
minutos_trans = segundos_trans / 60 | |
segs = segundos_trans % 60 | |
horas_trans = minutos_trans / 60 | |
mins = minutos_trans % 60 |
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
# include <stdio.h> | |
# define MAX 10 | |
int duplicado(int const vector[], int last); | |
int main(void) { | |
int i, vector[MAX]; | |
for (i = 0; i < MAX; i++) { |
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
#include <stdio.h> | |
#include <math.h> | |
int main() | |
{ | |
float radio, perimetro, area; | |
printf("Ingrese el radio: "); | |
scanf("%f", &radio); | |
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
def assets_with_encoding_problems | |
results = {} | |
paths = ["app/assets", "lib/assets", "vendor/assets"] | |
paths.each do |path| | |
Dir[Rails.root + path + "**" + "*.{js,css}"].each do |file| | |
# make sure we're not trying to process a directory | |
raise "directory bad named: #{file} " if File.directory?(file) | |
# read the file and check its encoding | |
data = File.read(file) | |
results[file] = data unless data.valid_encoding? |
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
es-AR: | |
errors: | |
messages: | |
not_found: 'no encontrado' | |
already_confirmed: 'ya ha sido confirmada' | |
not_locked: 'no está bloqueada' | |
devise: | |
failure: | |
unauthenticated: 'Necesitas acceder a tu cuenta o registrarte antes de continuar.' |
NewerOlder