Skip to content

Instantly share code, notes, and snippets.

View raelmax's full-sized avatar
🏠
Working from home

Rael Max raelmax

🏠
Working from home
View GitHub Profile

Desenvolvedor @ TechTudo - Globo.com

Estamos procurando um bom desenvolvedor com o seguinte perfil:

  • HTML avançado, incluindo tópicos como HTML5, canvas, vídeo e desenvolvimento web para iPhone/iPad
  • Javascript avançado (saber só jQuery, sem entender a linguagem não vale)
  • Experiência em desenvolvimento web/server side
  • Entendimento básico de infra-estrutura. Protocolos, redes e funcionamento de um sistema de computadores.
@timoteoramos
timoteoramos / jquery_skel.js
Created January 18, 2011 14:48
A basic draft of a jQuery-based project
"use strict";
(function() {
function BaseClass($) {
// element collection
var elements = [];
// if element isn't null, then set it as current element
var checkElement = function(el) {
if(el) {
window['Base'].CurrentElement = el;
@turicas
turicas / email_utils.py
Last active April 9, 2024 19:56
Send emails easily in Python (with attachments and multipart)
#!/usr/bin/env python
# coding: utf-8
# This little project is hosted at: <https://gist.github.com/1455741>
# Copyright 2011-2020 Álvaro Justen [alvarojusten at gmail dot com]
# License: GPL <http://www.gnu.org/copyleft/gpl.html>
import os
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
@hersonls
hersonls / devitz2013_palestras.json
Last active December 14, 2015 13:08
#Devitz 2013 - Propostas de palestras
[
{
"tema": "Desenvolvimento mobile por onde começar?",
"autor": "Nonilton",
"objetivo": ""
},
{
"tema" : "(RWD) Responsive Web Design: Por uma interface na medida",
"autor": "Emmanuel",
"objetivo": "O objetivo seria conscientizar os novos desenvolvedores da importância do desenvolvimento responsivo e tornar claro aos que pretendem iniciar na programação web que o RWD é um caminho sem volta."
@nimbus154
nimbus154 / dictionary.py
Created April 21, 2013 23:54
An example of how to write functional tests for a RESTful API using the Bottle microframework.
from bottle import get, run, request, post, Bottle, abort, error, response, debug, redirect
# This is a dictionary endpoint. It retrieves definitions for words.
# You can also add words to the dictionary.
# this allows our bottle application to be accessible outside this file
app = Bottle()
dictionary = {
"lugubrious": "extremely sad",
@fnando
fnando / giffy
Last active July 1, 2020 02:30
Export video files as GIF
#!/usr/bin/env bash
if [[ ! -f "$1" ]]; then
echo "=> Movie file not found"
exit 1
fi
tempfile=/tmp/output.gif
rm -f $tempfile
@juanbzpy
juanbzpy / decorator.py
Last active June 1, 2021 20:33
bottle.py basic auth examples
from bottle import route, run, auth_basic
from passlib.hash import sha256_crypt
def check_pass(username, password):
hashed = ''.join(redis.hmget(username, "password"))
return sha256_crypt.verify(password, hashed)
@route('/', method='GET')
@auth_basic(check_pass) # <-- decorator
def index():
@staltz
staltz / introrx.md
Last active July 29, 2024 05:55
The introduction to Reactive Programming you've been missing
@imjasonh
imjasonh / markdown.css
Last active May 24, 2024 22:56
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@paulirish
paulirish / what-forces-layout.md
Last active July 30, 2024 14:08
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent