Skip to content

Instantly share code, notes, and snippets.

@jsejcksn
jsejcksn / gist.md
Last active August 29, 2015 14:06
Test Gist

Question
What happens if you turn off the ACE Editor while editing a Markdown file?

Answer
You lose line numbering and Indent mode.

  1. I really wish that the editor remembered my selected number of spaces for indents.
    Maybe it's because I didn't use any yet?
  2. That was it!
  3. No, that wasn't it. It's a localStorage variable.
@jsejcksn
jsejcksn / markdown-basics.md
Last active August 29, 2015 14:07
Markdown basics

#Markdown basics

The content in the grey blocks show the meaningful formatting that you'd use while writing your text content, and then below each block you can see what it would look like after being converted into HTML.

Table of Contents

Headers
Emphasis
Lists
Blockquotes

Adult Jazz

Gist Is

  1. Hum
  2. Am Gone
  3. Springful
  4. Donne Tongue
  5. Pigeon Skulls
  6. Spook
  7. Idiot Mantra

Sunday (Disc 1)

  1. Hey Mami • Sylvan Esso (from Sylvan Esso)
  2. Future People • Alabama Shakes (from Sound & Color)
  3. Don't Wait • Mapei (from Don't Wait - Single)
  4. All I Want • Dawn Golden (from Still Life)
  5. Dollar Sines • KRNE
  6. Beyond The Sea • Bobby Darin (from The Ultimate Bobby Darin)
  7. Chemical Reaction • Sucré (from A Minor Bird)
  8. Stampede • Sucré (from A Minor Bird)
@jsejcksn
jsejcksn / duplicate-volume.scpt
Last active September 20, 2015 05:15
AppleScript Snippets
(*
Tested on OS X 10.10
*)
tell application "Terminal"
activate
do script "rsync -aEh --delete --exclude=PATTERN --progress '/path/to/source' '/path/to/destination'"
end tell
@jsejcksn
jsejcksn / wav-to-caf.txt
Last active October 9, 2015 10:34
Convert to CAF from WAV
afconvert -f caff -d LEI16@44100 -c 1 in.wav out.caf
The -c 1 outputs one channel only. Omit that bit to retain original channels.
<!doctype html>
<html lang="en">
<head itemscope itemtype="http://schema.org/Product">
<meta charset="utf-8">
<META HTTP-EQUIV="Expires" content="Wed, 06 Jul 2015 06:06:06 GMT"/>
<meta itemprop="name" content="Noizio – your subtle companion!">
<meta itemprop="description" content="Noizio is the minimalistic background sound equalizer for Mac OS X, that will increase your working productivity or ability to relax.">
<meta itemprop="image" content="www.noiz.io">
@jsejcksn
jsejcksn / keybase.md
Created July 6, 2016 06:17
Keybase proof

Keybase proof

I hereby claim:

  • I am jsejcksn on github.
  • I am jsejcksn (https://keybase.io/jsejcksn) on keybase.
  • I have a public key ASB739GbX4WBeJ10T0Wq09-aLj8ZgCjOzpgEy6J8BFYKKAo

To claim this, I am signing this object:

@jsejcksn
jsejcksn / bugs-in-ios_10-and-macos_10_12.md
Last active September 22, 2016 20:57
A community documentation of the bugs in Apple's most recent OS updates

Bugs in iOS 10 and macOS 10.12

iOS 10

Lock screen

  1. Prevalence of app notifications in lower left. "Show on lock screen" setting.

Messages

const console = {
log: (msg) => {
const para = document.createElement('p');
para.insertAdjacentHTML('beforeend', msg);
document.body.insertAdjacentElement('beforeend', para);
}
};
const space = ' ';
const empty = '';