Skip to content

Instantly share code, notes, and snippets.

@abner
Forked from sukima/jsbin_settings.js
Last active August 29, 2015 14:24
Show Gist options
  • Save abner/dd048487be68405cca47 to your computer and use it in GitHub Desktop.
Save abner/dd048487be68405cca47 to your computer and use it in GitHub Desktop.
(function(settings, libraries) {
localStorage.setItem('settings', JSON.stringify(settings));
localStorage.setItem('libraries', JSON.stringify(libraries));
setTimeout(function() {
window.location = window.location; // Force refresh
}, 0);
})(
//Settings
{
"panels": [
"javascript",
"console"
],
"editor": {
"indentWithTabs": false,
"indentUnit": 2,
"theme": "solarized light",
"tabSize": 2,
"lineWrapping": true,
"lineNumbers": true
},
"font": "14",
"addons": {
"closebrackets": false,
"highlight": false,
"vim": true,
"emacs": false,
"trailingspace": true,
"fold": false,
"sublime": false,
"tern": false,
"activeline": true,
"matchbrackets": true,
"matchtags": false
},
"includejs": true,
"gui": {
"toppanel": false
},
"jshint": true,
"jshintOptions": {
"camelcase": true,
"curly": true,
"eqeqeq": true,
"freeze": true,
"indent": 2,
"newcap": true,
"quotmark": "single",
"maxdepth": 3,
"maxstatements": 15,
"maxlen": 80,
"eqnull": true,
"funcscope": true
},
"csshint": false,
"csshintOptions": {},
"htmlhint": false,
"htmlhintOptions": {},
"coffeescripthint": false,
"coffeescripthintOptions": {},
"hintShow": {
"console": true,
"line": true,
"gutter": false
},
"focusedPanel": "javascript",
"ssl": true,
"keys": {
"seenWarning": true
}
},
// Libraries
[
{
"text": "Jasmine-all",
"url": "http://searls.github.io/jasmine-all/jasmine-all-min.js",
"group": "Custom Libs",
"label": "Jasmine-all"
},
{
"text": "URI.js",
"url": "https://rawgit.com/medialize/URI.js/gh-pages/src/URI.min.js",
"group": "Custom Libs",
"label": "URI.js"
}
]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment