Skip to content

Instantly share code, notes, and snippets.

View ganine's full-sized avatar
🤙

Marcos Oliveira ganine

🤙
  • Berlin, Germany
  • 01:47 (UTC +01:00)
View GitHub Profile
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'vim-scripts/ack.vim'
Bundle 'Lokaltog/vim-easymotion'
@ganine
ganine / README.md
Last active August 29, 2015 13:57
dofiles installation script

dotfiles

git clone --recursive git://github.com/ganine/dotfiles.git ~/.dotfiles

for dotfile in `find ~/.dotfiles -mindepth 2 -not -iwholename '*.git*'`; do
  ln -s "$dotfile" "~/.$(basename $dotfile)"
done
@ganine
ganine / Vagrantfile
Last active March 27, 2024 08:19
Basic Vagrantfile with provisioning shell script
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.provision :shell, :privileged => false, :path => "bootstrap_ubuntu1204.sh"
end
require 'nokogiri'
require 'open-uri'
require 'json'
module PsyCrawler
DOMAIN = "http://www.psydb.net"
def self.get_artists
public List<ValidacaoException> validar() throws Exception {
List<ValidacaoException> problemas = new ArrayList<ValidacaoException>();
for (Method method : this.getClass().getDeclaredMethods()) {
if (method.getName().startsWith("validar") && !method.getName().equals("validar")) {
try {
method.invoke(this);
} catch (InvocationTargetException e) {
problemas.add((ValidacaoException) e.getCause());