This file contains hidden or 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
Object.appendChain = function (oChain, oProto) { | |
if (typeof oProto !== 'object' && typeof oProto !== 'string') { | |
throw new TypeError('second argument must be an object or a string'); | |
} | |
var oNewProto = oProto; | |
var oReturn = o2nd = oLast = oChain instanceof this ? oChain : new oChain.constructor(oChain); | |
for (var o1st = this.getPrototypeOf(o2nd); o1st !== Object.prototype && o1st !== Function.prototype; o1st = this.getPrototypeOf(o2nd)) { | |
o2nd = o1st; |
This file contains hidden or 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
image: node:8.9.1 | |
cache: | |
paths: | |
- node_modules/ | |
stages: | |
- deploy | |
This file contains hidden or 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
#!/bin/sh | |
# | |
# The hook will check if the current branch is a story branch. | |
# | |
# If it is then it will check the commit message if it contains the correct prefix. | |
# | |
# Correct commit message form: | |
# [STORY-ID] A commit message | |
# | |
# If the commit message does not follow the from above the hook will fix it. |
This file contains hidden or 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
#!/bin/sh | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# To enable this hook, rename this file to "pre-commit". | |
#!/bin/sh |
This file contains hidden or 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
package main | |
import "fmt" | |
type Person interface { | |
getName() string | |
} | |
func (e Employee) getName() string { |
This file contains hidden or 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
let num = 2; | |
console.log(~num); // -3 | |
// how it works | |
// first we should know binary code, convert 2 to 0010 and flip it to 1101 (-2), and then add 1 to it, the result is -3. | |
num = -2; | |
conosle.log(~num); // 1 |
This file contains hidden or 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
class Animal { | |
constructor(pet) { | |
this.pet = pet; | |
} | |
speak() { | |
console.log(this.pet); | |
} | |
join(animal) { |
This file contains hidden or 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
abusaidm.html-snippets | |
andys8.jest-snippets | |
ashinzekene.nestjs | |
christian-kohler.npm-intellisense | |
CoenraadS.bracket-pair-colorizer | |
DavidAnson.vscode-markdownlint | |
dawhite.mustache | |
dbaeumer.jshint | |
dbaeumer.vscode-eslint | |
dracula-theme.theme-dracula |
This file contains hidden or 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
class WordCound extends HTMLElement { | |
constructor() { | |
super(); | |
var shadowRoot = this.attachShadow({ mode: "open" }); | |
var p = document.createElement("p"); | |
p.textContent = "Hello World"; | |
p.setAttribute("class", "red-color"); | |
var style = document.createElement("style"); |
This file contains hidden or 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
# Common | |
README.md | |
CHANGELOG.md | |
docker-compose.yml | |
Dockerfile | |
# Node | |
## Logs | |
logs | |
*.log |