Skip to content

Instantly share code, notes, and snippets.

View angelorohit's full-sized avatar

Angelo Rohit angelorohit

View GitHub Profile
@hyperair
hyperair / suniq.cpp
Last active December 16, 2015 20:09 — forked from alisaifee/suniq.cpp
Rewritten sort | uniq -c | sort -n[r] that works faster than the original.
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <unordered_map>
#include <map>
#include <iterator>
template <typename Iter>
void print (Iter i, Iter end)
@dealforest
dealforest / AES256Cipher.java
Created March 1, 2012 13:39
AES256 encryption on Android
package net.dealforest.sample.crypt;
import javax.crypto.BadPaddingException;
import javax.crypto.Cipher;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.security.InvalidKeyException;