Skip to content

Instantly share code, notes, and snippets.

Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
Inactive "intel"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
@sorpaas
sorpaas / helloworld.js
Created February 19, 2015 08:39
A simple hello world for Funcist
module.exports = { result: "Hello, world!" }
@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

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBmpCbIlpBkdWEb0XzHIjhar8kjXIBBvvz+spgw2la4bGAvNZ9L+ANoiUTU9zp6t6xKhUHNqMI4rnmCNIgToLtv8OSU26flK10f3qeZqWrzzierHLrCT7jpvHyX3AR0de1Gzdb2RHG/PDNvxXgLXUpLdjoqMAACd5dpKBt7B1vyZbn8csxLeuEKkyM/qjNMGX37d1RoXwIuYyL3e3Vd6KwChpUJ6Ovxrpd1C0gHuOwitsRvfdRbHfFzzSnZVSvwuEZ+BiG+c0BdpS33B3Ln2g6dYGNVTP+NsSzMvJtG5DQzvKxAwy4oT+t4CvP3QPlTOPk/8pWtY1Slam9nRDHypNT sorpaas@sorpaas-mac
@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)
@sorpaas
sorpaas / README.md
Last active August 29, 2015 14:00 — forked from mbostock/.block

Using best-first search.

@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: