Skip to content

Instantly share code, notes, and snippets.

Anton Katunin antulik

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am antulik on github.
  • I am antulik (https://keybase.io/antulik) on keybase.
  • I have a public key ASCPHuz6XIf7JPcOmonCc9BsNUf47rvmnP3_XFRuo5tQqAo

To claim this, I am signing this object:

View spec.rb
# OLD
context 'when token is expired' do
let!(:user) { create :user, discord_token_expired: true }
context 'when token refresh successful' do
let(:response) { build(:discord_refresh_token_response) }
before do
stub_request(:post, "https://discordapp.com/api/v6/oauth2/token")
.to_return(body: response.to_json)
View controller.rb
class ProfilesController < ApplicationController
def index
@tracking_profiles = current_user.tracking_profiles
end
end
@antulik
antulik / README.md
Last active Dec 14, 2015
CampJS D3.JS Links
View README.md
@antulik
antulik / _.md
Created Feb 9, 2013
force_example
View _.md
@antulik
antulik / _.md
Created Feb 9, 2013
series_lines
View _.md
@antulik
antulik / _.md
Created Feb 9, 2013
mouse_circle
View _.md
@antulik
antulik / data_conversion.js
Last active Dec 12, 2015
Convert csv to json string
View data_conversion.js
var csv_url = "/proj-pop-age-all-series-qld.csv";
d3.csv(csv_url, function(a) {
a.forEach(function(el){
el.year = parseInt(el.year)
el.age = parseInt(el.age)
el.low = parseInt(el.low)
el.medium = parseInt(el.medium)
el.high = parseInt(el.high)
})
View _.md
View _.md
You can’t perform that action at this time.