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
/** | |
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; |
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
/** | |
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. | |
*/ |
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
<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" /> |
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
// 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); | |
}); | |
} |
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
importScripts('js/cache-polyfill.js'); | |
var CACHE_VERSION = 'app-v1'; | |
self.addEventListener('install', function (event) { | |
event.waitUntil( | |
caches.open(CACHE_VERSION) | |
.then(function (cache) { | |
console.log('Opened cache'); | |
return cache.addAll(CACHE_FILES); |
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
{ | |
"short_name": "Notepad", | |
"name": "Notepad", | |
"display": "standalone", | |
"icons": [ | |
{ | |
"src": "img/icon-48.png", | |
"sizes": "48x48", | |
"type": "image/png" | |
}, |
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
// Commented out for brevity | |
$(document).ready(function(){ | |
$('#note').bind('input propertychange', function(){ | |
localStorage.setItem("note", $(this).val()); | |
}); | |
if(localStorage.getItem("note") && localStorage.getItem("note")!=''){ | |
var noteItem = localStorage.getItem("note") | |
$('#note').val(noteItem); |
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
{ | |
"name": "electron-markdownify", | |
"version": "1.1.6", | |
"description": "A minimalist Markdown Editor", | |
"main": "main.js", | |
"productName": "Markdownify", | |
"scripts": { | |
"start": "electron main.js", | |
"build": "rm -rf dist && gulp build" | |
}, |
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
<h2>Welcome to Markdownify!</h2> | |
<ion-item> | |
<ion-textarea rows="6" [(ngModel)]="plainText" placeholder="Strat writing your markdown below..."></ion-textarea> | |
</ion-item> |
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
<h2>Welcome to Markdownify!</h2> | |
<ion-item> | |
<ion-label>Convert to Markdown</ion-label> | |
<ion-toggle></ion-toggle> | |
</ion-item> | |
<ion-item> | |
<ion-textarea rows="6" placeholder="Strat writing your markdown below..."></ion-textarea> | |
</ion-item> |