Skip to content

Instantly share code, notes, and snippets.

@bryanstedman
bryanstedman / obsidian.css
Last active January 15, 2024 07:04
My modified Minimal Obsidian.md theme - credit @kepano
/*
Minimal Obsidian by @kepano
This theme is provided "as is", and is focused on my personal use
of Obsidian. As such I have neither optimized nor tested it with
all the features of Obsidian that I don't frequently use.
Since this theme modifies significant parts of the Obsidian interface,
it might break with future updates.
@bryanstedman
bryanstedman / .ackrc
Created July 3, 2019 16:54 — forked from theaboutbox/.ackrc
My .ackrc
--type-add=css=.sass,.less,.scss
--type-add=ruby=.rake,.rsel,.builder,.thor
--type-add=html=.haml,.html.erb,.html.haml
--type-add=js=.js.erb,.coffee
--type-set=cucumber=.feature
--type-set=c=.c,.cpp,.ino,.pde,.h
--ignore-dir=vendor
--ignore-dir=log
--ignore-dir=tmp
--ignore-dir=doc
on alfred_script(q)
if application "iTerm2" is running or application "iTerm" is running then
run script "
on run {q}
tell application \"iTerm\"
activate
try
select first window
set onlywindow to true
on error
@bryanstedman
bryanstedman / pre-commit
Created April 25, 2016 18:41
Pre-Commit Hook Checking for Debug code
#!/bin/sh
#
# Pre commit hook to look for missed debug code
DEBUG_REGEX="console\.(debug|info|log|warn)|%pre=|\.to_yaml"
# Add extensions to check here
EXTENSIONS_REGEX="(.html$|.haml$|.erb$|.js$)"
ERRORS_BUFFER=""
TEXT_DEFAULT="\\033[0;39m"
@bryanstedman
bryanstedman / .jscsrc
Last active February 23, 2016 00:46
My default JSCS config
{
// JSCS Configuration File
// See jscs.info for more details
"excludeFiles": [
"node_modules/**"
],
"disallowAnonymousFunctions" : null, // Requires that a function expression be named.
"disallowCapitalizedComments" : null, // Requires the first alphabetical character of a comment to be lowercase.
@bryanstedman
bryanstedman / .jshintrc
Last active August 29, 2015 14:26
My default jshint config
{
// JSHint Configuration File
// See jshint.com/docs/ for more details
"maxerr" : 50, // (int) Maximum error before stopping
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"curly" : true, // true: Require {} for every new block or scope
"eqeqeq" : true, // true: Require triple equals (===) for comparison
@bryanstedman
bryanstedman / bling.js
Last active August 29, 2015 14:23 — forked from paulirish/bling.js
/* bling.js */
window.$ = document.querySelectorAll.bind(document)
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn)
}
NodeList.prototype.__proto__ = Array.prototype
@bryanstedman
bryanstedman / .csscomb.json
Created September 3, 2014 14:59
CSScomb config file
{
"remove-empty-rulesets": true,
"always-semicolon": true,
"color-case": "lower",
"block-indent": " ",
"color-shorthand": false,
"element-case": "lower",
"eof-newline": true,
"leading-zero": true,
"quotes": "single",

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})