This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Dohvaća pratitelje trenutnog korisnika | |
/// </summary> | |
/// <param name="AccessToken"> | |
/// Access token povezan sa računom trenutnog korisnika | |
/// </param> | |
/// <returns>Lista profila pratitelja trenutnog korisnika</returns> | |
public static List<TwitterUserProfile> GetFollowers(TwitterTokens AccessToken) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module A | |
extend self | |
def say | |
"I'm saying!" | |
end | |
end | |
module B | |
class << self |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'net/http' | |
require 'json' | |
require 'zlib' | |
MY_API_KEY = <PUT_YOUR_API_KEY_HERE> | |
HOST = "api.exceptional.io" | |
@post_ws = "/api/errors?api_key=#{MY_API_KEY}&protocol_version=5" | |
def generate_json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/ruby | |
(1..1000).select {|x| x % 3 == 0 || x % 5 == 0}.inject(&:+) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
def sum(border,ar) | |
raise ArgumentError.new "please send int, Array as arguments" if !border.is_a?(Numeric) || !ar.is_a?(Array) | |
ar.instance_eval do | |
def dividable?(x) | |
operation = [] | |
self.each do |element| | |
operation << "#{x} % #{element} == 0" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Dog | |
def age | |
@age | |
end | |
def initialize(age) | |
@age = age | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/rvm/gems/ree-1.8.7-2011.03@creativeallies2-rails31/gems/builder-3.0.0/lib/builder/xmlbase.rb:135:in to_xs' | |
/usr/local/rvm/gems/ree-1.8.7-2011.03@creativeallies2-rails31/gems/builder-3.0.0/lib/builder/xmlbase.rb:135:inescape' | |
/usr/local/rvm/gems/ree-1.8.7-2011.03@creativeallies2-rails31/gems/builder-3.0.0/lib/builder/xmlbase.rb:140:in _escape_quote' | |
/usr/local/rvm/gems/ree-1.8.7-2011.03@creativeallies2-rails31/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:320:inattr_value' | |
/usr/local/rvm/gems/ree-1.8.7-2011.03@creativeallies2-rails31/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:308:in _insert_attributes' | |
/usr/local/rvm/gems/ree-1.8.7-2011.03@creativeallies2-rails31/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:306:ineach' | |
/usr/local/rvm/gems/ree-1.8.7-2011.03@creativeallies2-rails31/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:306:in _insert_attributes' | |
/usr/local/rvm/gems/ree-1.8.7-2011.03@creativeallies2-rails31/gems/builder-3.0.0/lib/builder/xmlmarkup.rb:284:in_special' | |
/usr/local/rvm/gems/ree-1.8.7-20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CanCook | |
def bake(food_name) | |
"I'm baking the #{food_name}!" | |
end | |
end | |
class Programmer | |
def bake(food_name) | |
"I don't know how to bake #{food_name} :(" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CanCook | |
def bake(food_name) | |
"I'm baking the #{food_name}!" | |
end | |
end | |
class Programmer | |
def bake(food_name) | |
"I don't know how to bake #{food_name} :(" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CanCook | |
def bake(food_name) | |
"I'm baking the #{food_name}!" | |
end | |
end | |
class Programmer | |
def bake(food_name) | |
"I don't know how to bake #{food_name} :(" | |
end |