Skip to content

Instantly share code, notes, and snippets.

View marfarma's full-sized avatar

Pauli Price marfarma

View GitHub Profile
@marfarma
marfarma / .jshintrc
Created February 5, 2017 04:10 — forked from jrraymond/.jshintrc
A starter JSHint jshintrc file with all options from the [JSHint Options Reference](http://www.jshint.com/docs/options/) list. Just copy into home/project folder and customize.
{
//Enforcing options
"bitwise" : true, // no bitwise operators
"camelcase" : true, // variable names camelCase or UPPER_CASE
"curly" : true, // curly braces around blocks
"eqeqeq" : true, // no == and !=
"es3" : false, // ECMAScript 3 specification
"forin" : true, // for in loops must filter object's items
"freeze" : false, // prevent overwriting native objects
"immed" : true, // immediate function invocations must be wrapped in ()
@marfarma
marfarma / interview-questions.md
Created February 3, 2017 18:37 — forked from jvns/interview-questions.md
A list of questions you could ask while interviewing

A lot of these are outright stolen from Edward O'Campo-Gooding's list of questions. I really like his list.

I'm having some trouble paring this down to a manageable list of questions -- I realistically want to know all of these things before starting to work at a company, but it's a lot to ask all at once. My current game plan is to pick 6 before an interview and ask those.

I'd love comments and suggestions about any of these.

I've found questions like "do you have smart people? Can I learn a lot at your company?" to be basically totally useless -- everybody will say "yeah, definitely!" and it's hard to learn anything from them. So I'm trying to make all of these questions pretty concrete -- if a team doesn't have an issue tracker, they don't have an issue tracker.

I'm also mostly not asking about principles, but the way things are -- not "do you think code review is important?", but "Does all code get reviewed?".

--==============================
-- Send Keynote Text to Desktop Markdown File
-- Writted By: Richard Dooling https://github.com/RichardDooling/
-- Based on
-- Send Keynote Presenter Notes to Evernote
-- Version 1.0.1
-- Written By: Ben Waldie <ben@automatedworkflows.com>
-- http://www.automatedworkflows.com
-- Version 1.0.0 - Initial release
[
{
"scope": "https://accounts.google.com:443",
"method": "POST",
"path": "/o/oauth2/token",
"body": "client_id=630524341769-18r7lv3t75ius04f7f9na9b4a72bdq08.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8100&code=4%2Fr2SHUKHwsXND1KO9IvSj7M2SiV5BOrOtsnEaX-d8-j4&grant_type=authorization_code&client_secret=gP5ZLXauDGiHdXPOhwCn-4bs",
"status": "200",
"response": {
"access_token": "ya29.GwKcl1wguJnuut-9ndPNlwuIKp86jwkGjutndMacgEDZaS2xb-kAlFvUV6Dqglc16bdT",
"token_type": "Bearer",
# Brewfile for https://github.com/Homebrew/homebrew-bundle
# Generated via `brew bundle dump`
# See old Caskfile (below) for categorized list of some stuff you may wish to install
tap 'caskroom/cask'
tap 'homebrew/bundle'
tap 'homebrew/dupes'
tap 'homebrew/fuse'
tap 'homebrew/versions'
tap 'thoughtbot/formulae'
@marfarma
marfarma / server.js
Last active October 30, 2015 22:20
Database server
All code has been moved to: https://github.com/marfarma/pairing-server
@marfarma
marfarma / goals.md
Last active October 30, 2015 23:55
Notes for RC

Things I want to learn

var fs = require('fs'),
url = require('url');
module.exports = function (rootDir, indexFile) {
indexFile = indexFile || "index.html";
rootDir = rootDir || '';
var rootPart = rootDir.length > 0 ? rootDir + '/' : '';
return function(req, res, next){
var path = url.parse(req.url).pathname;
@marfarma
marfarma / public GetCatchAllHandlerIfAny()
Created July 15, 2013 19:43
// // public overload of ServiceStackHttpHandlerFactory.GetCatchAllHandlerIfAny, adds function parameter, for CatchAllHandlers the want to // all other CatchAllHandlers to have precedence. Prevents infinite recursion //
//
// public overload of ServiceStackHttpHandlerFactory.GetCatchAllHandlerIfAny, adds function parameter, for CatchAllHandlers the want to
// all other CatchAllHandlers to have precedence. Prevents infinite recursion
//
public static IHttpHandler GetCatchAllHandlerIfAny(string httpMethod, string pathInfo, string filePath, function skipCatchAllHandler)
{
if (EndpointHost.CatchAllHandlers != null)
{
foreach (var httpHandlerResolver in EndpointHost.CatchAllHandlers)
{
@marfarma
marfarma / app.js
Created June 18, 2013 23:15 — forked from twilson63/app.js
var config = require('./config');
var nano = require('nano')(config.db);
var express = require('express');
var async = require("async");
var app = express();
var modelDoc = {
language: "javascript",
views: {
all: {