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 com.geleca.as3.loading | |
{ | |
import com.geleca.as3.net.SimpleNetStream; | |
import com.geleca.as3.util.SimpleTimer; | |
import flash.events.Event; | |
import flash.events.TimerEvent; | |
import flash.net.NetConnection; | |
import flash.net.NetStream; | |
import flash.utils.Timer; |
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 com.geleca.as3.loading | |
{ | |
import com.geleca.as3.net.SimpleNetStream; | |
import com.geleca.as3.util.SimpleTimer; | |
import flash.events.Event; | |
import flash.events.TimerEvent; | |
import flash.net.NetConnection; | |
import flash.net.NetStream; | |
import flash.utils.Timer; |
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
#!/bin/bash | |
man -t $1 > $2.ps | |
/System/Library/Printers/Libraries/convert -f $2.ps -o $2 | |
rm $2.ps | |
#usage example: ./man-to-pdf git ~/Desktop/git.pdf |
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
#file: git-clone-branch | |
mkdir $3 | |
cd $3 | |
git init | |
echo "readme" > README | |
git add README | |
git commit -m "first commit" | |
git branch $2 | |
git checkout $2 |
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
; Hello World in assembly for mac | |
; nasm -f macho hello.asm | |
; ld -e _start -o hello hello.o | |
; | |
section .text | |
global _start ;must be declared for linker (ld) | |
_syscall: | |
int 0x80 ;system call | |
ret |
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
//oop | |
Function.prototype.extends = function(parentClassOrObject){ | |
if(parentClassOrObject.constructor == Function) | |
{ | |
//normal inheritance | |
this.prototype = new parentClassOrObject; | |
this.prototype.constructor = this; | |
this.prototype.super = parentClassOrObject.prototype; | |
} |
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
#content: '-(void)executeCommand:(NSString *)name waitFinish:(BOOL)waitFinish;' | |
item = item.gsub!(/-\(.*\)/, "") #removing return types | |
#expected: executeCommand:(NSString *)name waitFinish:(BOOL)waitFinish | |
#returning: waitFinish; |
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
[ | |
{ "id": "1", | |
"nome": "Confraterniza\u00e7\u00e3o 1", | |
"responsavel": "Ana Luiza 1", | |
"local":"Itamaraty Hall", | |
"saloes":"Foyer Água Marina, Foyer Turquesa", | |
"data":"2012-02-06", | |
"inicio":"14h", | |
"termino":"17h", | |
"convidados": [ |
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
[ | |
{ "id": "1", | |
"nome": "Confraterniza\u00e7\u00e3o 1", | |
"responsavel": "Ana Luiza 1", | |
"local":"Itamaraty Hall", | |
"saloes":"Foyer Água Marina, Foyer Turquesa", | |
"data":"2012-02-06", | |
"inicio":"14h", | |
"termino":"17h", | |
"convidados": [ |
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
[ | |
{ "id": "1", | |
"id_tipo_servico": "1", | |
"nome": "Confraterniza\u00e7\u00e3o 1", | |
"responsavel": "Ana Luiza 1", | |
"local":"Itamaraty Hall", | |
"saloes":"Foyer Água Marina, Foyer Turquesa", | |
"data":"2012-02-06", | |
"inicio":"14h", | |
"termino":"17h", |
OlderNewer