Skip to content

Instantly share code, notes, and snippets.

@sorpaas
sorpaas / keybase.md
Created April 10, 2014 03:37
Keybase

Keybase proof

I hereby claim:

  • I am sorpaas on github.
  • I am sorpaas (https://keybase.io/sorpaas) on keybase.
  • I have a public key whose fingerprint is 9325 EF30 115D 05FB 3BC0 83A7 A05F 274A EF69 84A5

To claim this, I am signing this object:

@sorpaas
sorpaas / README.md
Last active August 29, 2015 14:00 — forked from mbostock/.block

Using best-first search.

@sorpaas
sorpaas / api.rb
Last active August 29, 2015 14:03
Shortcool Requirements
header 'Authorization: Token :token'
get '/login/weibo?access_token=:access_token' => status(200)
get '/channels' => [ { id: _, title: _, description: _, videos: [ { id: _, title: _, tag: _, image: _ } ] } ]
get '/channels/:id' => { id: _, title: _, description: _, videos: [ { id: _, title: _, tag: _, image: _ } ] }
get '/videos?sort_by=default&from=:from&to=:to' => [ { id: _, title: _, tag: _, image: _ } ]
get '/videos?sort_by=random&from=:from&to=:to[&random_id=:id]' => [ { id: _, title: _, tag: _, image: _ } ]
get '/videos/:id' => { id: _, title: _, description: _, like_count: _, channel: { id: _, title: _, description: _ }, author: { id: _, name: _, avatar: _ } }
get '/videos/:id/liked?from=:from&to=:to' => [ { id: _, name: _, avatar: _ } ]
post '/videos/:id/like' => status(200)
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBmpCbIlpBkdWEb0XzHIjhar8kjXIBBvvz+spgw2la4bGAvNZ9L+ANoiUTU9zp6t6xKhUHNqMI4rnmCNIgToLtv8OSU26flK10f3qeZqWrzzierHLrCT7jpvHyX3AR0de1Gzdb2RHG/PDNvxXgLXUpLdjoqMAACd5dpKBt7B1vyZbn8csxLeuEKkyM/qjNMGX37d1RoXwIuYyL3e3Vd6KwChpUJ6Ovxrpd1C0gHuOwitsRvfdRbHfFzzSnZVSvwuEZ+BiG+c0BdpS33B3Ln2g6dYGNVTP+NsSzMvJtG5DQzvKxAwy4oT+t4CvP3QPlTOPk/8pWtY1Slam9nRDHypNT sorpaas@sorpaas-mac
@sorpaas
sorpaas / README.md
Last active May 15, 2019 11:54
A naive implementation of Tic Tac Toe written in miniKanren
title subtitle layout
Tic Tac Toe in miniKanren
Simple Good Old-Fashioned AI.
default

January 28, 2016

Nearly one year ago, I made a program called jing-logic. A

@sorpaas
sorpaas / helloworld.js
Created February 19, 2015 08:39
A simple hello world for Funcist
module.exports = { result: "Hello, world!" }
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
Inactive "intel"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
@sorpaas
sorpaas / process.lhs
Created January 4, 2016 10:07
Haskell Data Analysis
> {-# LANGUAGE DeriveGeneric #-}
> import Data.Csv (decodeByName, FromNamedRecord, ToNamedRecord, DefaultOrdered, Header)
> import Data.Text
> import Data.Text.Encoding (encodeUtf8)
> import Data.Text.IO (putStrLn)
> import Data.Vector
> import Data.Set
> import Prelude hiding (readFile)
> import Data.ByteString.Lazy (readFile)
@sorpaas
sorpaas / Dockerfile
Created March 9, 2016 03:07
Nearly Worked Servo Hacking Environment for NixOS
# Copyright (C) 2015 Siddhanathan Shanmugam
# License: GPLv3 (see LICENSE)
# Maintainer: siddhanathan@gmail.com
#
# Dockerfile for hacking on Servo
#
FROM ubuntu:15.10
MAINTAINER Siddhanathan Shanmugam

Keybase proof

I hereby claim:

  • I am sorpaas on github.
  • I am sorpaas (https://keybase.io/sorpaas) on keybase.
  • I have a public key whose fingerprint is 521C 53D4 14D3 AA7C 62B3 643D A317 3FD8 1D28 A1EE

To claim this, I am signing this object: