apt-get update && apt-get upgrade -y
- Setting up hostname, skip if done with installation
pico /etc/hosts
I was drawn to programming, science, technology and science fiction | |
ever since I was a little kid. I can't say it's because I wanted to | |
make the world a better place. Not really. I was simply drawn to it | |
because I was drawn to it. Writing programs was fun. Figuring out how | |
nature works was fascinating. Science fiction felt like a grand | |
adventure. | |
Then I started a software company and poured every ounce of energy | |
into it. It failed. That hurt, but that part is ok. I made a lot of | |
mistakes and learned from them. This experience made me much, much |
#!/opt/local/bin/perl -w | |
use threads; | |
use strict; | |
use warnings; | |
# SOURCE REF: http://chicken.genouest.org/perl/multi-threading-with-perl/ | |
my @a = (); | |
my @b = (); |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |
I hereby claim:
To claim this, I am signing this object:
atomsettings |
// problem: http://uva.onlinejudge.org/external/1/108.html | |
// solved using Kadane's 2D algorithm O(N^3) | |
// [1] http://en.wikipedia.org/wiki/Maximum_subarray_problem | |
// [2] http://alexeigor.wikidot.com/kadane | |
#include <cstdio> | |
#include <cstring> | |
#include <climits> | |
#include <algorithm> | |
using namespace std; |
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |