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
License Key PhpStorm 8 | |
User Name : EMBRACE | |
===== LICENSE BEGIN ===== | |
43136-12042010 | |
00002UsvSON704l"dILe1PVx3y4"B3 | |
49AU6oSDJrsjE8nMOQh"8HTDJHIUUh | |
gd1BebYc5U"6OxDbVsALB4Eb10PW8" | |
===== LICENSE END ===== |
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
// URL of the worker file to load | |
var workerUrl = '/dist/worker.js'; | |
$.ajax({ | |
url: workerUrl, | |
dataType: 'text', | |
success: function (data) { | |
// data has the file content | |
} | |
}); |
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
$.ajax({ | |
url: workerUrl, | |
dataType: 'text', | |
success: function (data) { | |
try { | |
// Create a blob of the file content, so that we can create blob URL out of it, that can | |
// be passed to create a web worker file (that runs in the background thread) | |
var blob = new window.Blob([data], {type: 'text/javascript'}); | |
workerBlobUrl = window.URL.createObjectURL(blob); |
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
$.ajax({ | |
url: workerUrl, | |
dataType: 'text', | |
success: function (data) { | |
try { | |
// Create a blob of the file content, so that we can create blob URL out of it, that can | |
// be passed to create a web worker file (that runs in the background thread) | |
var blob = new window.Blob([data], {type: 'text/javascript'}); | |
var workerBlobUrl = window.URL.createObjectURL(blob); |
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
/** | |
* Called when worker will be initialized | |
* @param worker | |
*/ | |
function workerInitialized (worker) { | |
// This will be called when worker finished compressing data. you can access data at e.data | |
worker.onmessage = function (e) { | |
console.log(e.data); | |
sendData(e.data); |
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 compare() { | |
return [ | |
'aBcD' === 'abcd', | |
'åbcd' === 'abcd', | |
] | |
} | |
console.log(compare()); // |
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
[alias] | |
co = checkout | |
s = status | |
cob = checkout -b | |
del = branch -D | |
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate | |
br = branch | |
go = push origin HEAD | |
gof = push origin HEAD --force | |
lg = !git log --pretty=format:\"%C(magenta)%h%Creset -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -30 |