Colors of social brands is [here][2]
Facebook Share
http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwebsite.com&t=url%20encoded%20text
Facebook Like Button
http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwebsite.com
/* This work is licensed under Creative Commons GNU LGPL License. | |
License: http://creativecommons.org/licenses/LGPL/2.1/ | |
Version: 0.9/modified to conform to commonjs modules pattern | |
Author: Stefan Goessner/2006 | |
Web: http://goessner.net/ | |
*/ | |
var json2xml = (typeof exports === 'undefined')? {} : exports; // like commonjs |
#!/usr/bin/env python | |
print "Hello World" |
#!/bin/sh | |
branch=$(git rev-parse --abbrev-ref HEAD) | |
if [ "gh-pages" == "$branch" ]; then | |
exit | |
fi | |
echo Updating gh-pages for branch $branch | |
git checkout gh-pages | |
git checkout $branch -- dist |
1. Сгенерировать ключ с помощью PuttyGen | |
1.1. Сохранить private key в файл. | |
1.2. Скопировать публичный ключ в буфер обмена | |
2. Добавить скопированные публичный ключ в BitBucket (Manage Account -> SSH key) | |
3. Запустить PAgent и добавить приватный ключ. | |
4. Выполнить команду: plink git@bitbucket.org | |
4.1. На вопрос: Store key in cache? (y/n) ответить y |
### Default text editor | |
export EDITOR=subl | |
# get current branch in git repo | |
function parse_git_branch() { | |
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
if [ ! "${BRANCH}" == "" ] | |
then | |
STAT=`parse_git_dirty` | |
echo "[${BRANCH}${STAT}]" |
#!/bin/bash | |
# | |
# Example of how to parse short/long options with 'getopt' | |
# | |
OPTS=`getopt -o vhns: --long verbose,dry-run,help,stack-size: -n 'parse-options' -- "$@"` | |
if [ $? != 0 ] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi | |
echo "$OPTS" |
function urlObject(options) { | |
"use strict"; | |
/*global window, document*/ | |
var url_search_arr, | |
option_key, | |
i, | |
urlObj, | |
get_param, | |
key, |