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 |
| 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/" */ |
| describe("MyApp", function() { | |
| beforeEach(function() { | |
| browser().navigateTo("../../index.html"); | |
| }); | |
| it("should be at /quote", function() { | |
| browser().navigateTo('#!/quote'); | |
| expect( browser().location().url() ).toBe("/quote"); | |
| }); |
| "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 |
| 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] |
| #! /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“. | |
| # |
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 |
| <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; |
| Application.init("MyApplication", function(Core){ | |
| Core.loadConfig({ | |
| enableLogging: true, | |
| handleErrors: true | |
| }); | |
| Core.sandbox.addExtension("sayHello",function(){ | |
| alert("Hey there!"); | |
| ); |
| <cfset greeting = "Hello World"> | |
| <cfoutput>#greeting#</cfoutput> |