Skip to content

Instantly share code, notes, and snippets.

Milovan Zogovic assembler

Block or report user

Report or block assembler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View youtube_partner_test.rb
require "rubygems"
require "bundler"
require "statfire/youtube"
require "pp"
require "uri"
require "google/apis/youtube_partner_v1"
StatFire::YouTube.configure do |config|
View db
OUTPUT="$(db.rb $1 $2)"
echo "${OUTPUT}"
eval "${OUTPUT}"
View 99bottles.rb
class Bottles
def song
verses(99, 0)
def verses(from_bottle_count, to_bottle_count)
.map { |c| verse(c) }
View gist:b0022e9a30282b25903f52774d35bea1
[GEM_ROOT]/gems/aws-sdk-core-2.3.22/lib/aws-sdk-core/rest/response/parser.rb:24 :in `extract_headers`
[GEM_ROOT]/gems/aws-sdk-core-2.3.22/lib/aws-sdk-core/rest/response/parser.rb:12 :in `apply`
[GEM_ROOT]/gems/aws-sdk-core-2.3.22/lib/aws-sdk-core/rest/handler.rb:8 :in `block in call`
[GEM_ROOT]/gems/aws-sdk-core-2.3.22/lib/seahorse/client/response.rb:43 :in `block in on`
[GEM_ROOT]/gems/aws-sdk-core-2.3.22/lib/seahorse/client/http/response.rb:139 :in `block in on_success`
[GEM_ROOT]/gems/aws-sdk-core-2.3.22/lib/seahorse/client/http/response.rb:166 :in `block in listener`
[GEM_ROOT]/gems/aws-sdk-core-2.3.22/lib/seahorse/client/http/response.rb:130 :in `on_done`
[GEM_ROOT]/gems/aws-sdk-core-2.3.22/lib/seahorse/client/http/response.rb:137 :in `on_success`
[GEM_ROOT]/gems/aws-sdk-core-2.3.22/lib/seahorse/client/response.rb:42 :in `on`
[GEM_ROOT]/gems/aws-sdk-core-2.3.22/lib/aws-sdk-core/rest/handler.rb:8 :in `call`
View paginate.rb
def paginate
return enum_for(:paginate) unless block_given?
page = 0
page_count = nil
partners = []
loop do
response = fetch_all(page)
page_count ||= (response['partners_count'].to_f / PARTNERS_PER_PAGE)
yield response["partners"]
assembler / rfs.rb
Last active Apr 15, 2016
Ruby File Streaming - line by line
View rfs.rb
require "uri"
require "net/http"
class RemoteFileStream
def initialize(url, headers: {})
@uri = URI(url)
@headers = headers
def each_line(&block)
assembler / Philips.xml
Created Jul 5, 2015
Philips 48PFS8209/12 Plex DLNA profile
View Philips.xml
<?xml version="1.0" encoding="utf-8"?>
<Client name="Philips">
<Header name="User-Agent" substring="Philips"/>
<Header name="User-Agent" substring="stagefright"/>
<Setting name="EmitAlbumArtResources" value="true" />
View index.html
<!DOCTYPE html>
<script src=""></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
ul, ol, li {
list-style: none;
margin: 0;
View monads.rb
# ---------------------------------------------------------------------------- #
Project =
Person =
Address =
Country =
City =
class Optional

Rails 4 fork

Benchmark Bundler

Because loading gems can take longer than you think

$ curl -fsSL | ruby
You can’t perform that action at this time.