Skip to content

Instantly share code, notes, and snippets.

View jesse-spevack's full-sized avatar

Jesse Spevack jesse-spevack

View GitHub Profile
@jesse-spevack
jesse-spevack / rails_setup.md
Last active January 24, 2017 16:26 — forked from ryanflach/rails_setup.md
Common setup for a new Rails project
  1. rails new <project_name> -d postgresql --skip-turbolinks --skip-spring -T
  • -d postgresql sets up the project to use PostgreSQL
  • --skip-turbolinks & --skip-spring creates a project that does not use turbolinks or spring
  • -T skips the creation of the test directory and use of Test::Unit
  • Optional: --api will create a stripped-down Rails application with a smaller set of middleware. It will also configure the generators to skip the views/helpers/assets and change the parent for ApplicationController from ActionController::Base to ActionController::API
  1. In the Gemfile:
  • Available to all environments:
    • gem 'figaro' - store environment variables securely across your app (docs)
    • Uncomment gem 'bcrypt', '~> 3.1.7' if you will be hosting your own user accounts with passwords (docs)
  • Inside of group :test:
import React, { Component, PropTypes } from 'react';
const TOGGLE_BUTTON_SELECTOR = "toggle-button"
const TOGGLE_LABEL_SELECTOR = "toggle-label"
const DEFAULT_LABEL_TEXT = "Label Text"
const DEFAULT_BUTTON_LEFT_TEXT = "Button Left"
const DEFAULT_BUTTON_RIGHT_TEXT = "Button Right"
class ToggleButton extends Component {
constructor(props) {
```javascript
import {Component} from 'react'
class Counter extends Component {
state = {
count: 0
};
render() {
@jesse-spevack
jesse-spevack / cfp_railsconf19_panic.md
Last active January 22, 2019 19:43
I am not panicking. You're panicking.

Title

Publicly viewable title. Ideally catchy, interesting, essence of the talk. Limited to 60 characters.

I am not panicking. You're panicking.

Format

  • Regular Session
  • Workshop

Track

About Turing Shadow Day

On-Site Job Shadowing

Schedule

Time Event
12:30 Welcome and overview of the day
1:00 Pair with Engineer
3:00 Q & A with Engineering Manager
3:30 Q & A with HR
<div
data-controller="multiselect"
data-multiselect-selected-items-value=[]
>
...
</div>

The Minaswan::Interview

Session Format: Talk

Abstract

White-boarding is not nice. An unpaid take home project is not nice. We decided to apply the Ruby community motto "Matz is nice and so we are nice," to our enterprise technical interview process. Come learn what changes we made, how we enlisted support of other rubyists and non-rubyists alike, and how you can too.

Details

The current state of interviewing is not nice

@jesse-spevack
jesse-spevack / auth.gs
Created January 18, 2024 18:58
Delete Your Tweets
const API_KEY = PropertiesService.getScriptProperties().getProperty('apiKey')
const API_SECRET = PropertiesService.getScriptProperties().getProperty('apiKeySecret')
const ACCESS_TOKEN = PropertiesService.getScriptProperties().getProperty('accessToken')
const ACCESS_TOKEN_SECRET = PropertiesService.getScriptProperties().getProperty('accessTokenSecret')
const CLIENT_ID = PropertiesService.getScriptProperties().getProperty('clientId')
const CLIENT_SECRET = PropertiesService.getScriptProperties().getProperty('clientSecret')
/**
* Authorizes and makes a request to the Twitter API v2
* OAuth 2.0 Making requests on behalf of users