Skip to content

Instantly share code, notes, and snippets.

Hsu Ping Feng fillano

Block or report user

Report or block fillano

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View 用AWS架構Serverless應用
1. 什麼是Serverless
2. 簡介AWS Lambda服務
3. 用API Gateway架構API服務
4. 資料儲存的考量
5. 靜態頁面的考量
6. 使用S3
7. 開始架構
8. IAM
9. 存放在Lambda的node.js環境
10. 撰寫程式的要點
fillano / test001.php
Last active Sep 11, 2018
a simple event facilities test.
View test001.php
class Event {
private static $events = [];
public static function Regist($eventName, Callable $callback) {
if(!is_callable($callback)) return false;
if(!array_key_exists($eventName, self::$events)) {
self::$events[$eventName] = [];
self::$events[$eventName][] = $callback;
return true;
fillano / mod1.js
Created Jun 8, 2017
create class with readonly attribute.
View mod1.js
const t = Symbol('ttt');
module.exports = class {
constructor(name) {
this[t] = name;
get name() {
return this[t];
sayHello() {
fillano /
Last active Jan 4, 2017
simple pptx data structure reference

Required Classes for PowerPoint

Under DocumentFormat.OpenXml.Packaging(Assembly: DocumentFormat.OpenXml, DocumentFormat.OpenXml.dll)


  • Properties
    1. DocumentType
    2. PresentationPart
View Default.asp
<%@ LANGUAGE="JScript" %>
<!doctype html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<b>Hello ASP.</b>
<script language="JScript" runat="server">
try {
var doc = new ActiveXObject("MSXML2.DomDocument");
var node64 = doc.createElement('b64');
fillano / rundll32_js.cmd
Created Jan 14, 2016
rundll32.exe run javascript test
View rundll32_js.cmd
rundll32 javascript:"\..\mshtml,RunHTMLApplication ";(function(){try{var%20fso=new%20ActiveXObject('Scripting.FileSystemObject');fldr=fso.CreateFolder('C:\\Program%20Files\\TestFolder')}catch(e){alert(e.message)}finally{window.close()}}())
View list_performance_timing.js
(function(p){alert(function(t){var ret=[];for(var i in t)if(typeof t[i]!=='function'&&t[i]>0)ret.push({name:i,value:t[i]});return ret}(p).sort(function(a,b){return a.value-b.value}).map(function(d,i,a){if(i>0){return':'+(d.value-a[i-1].value)}else{return':0'}}).join('\n'))})(performance.timing)
You can’t perform that action at this time.