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 / 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 / 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 / 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;
@blude
blude / dabblet.css
Created December 13, 2012 17:26
Untitled
label[for="login"] {
color: red;
font-weight: bold;
}
img:not([width]):not([height]),
img[alt=""], img:not([alt]) {
outline: 2px solid red;
}
@blude
blude / gist:2496133
Created April 26, 2012 05:14
Primeiras experimentações com Pen-C.
// desenho formado por esse código:
// http://is.gd/sbxOxQ
void main(void) {
inicia();
origem(320, 240);
int i;