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
var ar = [{date:'2015-01-01', data:15}, {date:'2015-02-01', data:18}, {date:'2015-02-05', data:10}, {date:'2015-02-06', data:25}]; | |
var br = [{date:'2015-01-01', v:3}, {date:'2015-02-01', v:1}, {date:'2015-02-09', v:20}]; | |
var merged = []; | |
for(var i=0;i<ar.length;i++){ | |
var check = 0; | |
for(var j=0;j<br.length;j++){ | |
if(ar[i].date === br[j].date) { | |
check = 1; | |
merged.push({date: ar[i].date, data: ar[i].data, v: br[j].v}); | |
continue; |
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
// | |
// Regular Expression for URL validation | |
// | |
// Author: Diego Perini | |
// Updated: 2010/12/05 | |
// License: MIT | |
// | |
// Copyright (c) 2010-2013 Diego Perini (http://www.iport.it) | |
// | |
// Permission is hereby granted, free of charge, to any person |
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
Ctrl + A Go to the beginning of the line you are currently typing on | |
Ctrl + E Go to the end of the line you are currently typing on | |
Ctrl + L Clears the Screen, similar to the clear command | |
Ctrl + U Clears the line before the cursor position. If you are at the end of the line, clears the entire line. | |
Ctrl + H Same as backspace | |
Ctrl + R Let’s you search through previously used commands | |
Ctrl + C Kill whatever you are running | |
Ctrl + D Exit the current shell | |
Ctrl + Z Puts whatever you are running into a suspended background process. fg restores it. | |
Ctrl + W Delete the word before the cursor |
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
Show hidden characters
[ | |
{ "keys": ["super+t"], "command": "new_file" }, | |
{ "keys": ["super+k", "super+s"], "command": "swap_case" }, | |
{ "keys": ["super+k", "super+t"], "command": "title_case" }, | |
{ "keys": ["super+alt+c"], "command": "insert_snippet","args": {"contents": "console.log($0);"} }, | |
{ "keys": ["super+alt+l"], "command": "insert_snippet","args": {"contents": "util.debug($0);"} }, | |
{ "keys": ["alt+shift+f"], "command": "insert_snippet","args": {"contents": "function(e, data) {\n\t$0\n};"} } | |
] |
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
{ | |
"binary_file_patterns": | |
[ | |
"*.scssc", | |
"*.css", | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", |
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
var url = window.location.href; | |
var unRE = /\/\@?(\w+)$/; | |
var userName = ''; | |
var unMatch = url.match(unRE); | |
if (unMatch && unMatch.length) { | |
userName = (unMatch.length > 1) ? unMatch[1] : unMatch[0]; | |
userName = userName.replace('/', '').replace('@', ''); | |
} | |
var mediumMatch = url.match(/medium/); | |
var twitterMatch = url.match(/twitter/); |
title | tags |
---|---|
Tha last title you will ever need |
web, magic, unicorns |
#Just an amazing post Please don't tell mom
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |