In Git you can add a submodule to a repository. This is basically a sub-repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
| /** | |
| * http://stackoverflow.com/questions/13459718/could-not-serialize-object-cause-of-hibernateproxy | |
| * | |
| * in bootstrap: | |
| * import hbadapter.HibernateProxyTypeAdapter | |
| * | |
| * class BootStrap { | |
| * | |
| * def init = { servletContext -> | |
| * |
| /// <reference path="angular.d.ts" /> | |
| /// <reference path="angular-resource.d.ts" /> | |
| interface IEmployee extends ng.resource.IResource<IEmployee> | |
| { | |
| id: number; | |
| firstName : string; | |
| lastName : string; | |
| } | |
| interface IEmployeeResource extends ng.resource.IResourceClass<IEmployee> |
| /** | |
| * A generic confirmation for risky actions. | |
| * Usage: Add attributes: ng-really-message="Are you sure"? ng-really-click="takeAction()" function | |
| */ | |
| angular.module('app').directive('ngReallyClick', [function() { | |
| return { | |
| restrict: 'A', | |
| link: function(scope, element, attrs) { | |
| element.bind('click', function() { | |
| var message = attrs.ngReallyMessage; |
This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:
*nix based command prompt (but not the default Windows Command Prompt!)cd ~/.ssh. This will take you to the root directory for Git (Likely C:\Users\[YOUR-USER-NAME]\.ssh\ on Windows).ssh folder, there should be these two files: id_rsa and id_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type ls to see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named id_rsa and id_rsa.pub in order for Git, GitHub, and BitBucket to recognize them by default.ssh-keygen -t rsa -C "[email protected]". Th| location ~* /(.*\.pdf) { | |
| types { application/octet-stream .pdf; } | |
| default_type application/octet-stream; | |
| } |
| /* | |
| * Fabrizio Calderan, twitter @fcalderan, 2010.11.02 | |
| * I had an idea: could Inception movie be explained by a few javascript closures | |
| * and variable resolution scope (just for fun)? | |
| * | |
| * Activate javascript console =) | |
| */ | |
| <script> | |
| console.group("inception movie"); |