I hereby claim:
- I am categulario on github.
- I am categulario (https://keybase.io/categulario) on keybase.
- I have a public key whose fingerprint is 5443 81E7 7008 CCC2 AEC3 1AA4 0DD5 A530 A716 D609
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import requests | |
| import os | |
| import re | |
| def get_line(iterator, condition): | |
| counter = 0 | |
| for line in iterator: | |
| if condition(line): | |
| return line | |
| counter += 1 |
| import unittest | |
| from itertools import takewhile, dropwhile, zip_longest | |
| import json | |
| from pprint import pprint | |
| def largest_prefix(string1, string2): | |
| return '/'.join( | |
| map( | |
| lambda x:x[0], | |
| takewhile( |
| from turtle import * | |
| def square(size): | |
| for i in range(4): | |
| forward(size) | |
| left(90) | |
| def cantor(size, tolerance): | |
| init = pos() |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf8"> | |
| <title>Clock</title> | |
| <style type="text/css"> | |
| .hero-circle{ | |
| width:180px; | |
| height:180px; | |
| position:relative; |
Estas son algunas cosas que deberían pensar en tener en su mochila para salir de campamento a media montaña. Eviten a toda costa llevar cosas en las manos para viajar más cómodos, así que traten de meterlo todo en una mochila.
El equipaje se divide en abrigo, comidaytodo lo demás`.
El abrigo se suele dividir en tres capas, de la más interna a la más externa. Durante la caminta de ascenso es recomendable ir más bien ligero pues al caminar se suda, con un suéter o chaleco basta para cubrir las primeras tres cuartas partes del viaje.
| <?php | |
| if(!defined('STDOUT')) | |
| { | |
| define('STDOUT', fopen(base_path().'/application.log', 'a')); | |
| } | |
| /** | |
| * provides an useful function for logging things to a file instead of sendind | |
| * anything to the browser, for example var_dumps | |
| */ |
| # validate github signature | |
| import hashlib | |
| import hmac | |
| import json | |
| signature = hmac.new(GITHUB_TOKEN, payload, hashlib.sha1).hexdigest() | |
| # assuming that the 'payload' variable keeps the content sent by github as plain text | |
| # and 'headers' variable keeps the headers sent by GitHub |
| <?php | |
| $filename = "changeme.csv"; | |
| $handle = fopen($filename, "r"); | |
| $contents = fread($handle, filesize($filename)); | |
| fclose($handle); | |
| if (!mb_check_encoding($contents, 'UTF-8') | |
| OR !($contents === mb_convert_encoding(mb_convert_encoding($contents, 'UTF-32', 'UTF-8' ), 'UTF-8', 'UTF-32'))) { |