Skip to content

Instantly share code, notes, and snippets.

@akkartik
akkartik / 090chessboard.wart
Last active September 27, 2015 15:27
Simple chessboard app. Nothing funky, just putting wart through its paces. (Compare with python version at http://gist.github.com/1218667)
# Requirements: g++
# $ git clone http://github.com/akkartik/wart.git
# $ cd wart
# $ git checkout b5fb9cbccb
# $ wget --no-check-certificate https://raw.github.com/gist/1291243/080chessboard.wart
# $ wart
# Use the 'm' function to make a move. P-K4 is m.5254, etc. m.-1 is undo.
# type chessboard
# Uppercase is white, lowercase is black
@chirags
chirags / gist:984703
Created May 21, 2011 17:26
OAuth 2.0 for Android Apps
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and