Depois de muito tempo, retomando a tentativa inicial. Me dei conta que não iria conseguir fazer o que pretendia inicialmente. Não pude abrir os arquivos como gostaria a partir do gist diretamente na tela do browser a partir do domínio do blog. O Gist envia um header de content-type = text/plain. Isso leva aos browsers a interpretarem o conteúdo como texto. O único que não entendia a mensagem, como sempre era o Internet Explorer. Que nesse caso exibia o arquivo da forma que eu queria (e obviamente incorreta). Como o público alvo que eu tinha em mente são as pessoas devidamente equipadas para acessar um blog (ou seja, usuário de browsers) abandonei logo esse resultado e voltei às pranchetas. o resultado está descrito em um post mais recente, Primeiro post.
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
jsonped = function(callback, params) { | |
callback.apply(callback, params); | |
} | |
alert('loaded'); |
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
#!/usr/bin/env ruby | |
# Jabber-SH — SH console via XMPP/Jabber (GTalk) | |
# | |
# Jabber-SH allows you to administrate a remote computer via a command line | |
# through a Jabber client. It’s like SSH via GoogleTalk! :) | |
# This is just a hack but it might be usefull sometime to run basic commands | |
# on a machine that is not accessible via ssh. | |
# | |
# Philippe Creux. pcreux/AT/gmail/DOT/com |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf8" /> | |
<script type="text/javascript" charset="utf-8" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> | |
<script> | |
$(function(){ | |
src = "http://gist.github.com/api/v1/json/gists/formigarafa" | |
$.getJSON(src, function(data){ | |
alert(data); | |
}) |
#whatever
you want here
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 | |
$list_to_check = array( | |
array(2,2), | |
array(2,3), | |
array(3,3), | |
array(3,2) | |
); | |
// var_dump($list_to_check); |
NewerOlder