- Sin fines de lucro
- Moderaci贸n abierta. Administrador s贸lo quita el spam
- Compartir c贸digo bajo una cuenta de organizaci贸n de Github
- El grupo es una democracia
- Cuando la democracia no es suficiente (empate etc), entra la meritocracia
- Comete errores (quien no los comete no aprende)
- Pide ayuda
- Divi茅rtete, quien no disfruta lo que hace, lo hace mal...
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
| me: es hora de traer a este chat la diversi贸n, es hora de que todos escuchen est谩 canci贸n | |
| me: no es solamente un verso chiquito, a esto le llamamos el rap de quito! | |
| me: uso variables y constantes a montones, prendo REGISTER_GLOBALS aunque se te caigan los calzones. | |
| [PrZ] (8) programo en una capa y programo poquito, no uso versionador, todo esta en el folder quito | |
| me: no me preocupo por evitar colisiones, separo mis nombres uzando guiones. | |
| [alexperto] jajaja ahora hablaremos con puras rimas, porque asi es como les gusta a tus primas |
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
| -- We get a list of gradoid's for a certain pedido id | |
| SELECT | |
| mp.grado, | |
| g.gradoid | |
| FROM | |
| pedido AS p JOIN material_del_pedido AS mp USING(pedidoid) LEFT JOIN grado AS g USING(grado) | |
| WHERE | |
| p.escuelaid = 9 AND | |
| p.ciclo = '2010-2011' AND |
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
| Person = { | |
| instance: function(name, lastname) | |
| { | |
| var base = this; | |
| base._private = {} | |
| base._public = {} | |
| base._private.name = name; | |
| base._private.lastname = lastname; |
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
| def anonymize(value, options={}) | |
| options[:percent] ||= 0.6 | |
| options[:percent] = options[:percent] * 0.01 if options[:percent] > 1 | |
| options[:char] ||= '*' | |
| value_length = value.split( options[:split_by] ).first.length if options[:split_by] | |
| value_length ||= value.length | |
| obfuscated_length = ( value_length * options[:percent] ).floor | |
| start_at = (( value_length - obfuscated_length) / 2).ceil - 1 |
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
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'nokogiri' | |
| require 'open-uri' | |
| doc = Nokogiri::HTML(open('http://abuguet.net/rosa/')) | |
| puts doc.css('#episodio').to_s.gsub(/<\/?[^>]*>/, '').strip |
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
| def luhn_checksum | |
| odd = true | |
| checksum = card_number.reverse.split(//).map(&:to_i).map do |digit| | |
| digit *= 2 if odd = !odd | |
| digit > 9 ? digit - 9 : digit | |
| end.sum | |
| checksum % 10 == 0 | |
| 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
| #!/usr/bin/env ruby | |
| require 'net/http' | |
| require 'uri' | |
| HUBOT_URI = ( ENV['HUBOT_URI'] || "http://your-domain.herokuapp.com/" ) | |
| OPTS = { | |
| "partychat-hook" => ( ENV['PARTYCHAT_HOOK'] || "foo" ), | |
| "reporter" => ( ENV['PARTYCHAT_REPORTER'] || "[Reporter]" ), |
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
| # Generated by iptables-save v1.4.10 on Sun Apr 22 03:00:29 2012 | |
| *filter | |
| :INPUT DROP [59:1664] | |
| :FORWARD DROP [0:0] | |
| :OUTPUT ACCEPT [49:5928] | |
| -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT | |
| -A INPUT -p icmp -m icmp --icmp-type 11 -j ACCEPT | |
| -A INPUT -p icmp -m icmp --icmp-type 4 -j ACCEPT | |
| -A INPUT -p icmp -m icmp --icmp-type 3 -j ACCEPT | |
| -A INPUT -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT |
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
| #!/usr/bin/env ruby | |
| require 'fileutils' | |
| ARGV.each_with_index do |file, index| | |
| next unless File.exists?( file ) | |
| filename_arr = File.basename( file ).split '_' | |
| # Make sure to add a couple of seconds |
OlderNewer