Skip to content

Instantly share code, notes, and snippets.

Pauli Price marfarma

Block or report user

Report or block marfarma

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@marfarma
marfarma / .jshintrc
Created Feb 5, 2017 — 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.
View .jshintrc
{
//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 Feb 3, 2017 — forked from jvns/interview-questions.md
A list of questions you could ask while interviewing
View interview-questions.md

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?".

View 2014_11_02_Send_Keynote_Text_To_Markdown_File.applescript
--==============================
-- 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
View google.json
[
{
"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",
View Brewfile
# 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 Oct 30, 2015
Database server
View server.js
All code has been moved to: https://github.com/marfarma/pairing-server
@marfarma
marfarma / goals.md
Last active Oct 30, 2015
Notes for RC
View goals.md

Things I want to learn

View grunt-connect-rewrite.js
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 Jul 15, 2013
// // public overload of ServiceStackHttpHandlerFactory.GetCatchAllHandlerIfAny, adds function parameter, for CatchAllHandlers the want to // all other CatchAllHandlers to have precedence. Prevents infinite recursion //
View public GetCatchAllHandlerIfAny()
//
// 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)
{
View 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: {
You can’t perform that action at this time.