Skip to content

Instantly share code, notes, and snippets.

@caryhartline
caryhartline / JavaScript Indent.js
Created May 7, 2018 20:32 — forked from brentsimmons/JavaScript Indent.js
This is a BBEdit text filter for indenting (and beautifying) JavaScript. (forked to add my own defaults, yes, I use tabs)
#!/usr/local/bin/node
// PBS 12/5/13
// This is a BBEdit text filter for indenting (and beautifying) JavaScript.
// It goes in ~/Library/Application Support/BBEdit/Text Filters/
//
// On my machine I assigned it a keyboard shortcut: cmd-'
//
// It requires the js-beautify Node module: https://github.com/einars/js-beautify
//
@caryhartline
caryhartline / JavaScript Indent.js
Created May 7, 2018 20:32 — forked from brentsimmons/JavaScript Indent.js
This is a BBEdit text filter for indenting (and beautifying) JavaScript.
#!/usr/local/bin/node
// PBS 12/5/13
// This is a BBEdit text filter for indenting (and beautifying) JavaScript.
// It goes in ~/Library/Application Support/BBEdit/Text Filters/
//
// On my machine I assigned it a keyboard shortcut: cmd-'
//
// It requires the js-beautify Node module: https://github.com/einars/js-beautify
//
@caryhartline
caryhartline / Com Dot Apple
Created September 6, 2017 00:22
Every single preferences "Defaults" file by Apple as of 10.13 Beta (17A360a)
MessagesLastRead
MobileMeAccounts
com.apple.AppleMultitouchMouse
com.apple.AppleMultitouchTrackpad
com.apple.Automator
com.apple.BKAgentService
com.apple.BezelServices
com.apple.CalendarAgent
com.apple.CalendarNotification.CalNCService
com.apple.CallHistorySyncHelper
@caryhartline
caryhartline / Audio Kaj Video.sh
Last active May 9, 2017 07:57
Skripto kombini audio kaj video en unu video dosiero. / A script to combine audio and video into one video file.
#!/bin/sh
videocheck=$(find ./*.mp4 | wc -l)
audiocheck=$(find ./*.m4a | wc -l)
if [ "$audiocheck" -eq 1 ] && [ "$videocheck" -eq 1 ]
then
true
else
echo More than one audio file or more than one video file in this directory. This script is a fragile house of cards so you will need to fix this directory. \
@caryhartline
caryhartline / notes.md
Created September 27, 2016 22:21
scss folder structure: a personal spin on the 7-1 pattern by Hugo Giraudel http://sass-guidelin.es/#the-7-1-pattern

This structure is based on a couple assumptions:

  • The website is quite small in both file size and number of files. I'm talking like 3 pages at most.
  • The website is highly focused on a particular idea (rather than a CMS that has many interchangeable parts).

This structure creates a world where variables and mixins live together The structure leans on the structure of the html rather than creating its own structure.

As I'm writing this, I am quite tired. I am sure I missed some things.

@caryhartline
caryhartline / UnderConstruction.html
Last active September 5, 2016 03:17
An extremely basic "Site Under Construction" - Light & Dark
<!doctype html>
<html>
<head>
<title>Site Under Construction</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 75vh;
@caryhartline
caryhartline / update.sh
Created September 4, 2016 03:17
Installs all macOS system-level updates.
softwareupdate -ia
@caryhartline
caryhartline / InstallBundler.sh
Created September 2, 2016 03:15
I know this is silly, but I can never remember if it is Bundlr or Bundler
gem install bundler
@caryhartline
caryhartline / GetHomebrewPlus.sh
Created September 2, 2016 03:12
Get Homebrew then check to see if it is okay and update before any sort of installation
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"; brew doctor; brew update
@caryhartline
caryhartline / GetRubyVersionManager.sh
Last active September 2, 2016 03:08
The two commands that are used to quick start installing Ruby Version Manager
# Ruby version is 2.3.1.
# If you grab this in or after October of 2016:
# check the correct latest version at
# https://www.ruby-lang.org/en/downloads/
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3; curl -sSL https://get.rvm.io | bash -s stable --ruby=2.3.1