Skip to content

Instantly share code, notes, and snippets.

View dennis90's full-sized avatar
🚶‍♂️

Dennis Alves dennis90

🚶‍♂️
View GitHub Profile
#!/usr/bin/env python
import hashlib
import hmac
import time
import requests
import datetime
# Q. Do you have A Websocket API?
# A. Yes, and we strongly recommend you to use it. Please, check our JavaScript websocket implementation for our WebSocket API here:
# https://github.com/blinktrade/frontend/blob/master/jsdev/bitex/api/bitex.js
@shirts
shirts / gist:8f046a4c1982229b8e2d
Last active November 10, 2016 15:14
Capybara/Rspec Cheat Sheet
Capybara::Screenshot.screenshot_and_save_page
=Debugging=
require 'pry'
binding.pry
=Navigating=
visit('/projects')
visit(post_comments_path(post))
@bergantine
bergantine / Vagrantfile
Last active August 30, 2022 19:31
Vagrant config for basic Python development
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')