Skip to content

Instantly share code, notes, and snippets.

View lukechi1219's full-sized avatar

Luke Chi lukechi1219

View GitHub Profile
int max = 0;
int count = 0;
void main() {
int i = 255;
recursive(i);
Timer periodicTimer = new Timer.periodic( const Duration(seconds: 1), moveBus);
int repeatCount = 0;
void moveBus(Timer timer) {
// print('move bus');
if (testBus.latitude != busStopPIC.latitude &&
testBus.longitude != busStopPIC.longitude) {
@lukechi1219
lukechi1219 / gwc_maps_sample.html
Created April 24, 2016 08:30
Google web components maps sample html
<google-map id="g-map" latitude="13.5004356" longitude="144.7971925" zoom="16" map="{{map}}" drag-events="true" click-events="true" >
<google-map-marker id="g-marker" latitude="0" longitude="0" icon="images/Maps-Center-Direction-icon.png">
Map center
</google-map-marker>
<google-map-marker id="testBus" latitude="13.5012533" longitude="144.7892022" icon="images/bus.png">
test bus
</google-map-marker>
@lukechi1219
lukechi1219 / designer.html
Last active October 8, 2015 09:33
designer
<link href="../core-icon-button/core-icon-button.html" rel="import">
<link href="../core-toolbar/core-toolbar.html" rel="import">
<link href="../core-scroll-header-panel/core-scroll-header-panel.html" rel="import">
<link href="../core-icons/core-icons.html" rel="import">
<link href="../paper-icon-button/paper-icon-button.html" rel="import">
<link href="../paper-item/paper-item.html" rel="import">
<link href="../paper-input/paper-input.html" rel="import">
<link href="../speech-mic/speech-mic.html" rel="import">
<link href="../paper-tabs/paper-tabs.html" rel="import">
<link href="../paper-tabs/paper-tab.html" rel="import">
@lukechi1219
lukechi1219 / designer.html
Last active October 2, 2015 20:20
designer
<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-scroll-header-panel/core-scroll-header-panel.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../speech-mic/speech-mic.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
@lukechi1219
lukechi1219 / designer.html
Created September 30, 2015 10:53
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.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-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.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">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
@lukechi1219
lukechi1219 / designer.html
Last active August 29, 2015 14:21
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../topeka-elements/avatars.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">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
@lukechi1219
lukechi1219 / designer.html
Last active August 29, 2015 14:21
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../topeka-elements/avatars.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">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
@lukechi1219
lukechi1219 / designer.html
Last active August 29, 2015 14:21
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../topeka-elements/avatars.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">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
@lukechi1219
lukechi1219 / designer.html
Last active August 29, 2015 14:21
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../topeka-elements/avatars.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;