Skip to content

Instantly share code, notes, and snippets.

Brian Sexton bdsexton

Block or report user

Report or block bdsexton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bdsexton
bdsexton / Generate UUID.scpt
Created May 4, 2012
Generate UUID via AppleScript
View Generate UUID.scpt
do shell script "uuidgen"
set uuid to (get result)
display dialog "Have a UUID on the house:" with title "UUID Generator" default answer uuid buttons "OK" default button "OK"
@bdsexton
bdsexton / Move and Resize Current Application.scpt
Created May 4, 2012
Move and Resize Current Application via AppleScript
View Move and Resize Current Application.scpt
-- Adapted from http://www.ithug.com/2007/09/applescript-moving-and-resizing-windows/:
tell current application
activate
set the bounds of the first window to {0, 0, 1024, 768}
end tell
@bdsexton
bdsexton / Default (OSX).sublime-keymap
Created Apr 4, 2014
New Sublime Text Layouts (One Left and Two Right & Two Left and One Right) via Keyboard
View Default (OSX).sublime-keymap
[
{
"keys": ["shift+alt+super+left"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
@bdsexton
bdsexton / Main.sublime-menu
Created Apr 4, 2014
New Sublime Text Layouts (One Left and Two Right & Two Left and One Right) via Menu
View Main.sublime-menu
[
{
"caption": "View",
"mnemonic": "V",
"id": "view",
"children":
[
{
"caption": "Layout",
"mnemonic": "L",
View Bookmarklet Template
javascript:(function(){/* Do stuff here. */}());void(0);
View Translucent Magenta Outline CSS
outline: 1px dotted rgba(255, 0, 255, 0.5);
outline-offset: -1px;
@bdsexton
bdsexton / .gitignore
Last active Aug 29, 2015
This is just a simple .gitignore file to ignore common clutter.
View .gitignore
# OS X
.DS_Store
# Adobe Dreamweaver
_notes/
# Sublime Text
*.sublime-project
*.sublime-workspace
# JetBrains IDEs
.idea/
# CodeKit
@bdsexton
bdsexton / template.sublime-project
Created Oct 5, 2014
This is just a simple Sublime Text 2 project file template that excludes some common clutter.
View template.sublime-project
{
"folders":
[
{
"path": "/path/to/project/root",
"file_exclude_patterns": [".gitignore", "*.sublime-*"],
"folder_exclude_patterns": [".idea"]
}
]
}
@bdsexton
bdsexton / angularjs-directive-module.js
Created Nov 27, 2014
An AngularJS Directive via Isolated Module JavaScript
View angularjs-directive-module.js
(function() {
/*
An AngularJS Directive via Isolated Module JavaScript
This is just a simple example of an AngularJS module that defines a
directive within an immediately invoked function expression, which can
be stored in and loaded from a separate file for clear, lean code
organization and easy distribution.
@bdsexton
bdsexton / load.js
Created Feb 1, 2015
Non-Destructive load-Event Handler
View load.js
window.addEventListener("load", function(event) {
console.log("Hello! Non-destructive load-event handlers are the best kind! Don't you agree?");
console.log("load event: %o", event);
});
You can’t perform that action at this time.