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
## Image replacement de botao no CSS | |
## conforme feito no http://marcogomes.com | |
#searchForm input#searchsubmit{ | |
width:20px; | |
height:20px; | |
background:url("images/btbusca.png") no-repeat 0 0; | |
text-indent:-5000px; | |
overflow:hidden; | |
line-height:5000px;/* para IE */ |
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 | |
$mail_sent = mail( | |
'mvtgomes@gmail.com' | |
,'E-mail teste' . date('Y-m-d H:i:s @B') | |
,'datahora' . date('Y-m-d H:i:s @B') | |
,'From:adbird@marcogomes.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion() | |
); | |
if($mail_sent) |
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 postAtInterval($interval){ | |
$totalupdates = loadTotalUpdates($userprofileuri); | |
$oldtotalupdates = getOldTotalUpdates(); | |
if($oldtotalupdates + $interval < $totalupdates) | |
{ | |
//$updatestatus = $twitterapi->updateStatus('datetime: ' . date("Y-m-d G:i:s @ B")); | |
setNewTotalUpdates($totalupdates); | |
echo '<br />' . 'mandei anuncio!'; | |
} |
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
## Codigo | |
class Config(webapp.RequestHandler): | |
def get(self): | |
session = Session() | |
logged = session.checkLogin('self') | |
class Session(): | |
def checkLogin(app): | |
print app |
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
boo! | |
boo-box, empresa inovadora de marketing na Internet, está contratando profissionais de tecnologia pra integrar seu time de ninjas [o o] | |
O objetivo da boo-box é mudar o marketing na Internet, fazendo das mensagens publicitárias um serviço agradável e relevante para audiência, veículo e anunciante. Pra cumprir essa missão desenvolvemos novas interfaces e inteligência para exibição de anúncios relacionados com o conteúdo. | |
A boo-box nasceu em 2007 a partir de um projeto pessoal de um dos fundadores e um investimento de capital da Monashees Capital. A empresa tem recebido bastante destaque na mídia mainstream e especializada, com matérias em veículos como IDG Now!, Globo News, Você S/A, Epoca Negócios. |
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
<!-- AddThis Button END --> | |
<p><input type="button" value="« Õndice de NotÌcias" class="botaum" onClick="javascript:window.location.href='default.asp';"></p> | |
<div class="boo-box-noticias" id="boo-box-content"></div> | |
</td> | |
</tr> | |
</table> | |
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
<script> | |
var midiaEmbed = { | |
midiaId:905325, | |
autoStart:false, | |
escondeFimVideo:true | |
}; | |
var embed = new GMCEmbed(midiaEmbed); | |
embed.attach("meuembed"); | |
</script> | |
</div> |
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 flash.display.*; | |
import flash.net.URLRequest; | |
// esse codigo é um fork de <http://gist.github.com/22429> by @leandroferreira | |
var loaderzim:Loader = new Loader(); | |
loaderzim.contentLoaderInfo.addEventListener( "complete", onLoaderzimComplete ); | |
loaderzim.load(new URLRequest("arquivo.swf")); | |
addChild(loaderzim); | |
function onLoaderzimComplete( ev:Event ):void |
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 | |
// http://pipes.yahoo.com/marcogomes/joinfeeds?_render=json | |
$myfeed = "http://pipes.yahoo.com/marcogomes/joinfeeds?_render=json"; | |
$contents = file_get_contents($myfeed); | |
$contents = utf8_encode($contents); | |
$results = json_decode($contents); | |
// isso funciona |
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
# exemplo de JSON do Yahoo Pipes | |
// http://pipes.yahoo.com/marcogomes/joinfeeds?_render=json | |
// beautificado com http://is.gd/8cqI | |
{ | |
"count": 34, | |
"value": { | |
"title": "joinFeeds", | |
"description": "Pipes Output", | |
"link": "http://pipes.yahoo.com/pipes/pipe.info?_id=KGKDuMy13RGuSmP6pQt1Yg", | |
"pubDate": "Wed, 19 Nov 2008 14:32:48 -0800", |
OlderNewer