I hereby claim:
- I am adityashedge on github.
- I am adityashedge (https://keybase.io/adityashedge) on keybase.
- I have a public key ASCIpuPgxhQN9Rn99u8FyUnGLEIy1tq55CVsNNdiO_9iywo
To claim this, I am signing this object:
/* | |
"dependencies": { | |
"cheerio": "^0.22.0", | |
"request": "^2.79.0" | |
} | |
*/ | |
const request = require('request'); | |
const cheerio = require('cheerio'); |
require 'sinatra' | |
require 'json' | |
BLOCKING_TIME = 60 | |
EXPIRY_TIME = 300 | |
all_keys = {} | |
blocked_keys = [] | |
available_keys = [] |
DIRECTIONS = ['N', 'E', 'S', 'W'] | |
CONTROLS = ['L', 'R', 'M'] | |
MOVES = { | |
'N' => {'L' => 'W', 'R' => 'E'}, | |
'E' => {'L' => 'N', 'R' => 'S'}, | |
'S' => {'L' => 'E', 'R' => 'W'}, | |
'W' => {'L' => 'S', 'R' => 'N'} | |
} | |
class GridError < StandardError; end |
MIN_PLAYERS = 2 | |
FINAL_ROUND_SCORE = 3000 | |
class Player | |
attr_reader :attempts, :total | |
attr_accessor :name, :can_accumulate_points | |
def initialize | |
@turns = [] | |
@total = 0 |
I hereby claim:
To claim this, I am signing this object:
# Marathi (mr-IN) translations for Rails | |
# by Aditya Shedge ([email protected]) | |
# http://en.wikipedia.org/wiki/Marathi_language | |
mr-IN: | |
date: | |
abbr_day_names: | |
- सोम | |
- मंगळ | |
- बुध |
# Watermarking image with another image using Imagemagick 'composite', 'watermark' and 'dissolve'. | |
require "RMagick" | |
# Read the image in the memory with RMagick | |
img = Magick::Image.read("/home/aditya/Pictures/old_england_pic.jpg").first | |
# the original image was in jpg format | |
# need to make the white background color transparent | |
# also changed the format to png since JPG does not support transparency. | |
# run the command below to create an image with transparent background using ImageMagick |