Skip to content

Instantly share code, notes, and snippets.

View DStereo's full-sized avatar

Serhii Hurko DStereo

View GitHub Profile
@DStereo
DStereo / .gitignore
Last active May 9, 2018 18:27
Simple template of .gitignore file.
## IDE AND EDITORS
# IDEA
.idea/
# NETBEANS
nbproject/
# SUBLIME TEXT
*.sublime-project
*.sublime-workspace
@DStereo
DStereo / .editorconfig
Last active March 2, 2017 14:01
Editorconfig file template.
# http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
@DStereo
DStereo / .jscsrc
Created July 7, 2016 13:27
jscs rules
{
"disallowEmptyBlocks": true,
"disallowKeywords": [
"with",
"void"
],
"disallowNestedTernaries": true,
"disallowSpaceBeforeSemicolon": true,
@DStereo
DStereo / change-jdk-path-for-netbeans.txt
Last active April 30, 2016 09:26
Change JDK path for netbeans
1. Open file C:\Program Files\NetBeans X.X\etc\netbeans.conf
2. Find parameter netbeans_jdkhome
3. Change path to proper JDK
X.X means your version of Netbeans. Mine is 8.1
@DStereo
DStereo / exclude-folder-when-search-in-total-commander.txt
Last active June 19, 2023 20:08
Exclude folder when search in total commander
*|node_modules\ .git\ .svn\ .idea\
@DStereo
DStereo / repeat-string-in-prototypal-manner.js
Last active May 4, 2016 09:00
Repeat string in prototypal manner
if (String.prototype.repeat !== 'function') {
String.prototype.repeat = function(times) {
if (typeof times !== 'number') {
return this;
}
return Array(times + 1).join(this);
};
}
@DStereo
DStereo / repeat-string-in-functional-manner.js
Last active May 4, 2016 09:01
Repeat string in functional manner
function repeatString(originalString, times) {
if (typeof times !== 'number') {
return originalString;
}
return Array(times + 1).join(originalString);
}
@DStereo
DStereo / list-globally-installed-npm-modules.txt
Last active April 25, 2016 06:51
List globally installed npm modules
npm ll --global --depth 0