This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} }, | |
{ "keys": ["alt+up"], "command": "swap_line_up" }, | |
{ "keys": ["alt+down"], "command": "swap_line_down" }, | |
{ "keys": ["ctrl+alt+j"], "command": "join_lines" }, | |
{ "keys": ["ctrl+alt+down"], "command": "duplicate_line" }, | |
{ "keys": ["shift+ctrl+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, | |
{ "keys": ["ctrl+shift+s"], "command": "save_all" }, | |
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }, | |
{ "keys": ["shift+ctrl+f4"], "command": "close_all" }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
var XHRRequest = createjs.XHRRequest; | |
var XHRRequest_checkError = XHRRequest.prototype._checkError; | |
XHRRequest.prototype._checkError = function () { | |
// Override of version 0.62 implementation | |
if ('cordova' in window) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// Changes your app to use STREAM_RING instead of STREAM_MEDIA | |
// v1.0 | |
// Install mkdirp before using this hook. Run npm install mkdirp --save | |
// Place this file in hooks/after-prepare | |
// This hook will change AudioManager.STREAM_MUSIC to AudioManager.STREAM_RING | |
var fs = require('fs'); | |
var path = require('path'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var jQuery, $ = null; | |
function addJQuery(callback) { | |
var p = null; | |
if(window.opera || window.navigator.vendor.match(/Google/)) { | |
var div = document.createElement("div"); | |
div.setAttribute("onclick", "return window;"); | |
p = div.onclick(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
// Disables crosswalk release time SSL errors check | |
// v1.0 | |
// Install mkdirp before using this hook. Run npm install mkdirp --save | |
// Place this file in hooks/after-prepare | |
// Confirmed working with Crosswalk 1.7.2 | |
var fs = require('fs'); | |
var path = require('path'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// globals jQuery | |
(function ($) { | |
'use strict'; | |
// TODO: Replace pluginExample and PluginExample with your plugin name | |
$.fn.pluginExample = function (option/*, varArgs*/) { | |
var args = Array.prototype.slice.call(arguments, 1); | |
return this.each(function () { | |
var $element = $(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Import this file after select2 bootstrap theme. Content won't be centered if you don't include this file. | |
.select2-container--bootstrap { | |
.select2-selection--multiple { | |
.select2-selection__choice { | |
margin-top: calc(#{$s2bs-padding-base-vertical} - 1px); | |
} | |
.select2-search--inline .select2-search__field { | |
height: $s2bs-input-height-base; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* AngularJS example directive. | |
* Allows you to modify the page DOM and CSS styles before printing by exexuting the passed expression. | |
* Will force a $digest phase before the print operation. | |
* | |
* Example: <div ng-class="{printed: isPrinted}" on-before-print="printed = true" /> | |
*/ | |
module.directive('onBeforePrint', ['$window', '$rootScope', '$timeout', function onBeforePrint($window, $rootScope, $timeout) { | |
var beforePrintDirty = false; | |
var listeners = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH="/usr/local/bin:$PATH" | |
# Git branch in prompt. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
PS1='\[\033[32m\]' # change to green | |
PS1="$PS1"'\u@\h ' # user@host<space> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/styles.js | |
+++ node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/styles.js | |
@@ -220,7 +220,7 @@ function getStylesConfig(wco) { | |
options: { | |
ident: 'embedded', | |
plugins: postcssPluginCreator, | |
- sourceMap: cssSourceMap | |
+ sourceMap: cssSourceMap ? 'inline' : false | |
} | |
}, |
OlderNewer