If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
function sudokuValidator(board){ | |
var sum_cols = [0,0,0,0,0,0,0,0,0]; | |
var sum_lines = [0,0,0,0,0,0,0,0,0]; | |
var sum_board = [[0,0,0], [0,0,0], [0,0,0]]; | |
var i = 0; | |
var j = 0; | |
for (i = 0; i < 9; i++) { | |
for (j = 0; j < 9; j++) { | |
var n = parseInt(board[i][j] * board[i][j]); |
https://todoist.com/blog/2014/05/how-multitasking-slows-your-brain-and-kills-your-productivity/ |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
$ git config --get-regexp alias | |
alias.ignored !git ls-files -v | grep ^[[:lower:]] | |
alias.deleteall ! git branch | grep -v '\*' | xargs git branch -D | |
alias.refreshremote git remote update --prune |
ls -a list all files including hidden file starting with '.' | |
ls --color colored list [=always/never/auto] | |
ls -d list directories - with ' */' | |
ls -F add one char of */=>@| to enteries | |
ls -i list file's inode index number | |
ls -l list with long format - show permissions | |
ls -la list long format including hidden files | |
ls -lh list long format with readable file size | |
ls -ls list with long format with file size | |
ls -r list in reverse order |
moment.tz(moment($scope.dateInit, "DD/MM/YYYY"), "America/Sao_Paulo").format(); |
function dataURItoBlob(dataURI) { | |
// convert base64/URLEncoded data component to raw binary data held in a string | |
var byteString; | |
if (dataURI.split(',')[0].indexOf('base64') >= 0) | |
byteString = atob(dataURI.split(',')[1]); | |
else | |
byteString = unescape(dataURI.split(',')[1]); | |
// separate out the mime component | |
var mimeString = dataURI.split(',')[0].split(':')[1].split(';')[0]; |
var hoursOk = {"slotTimes": [ | |
{"hourIni": "10:00", "hourEnd": "11:00"}, | |
{"hourIni":"13:00", "hourEnd": "15:00"}, | |
{"hourIni":"17:00", "hourEnd": "22:00"} | |
]}; | |
var hoursErrado = {"slotTimes": [ | |
{"hourIni": "10:00", "hourEnd": "11:00"}, | |
{"hourIni":"13:00", "hourEnd": "15:00"}, | |
{"hourIni":"13:30", "hourEnd": "22:00"} |
https://regex101.com/ |