Skip to content

Instantly share code, notes, and snippets.

View naaando's full-sized avatar
🏠
Working from home

Fernando da Silva Sousa naaando

🏠
Working from home
View GitHub Profile
class HelloWorld {
public static int main(string[] args) {
stdout.printf("Hello World\n");
return 0;
}
}
email@example.com
firstname.lastname@example.com
email@subdomain.example.com
firstname+lastname@example.com
email@123.123.123.123
email@[123.123.123.123]
“email”@example.com
1234567890@example.com
email@example-one.com
_______@example.com
class Main {
public static int main(string [] argv) {
stdout.printf("Bem vindo ao Mercado Paraná!\n");
stdout.printf("O que deseja comprar?\n");
var produtos = new Produtos();
// #include <cstdlib>
#include <iostream>
#include <boost/regex.hpp>
using namespace std;
using namespace boost;
int main(int argc, char *argv[]) {
string str = "2";
regex re("[0-9]");
#!/bin/sh
# Color table
red='\033[0;31m'
green='\033[0;32m'
blue='\033[0;34m'
purple='\033[0;35m'
cyan='\033[0;36m'
yellow='\033[1;33m'
normal='\033[0m'
void remocao() {
System.out.println("\nDigite o nome da pessoa a ser removido");
String k = scan.nextLine();
PessoaContato aRemover = null;
for ( PessoaContato p : lista1 ) {
if (p.getNome().equals(k)) {
aRemover = p;
}
}
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="agnoster"
@naaando
naaando / primes.vala
Created January 31, 2018 21:55
Vala primes
// Ultimo numero a ser testado
const long BREAKPOINT = 10000;
int main (string[] args) {
for (int number = 0; number <= BREAKPOINT; number++) {
if (prime (number)) {
print (@"[$number]");
}
}
@naaando
naaando / patch-keyboardfix.sh
Created February 18, 2018 19:20
Patch accent fix for qt apps
#!/bin/bash
function remove_ibus {
cat $1 | grep -v "ibus" $1 > $1
}
# Fix keyboard accents
echo "Disabling ibus daemon..."
remove_ibus ~/.xprofile
remove_ibus ~/.profile
@naaando
naaando / patch-keyboardfix.sh
Created February 18, 2018 19:20
Patch accent fix for qt apps
#!/bin/bash
function remove_ibus {
cat $1 | grep -v "ibus" $1 > $1
}
# Fix keyboard accents
echo "Disabling ibus daemon..."
remove_ibus ~/.xprofile
remove_ibus ~/.profile