Skip to content

Instantly share code, notes, and snippets.

View adamjohnson's full-sized avatar

Adam Johnson adamjohnson

View GitHub Profile
@adamjohnson
adamjohnson / bracket.sublime-snippet
Created November 28, 2017 17:02
CSS Bracket Expander Sublime Text Snippet
<snippet>
<!-- Type `bracket` and hit tab to open a bracket with a closing comment. -->
<!-- Type the class for the element you are styling and it is placed at the top and in the comment after the closing bracket -->
<!-- Hit tab a second time to put your cursor into a beautifuly tabbed spot within the bracket -->
<!-- https://webdevstudios.com/2016/08/16/snippets-saved-life-how-sublime-text-3-snippets-changed-everything/ -->
<content><![CDATA[
.${1:example} {
${2:Type a class then hit tab!}
} //.${1:example}
]]></content>
@adamjohnson
adamjohnson / sublime-packages.md
Last active January 6, 2022 19:13
My Sublime Text Packages

My Sublime Text 3 Packages

As of 1/6/2022

  • Align Tab
  • All Autocomplete
  • Better CoffeeScript
  • BootstrapAutocomplete
  • Clickable URLs
  • Default File Type
@adamjohnson
adamjohnson / SassMeister-input.scss
Created November 19, 2015 15:25
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// Bourbon (v4.2.3)
// Neat (v1.6.0)
// ----
@import "bourbon/bourbon";
@import "neat/neat";
@adamjohnson
adamjohnson / preferences.sublime-settings
Last active November 26, 2019 20:06
Exclude folder from search in Sublime Text. Helpful if you want to have the folder show up on the left, but don't want Sublime to search it when doing a "Find in Files" / project-wide search.
{
"binary_file_patterns": ["node_modules/*", "bower_components/*"]
}
@adamjohnson
adamjohnson / SassMeister-input.scss
Created June 25, 2015 15:32
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
// The variable cascade!
// NOTE: This example is meant to illustrate how variables cascade.
// NOTE: this may seem elementary, but imagine trying to override these variables in different files in different parts of the cascade.
// Example 1: Outputs white because $first-variable: 'blue'; comes after the .outputs-white class
$first-variable: 'white';
@adamjohnson
adamjohnson / SassMeister-input.scss
Created May 13, 2015 16:02
Stu Robertson's Media Query Mixin Example
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
$doc-font-size: 16;
@mixin mq($point, $IE9: false, $query1: min, $query2: width) {
@if $IE9 == true{
.lt-ie9 & {
@content;
@adamjohnson
adamjohnson / SassMeister-input.scss
Created January 30, 2015 16:19
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
// Primary
$dark-orange: #d9531e;
$orange: #f47b20;
$orange-med: #d9531e;
@adamjohnson
adamjohnson / acer-c720-elementaryos-touchpad-fix.md
Last active August 29, 2015 14:13
Acer C720 ElementaryOS Touchpad Fix

Lots of folks note how Kernel 3.17 is supposed to fix trackpad issues. So, I initially installed 3.18 and found that my sound didn't work (? YMMV). Indeed, my trackpad did work, but my sound didn't. I then reinstalled elementary via elementaryos-chromebook and didn't update the kernel. Not updating the Kernel is reccommended:

http://shnatsel.blogspot.com/2013/12/why-you-should-not-upgrade-kernel-on.html

Here's what I did to get things working:

  1. Installed elementaryos-chromebook
  2. Booted into Elementary via Ctrl + L. Went through prompts.
  3. Went to Applications > Update Manager. Installed all updates.
  • Installed Hardware updates first. Rebooted.
@adamjohnson
adamjohnson / TodoReview.sublime-settings
Created October 8, 2014 21:53
My SublimeTodoReview settings. Excluding node_modules and .git, responds to TODO: and NOTE:, and orders your to-do's on top when the list get's generated.
{
"patterns": {
"TODO": "TODO[\\s]*?:[\\s]*(?P<todo>.*)$",
"NOTE": "NOTE[\\s]*?:[\\s]*(?P<note>.*)$"
},
"patterns_weight": {
"TODO": 10,
"NOTE": 20
},
"exclude_folders": [