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
fillano / test001.php
Last active Sep 11, 2018
a simple event facilities test.
View test001.php
<?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
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
fillano / pptx_data_structure.md
Last active Jan 4, 2017
simple pptx data structure reference
View pptx_data_structure.md
View openxml_ref.md

Required Classes for PowerPoint

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

PresentationDocument

  • Properties
    1. DocumentType
    2. PresentationPart
View Default.asp
<%@ LANGUAGE="JScript" %>
<!doctype html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<body>
<b>Hello ASP.</b>
<script language="JScript" runat="server">
try {
var doc = new ActiveXObject("MSXML2.DomDocument");
var node64 = doc.createElement('b64');
@fillano
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 test922e.js
function * gen() {
console.log('start');
var got = yield 'called';
console.log(got);
}
var g = gen();
var a = g.next();
//顯示start
var b = g.next('hello generator');
//顯示hello generator
You can’t perform that action at this time.