Skip to content

Instantly share code, notes, and snippets.

View ivanvanderbyl's full-sized avatar
🏔️

Ivan Vanderbyl ivanvanderbyl

🏔️
View GitHub Profile
class Booking < ActiveRecord::Model
after_create :set_booking_number
private
def set_booking_number
return if booking_number
update_column(:booking_number, SecureRandom.hex[0..5].upcase)
rescue ActiveRecord::RecordNotUnique
@ivanvanderbyl
ivanvanderbyl / news.json
Last active May 22, 2017 08:45
HackerNews news item example
[
{
"id": 14390728,
"title": "Apple Monitoring Blood Glucose",
"points": 88,
"user": "zdw",
"time": 1495422454,
"time_ago": "5 hours ago",
"comments_count": 45,
"type": "link",
@ivanvanderbyl
ivanvanderbyl / components.my-component.js
Last active September 3, 2017 01:50
2-15-partial-bug
import Ember from 'ember';
export default Ember.Component.extend({
name: "Ivan"
});
Verifying my Blockstack ID is secured with the address 1AJmdGXeHwfRT4REir9tq69Xz7YpmpLTsw https://explorer.blockstack.org/address/1AJmdGXeHwfRT4REir9tq69Xz7YpmpLTsw
@ivanvanderbyl
ivanvanderbyl / AwesomePerformanceTesting.md
Last active April 6, 2018 02:33
Awesome Performance Testing
import {step} from '@flood/element'
export default () => {
step("Step 1", async browser => {
await browser.visit("youtube.com")
})
}

Keybase proof

I hereby claim:

  • I am ivanvanderbyl on github.
  • I am ivanv (https://keybase.io/ivanv) on keybase.
  • I have a public key ASDf1Vtq-6SuyfK0r2sI1Y5fP1PRMOWNjY3b98baCAXEfgo

To claim this, I am signing this object:

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

const puppeteer = require('puppeteer');
const { expect } = require('chai');
describe('Duck Duck Go search using basic Puppeteer', () => {
let browser;
let page;
beforeEach(async () => {
browser = await puppeteer.launch();
o.a.j.p.h.s.HTTPHC4Impl$6: I/O exception (org.apache.http.NoHttpResponseException) caught when processing request to {s}->https://flooded.io:443: The target server failed to respond
o.a.j.p.h.s.HTTPHC4Impl$6: I/O exception (java.net.SocketException) caught when connecting to {s}->https://flooded.io:443: Broken pipe (Write failed)