Skip to content

Instantly share code, notes, and snippets.

View joshearl's full-sized avatar

Josh Earl joshearl

View GitHub Profile
@joshearl
joshearl / WMAppManifest.xml
Created November 30, 2011 02:14
Windows Phone WMAppManifest attributes required for Microsoft AdControl
<Capabilities>
<Capability Name="ID_CAP_IDENTITY_USER"/>
<Capability Name="ID_CAP_MEDIALIB"/>
<Capability Name="ID_CAP_NETWORKING"/>
<Capability Name="ID_CAP_PHONEDIALER"/>
<Capability Name="ID_CAP_WEBBROWSERCOMPONENT"/>
</Capabilities>
@joshearl
joshearl / SublimeProjectExample.sublime-project
Created November 17, 2012 02:32
Sample Sublime project file with project-specific settings
{
"folders":
[
{
"path": "Leanpub/sublime-productivity",
"folder_exclude_patterns": ["epub_images", "convert_html", "preview", "published"],
"file_exclude_patterns": [".gitignore", "*.sublime*", "*Icon*"]
},
{
"path": "SublimeTextTips"
@joshearl
joshearl / blank-sublime-text-snippet.xml
Created December 1, 2012 13:21
Sublime Text 2 Recruiter Response Snippet
<snippet>
<content><![CDATA[]]></content>
<tabTrigger></tabTrigger>
<scope></scope>
<description></description>
</snippet>
@joshearl
joshearl / PowerShell.sublime-build
Created January 12, 2013 14:23
Custom Sublime Text build system that executes the build.ps1 script. To use, save PowerShell.sublime.build in /Data/Packages/User and put build.ps1 in the same directory as the current Sublime project file.
{
"cmd": ["%SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe", "./build.ps1"],
"shell": true,
"working_dir": "${project_path}"
}
@joshearl
joshearl / Sample.sublime-project
Created January 22, 2013 12:33
Sublime project file that includes a custom build system. The build.ps1 script will be selected by default when Sublime's auto build feature is enabled.
{
"folders":
[
{
"path": "/",
"folder_exclude_patterns": ["js", "css"],
"file_exclude_patterns": [".gitignore"]
}
],
"build_systems":
@joshearl
joshearl / hello-sublime-github.js
Created April 3, 2013 11:02
Creating a gist using the sublime-github plugin
$(function() {
console.log("Hello, sublime-github");
});
@joshearl
joshearl / SassExampleProject.sublime-project
Last active December 16, 2015 11:29
Example Sublime Text project file customized for SASS development. It changes the output directory for compiled SASS files to a css folder, which is excluded from the side bar.
{
"folders": [{
"path": "src",
"folder_exclude_patterns": ["css"]
}],
"build_systems": [{
"name": "Sass",
"cmd": ["sass", "--update", "$file:${file_path}/../css/${file_base_name}.css"]
}]
}
@joshearl
joshearl / Fetch-sublime.settings
Last active May 2, 2017 13:34
Example Fetch.sublime-settings file that shows how to add the WordPress Plugin Boilerplate to the list of packages you can install with the Fetch plugin.
{
"files":
{
"jquery": "http://code.jquery.com/jquery.min.js"
},
"packages":
{
"html5_boilerplate": "https://github.com/h5bp/html5-boilerplate/zipball/master",
"wordpress_plugin_boilerplate": "https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/zipball/master"
}
@joshearl
joshearl / SampleProject.sublime-project
Created May 11, 2013 19:04
I created this gist for a video tutorial on using the sublime-github plugin for Sublime Text.
{
"folders":
[
{
"path": "folder/subfolder",
"folder_exclude_patterns": ["convert_html"],
"file_exclude_patterns": [".gitignore", "*.sublime*", "*Icon*"]
}
],
"settings":
@joshearl
joshearl / PHP.sublime-settings
Created July 13, 2013 19:44
To enable double-clicking to select PHP variables (including the `$` prefix), save this file as `Data/Packages/User/PHP.sublime-settings`.
{
"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
}