Skip to content

Instantly share code, notes, and snippets.

View vshvedov's full-sized avatar
💾
1.44MB

Vladyslav Shvedov vshvedov

💾
1.44MB
View GitHub Profile
@vshvedov
vshvedov / index.html
Created April 14, 2020 21:19 — forked from jcollins-g/index.html
Sunflower
<h2>Btn example</h2>
<div>
<canvas id="canvas" width="300" height="300"></canvas>
</div>
@vshvedov
vshvedov / ngrams-and-tire.rb
Created October 5, 2012 10:43 — forked from olivoil/ngrams-and-tire.rb
An example of using ngram analysis in ElasticSearch with the Tire rubygem
# An example of using ngram analysis in ElasticSearch with the Tire rubygem
# ==========================================================================
# The original, raw example: https://gist.github.com/988923
require 'rubygems'
require 'tire'
require 'yajl/json_gem'
class URL
def initialize(attributes={})
@vshvedov
vshvedov / pixen_to_gameQuery.rb
Created November 16, 2011 17:05 — forked from robesris/pixen_to_gameQuery.rb
Pixen to gameQuery sprites converter
module PixenToGameQuery
require 'RMagick'
include Magick
FPR = 12 # Frames per row in a sprite sheet generated by Pixen
COLPAD = 2 # Pix between each column of images on the sprite sheet
ROWPAD = 2 # Pix between each row of images on the sprite sheet
LEFTPAD = 4 # Extra pix on left of sprite sheet
RIGHTPAD = 20 # Extra pix on right of sprite sheet
BOTTOMPAD = 2 # Extra pix on bottom of sprite sheet