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
$('#editor').keyup(function () { | |
typewatch(function () { | |
// executed only 500 ms after the last keyup event. | |
var words = $('#editor').html().toString().split(' '); | |
// get number of words | |
// add the value of words.length to a label, or other html element for displaying purposes as shown below | |
$('.word-count').text(words.length); | |
}, 500); | |
}); | |
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
C:\Windows\system32>mklink | |
Creates a symbolic link. | |
MKLINK [[/D] | [/H] | [/J]] Link Target | |
/D Creates a directory symbolic link. Default is a file symbolic link. | |
/H Creates a hard link instead of a symbolic link. | |
/J Creates a Directory Junction. | |
Link specifies the new symbolic link name. | |
Target specifies the path (relative or absolute) that the new link refers to. |
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
window.log = function () { log.history = log.history || []; log.history.push(arguments); if (this.console) { console.log(Array.prototype.slice.call(arguments)) } }; |
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 getFrequency(string, cutOff) { | |
var cleanString = string.replace(/[\.,-\/#!$%\^&\*;:{}=\-_`~()]/g,""), | |
words = cleanString.split(' '), | |
frequencies = {}, | |
word, frequency, i; | |
for( i=0; i<words.length; i++ ) { | |
word = words[i]; | |
frequencies[word] = frequencies[word] || 0; | |
frequencies[word]++; |
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
{ | |
"version": "0.1.0", | |
"command": "Chrome", | |
"osx": { | |
"command": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" | |
}, | |
"args": ["${file}"] | |
} |
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
/** | |
* Country names, continent names and ISO-3166 codes. | |
*/ | |
CREATE TABLE CONTINENTS ( | |
CODE CHAR(2) NOT NULL, --'Continent code', | |
CONTINENT_NAME VARCHAR(255), | |
PRIMARY KEY (CODE) | |
); | |
-- Grant Access |
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
{ | |
"telemetry.enableTelemetry": false, | |
"telemetry.enableCrashReporter": false, | |
"files.autoSave": "afterDelay", | |
"files.associations": { | |
"*.md": "markdown" | |
}, | |
"window.zoomLevel": 0, | |
"[html]": { | |
"editor.defaultFormatter": "vscode.html-language-features" |