In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of advantages of using submodules:
- You can separate the code into different repositories.
| #!/bin/zsh | |
| function popup() { | |
| # how long bar stays open | |
| duration=4 | |
| # color of bar | |
| bar_bg='#4265f4' | |
| # bar position |
| #!flask/bin/python | |
| from flask import Flask, jsonify, abort, request, make_response, url_for | |
| from flask.ext.httpauth import HTTPBasicAuth | |
| app = Flask(__name__, static_url_path = "") | |
| auth = HTTPBasicAuth() | |
| @auth.get_password | |
| def get_password(username): | |
| if username == 'miguel': |
| # A two-line colored Bash prompt (PS1) with Git branch and a line decoration | |
| # which adjusts automatically to the width of the terminal. | |
| # Recognizes and shows Git, SVN and Fossil branch/revision. | |
| # Screenshot: http://img194.imageshack.us/img194/2154/twolineprompt.png | |
| # Michal Kottman, 2012 | |
| RESET="\[\033[0m\]" | |
| RED="\[\033[0;31m\]" | |
| GREEN="\[\033[01;32m\]" | |
| BLUE="\[\033[01;34m\]" |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <openssl/rsa.h> | |
| #include <openssl/applink.c> | |
| void print_buf_hex( unsigned char *buf, int len ) | |
| { | |
| int i; | |
| for( i = 0; i < len; i++ ) |
| #!/usr/bin/env python2 | |
| # coding: utf-8 | |
| import os,socket,threading,time | |
| #import traceback | |
| allow_delete = False | |
| local_ip = socket.gethostbyname(socket.gethostname()) | |
| local_port = 8888 | |
| currdir=os.path.abspath('.') |
| #!/bin/bash | |
| # | |
| # DESCRIPTION: | |
| # | |
| # Set the bash prompt according to: | |
| # * the active virtualenv | |
| # * the branch/status of the current git repository | |
| # * the return value of the previous command | |
| # * the fact you just came from Windows and are used to having newlines in | |
| # your prompts. |
| " Vim syntax file | |
| " Language: HTML (version 5) | |
| " Maintainer: Rodrigo Machado <[email protected]> | |
| " URL: http://rm.blog.br/vim/syntax/html.vim | |
| " Last Change: 2009 Aug 19 | |
| " License: Public domain | |
| " (but let me know if you liked it :) ) | |
| " | |
| " Note: This file just adds the new tags from HTML 5 | |
| " and don't replace default html.vim syntax file |
| " ---------------------- USABILITY CONFIGURATION ---------------------- | |
| " Basic and pretty much needed settings to provide a solid base for | |
| " source code editting | |
| " don't make vim compatible with vi | |
| set nocompatible | |
| " turn on syntax highlighting | |
| syntax on | |
| " and show line numbers |
| # -*- coding: utf-8 -*- | |
| """ | |
| Python Script to download the Chrome Extensions (CRX) file directly from the google chrome web store. | |
| Referred from http://chrome-extension-downloader.com/how-does-it-work.php | |
| """ | |
| from __future__ import division | |
| import argparse | |
| import requests |