I hereby claim:
- I am slashmili on github.
- I am slashmili (https://keybase.io/slashmili) on keybase.
- I have a public key whose fingerprint is D045 5F33 140B A5B3 D2C8 6CDF 04A0 6367 E4E2 4559
To claim this, I am signing this object:
CREATE OR REPLACE FUNCTION hex2dec(text) | |
RETURNS bigint LANGUAGE SQL AS | |
$$ | |
SELECT sum(digit * 16 ^ (length($1)-pos)) ::bigint | |
FROM (SELECT case | |
when digit between '0' and '9' then ascii(digit) - 48 | |
when digit between 'A' and 'F' then ascii(digit) - 55 | |
end, | |
pos as i | |
FROM (SELECT substring(c from x for 1), x |
[a2billing] | |
include => a2billing_callingcard | |
include => a2billing_monitoring | |
include => a2billing_voucher | |
[a2billing_callingcard] | |
; CallingCard application | |
exten => _X.,1,NoOp(A2Billing Start) |
import dream | |
import time | |
import threading | |
class Milad ( threading.Thread ): | |
def run ( self ): | |
try : | |
#don't fear ! if you want wake up just want | |
#after that time.Wakeup exception will be happen | |
time.sleep(dream.ONE_YEAR) |
#find out more http://instagram-engineering.tumblr.com/post/12651721845/instagram-engineering-challenge-the-unshredder | |
from PIL import Image | |
from collections import defaultdict | |
import operator | |
def unshred(file_name, NUMBER_OF_COLUMNS, diff, num_check_points=0): | |
""" | |
@params diff base on this value we decide if two pixels are beside each other or not | |
@params num_check_points how many times we check pixels across shreds | |
""" |
module FatPacker | |
end | |
=begin | |
doctest: FatPacker | |
>> FatPacker.xyz | |
=> '' | |
=end |
class Meeow < RTanque::Bot::Brain | |
NAME = 'meeow' | |
include RTanque::Bot::BrainHelper | |
@health = 100.00 | |
def tick! | |
command.heading = sensors.heading + Math::PI/rand | |
target = sensors.radar.first | |
if target and target[:name] != NAME | |
command.turret_heading = target[:heading] | |
command.speed = 3 |
require 'time' | |
class Meoow < RTanque::Bot::Brain | |
NAME = 'Meoow' | |
include RTanque::Bot::BrainHelper | |
CORNERS = [:NW, :NE, :SE, :SW] | |
TURRET_FIRE_RANGE = RTanque::Heading::ONE_DEGREE * 1.0 | |
SWITCH_CORNER_TICK_RANGE = (600..1000) | |
def tick! |
defmodule SyncCallonAsync do | |
use GenServer | |
def start_link do | |
GenServer.start_link(__MODULE__, [], name: __MODULE__) | |
end | |
def init(_) do | |
{:ok, %{pending: []}} | |
end |
I hereby claim:
To claim this, I am signing this object:
defmodule Metrics.InfluxReporter do | |
@moduledoc """ | |
A reporter that writes the events in the influx_writer | |
This Reporter ignores the metric type and simply writes the report to influxdb | |
This GenServer could be used in a Supervisor like: | |
children = [ | |
{Metrics.InfluxReporter, metrics: metrics(), influx_writer: &MyApp.Fluxter.write/3} | |
] |