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
  • Rio of Janeiro, Brazil / Rio de Janeiro, Brasil
  • LinkedIn in/naaando
View GitHub Profile
@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]");
}
}
# 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"
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;
}
}
#!/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'
// #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]");
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();
class HelloWorld {
public static int main(string[] args) {
stdout.printf("Hello World\n");
return 0;
}
}