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 |
{ | |
"@attributes": { | |
"BloodBankCode": "021" | |
}, | |
"RunTime": "2015-06-03T10:48:04", | |
"StockLevel": [ | |
{ | |
"@attributes": { | |
"BloodGroup": "0+" | |
}, |
function get(obj, path) { | |
var parts = path.split(/\]\[|\]\.|\[|\]|\./); | |
return parts | |
.reduce(function(o, x) { | |
return (typeof o == "undefined" || o === null) ? x : o[x]; | |
}, obj); | |
} | |
// example: get(obj, "prop.foo[0][2].bar[3].zoom") |
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 |
Go to Sublime Text 2 > Preferences > Key Bindings - User
and add this JSON to the file:
[
{
"keys": ["super+shift+l"],
"command": "insert_snippet",
"args": {
"contents": "console.log(${1:}$SELECTION);${0}"
},
/* | |
Complete buildable project containing minimum sample code to reproduce bug: | |
https://dl.dropboxusercontent.com/u/20181/TextOverflowModeFill-bug.zip | |
Bug description: | |
Using a TextLayer with GTextOverflowModeFill seems to position the | |
leading 'j' out of place in wrapped words starting with 'j'. | |
Example screenshot of the 'j' out of place: |
{ | |
"conditions": [ | |
{ | |
"id": "D001", | |
"value": "barn" | |
} | |
], | |
"id": "PERSONNUMMERID", | |
"label": "Personnummer för barnet", | |
"placeholder": "ååååmmddxxxx", |
import json | |
top = '.' | |
out = 'build' | |
def options(ctx): | |
ctx.load('pebble_sdk') | |
def configure(ctx): | |
ctx.load('pebble_sdk') |
{ | |
"AF": "Afghanistan", | |
"AX": "Aland Islands", | |
"AL": "Albania", | |
"DZ": "Algeria", | |
"AS": "American Samoa", | |
"AD": "Andorra", | |
"AO": "Angola", | |
"AI": "Anguilla", | |
"AQ": "Antarctica", |
<?php | |
/** | |
* Example usage (using jQuery): | |
* var url = "/path/mantisconnect_json.php?name=mc_project_get_issues&project_id=0&page_number=1&per_page=10"; | |
* $.getJSON(url, function(data) { | |
* $.each(data, function() { | |
* console.log(data.id + ': ' data.summary); | |
* }); | |
* }); | |
*/ |