Skip to content

Instantly share code, notes, and snippets.

@mikeptweet
mikeptweet / HelloWorld.js
Created January 11, 2024 09:10
Hello World
console.log("Hello World");
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARAAAAEQCAIAAAD3aLxCAAAABnRSTlMAAAAAAABupgeRAADFr0lEQVR4Aexbd5ejupL33/sptGzebZwm9QT3DZP33RzP/tVHhgJrLCSuJOz2C599t0oIN25sxpP6dd+9PWeMUCj9KlIUMHgy1+mGJZJbO4vWC+EgdgsogAkbc+NEIiE6+weGf09SsWomWpq3NrwswbAqziRcPNWyKtRPugzTt0tS7njMlSi4E1rNohQyXkkX1QOJlpKXFmZRAamoitCdViZMvzsehz7gVqh8FuERdrqmTZ/REgnNuVJgogar4qs5N6spW8fYJHSBld3h80QrxwWuxInbtp9+YMHccJVGZ084WxjIZtHCudI+Go1EkQ/lZhQxbgQyWBkDys2ikucQdYhInWsp1LJGF3ua2G6WBSKSz0HiDroA3BA3YNYklztWpdQ8tbG1criGeSb1epjoYnQvy+49vA/TLJvANJmP751OH9y5P56M7k8fnp7CfThNJvx0Ps3uPpxPJjB+cP7665fDr/7nX6bjr759+S0ennGzxMMXSYJghnaVIyCJzLz2PLKvEP1+nhDmiON/FFwQIQ4HBWFL5F693bXzyjmtbGNcQSwFqMqr4qAywrq9xrfQKzCzyJkKGvMCyTezaDIedxGkRpepXqu4bRBNZzRg1m2IiYJfxGuRusUjNpmejsuLx2HvLsgaG3lUXEqkGAcX8D3NvrFwULR2ip3Oc4mARTqLOt3xOFgGgTRa2p05Uli3nbHgttRlVZKHqSp0wkXJVQpIOuOycZ0GacQcnwscvphFY8/VLl9n3xmdVomzW/X28X0uECMyRocOdwGiSFNQQUNnHardDhTaQb2xK4IgCR6WjvcsCel8s1/KB927XGinY5suo6PU3FBu1ExWTX6/K+s+4/qONnyeCqcN+/HZn/5VzW35mJzsEMKVSOFaEf5CG9YIa3QI88mgB2FigDuxgusE+TTseRWnj1
var args= require('system').args;
var webPage = require('webpage');
var page = webPage.create();
if(args.length <3) {
console.log("USAGE: phantomjs.exe scrapepage.js url sql\n");
console.log('ie.: phantomjs.exe scrapepage.js "https://news.ycombinator.com/news" "select nodeName,href,innerText from document where className=\'storylink\'"');
phantom.exit();
}
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@mikeptweet
mikeptweet / designer.html
Created February 16, 2015 15:00
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@mikeptweet
mikeptweet / designer.html
Created February 10, 2015 15:09
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../core-icons/av-icons.html">
@mikeptweet
mikeptweet / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../google-map/google-map-search.html">
@mikeptweet
mikeptweet / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@mikeptweet
mikeptweet / designer.html
Created January 29, 2015 20:40
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
#section {
box-sizing: border-box;
width: 100%;
@mikeptweet
mikeptweet / designer.html
Last active August 29, 2015 14:14
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">