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
CmdUtils.makeBookmarkletCommand({ | |
name: "Google Reader", | |
homepage: "http://reinaldojunior.net/", | |
author: { name: "Reinaldo de Souza Jr", email: "[email protected]"}, | |
license: "GPL", | |
icon: "http://www.google.com.br/reader/ui/favicon.ico", | |
preview: "Inscreve o feed RSS dessa página no Google Reader", | |
/* | |
//Poderia utilizar isso para encontrar os FEEDs da pagina atual | |
preview: function( pblock ) { |
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 | |
//Inicia a sessão | |
session_start(); | |
//Inicia a variável | |
if(! array_key_exists('sesTestando', $_SESSION) ){ | |
$_SESSION['sesTestando'] = 0; | |
} | |
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
if [ "\$(type -t __git_ps1)" ]; then | |
PS1="\$(__git_ps1 '(%s) ')$PS1" | |
fi |
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 | |
/* | |
incluo a classe que eu vou usar, confiando que no "ambiente" $dir_raiz vai me dar o diretorio raiz em relação a aplicação rodando. | |
*/ | |
include($dir_raiz.'/classes/pai.php'); | |
class Filha extends Pai | |
{ | |
public $var1 = 'SimSimSim'; |
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
## This solves "Font not found Helvetica" problems with running GnuStep apps | |
## Make the fonts and leave them in the Fonts directory | |
cd /usr/share/GNUstep/Fonts | |
mknfonts /usr/share/fonts/truetype/freefont/* |
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
diff --git a/html/toc.html b/html/toc.html | |
index 326f0a9..663970f 100644 | |
--- a/html/toc.html | |
+++ b/html/toc.html | |
@@ -8,6 +8,7 @@ | |
<body> | |
<h1>Table of Contents</h1> | |
-Please enter your text here. | |
+Please enter your text 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
/* | |
Ao usar o ifndef (if not defined) o pre-processador só vai inserir o texto dentro do ifndef | |
se a constante __D_HEADER__ (deve ser uma constante unica, por isso os __ antes e depois) não estiver definida =D | |
*/ | |
#ifndef __D_HEADER__ | |
#define __D_HEADER__ | |
/* Assinatura das funções de D.h */ | |
#endif |
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
/* | |
* HelloWorld Example | |
* Based on: http://developer.android.com/resources/tutorials/hello-world.html | |
*/ | |
application "Hello, Android!" => com.example.android.hellodroid { | |
string hello = "Hello, Android! I am a string resource!" | |
screen HelloDroid { | |
# textView: @string hello |
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
/* | |
* HelloViews (Linear Layout) | |
* Based on: http://developer.android.com/resources/tutorials/views/hello-linearlayout.html | |
*/ | |
application "Hello, Android!" => com.example.android.hellodroid { | |
screen HelloDroid { | |
# linear layout { | |
orientation: vertical; |
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
/* | |
* Relative Layout Example | |
* Based on: http://developer.android.com/resources/tutorials/views/hello-relativelayout.html | |
*/ | |
application "Hello, Android!" com.example.android.hellodroid { | |
activity HelloDroid { | |
=> show main | |
} |
OlderNewer