- Go to about:config in your Firefox
- Right click
- New -> String
- Name:
social.manifest.fivefilters-org - Value: contents of social.manifest.fivefilters-org.raw.json below
- Type
social.activeProvidersin the search box in the config page - Double click on the result
- Add
,"http://fivefilters.org":1right before}in the value - Enter
- Restart your Firefox and use the FiveFilters icon showing up when you click on the paper plane share icon
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
| class SudokuSolver(object): | |
| def __init__(self, n=3): | |
| self.n = n | |
| self.size = self.n * self.n | |
| self.matrix = [ | |
| [set(range(1, self.size+1)) for i in range(self.size)] for | |
| j in range(self.size) | |
| ] | |
| def show(self): |
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
| var fullContent = []; | |
| var contentContainer = document.querySelector('div.gBigOverlay'); | |
| contentContainer.innerHTML = '<img style="display: block; width: 16px; height: 16px; margin: 45% auto" src="' + | |
| 'data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH+GkNyZWF0ZWQgd2l0aCBhamF4bG9hZC5pbmZvACH5BAAKAAAAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQACgABACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkEAAoAAgAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkEAAoAAwAsAAAAABAAEAAAAzMIumIlK8oyhpHsnFZfhYumCYUhDAQxRIdhHBGqRoKw0R8DYlJd8z0fMDgsGo/IpHI5TAAAIfkEAAoABAAsAAAAABAAEAAAAzIIunInK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQACgAFACwAAAAAEAAQAAADMwi6IMKQORfjdOe82p4wGccc4CEuQradylesojEMBgsUc2G7sDX3lQGBMLAJibufbSlKAAAh+QQACgAGACwAAAAAEAAQAAADMgi63P7wCRHZnFVdmgHu2nFwlWCI3WGc3TSWhUFGxTAUkGCbtgENBMJAEJsxgMLWzpEAACH5BAAK |
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
| echo 'TLDS = (' > $1 && | |
| curl -f -sS https://data.iana.org/TLD/tlds-alpha-by-domain.txt -L | | |
| awk '{print tolower($0)}' | | |
| grep '^[[:alnum:]\-]\{1,63\}$' | sed 's/^.*$/"&",/g' >> $1 && | |
| echo ')' >> $1 |
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
| grunt.registerTask( | |
| 'translations.install', | |
| 'Installs Transifex client, tx for other translation tasks. Usually requires `sudo`.', | |
| function () { | |
| var done = this.async(); | |
| grunt.util.spawn({ | |
| cmd: 'easy_install', | |
| args: ['transifex-client'] | |
| }, function (error, result, code) { |
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
| function djb2Hash(str, seed) { | |
| for (var counter = 0, len = str.length; counter < len; counter++) { | |
| seed ^= (seed << 5); | |
| seed ^= str.charCodeAt(counter); | |
| } | |
| // We discard the sign-bit for compatibility with the DB implementation | |
| // and "always positive integers" | |
| return seed & ~(1 << 31); | |
| } |
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
| window.getLangStats = function getLangStats(repos) { | |
| var mapper = function(ent){return ent.language}, | |
| reducer = function(stats, lang) {stats[lang] = (stats[lang] || 0) + 1; return stats}, | |
| langStats = repos.map(mapper).reduce(reducer, {}); | |
| delete langStats['null']; | |
| return Object.keys(langStats).sort(function(a,b){return langStats[b] - langStats[a]}); | |
| }; | |
| window.ghApiCallHandler = function(result) { | |
| if (Math.floor(result.meta.status/100) == 2) |
NewerOlder