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
// This code is public domain, share and enjoy. | |
window.ui = window.ui || {}; | |
/** @constructor */ | |
ui.ListView = function(element, collection) { | |
this.el = element; | |
this.cellHeight = 30; | |
this.collection = collection; |
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
<!-- This code is public domain, share and enjoy. --> | |
<html> | |
<style type="text/css" media="screen"> | |
#table { | |
position: absolute; | |
top: 30px; | |
bottom: 0; | |
left: 10px; | |
right: 10px; | |
} |
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
# This code is public domain, share and enjoy. | |
from Foundation import NSPropertyListSerialization | |
from xattr import setxattr, getxattr | |
kMDItemWhereFroms = "com.apple.metadata:kMDItemWhereFroms" | |
def set(path, *data): | |
"""Set kMDItemWhereFroms on a file. Pass in an array of strings.""" | |
plist, err = NSPropertyListSerialization.dataWithPropertyList_format_options_error_(data, 200, 0, None) | |
if err or not plist: |
NewerOlder