Skip to content

Instantly share code, notes, and snippets.

$desc 'layer',
name: 'Layer 1'
color: $enum 'color.none'
visible: true
mode: $enum 'blendMode.dissolve'
opacity: $int 171
layerID: $int 4
itemIndex: $int 2
count: $int 4
preserveTransparency: false
@LeZuse
LeZuse / Preferences.sublime-settings
Last active January 24, 2020 21:26
Sublime Text 3 User Preferences
{
"always_show_minimap_viewport": true,
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"ensure_newline_at_eof_on_save": true,
"fold_buttons": false,
"folder_exclude_patterns":
[
".svn",
".git",
@LeZuse
LeZuse / login
Last active December 18, 2015 05:39
Example login endpoint for Sublime Text auth experiment
{
"status":"ok",
"user": {
"username": "example",
"fist_name": "John",
"last_name": "Doe",
"preferences": {
"font_face": "Meslo LG S DZ",
"font_size": 14.0,
"trim_trailing_white_space_on_save": true,
@LeZuse
LeZuse / gist:6994454
Created October 15, 2013 16:31
WinAPI EnumWindow example
#include <windows.h>
#include <stdio.h>
BOOL CALLBACK EnumWindowsProc(HWND hWnd, long lParam) {
char buff[255];
if (IsWindowVisible(hWnd)) {
GetWindowText(hWnd, (LPSTR) buff, 254);
printf("%s\n", buff);
}
@LeZuse
LeZuse / symlinks.sh
Created November 2, 2013 19:52
Sublime Text 2 settings sync using Dropbox
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>blah</title>
</head>
<body>
<p>I'm the content</p>
</body>
</html>
@LeZuse
LeZuse / gist:7964768
Created December 14, 2013 20:52
Async download status
var total = {};
var progress = {};
var sum = function() {
var tmp = 0;
for (var i in progress)
if (i != 'total')
tmp += progress[i];
progress.total = tmp;
tmp = 0;
@LeZuse
LeZuse / doc.rflw
Created February 26, 2014 23:35
Edge Reflow document - beautified
{
"PhotoshopRFLW": {
"version": 0.2,
"doc": {
"version": "1.1.0",
"timeStamp": 1393457484.487,
"count": 18,
"id": 1174,
"file": "/Users/zuse/Desktop/Untitled-1.psd",
"bounds": {
@LeZuse
LeZuse / gist:9402554
Created March 7, 2014 00:18
Elastic Searches
POST /_search
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {}
}
}