Skip to content

Instantly share code, notes, and snippets.

View ericnakagawa's full-sized avatar
💭
🍕

Eric Nakagawa ericnakagawa

💭
🍕
View GitHub Profile
@ericnakagawa
ericnakagawa / gist:bbb07f5706694c21049b00afaeaa626a
Last active August 9, 2019 21:09
Portland Food & Drink Recommended by Twitter Friends
Sourced from the great replies here: https://twitter.com/ericnakagawa/status/1159601328353505286
🍩
Blue Star Donuts (Skip voodoo imo) @BlueStarDonuts
Pip's Original Doughnuts https://www.yelp.com/biz/pips-original-doughnuts-and-chai-portland
🍕
Ken’s Artisan Pizza
var iLoop, iMain;
function loop() {
clearInterval(iLoop)
iLoop = setInterval(process, 1000);
console.log("loop()");
}
function process() {
console.log("process()")
@ericnakagawa
ericnakagawa / gist:39aacfacc1cf9473a2ac
Created January 28, 2016 17:00
My tessel project file for gathering home telemetry and sending to Parse
var tessel = require('tessel');
var wifi = require('wifi-cc3000');
var https = require('https');
var climatelib = require('climate-si7005');
// var ambientlib = require('ambient-attx4');
// Constants
var PARSE_APP = 'APP_ID';
var PARSE_KEY = 'APP_KEY';
app.get('/:url', function(req, res) {
var Link = Parse.Object.extend("Link");
var url = req.params.url;
var query1 = new Parse.Query(Link);
query1.equalTo("shorturl", req.params.url);
var query2 = new Parse.Query(Link);
query2.equalTo("longurl", req.params.url);
@ericnakagawa
ericnakagawa / designer.html
Created November 13, 2014 03:59
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="../yt-video/yt-search-video.html">
<polymer-element name="my-element">
@ericnakagawa
ericnakagawa / designer.html
Created November 10, 2014 18:54
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
function (code, lang) {
pygmentize({ lang: lang, format: 'html' }, code, function (err, result) {
options.highlight = result;
});
};