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
| # -*- coding: utf-8 -*- | |
| """ | |
| Skype database access functionality. | |
| @author Erki Suurjaak | |
| @created 26.11.2011 | |
| @modified 07.03.2013 | |
| """ | |
| import copy | |
| import csv |
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
| Application.Views.Network.RelationControl = (function () { | |
| var view = { events: {} }; | |
| var toggleMap = [ | |
| [['accept_profile', 'decline_profile'], ['friendship_request_block']], | |
| [[{ post: 'friend_profile' }, { ajaxDelete: 'unfriend_profile' }], ['trust_block', 'distrust_block']], | |
| [[{ post: 'subscribe_profile' }, { ajaxDelete: 'unsubscribe_profile' }], ['subscribe_block', 'unsubscribe_block']], | |
| [['accept_employment', 'decline_employment'], ['employment_request_block']], | |
| [[{'post':'create_employment'}, {'ajaxDelete':'remove_employment'}], ['employment_block']], | |
| [['promote_to', 'demote_from'], ['employment_role_block']] | |
| ]; |
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
| #!/bin/sh | |
| # More correct version in ruby: https://gist.github.com/725094 | |
| # Instant timesheet - straight from yo git log! | |
| # ...now with commit times as well | |
| git log --committer=`git config --get user.email` --format="%ad %s" --simplify-merges --date=iso --since="1 week ago" --reverse | uniq -w 11 --all-repeated=prepend | sed "s/^\(.\{11\}\)\(.\{5\}\).\{9\}/\1\2/" | sed "s/^$//;ta;s/^.\{11\}//;bend;:a;n;s/ /\\n===========\\n\\n/;:end" |grep -iv "merge branch" |
NewerOlder