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
<script src="https://aframe.io/releases/0.9.0/aframe.min.js"></script> | |
<script src="https://rawgit.com/jeromeetienne/ar.js/master/aframe/build/aframe-ar.js"></script> | |
<script>THREEx.ArToolkitContext.baseURL = 'https://rawgit.com/jeromeetienne/ar.js/master/three.js/'</script> | |
<body style='margin : 0px; overflow: hidden;'> | |
<a-scene embedded arjs='sourceType: webcam; debugUIEnabled: false;'> | |
<a-marker type='pattern' url='res/pattern-marker.patt'> | |
<a-entity position='-3 2 0' text="width: 5; value:I am Psyduck. We are pokemon. We love you"></a-entity> | |
<a-entity position='0 0 0' gltf-model="url(res/scene.gltf)"></a-entity> | |
</a-marker> |
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
mkdir <你的專案名稱> | |
cd <你的專案名稱> | |
git init | |
heroku login | |
heroku create <你的專案名稱> | |
heroku buildpacks:set heroku/nodejs |
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
git add . | |
git commit -m "initial commit" | |
git push heroku master |
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
| index.html | |
| package.json | |
\---res | |
duck.zip | |
marker.png | |
pattern-marker.patt | |
scene.bin | |
scene.gltf |
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": "my-static-site", | |
"version": "1.0.0", | |
"description": "This will load any static html site", | |
"scripts": { | |
"start": "harp server --port $PORT" | |
}, | |
"dependencies": { | |
"harp": "*" | |
} |
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
#!/usr/bin/python2 | |
# Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
# Virtual Me2Me implementation. This script runs and manages the processes | |
# required for a Virtual Me2Me desktop, which are: X server, X desktop | |
# session, and Host process. | |
# This script is intended to run continuously as a background daemon | |
# process, running under an ordinary (non-root) user account. |
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
killall pulseaudio | |
rm -r ~/.config/pulse/* | |
rm -r ~/.pulse* |
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
# 用Line來對發票吧!(限IOS) | |
Hi 大家好 不知道大家是否最近有更新Line呢? | |
最近最新版的Line讓QR-Code掃描的功能變得更完整惹! | |
以前只能掃網址跟朋友的條碼 但現在也能掃描**發票**之類其他的QR-Code了(限IOS)! | |
正逢這幾天剛好又是對發票的日子 我想說把這新功能跟Line機器人做個整合好了 想說或許對平時沒有載發票軟體但是這幾天要對發票的人有幫助 於是就有了這個: | |
**發票大獅兄** | |
![](https://i.imgur.com/TL0j4r3.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
先看看成品 可以讓Netflix以一個小視窗顯示在螢幕上方 然後邊做事邊看片(可顯示字幕) | |
![](https://i.imgur.com/C5xRCUN.gif) | |
大家新年快樂(不想開工啊~~) | |
可能是小時候常常邊看周星馳的關係 | |
總是會喜歡邊聽星爺的影片邊做事 | |
最近剛好又買了Netflix 發現有一堆星爺片 | |
所以想說做個Chrome插件 讓做事的時候能夠順便看片 | |
並且可顯示字幕 這樣也可以看外國片~ |
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
function requestAPI() { //requestDB 實作都類似只是reject的error不同 | |
return new Promise((resolve, reject) => { | |
request('https://A.com', (error, data) => { | |
if (error) reject(new customError("I'am requestAPI",error)) | |
else resolve(data) | |
}) | |
}) | |
} | |
// main |
OlderNewer