Skip to content

Instantly share code, notes, and snippets.

View ckenst's full-sized avatar
🎯
Focusing

Chris Kenst ckenst

🎯
Focusing
View GitHub Profile
@ckenst
ckenst / selenium_irb.rb
Last active August 15, 2017 22:46
IRB Selenium example
#our REPL of choice is irb, could also use pry
irb
#require the selenium webdriver library
require 'selenium-webdriver'
#launch chrome as our driver
driver = Selenium::WebDriver.for :chrome
#navigate to google
@ckenst
ckenst / spec_helper.rb
Last active August 29, 2015 14:25
An example spec helper
require 'selenium-webdriver'
RSpec.configure do |config|
config.before(:each) do
case ENV['host']
when 'saucelabs'
caps = Selenium::WebDriver::Remote::Capabilities.send(ENV['browser'])
caps.version = ENV['browser_version']
caps.platform = ENV['operating_system']
@ckenst
ckenst / gist:351f3ceb1dd1505c0918
Created July 13, 2015 00:05
Gregg Pollack's Founders Talk All Lessons

Gregg Pollack's Founder's Talk 1

25 Lessons:

  1. As a founder, you must be willing to wear all hats
  2. Do one on ones
  3. If you have an audience, you can make money
  • Sponsorships
  • Charging people
  • If you can bring an audience, you can probably figure out a way to monetize.
#filename: Gemfile example
source 'https://rubygems.org'
gem 'rspec', '~> 2.14.0'
gem 'selenium-webdriver'
gem 'sauce_whisk'

API walkthrough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL
@ckenst
ckenst / Zero-To-One.md
Last active April 29, 2024 10:56
Notes on Zero to One

#Zero to One by Peter Thiel and Blake Masters

####Chapter Notes on the book Zero to One.

Chapter 1 - The challenge of the future

  • Doing something we already know is called 1 to N while doing something new is 0 to 1. Today’s so called best practices lead to dead ends. No formula exists and there’s no prescription for creating the future. The most powerful pattern is to think about business from first principles.
  • What important truth do very few people agree with you on? Brilliant thinking is rare but necessary. An appropriate way to answer this question is “most people believe in x, but the truth is the opposite of x”.