Eu não nasci pra escrever em blog, eu já tentei algumas vezes manter um, mas é bem complicado pra mim, não porque eu sou muito ocupado, eu basicamente não consigo manter o blog atualizado, mesmo que eu tenha vontade de escrever algo eu vou procrastinando até que não escrevo. Há algumas semanas estou pensando em criar um blog pra colocar minhas idéias ou qualquer outras coisas relacionada a código. Mas eu sei que não vou manter ele atualizado, então acho que aqui é um bom lugar pra escrever de vez em quando.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function volumeCilindro($raio, $altura) | |
{ | |
$volume = M_PI * pow($raio, 2) * $altura; | |
return round($volume, 2); | |
} | |
echo volumeCilindro(2, 10); //125.66 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PPW.init({ | |
charts : [ | |
{ | |
type : 'line', | |
element : '#first', | |
chartOptions : { | |
animation : true | |
}, | |
chartData : { | |
labels : ["January","February","March","April","May","June","July"], |
etc etc var code = 'test'
etc etc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function loop(){ | |
requestAnimationFrame(loop); | |
}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
var del = require('del'); | |
var htmlmin = require('gulp-htmlmin'); | |
var smoosher = require('gulp-smoosher'); | |
var cssmin = require('gulp-cssmin'); | |
var es = require('event-stream'); | |
var htmlbuild = require('gulp-htmlbuild'); | |
var runSequence = require('run-sequence'); |
~/Tilemap$ lime test neko
Invalid operation (%)
Called from flixel/tile/FlxTilemap.hx line 2122
Called from flixel/tile/FlxTilemap.hx line 394
Called from PlayState.hx line 70
Called from flixel/FlxGame.hx line 583
Called from flixel/FlxGame.hx line 668
Called from flixel/FlxGame.hx line 648
Called from flixel/FlxGame.hx line 493
'What Colour Is It' in 466 bytes
annotated.html
have comments to explain what is happening in that script;
- Responsive;
- Font resize based on the size of the window;
- Should take care of retina displays (i can't test)!
- Should support all recent browsers. (but i can't test all of then, would be nice some help).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
filter_regex = re.compile('[^a-zA-Z\s]+') | |
def string_filter(word): | |
'''(str) > str | |
Remove marks from a string | |
>>> string_filter('hi!') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ; | |
import flash.display.Graphics; | |
import flixel.FlxG; | |
import flixel.FlxObject; | |
import flixel.util.FlxPoint; | |
import flixel.util.FlxColor; | |
import flixel.util.FlxArrayUtil; | |
import flixel.plugin.PathManager; | |
import flixel.interfaces.IFlxDestroyable; |
OlderNewer