Skip to content

Instantly share code, notes, and snippets.

@scarney81
scarney81 / secret-santa.ts
Last active December 9, 2021 05:42
Secret Santa
import axios from "axios";
const people = {
Seth: "email@example.com"
Nick: "email@example.com",
Aman: "email@example.com",
Troy: "email@example.com",
};
const names = Object.keys(people);
@scarney81
scarney81 / package.json
Created August 12, 2020 16:38
courier interview
{
"name": "vanilla-typescript",
"version": "1.0.0",
"description": "JavaScript and TypeScript example starter project",
"main": "index.html",
"scripts": {
"start": "parcel index.html --open",
"build": "parcel build index.html"
},
"dependencies": {

Keybase proof

I hereby claim:

  • I am scarney81 on github.
  • I am sethcarney (https://keybase.io/sethcarney) on keybase.
  • I have a public key ASDVglVBNIaQey9k7xEWkNy72X-FqqSZrPtY8IwDOX4oFQo

To claim this, I am signing this object:

@scarney81
scarney81 / gist:76ceb19cbe18d4f13f56
Last active August 29, 2015 14:07
binding function from pre
//= require ../index
(function () {
'use strict';
angular
.module('projects/directives')
.directive('projects', function ($q, currentUser, Project, Workflow, viewOptions) {
return {
restrict: 'E',
@scarney81
scarney81 / gist:e1546c352df34d8f8b64
Created May 6, 2014 13:37
increase file watch count and grunt watch
alias hammer=gruntWatch
function gruntWatch() {
# increase file watch limits
sudo launchctl limit maxfiles 10480 10480
ulimit -n 10480
# remove existing build directories
rm -rf ./_dist
@scarney81
scarney81 / route_list.js
Last active August 29, 2015 13:58
Output API routes to console
(function () {
'use strict';
var _ = require('underscore'),
routes = require('./routes'),
log = function (method) {
return function (route) {
console.log(route + ' -- ' + method);
};
},
@scarney81
scarney81 / example_view.js
Created August 2, 2013 02:26
Modifying Backbone.js views to fire Stativus events
var ApplicationView = StativusView.extend({
template: _.template('<a href="#">Stativus</a>'),
events: {
'click a': 'showAlert'
},
render: function() {
this.$el.html(this.template());
@scarney81
scarney81 / MochaJsUnitTestExample
Created May 30, 2012 16:13
Unit test example
/*globals describe, beforeEach, it */
var should = require('should'),
mockery = require('mockery'),
helpers = require('./helpers'),
Cache = require('../chatter-cache').ChatterCache;
describe('Chatter Cache', function() {
var proxy = null;