Here is a list of scopes to use in Sublime Text 2/3 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
#!/bin/bash | |
# Script to backup git repo to Backblaze B2 | |
# Set bucket, temp_dir, password and account to use for the backup. I keep mine in local env vars | |
# These are set by localrc which lives on an encrypted home directory and is executed by my bashrc | |
# Ensure you have authorized the B2 command line tool with the correct account AND added your SSH | |
# public key to your github account, if you need to backup private repositories. | |
# To restore this repo in the future, download it from B2, extract it and then use this command: | |
# cd old-repository.git |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
''' | |
This is a little script to download every song from every playlist | |
if your Google Play Music account. Songs are organized as follows: | |
<playlist>/<artist>/<album>/<song>.mp3 | |
I Highly recomend putting this file in your %USER%\Music folder | |
before running. |
# Sample toolchain file for building for Windows from an Ubuntu Linux system. | |
# | |
# Typical usage: | |
# *) install cross compiler: `sudo apt-get install mingw-w64` | |
# *) cd build | |
# *) cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-x86_64.cmake .. | |
# This is free and unencumbered software released into the public domain. | |
set(CMAKE_SYSTEM_NAME Windows) | |
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32) |
Here is a list of scopes to use in Sublime Text 2/3 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
#!/usr/bin/env python | |
# Tutorial available at: https://www.youtube.com/watch?v=nmb-0KcgXzI | |
# Feedback welcome: jacksonbates@hotmail.com | |
from gimpfu import * | |
def NAME_OF_MAIN_FUNCTION(image, drawable): | |
# function code goes here... | |
// example3.c - Demonstrates how to use miniz.c's deflate() and inflate() functions for simple file compression. | |
// Public domain, May 15 2011, Rich Geldreich, richgel99@gmail.com. See "unlicense" statement at the end of tinfl.c. | |
// For simplicity, this example is limited to files smaller than 4GB, but this is not a limitation of miniz.c. | |
#include "miniz.c" | |
#include <limits.h> | |
typedef unsigned char uint8; | |
typedef unsigned short uint16; | |
typedef unsigned int uint; |