Skip to content

Instantly share code, notes, and snippets.

@4lehandro
4lehandro / .bashrc
Last active August 29, 2015 14:27 — forked from tasdikrahman/.bashrc
my .bashrc file
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# ----------------for giving random commands and what they do-------------
#echo "Did you know that:"; whatis $(ls /bin | shuf -n 1)
#cowsay -f $(ls /usr/share/cowsay/cows | shuf -n 1 | cut -d. -f1) $(whatis $(ls /bin) 2>/dev/null | shuf -n 1)
cowsay "Why be a sailor when you can be a Pirate !! --Steve Jobs"
@4lehandro
4lehandro / compile157.sh
Last active August 26, 2015 12:53 — forked from mkuf/compile157.sh
compile Repetier-Firmware without GUI
#!/bin/bash
## compile Repetier-Firmware without GUI
##
## Before you start:
## Set ADIR to your ArduinoIDE-Directory
## Set GPP, GCC, AR, OC. These can either be the binaries from the ArduinoIDE or your Distro
##
## How to use:
## Place this file in the Repetier-Directory (besides Repetier.ino)
## cd to your Repetier-Dir
@4lehandro
4lehandro / ZeroJudge d058.cpp
Last active September 19, 2015 11:34 — forked from TheoKlein/ZeroJudge d058.cpp
ZeroJudge d058
#include <stdio.h>
int main() {
int n;
scanf ("%d",&n);
//true = 1 , false = 0
printf ("%d\n",(n > 0) - (n < 0));
return 0;
}