This file contains hidden or 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
| # Simple and Stupid Ruby API for Coderwall.com | |
| # Vivien Didelot <[email protected]> | |
| require "open-uri" | |
| require "json" | |
| module CoderWall | |
| class Achievement | |
| attr_reader :name, :badge, :description, :date |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| participantes = ["juanfunez", | |
| "hiroagustin", | |
| "brAzzi64", | |
| "euforiaz", | |
| "mberacochea", | |
| "gclaramunt", | |
| "Vico24v", | |
| "banafederico", | |
| "Andrés", |
This file contains hidden or 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
| fernando@endor ~/workspace/cubox/sinatra-test $ cat main.rb | |
| require 'sinatra' | |
| require 'slim | |
| get '/' do "Hello" | |
| end | |
| get '/:task' do |
This file contains hidden or 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
| for i in *.jpg; do | |
| convert -thumbnail 200 $i thumb.$i | |
| done |
This file contains hidden or 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
| file = File.new("/data/test.csv", "w+:utf-8") | |
| open("http://miservidorfalsoquenoexiste.com/archivo.csv", "r:iso-8859-1") do |f| | |
| file.write(f.read) | |
| end |
This file contains hidden or 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
| @mixin menu_list{ | |
| ul { list-style-type: none; } | |
| li { float: left; } | |
| } | |
| @mixin border_top($radius){ | |
| border-top-left-radius: $radius; | |
| border-top-right-radius: $radius; | |
| } |
This file contains hidden or 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
| use Mojolicious::Lite; | |
| use strict; | |
| use warnings; | |
| get '/' => sub{ | |
| my $self = shift; | |
| $self->render('index'); | |
| }; |
NewerOlder