Skip to content

Instantly share code, notes, and snippets.

View atuttle's full-sized avatar

Adam Tuttle atuttle

View GitHub Profile
<cfscript>
function deORM( obj, depth = 1, depthLimit = 10 ){
var deWormed = {};
if (depth >= depthLimit){
return {};
}
if (isSimpleValue( obj )){
deWormed = obj;
}
else if (isObject( obj )){
@atuttle
atuttle / Gruntfile.js
Created June 10, 2016 17:49
My Browserify & Grunt config for React.js with LESSCSS
module.exports = function(grunt){
'use strict';
grunt.initConfig({
less: {
bundle: {
options: {
compress: true
,report: 'min'
@atuttle
atuttle / _readme.md
Last active October 1, 2018 12:34
Push Packt Free Book of the Day alert into your slack channel

Push alerts about the daily 🆓 Packt eBook into Slack

Install this globally. Yes, globally.

$ npm install -g scrape-html

Now create a local project somewhere:

@atuttle
atuttle / Makefile
Last active March 25, 2020 23:27
A quick makefile for setting up Folding@Home on OSX
# https://hub.docker.com/r/linuxserver/foldingathome/
up: .setup
docker start foldingathome
open:
open http://localhost:7396/
down:
docker stop foldingathome

Working Code Podcast Patron Discord Code of Conduct

Welcome!

The Working Code Podcast Discord is a place for Patrons of the Working Code Podcast to chat about the podcast and anything else they want (within the reasonable limits outlined here).

The current admins are:

  • Adam Tuttle

How to make an annual plan

Notes from this video by Jack Conte, CEO of Patreon (and member of band Pomplamoose, which I mention only because it's relevant to the video.)

Why?

  • Gives you a greater ability to focus on what matters
  • Helps you understand what you want and how to get it
  • Let's you live your dream

An annual plan consists of:

// Menu: Run the Tutorial
// Description: Learn the basics of using Script Kit
// Author: John Lindquist
// Twitter: @johnlindquist
await cli(
"new",
"--template",
"tutorial",
"--message",
// test/unit/services/SecurityFilterService
describe("Tests for SecurityFilterService", () => {
describe("Tests for isAuthorised", () => {
it("will reject a user that is not authorised to access the resource", () => {
service = new SecurityFilterSerivce() // might need mocked dependencies
result = service.isAuthorised("juniorUser", "/email/approve-copy", "patch")
expect result.toBeFalse()
})