Skip to content

Instantly share code, notes, and snippets.

View lee-dohm's full-sized avatar
😴
Taking some well-deserved naps

Lee Dohm lee-dohm

😴
Taking some well-deserved naps
View GitHub Profile
src/text-editor.coffee
465: Grim.deprecate("This is now a view method. Call TextEditorElement::onDidChangeScrollTop instead.")
470: Grim.deprecate("This is now a view method. Call TextEditorElement::onDidChangeScrollLeft instead.")
1273: # Deprecated: Start an open-ended transaction.
1275: Grim.deprecate('Transactions should be performed via TextEditor::transact only')
1278: # Deprecated: Commit an open-ended transaction started with {::beginTransaction}.
1280: Grim.deprecate('Transactions should be performed via TextEditor::transact only')
1505: # Deprecated: Get all the decorations within a screen row range on the default
3080: Grim.deprecate("This is now a view method. Call TextEditorElement::scrollToTop instead.")
3085: Grim.deprecate("This is now a view method. Call TextEditorElement::scrollToTop instead.")
@lee-dohm
lee-dohm / checklist.md
Last active July 8, 2019 04:17
Travel checklist

Checklist

Pre-packing activities

  • Put Swiss Army knife in safe place
  • Put keys in safe place
  • Set aside valet key for Raven
  • Charge laptop
  • Do laundry
@lee-dohm
lee-dohm / Spotlight_2015-12-15-100830_CrystalWind.crash
Created December 16, 2015 01:16
Spotlight crash attempting to launch Atom
Process: Spotlight [757]
Path: /System/Library/CoreServices/Spotlight.app/Contents/MacOS/Spotlight
Identifier: com.apple.Spotlight
Version: 1.0 (972.16)
Build Info: SpotlightUI-972016000000000~70
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Spotlight [757]
User ID: 501
@lee-dohm
lee-dohm / atom-version.rb
Last active November 2, 2015 23:24
Atom and OS Version Text Expander Snippets (for OS X)
#!/usr/bin/env ruby
atom_version = `/usr/local/bin/atom --version`.chomp
print "Atom v#{atom_version}"
at ICSharpCode.SharpZipLib.Zip.FastZip.ExtractZip(String zipFileName, String targetDirectory, Overwrite overwrite, ConfirmOverwriteDelegate confirmDelegate, String fileFilter, String directoryFilter, Boolean restoreDateTime)
at Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass6_0.<<installPackageToAppDir>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Squirrel.Utility.<LogIfThrows>d__33`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Repro Steps: Launching from Dock

  1. Close all instances of Atom
  2. Launch Atom from the Dock
  3. Open the developer tools
  4. Enter the command: spawnSync = require('child_process').spawnSync
  5. Enter the command: spawnSync('/bin/zsh', ['--login'], {input: "env"}).stdout.toString()
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
Process: Atom [68265]
Path: /Applications/Atom.app/Contents/MacOS/Atom
Identifier: com.github.atom
Version: 1.0.3-a791809 (1.0.3-a791809)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Atom [68265]
User ID: 501
Date/Time: 2015-07-17 08:28:29.527 -0700
@lee-dohm
lee-dohm / migration.ex
Last active August 29, 2015 14:25
Migration error
** (MatchError) no match of right hand side value: %{columns: ["count"], command: :select, num_rows: 1, rows: [[0]]}
(ecto) lib/ecto/adapters/postgres.ex:61: Ecto.Adapters.Postgres.ddl_exists?/3
(ecto) lib/ecto/migration/schema_migration.ex:19: Ecto.Migration.SchemaMigration.ensure_schema_migrations_table!/1
(ecto) lib/ecto/migrator.ex:36: Ecto.Migrator.migrated_versions/1
(ecto) lib/ecto/migrator.ex:134: Ecto.Migrator.run/4
(mix) lib/mix/cli.ex:55: Mix.CLI.run_task/2
'.source.java':
'private static final':
prefix: 'psf'
body: 'private static final'
'private static final String':
prefix: 'psfs'
body: 'private static final String'
'JUnit Test':
prefix: 'test'
body: """
@lee-dohm
lee-dohm / gist:5d7d23cdd024fd5f1f46
Last active August 29, 2015 14:23
Code Convention Guidelines System

The guidelines will follow the convention described in Microsoft's .NET Framework Design Guidelines:

The guidelines are organized as simple recommendations using DO, CONSIDER, AVOID, and DO NOT. For example, a Do guideline is one that should virtually always be followed. On the other hand, Consider guidelines should generally be followed, but if you fully understand the reasoning behind a guideline and have a good reason to not follow it anyway, you should not feel bad about breaking the rules. Similarly, Do not guidelines indicate something you should almost never do. Less strong, Avoid guidelines indicate that something is generally not a good idea, but there are known cases where breaking the rule makes sense.

Some more complex guidelines are followed by additional background information, illustrative code samples, and rationale.