Sublime Text provides an executable file in its app. Just symblink it to somewhere in the PATH.
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
3.5 inch Retina display (Required)
4 inch Retina display (Required)
/* Add these styles to the body element when menu is displayed */ | |
body.has-active-menu { | |
overflow: hidden; | |
position: fixed; | |
} |
// it returns a square thumbnail. | |
func getAssetThumbnail(asset: PHAsset, size: CGFloat) -> UIImage { | |
let retinaScale = UIScreen.mainScreen().scale | |
let retinaSquare = CGSizeMake(size * retinaScale, size * retinaScale) | |
let cropSizeLength = min(asset.pixelWidth, asset.pixelHeight) | |
let square = CGRectMake(0, 0, CGFloat(cropSizeLength), CGFloat(cropSizeLength)) | |
let cropRect = CGRectApplyAffineTransform(square, CGAffineTransformMakeScale(1.0/CGFloat(asset.pixelWidth), 1.0/CGFloat(asset.pixelHeight))) | |
let manager = PHImageManager.defaultManager() |
$.get('/data.csv', success); | |
function success(data) { | |
var results = Papa.parse(data, { | |
header: true, | |
dynamicTyping: true | |
}); | |
var length = results.data.length; | |
var container = document.getElementById('photos'); |