sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminatorTerminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").
| #!/bin/sh | |
| # | |
| # Custom action for Source Tree app to copy commit URL on GitHub | |
| # Menu caption: Copy Changeset URL on GitHub | |
| # Script to run: ~/bin/github-commit-url | |
| # Parameters: $REPO $SHA | |
| # | |
| if (( $# != 2 )) |
| <?php | |
| /** | |
| * Class BetterEnum | |
| * | |
| * A pure-PHP alternative to SplEnum, although only a 99% compatible replacement for it. | |
| * | |
| * See: http://php.net/manual/en/class.splenum.php | |
| * | |
| * To declare an enum class, subclass BetterEnum and define the names and values as constants. |
| angular.module('myApp', ['ngPluralizeHtml']) | |
| function AppController() { | |
| var vm = this; | |
| vm.count = 10; | |
| } | |
| .controller('AppController', AppController); |
| public class MainActivity extends | |
| private PopupWindow popWindow; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| } |
| <?php | |
| // An example on how to parse massive XML files with PHP by chunking it up to avoid running out of memory | |
| // Open the XML | |
| $handle = fopen('file.xml', 'r'); | |
| // Get the nodestring incrementally from the xml file by defining a callback | |
| // In this case using a anon function. | |
| nodeStringFromXMLFile($handle, '<item>', '</item>', function($nodeText){ | |
| // Transform the XMLString into an array and |