Skip to content

Instantly share code, notes, and snippets.

View lizvdk's full-sized avatar
:octocat:

Liz Vanderkloot lizvdk

:octocat:
  • Ovia Health
  • Boston, MA
View GitHub Profile
@rikikonikoff
rikikonikoff / Google Auth: Implementation on the Back End.md
Created June 22, 2017 20:53
Google Auth: Implementation on the Back End

Set Up

Get your environment variables; these uniquely identify your app to google.

  1. Visit https://console.developers.google.com/
  2. In the top left corner of the page, next to where it says “Google APIs”, click the dropdown menu.
  • This will open a popup screen with more options. Select intrepid.io, then click the plus sign to create a new project.
  • Pick a name for the project and click “Create”
  1. Click “Enable and manage APIs”
  • choose the APIs you want to use; Google has many, but at the very least you should enable the Google + API.
@stefanmaric
stefanmaric / copy-to-clipboard-bookmarklet.md
Created September 7, 2016 20:54
Create Bookmarklet (browser bookmark that executes Javsacript) to copy a given text to Clipboard

Copy-to-clipboard Bookmarklet

Create Bookmarklet (browser bookmark that executes Javsacript) to copy a given text to Clipboard.

This is the base javascript:

(function (text) {
  var node = document.createElement('textarea')
  var selection = document.getSelection()
@subfuzion
subfuzion / github-wiki-how-to.md
Last active October 22, 2024 20:36
GitHub Wiki How-To

How do I clone a GitHub wiki?

Any GitHub wiki can be cloned by appending wiki.git to the repo url, so the clone url for the repo https://myorg/myrepo/ is: [email protected]:myorg/myrepo.wiki.git (for ssh) or https://github.com/my/myrepo.wiki.git (for https).

You make edits, and commit and push your changes, like any normal repo. This wiki repo is distinct from any clone of the project repo (the repo without wiki.get appended).

How do I add images to a wiki page?

@david-crowell
david-crowell / Gems.md
Last active February 24, 2017 15:54
Gems for gem lecture
@wosephjeber
wosephjeber / ngrok-installation.md
Last active November 14, 2024 09:06
Installing ngrok on Mac

Installing ngrok on OSX

For Homebrew v2.6.x and below:

brew cask install ngrok

For Homebrew v2.7.x and above:

--
Introduction:
This coding challenge is designed for you to show off your skills to the 3Play Media Developer team. You
should have the following challenge completed by the time you come in for your in-person interview so we
can take a look at it together. While all of the basic requirements of this project should be met, you're
encouraged to make this project your own and implement any additional features that you see fit.
Feel free to ask whatever questions, use whatever resources and provide whatever documentation
you'd like during the completion of this project.
@natecook1000
natecook1000 / NSScanner+Swift.swift
Created March 3, 2015 20:13
Swift-friendly NSScanner methods
// NSScanner+Swift.swift
// A set of Swift-idiomatic methods for NSScanner
//
// (c) 2015 Nate Cook, licensed under the MIT license
import Foundation
extension NSScanner {
// MARK: Strings

Let's build a Bitly Clone!

Bitly is a url shortening service. Building a url shortener is a common interview question / take home project, because it's a minimal project that involves many aspects of web development. Build a website that allows you to submit a link, then gives you a new, hopefully shorter url to use for that link.

Advice and motivation

Typically at Hacker School understanding is emphasized over ability to throw things together - this is an exercise in the latter. It's also practice reading documentation to figure out how to do things quickly, and a guided way to gain exposure to web development concepts that you might research more after this sprint today. It reminds me (in good and bad ways) of a hackathon.

@SabretWoW
SabretWoW / rspec_model_testing_template.rb
Last active September 23, 2024 03:01
Rails Rspec model testing skeleton & cheat sheet using rspec-rails, shoulda-matchers, shoulda-callbacks, and factory_girl_rails. Pretty much a brain dump of examples of what you can (should?) test in a model. Pick & choose what you like, and please let me know if there are any errors or new/changed features out there. Reddit comment thread: http…
# This is a skeleton for testing models including examples of validations, callbacks,
# scopes, instance & class methods, associations, and more.
# Pick and choose what you want, as all models don't NEED to be tested at this depth.
#
# I'm always eager to hear new tips & suggestions as I'm still new to testing,
# so if you have any, please share!
#
# @kyletcarlson
#
# This skeleton also assumes you're using the following gems:
@ryansobol
ryansobol / gist:5252653
Last active November 4, 2024 23:06
15 Questions to Ask During a Ruby Interview

Originally published in June 2008

When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.

To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.

What to expect

Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.