Skip to content

Instantly share code, notes, and snippets.

@tanakh
tanakh / p239.cpp
Last active August 29, 2015 14:05 — forked from chomado/p239.cpp
#include <iostream>
#include <string>
using namespace std;
class Person {
string name;
int age;
char sex;
public:
Person(const string &nm, int n, char s) : name(nm), age(n), sex(s) {}
void show();
@tanakh
tanakh / 0_reuse_code.js
Created June 1, 2014 06:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
import Control.Applicative
import Control.Monad
import Data.Char
import Data.List.Split
import Data.SBV
main :: IO ()
main = do
t <- map read . words <$> getLine
case t of
@tanakh
tanakh / gist:3051852
Created July 5, 2012 06:43 — forked from kazu-yamamoto/gist:3051375
QuickSort with STUArray and Vector(s)
{-# LANGUAGE BangPatterns #-}
module Main where
import Control.Applicative
import Control.Monad
import Control.Monad.ST
import Data.Array.ST
import Data.List (sort)