git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| #!/usr/bin/env python | |
| # found on <http://files.majorsilence.com/rubbish/pygtk-book/pygtk-notebook-html/pygtk-notebook-latest.html#SECTION00430000000000000000> | |
| # simple example of a tray icon application using PyGTK | |
| import gtk | |
| def message(data=None): | |
| "Function to display messages to the user." | |
| // Swap classes onload and domready | |
| $(function(){ $('html').removeClass('not-ready').addClass('ready'); }); // jQuery | |
| $(window).load(function(){ $('html').removeClass('loading').addClass('loaded'); }); | |
| // target a specific version | |
| if (navigator.isIE == 6){ | |
| // do stuff for IE6 | |
| } | |
| // Deliever different behaviour for a group of IE versions |
| <?php | |
| /** | |
| * Convert a comma separated file into an associated array. | |
| * The first row should contain the array keys. | |
| * | |
| * Example: | |
| * | |
| * @param string $filename Path to the CSV file | |
| * @param string $delimiter The separator used in the file | |
| * @return array |
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
| // includes bindings for fetching/fetched | |
| var PaginatedCollection = Backbone.Collection.extend({ | |
| initialize: function() { | |
| _.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
| typeof(options) != 'undefined' || (options = {}); | |
| this.page = 1; | |
| typeof(this.perPage) != 'undefined' || (this.perPage = 10); | |
| }, | |
| fetch: function(options) { |
| get Android source code: http://source.android.com/source/downloading.html | |
| $ cd /path/to/android-src | |
| $ cd system/core/libmincrypt/ | |
| $ gcc -c *.c -I../include | |
| $ ar rcs libmincrypt.a *.o | |
| $ cd ../mkbootimg | |
| $ gcc mkbootimg.c -o mkbootimg -I../include ../libmincrypt/libmincrypt.a | |
| $ cd ../cpio | |
| $ gcc mkbootfs.c -o mkbootfs -I../include |
| wget http://blog.anantshri.info/content/uploads/2010/09/add-apt-repository.sh.txt | |
| sudo mv add-apt-repository.sh.txt /usr/sbin/add-apt-repository | |
| sudo chmod o+x /usr/sbin/add-apt-repository | |
| sudo chown root:root /usr/sbin/add-apt-repository | |
| sudo add-apt-repository ppa:webupd8team/sublime-text-2 |
| pm list packages -f |
| # By default the behavior is: | |
| # Primary monitor work as always and second monitor only have one and fixed workspace | |
| # I.e. you change to next workspace, primary monitor change to this workspace and second monitor remain as is. | |
| # The desired behaviour is: | |
| # Primary monitor and secondary monitor are linked workspace. | |
| # I.e. you change to next workspace, primary monitor change to this workspace and second monitor too. | |
| $ gconf-editor | |
| # Look for /desktop/gnome/shell/windows/workspaces_only_on_primary and set to false |