Skip to content

Instantly share code, notes, and snippets.

@negamorgan
negamorgan / explore-plan-code-test.md
Last active July 26, 2025 18:46
Explore Plan Code Test

At the end of this message, I will ask you to do something. Please follow the "Explore, Plan, Code, Test" workflow when you start.

Explore

First, use parallel subagents to find and read all files that may be useful for implementing the ticket, either as examples or as edit targets. The subagents should return relevant file paths, and any other info that may be useful.

Plan

Next, think hard and write up a detailed implementation plan. Don't forget to include tests, lookbook components, and documentation. Use your judgement as to what is necessary, given the standards of this repo.

@negamorgan
negamorgan / .finnicky.js
Last active June 18, 2024 14:31 — forked from TravisCarden/.finnicky.js
Open ClickUp links from anywhere in the desktop app
module.exports = {
defaultBrowser: "Choosy",
options: { hideIcon: true },
rewrite: [
{
// Change the protocol to the one the desktop app recognizes.
match: finicky.matchHostnames(["app.clickup.com"]),
url: { protocol: "clickup" }
}
],
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
@negamorgan
negamorgan / .bowerrc
Created July 7, 2015 21:42
.bowerrc for gulp/static site
{
"cwd": "./dist",
"directory": "/bower_components/",
"analytics": false
}
@negamorgan
negamorgan / es2015.js
Last active August 29, 2015 14:24
ES2015 syntax notes
let articles = [
{
body: 'lorem ipsum dolor sit amet',
title: 'i love articles'
},
{
body: 'lorem ipsum',
title: 'stuff and things'
},
{
@negamorgan
negamorgan / package.json
Created June 30, 2015 13:31
package.json
{
"name": "package",
"version": "0.0.0",
"dependencies": {
"foundation-sites": "^5.5.2",
"jquery": "^2.1.4"
},
"devDependencies": {
"browser-sync": "^2.7.1",
"browserify": "^10.2.4",
@negamorgan
negamorgan / basic-sails-cms.sh
Created May 28, 2015 15:22
How to basic Sails.js CMS
npm install -g sails
sails new someAppName && cd someAppName
npm install --save sails-hook-adminpanel jade sails-mysql # or sails-mongo or sails-postgresql
touch config/adminpanel.js # TODO draw the rest of the owl here...
# in config/views.js, set 'engine' to 'jade'
mysql -uroot # only if you need a new mysql user
CREATE USER 'testuser'@'localhost'; # only if you need a new mysql user
GRANT ALL PRIVILEGES ON * . * TO 'testuser'@'localhost'; # only if you need a new mysql user
exit; # only if you need a new mysql user
@negamorgan
negamorgan / gulpfile.js
Last active August 29, 2015 14:20
gulpfile.js
'use strict';
var gulp = require('gulp'),
gp = require('gulp-load-plugins')(),
wiredep = require('wiredep').stream,
bs = require('browser-sync').create(),
reload = bs.reload;
// lint js with jshint, combine all files into one,
// write a minified and unminified version of file

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

on run {}
activate application "Microsoft Outlook"
tell application "Microsoft Outlook"
set selected folder to folder "Archive"
end tell
tell application "System Events"
keystroke "f" using {option down, command down}
end tell
end run