alias y="yarn"
alias yi="yarn init -y"
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 util = require('util'); | |
function Person(firstname, lastname) { | |
this.firstname = firstname; | |
this.lastname = lastname; | |
} | |
Person.prototype.greet = function() { | |
console.log('Hello ' + this.firstname + ' ' + this.lastname); | |
console.log('badge number:'+this.badgenumber); |
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 x = moment().utc().format(); | |
/* var now = moment().hours; | |
console.log(now.hours(x)); */ | |
// var sendDateTime = moment().format('YYYY-MM-DD')+'T' + sendtime+':00Z'; | |
//var timeAndDate = moment(moment().date()+' '+sendtime); | |
var sendtime = "13:23"; | |
var sendDateTime2 = (moment().format('YY-MM-DD') + ' ' +sendtime); | |
var yty = moment.utc("2015-10-01 01:24:21").utcOffset(+"-240").format('YYYYMMDD HH:mm:ss ZZ') |
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": 2, | |
"clips": [ | |
{ | |
"value": "{\r\n \"scope\": {\r\n \"type\": \"Project\",\r\n \"projectid\": 4463\r\n },\r\n \"properties\": {\r\n \"title\": \"Project\",\r\n \"name\": \"5743\",\r\n \"url\": \"https://www.wordbee-translator.com/a/wordbee.test/Codyt/Project/Details.aspx?x=otV9bPn3PyEFCYbhlRIkdInJkG34%2facPLzesA0Xu4IjwdzF9l%2fugJA%3d%3d\",\r\n \"status\": 0,\r\n \"statust\": \"In progress\",\r\n \"statusc\": \"Open\",\r\n \"cty\": 1,\r\n \"parent\": null,\r\n \"dsid\": 5315\r\n },\r\n \"hasFiles\": true,\r\n \"hasSingleFile\": false,\r\n \"locales\": [\r\n {\r\n \"loc\": \"en\",\r\n \"locpart\": \"en\",\r\n \"name\": \"English\",\r\n \"issrc\": true,\r\n \"istrg\": true,\r\n \"isadd\": false,\r\n \"canEdit\": true,\r\n \"loc_rtl\": false\r\n },\r\n {\r\n \"loc\": \"de\",\r\n \"locpart\": \"de\",\r\n \"name\": \"German\",\r\n \"issrc\": false,\r\n \"istrg\": true,\r\n \ |
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 a(a) { | |
function b(b) { | |
function c(c){ | |
return a * b * c; | |
} | |
return c; | |
} | |
return b; | |
} | |
console.log(a(33)(22)(2)) // a* b *c |
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
const str = sen.replace(/[^a-zA-Z ]/g, ""); // replace strange characters | |
const words = str.split(' '); // convert to array of strings | |
const sorted = words.sort((a, b) => b.length - a.length); // sort descending according string length | |
return sorted[0] | |
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
console.log('%cHellooo',"font-weight:bold ; color: cyan ; font-size:18px") |
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
* `https://githowto.com/aliases` | |
git config --global alias.co checkout | |
git config --global alias.ci commit | |
git config --global alias.st status | |
git config --global alias.br branch | |
git config --global alias.pl pull | |
git config --global alias.ps push | |
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short" | |
git config --global alias.type 'cat-file -t' |
#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6
Paragraph
OlderNewer