git install on ubuntu
sudo apt-get install git
point your local repository to remote repository
git remote add origin [email protected]_url
// Registering ServiceWorker | |
if ('serviceWorker' in navigator) { | |
navigator.serviceWorker.register('sw.js').then(function(registration) { | |
// Registration was successful | |
console.log('ServiceWorker registration successful with scope: ', registration.scope); | |
}).catch(function(err) { | |
// registration failed :( | |
console.log('ServiceWorker registration failed: ', err); | |
}); | |
} |
<html> | |
<head> | |
<title>Notepad - Offline capable</title> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="theme-color" content="#9b59b6"> | |
<meta name="description" content="An offline capable notepad powered by ServiceWorker"> | |
<meta name="keywords" content="note,offline,mobile,web,notepad" /> | |
<meta name="author" content="Amit Merchant"> | |
<meta name="application-name" content="Notepad" /> |
/** | |
A nifty little CSS to experience GitHub code previewer in Dark Skin using Stylish. | |
1. Install the Stylish(https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en) extension for Chrome. | |
2. Open up extension options and paste the whole CSS mentioned below. | |
3. Add "URLs on the domian to" to be `render.githubusercontent.com`. | |
4 Add "URLs on the domian to" to be `raw.githubusercontent.com`. | |
4 Add "URLs matching the regexp" to be `^https?://((gist|guides|help|raw|status|developer).)?github.com((?!generated_pages/preview).)*$`. | |
4. Add a title and save. | |
*/ |
/** | |
A nifty little CSS to experience HN in night mode using Stylish. | |
1. Install the Stylish(https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en) extension for Chrome. | |
2. Open up extension options and paste the whole CSS mentioned below. | |
3. Specify the "URLs on the domian to" to be `news.ycombinator.com`. | |
4. Add a title and save. | |
*/ | |
body { | |
font-family: Verdana, Geneva, sans-serif; |
/** | |
1. Install the Stylish(https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en) extension for Chrome. | |
2. Open up extension options and paste the whole CSS mentioned below. | |
3. Specify the domain name to be `github.com`. | |
4. Add a title and save. | |
*/ | |
.header { | |
padding-top: 10px; | |
padding-bottom: 10px; |
git install on ubuntu
sudo apt-get install git
point your local repository to remote repository
git remote add origin [email protected]_url
https://maven-global.slack.com/files/amit.merchant/F259FSJUW/correo-darwin-x64.zip |
h1 { | |
left: 0; | |
line-height: 200px; | |
margin-top: -100px; | |
position: absolute; | |
text-align: center; | |
top: 50%; | |
width: 100%; | |
} |
I hereby claim:
To claim this, I am signing this object:
jQuery(document).ready(function(){
var currentRequest = null;
jQuery('#searchbox').keyup(function() {
var text = jQuery(this).val();
currentRequest = jQuery.ajax({
type: 'POST',
data: 'search_text=' + text,
url: 'AJAX_URL',
beforeSend : function() {