List deleted files and removes each
$ git ls-files -d | xargs git rm
Show a text-based graphical representation
$ git log --graph
Ignoring changes in tracked files
#!/usr/bin/python | |
# Filename: CaesarCipher.py | |
# Author: Hercules Lemke Merscher | |
class CaesarCipher(object): | |
''' Cifra de Cesar.''' | |
def encrypt(self, msg, key): | |
if msg == None: return None |
import java.util.Scanner; | |
/** | |
* Programa simples que implementa a cifra Cesar. | |
* -> Contem bloco principal com exemplo de funcionamento. | |
* | |
* Mais informacoes: | |
* http://pt.wikipedia.org/wiki/Cifra_de_C%C3%A9sar | |
* | |
* @author Hercules Lemke Merscher |
require "rubygems" | |
require "rest_client" | |
require "json" | |
# usando API do twitter para recuperar ultimos 3 twitts de @hlmerscher | |
url = "https://api.twitter.com/1/statuses/user_timeline.json?include_rts=true&screen_name=hlmerscher&count=3" | |
data = JSON.parse( RestClient.get url ) | |
# imprimindo cada twitt | |
data.each {|twitt| puts "#{twitt['text']}" } |
/** | |
* @Author: Hercules Lemke Merscher | |
* Jokenpo | |
* http://dojopuzzles.com/problemas/exibe/jokenpo/ | |
*/ | |
enum Play { | |
ROCK, SCISSORS, PAPER | |
} | |
enum Result { |
/* | |
* FizzBuzz | |
* http://dojopuzzles.com/problemas/exibe/fizzbuzz/ | |
*/ | |
using System; | |
using System.Text; | |
namespace FizzBuzz | |
{ |
100.times {|n| puts (if n % 3 == 0 && n % 5 == 0; 'FizzBuzz'; elsif n % 3 == 0; 'Fizz'; elsif n % 5 == 0; 'Buzz'; else; n; end)} |
List deleted files and removes each
$ git ls-files -d | xargs git rm
Show a text-based graphical representation
$ git log --graph
Ignoring changes in tracked files
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Audio and video</title> | |
</head> | |
<body> | |
<!-- Audio --> | |
<audio src="musica.ogg" controls="true" autoplay="true" /> |
using System; | |
public class InferenciaDeTipo | |
{ | |
public static void Main(String[] args) | |
{ | |
int valor1 = 10; | |
String valor2 = "Valor"; | |
var permitido1 = 1; |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer