Skip to content

Instantly share code, notes, and snippets.

View kthakore's full-sized avatar

Kartik Thakore kthakore

  • San Francisco, California
View GitHub Profile
curl https://api.truevault.com/v1/vaults/12345678-1234-1234-1234-123456789012/documents \
-u [api-key]: \
-X POST \
-d "document=eyJtZXNzYWdlIjoiV2UgbG92ZSB5b3VyIGN1cmlvc2l0eSEgIENvbWUgd29yayB3aXRoIHVzIGFuZCBsZXQncyBnbyBtYWtlIGluc2FuZWx5IGdyZWF0IHByb2R1Y3RzISIsImNvbnRhY3QiOiJoYWNrQHRydWV2YXVsdC5jb20ifQ=="
libSDL-1_2-0-1.2.15-5.1.2.x86_64
libSDL-devel-1.2.15-5.1.2.x86_64
libSDL_gfx13-2.0.23-4.1.1.x86_64
libSDL_gfx-devel-2.0.23-4.1.1.x86_64
libSDL_image-1_2-0-1.2.12-3.1.1.x86_64
libSDL_image-devel-1.2.12-3.1.1.x86_64
libSDL_mixer-1_2-0-1.2.11-18.1.1.x86_64
libSDL_mixer-devel-1.2.11-18.1.1.x86_64
libSDL_net-1_2-0-1.2.7-170.1.1.x86_64
libSDL_net-devel-1.2.7-170.1.1.x86_64
@kthakore
kthakore / zumbis
Created June 11, 2012 22:45
ZOMBIE AVENGER GAME
=pod
=head1 Modules
=over
=item *
@kthakore
kthakore / sinus.pl
Created September 17, 2011 01:16 — forked from scottwalters/sinus.pl
# Sinusfont: a simple SDL_ttf based sinus scroller
# Copyright (C) 2004 Angelo "Encelo" Theodorou
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
warn WebGUI::Asset::dispatch[760] Couldn't call method www_add on asset for url: /home Root cause: newById must get an assetId
error WebGUI::Asset::processTemplate[2343] Can't instantiate template for asset AdX2ObZdStypz-_GzM2jbA
@kthakore
kthakore / SDL.pl
Created December 16, 2010 23:13
SDL Video Surface using NativeCall perl6.
#!perl6
# Install NativeCall.pm from http://github.com/jnthn/zavolaj.git
# Copy libSDL-1.2.so or dll into local directory and
# perl6 SDL.pl :D
use v6;
use NativeCall;
class SDL_Surface is OpaquePointer;
@kthakore
kthakore / task1.txt
Created November 23, 2010 04:56
Sample Task for GCI
Title: Simple Game in SDL Perl and API design reports
Category: Perl 5
Difficulty: easy
Estimated time: 7 days
Task description: Consists of:
package mario;
use Mouse;
use SDL;
use SDL::Event;
use SDL::Events;
use SDLx::App;
use SDLx::Sprite;
=pod
Get the game.png from http://i.imgur.com/FxgMM.png
Get link.png from http://imgur.com/P7JhS
=head1 INSTALL
For windows get strawberry perl
Then do:
#!/usr/bin/perl
use strict;
use SDL;
use SDL::App;
use SDL::Game::Rect;
use SDL::Event;
use SDL::Events;
use Coro;