⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset greeting = "Hello World"> | |
<cfoutput>#greeting#</cfoutput> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Application.init("MyApplication", function(Core){ | |
Core.loadConfig({ | |
enableLogging: true, | |
handleErrors: true | |
}); | |
Core.sandbox.addExtension("sayHello",function(){ | |
alert("Hey there!"); | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
public void function populate(required struct memento, | |
boolean trustedSetter=false, | |
string include="", | |
string exclude="", | |
string disallowConversionToNull=""){ | |
var object = this; | |
var key = ""; | |
var populate = true; |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python2 | |
# -*- coding: utf-8 -*- | |
# | |
# Traverse a directory tree, picking embedded pictures from .MP3 and .M4A audio | |
# saving them to a “cover.{png,jpg,bmp}” (as long as the file does *not* exist) | |
# and then removing the embedded pictures from the audio file. | |
# | |
# Requires the Mutagen tag edition library: https://code.google.com/p/mutagen/ | |
# Most distributions ship in a package called “python-mutagen“. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Setup | |
----- | |
git clone <repo> | |
clone the repository specified by <repo>; this is similar to "checkout" in | |
some other version control systems such as Subversion and CVS | |
Add colors to your ~/.gitconfig file: | |
[color] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
app.directive( "invScreenUploader", function() { | |
function link( scope, element, attrs ){ | |
// URL is undefined initially but eventually gets defined | |
console.log( attrs.url ); | |
// These get defined in immediately |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("MyApp", function() { | |
beforeEach(function() { | |
browser().navigateTo("../../index.html"); | |
}); | |
it("should be at /quote", function() { | |
browser().navigateTo('#!/quote'); | |
expect( browser().location().url() ).toBe("/quote"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |