Skip to content

Instantly share code, notes, and snippets.

View kot-behemoth's full-sized avatar

Greg Goltsov kot-behemoth

View GitHub Profile
@kot-behemoth
kot-behemoth / Example.cs
Created November 2, 2012 15:02
LinkBatch
using System;
using Microsoft.Xna.Framework;
namespace LineBatch
{
public class LineBatchTest : Game
{
GraphicsDeviceManager graphics;
LineBatch lineBatch;
@kot-behemoth
kot-behemoth / SpriteGluer.rb
Created October 26, 2012 22:03
SpriteGluer
# Usage:
# Place the script in the directory with all the images, tweak `prefix` and `output` and just run it.
require 'rubygems'
require 'RMagick'
include Magick
Image_dims = 96
prefix = 'swordskel attack'
output = 'p_dying'
@kot-behemoth
kot-behemoth / UIViewControllerModalPush.h
Created October 13, 2012 18:14
Modal push for UIViewController
#import <UIKit/UIKit.h>
@interface UIViewController (ModalPush)
- (void)pushViewControllerFromModal:(UIViewController *)VC animated:(BOOL)animated;
@end
@kot-behemoth
kot-behemoth / photos_tag.rb
Created August 18, 2012 13:35 — forked from sukima/photos_tag.rb
Jekyll Plugin for easy FancyBox usage
# Title: Photos tag for Jekyll
# Authors: Devin Weaver
# Description: Allows photos tag to place photos as thumbnails and open in fancybox. Uses a CDN if needed.
#
# ** This only covers the markup. Not the integration of FancyBox **
#
# To see an unabridged explination on integrating this with [FancyBox][1]
# Please read my [blog post about it][2].
#
# [1]: http://fancyapps.com/fancybox/