Skip to content

Instantly share code, notes, and snippets.

View atuttle's full-sized avatar

Adam Tuttle atuttle

View GitHub Profile
// 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()
})
// Menu: Run the Tutorial
// Description: Learn the basics of using Script Kit
// Author: John Lindquist
// Twitter: @johnlindquist
await cli(
"new",
"--template",
"tutorial",
"--message",

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:

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
@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
@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 / 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'
<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 / Cobalt2.spTheme
Created April 25, 2016 19:17
Cobalt2 theme (ported from the Sublime Text theme by @wesbos) for Sequel Pro: http://www.sequelpro.com/ -- save it as Cobalt2.spTheme and import it from your settings.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<dict>
<key>background</key>
@atuttle
atuttle / EOL.cfm
Created April 18, 2016 20:16
Determining what char codes ACF uses on different operating systems
<cfscript>
fn = "ram://eol.txt";
f = fileOpen( fn, "append", "utf-8" );
fileWriteLine( f, '1' );
fileWriteLine( f, '2' );
fileClose( f );
r = fileRead( fn );
chars = listToArray( r, '' );