Skip to content

Instantly share code, notes, and snippets.

View corydeppen's full-sized avatar

Cory Deppen corydeppen

View GitHub Profile
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily:
'Monaco, Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
import Ember from 'ember';
export default Ember.Route.extend({
init() {
this._super(...arguments);
let COLORS = [
{ id: 1, name: 'Red' },
{ id: 2, name: 'Blue' },
{ id: 3, name: 'Green' }
@corydeppen
corydeppen / gist:3854311
Created October 8, 2012 19:13
ServiceStack cross-origin request/ response headers
Request URL:http://localhost:63005/utils/md5/test
Request Method:OPTIONS
Status Code:200 OK
Request Headers
Accept:*/*
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
@corydeppen
corydeppen / gist:3518666
Created August 29, 2012 20:42
Enable cross-domain Ajax requests using web.config
<system.webServer>
<httpProtocol>
<customHeaders>
<!--
Allow Web API to be called from a different domain.
http://dlr2008.wordpress.com/2012/04/26/asp-net-web-api-cross-domain-ajax-and-server-techniques-jsonp-and-cors/
-->
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
@corydeppen
corydeppen / Markdown.sublime-build
Created November 22, 2011 00:24 — forked from dvhthomas/Markdown.sublime-build
Pandoc powered Sublime Text 2 build provider for Markdown files: HTML the easy way
{
"cmd": ["pandoc.exe", "--to=html", "--output=$file_base_name.html", "$file"],
"selector": "source.md"
}
// Select text inside an input field on user click or focus
// http://jquery-howto.blogspot.com/2009/04/select-text-in-input-box-on-user-select.html
$("#myInputField").focus(function(){
// Select input field contents
this.select();
});
// Add this behavior to all text fields
$("input[type=text]").focus(function(){
@corydeppen
corydeppen / .hgignore
Created July 23, 2010 22:50
Mercurial .hgignore file to be used with Visual Studio
# For use with Visual Studio
syntax: glob
*.suo
*.user
*.FileListAbsolute.txt
*\bin\*
*\obj\*
*.ncb