This file contains hidden or 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
| console.log('Loading function'); | |
| var async = require("async"); | |
| var aws = require('aws-sdk'); | |
| var s3 = new aws.S3({ apiVersion: '2006-03-01' }); | |
| var gm = require("gm").subClass({imageMagick: true}); | |
| var fs = require("fs"); | |
| var mktemp = require("mktemp"); | |
| var THUMB_KEY_PREFIX = "lambda-test/", |
This file contains hidden or 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
| <!-- Start Alexa Certify Javascript --> | |
| <script type="text/javascript"> | |
| _atrk_opts = { atrk_acct:"JenUk1a4SBe0Y8", domain:"fanily.tw",dynamic: true}; | |
| (function() { var as = document.createElement('script'); as.type = 'text/javascript'; as.async = true; as.src = "https://d31qbv1cthcecs.cloudfront.net/atrk.js"; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(as, s); })(); | |
| </script> | |
| <noscript><img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=JenUk1a4SBe0Y8" style="display:none" height="1" width="1" alt="" /></noscript> | |
| <!-- End Alexa Certify Javascript --> |
This file contains hidden or 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
| // | |
| // RBResizer.swift | |
| // Locker | |
| // | |
| // Created by Hampton Catlin on 6/20/14. | |
| // Copyright (c) 2014 rarebit. All rights reserved. | |
| // | |
| import UIKit |
This file contains hidden or 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
| // | |
| // GradientViewController.swift | |
| // 透明至黑漸層 | |
| // | |
| // Created by JoeAngel on 2015/06/05. | |
| // | |
| import UIKit | |
| class Colors { |
This file contains hidden or 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
| For creating prototype, don't know how is good to use | |
| popapp.in | |
| invisionapp.com | |
| flinto.com | |
| proto.io | |
| marvelapp.com | |
| codiqa.com | |
| uxpin.com | |
| fluidui.com |
This file contains hidden or 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
| 轉自: https://www.facebook.com/groups/616369245163622/permalink/672292292904650/ | |
| 作者: https://www.facebook.com/ho.s.fung?fref=nf | |
| (淺談系列) | |
| 因為人們說我是PostgreSQL的熱血傳教士嘛 | |
| 好吧我來熱血傳教一下好了: | |
| 今天我想談的,是RDBMS中的free space management(FSM)機制 | |
| 首先一點: | |
| MySQL(innoDB)和MSSQL是沒有這個機制的,因為其table是index-organized table,所有row的是基於其Primary Key有了指定位置的。 | |
| 相反,Oracle / postgreSQL的default table是heap-based,Primary Key index內只存放指向row data的pointer。所以,row record具體能放到那裡,是有很大的自由度的。為了最佳化效能,postgreSQL和oracle需要FSM讓快速找到能存放row data的空間。 |
This file contains hidden or 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
| Using XCDYouTubeKit with Cocoapods occurs error | |
| =============================================== | |
| # pod install error | |
| Analyzing dependencies | |
| Downloading dependencies | |
| Using XCDYouTubeKit (2.1.2) | |
| Generating Pods project | |
| Integrating client project |
This file contains hidden or 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
| dispatch:beforeDispatchLoop | |
| dispatch:beforeDispatch | |
| dispatch:beforeNotFoundAction | |
| dispatch:beforeExecuteRoute | |
| dispatch:afterInitialize | |
| dispatch:afterExecuteRoute | |
| dispatch:afterDispatch | |
| dispatch:afterDispatchLoop | |
| dispatch:beforeException |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) |
| Ctrl+X | cut current line (if no selection) |
| Ctrl+⇧+K | delete line |
| Ctrl+↩ | insert line after |