Skip to content

Instantly share code, notes, and snippets.

View blude's full-sized avatar
💜
PICO-8

Sarah Pratti blude

💜
PICO-8
View GitHub Profile
@blude
blude / keybase.md
Created April 23, 2020 17:26
Keybase Github Proof

Keybase proof

I hereby claim:

  • I am blude on github.
  • I am blude (https://keybase.io/blude) on keybase.
  • I have a public key ASANSoaIgZbYdT8iOplPphV6g3HJvI0gK1OdghZjKdzldAo

To claim this, I am signing this object:

@blude
blude / nested.py
Last active February 2, 2020 21:22
nested function test
points_list = []
def fora(x):
def dentro(y):
return x + y
return dentro
for i in range(points_list):
# break loop if this is the last item of the array
if i == len(points_list) - 1:
@blude
blude / nested-functions.py
Created February 2, 2020 19:54
python examples - nested functions and classes
"""
Resources:
----------
1. Nested functions https://stackabuse.com/python-nested-functions/
2. Packing problem: https://en.wikipedia.org/wiki/Packing_problems
- Answer on SO: https://stackoverflow.com/questions/7392143/python-implementations-of-packing-algorithm
"""
"""
Example #1: nested function
@blude
blude / exemplo-outlook.html
Last active December 23, 2015 02:34
Imagem de fundo em e-mails com código para Outlook
<table border="0" cellpadding="0" cellspacing="0" width="640">
<tr>
<td align="center" bgcolor="#bada55" background="path/to/file.jpg"
style="background-color: #bada55; background-image: url(path/to/file.jpg);">
<!--[if gte mso 9]>
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true"
stroke="false" style="width: 640px; height: 400px;">
<v:fill type="tile" src="path/to/file.jpg" color="#bada55" />
<v:textbox style="mso-fit-shape-to-text:true" inset="0,0,0,0">
<![endif]-->
@blude
blude / exemplo-browsers.html
Last active December 23, 2015 02:34
Imagem de fundo em e-mails
<table border="0" cellpadding="0" cellspacing="0" width="640">
<tr>
<td align="center" bgcolor="#bada55" background="path/to/file.jpg"
style="background-color: #bada55; background-image: url(path/to/file.jpg);">
<!-- content goes here -->
</td>
</tr>
</table>
@blude
blude / gist:9c984afc2632228e82ff
Last active August 29, 2015 14:05
Smooth Scrollminal
// shim layer with setTimeout fallback
window.requestAnimFrame = window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
function(callback) {
window.setTimeout(callback, 1000 / 60);
};
// $.scroll() function
;(function($) {
@blude
blude / .aliases
Created May 16, 2014 13:23
Terminal bonitista no Mac
# Easier navigation: .. and ...
alias ..="cd .."
alias ...="cd ../.."
# Shortcuts
alias d="cd ~/Dropbox"
alias p="cd ~/Projects"
alias g="git"
alias s="subl ."
@blude
blude / jsbin.IsITOpa.css
Last active January 3, 2016 11:58
Better Select Component
.SuperSelect {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
position: relative;
}
.SuperSelect-caixa {
display: block;
@blude
blude / dabblet.css
Created March 21, 2013 21:48
Untitled
.cena {
-webkit-perspective: 100px;
-webkit-perspective-origin: 60px 0;
}
.add {
width: 120px;
border: 1px solid #bbb;
background: #eee;
padding: 10px;
@blude
blude / dabblet.css
Created February 7, 2013 17:36
Untitled
.cena {
-webkit-perspective: 100px;
-webkit-perspective-origin: 60px 60px;
}
.add {
width: 120px;
border: 1px solid #bbb;
background: #eee;
padding: 10px;