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:
I hereby claim:
To claim this, I am signing this object:
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: |
""" | |
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 |
<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]--> |
<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> |
// shim layer with setTimeout fallback | |
window.requestAnimFrame = window.requestAnimationFrame || | |
window.webkitRequestAnimationFrame || | |
window.mozRequestAnimationFrame || | |
function(callback) { | |
window.setTimeout(callback, 1000 / 60); | |
}; | |
// $.scroll() function | |
;(function($) { |
# Easier navigation: .. and ... | |
alias ..="cd .." | |
alias ...="cd ../.." | |
# Shortcuts | |
alias d="cd ~/Dropbox" | |
alias p="cd ~/Projects" | |
alias g="git" | |
alias s="subl ." |
.SuperSelect { | |
-webkit-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
position: relative; | |
} | |
.SuperSelect-caixa { | |
display: block; |
.cena { | |
-webkit-perspective: 100px; | |
-webkit-perspective-origin: 60px 0; | |
} | |
.add { | |
width: 120px; | |
border: 1px solid #bbb; | |
background: #eee; | |
padding: 10px; |
.cena { | |
-webkit-perspective: 100px; | |
-webkit-perspective-origin: 60px 60px; | |
} | |
.add { | |
width: 120px; | |
border: 1px solid #bbb; | |
background: #eee; | |
padding: 10px; |