This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stage "preparation" | |
| node { | |
| parallel ( | |
| phase1: { sh "echo p1; echo phase1" }, | |
| phase2: { sh "echo p2; echo phase2" } | |
| ) | |
| sh "echo 42 > data" | |
| stash includes: '*', name: 'binary' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for i in $(ls | grep git);do | |
| echo $i; | |
| cd $i; | |
| git show-ref | grep remotes | while read LINE;do | |
| echo $LINE | |
| version=$(echo ${LINE} | awk 'BEGIN { FS = " " } ; { print $1 }'); | |
| branch_name=$(echo ${LINE} | awk 'BEGIN { FS = " " } ; { print $2 }'); | |
| echo "version : ""${version}"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (require 'request) ;; https://github.com/tkf/emacs-request | |
| (require 'json) | |
| (defvar ginger-end-point | |
| "http://services.gingersoftware.com/Ginger/correct/json/GingerTheText" ) | |
| ;;;###autoload | |
| (defun ginger-region (beg end) | |
| (interactive "r") | |
| (lexical-let* ((text (buffer-substring-no-properties beg end)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # GIT | |
| # Download this file https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh to ~/.git-prompt.sh | |
| source ~/.git-prompt.sh | |
| export PS1='\[\e[1;33m\]'$PS1'\[\e[1;32m\]$(__git_ps1 "(%s) ")\[\e[m\]' | |
| # TMUX | |
| export TERM=xterm-256color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias gd="git diff" | |
| alias gc="git clone" | |
| alias ga="git add" | |
| alias gbd="git branch -D" | |
| alias gst="git status" | |
| alias gca="git commit -a -m" | |
| alias gpt="git push --tags" | |
| alias gp="git push" | |
| alias gpr="git pull-request" | |
| alias grh="git reset --hard" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 3-way merge | |
| git config --global merge.conflictstyle diff3 | |
| # patience diff | |
| git config --global diff.algorithm histogram |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: | |
| * | |
| * - Redistributions of source code must retain the above copyright | |
| * notice, this list of conditions and the following disclaimer. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function() { | |
| $("#xwikicontent tr").each(function(){ | |
| var content = $(this).text(); | |
| if (content.indexOf("8992") < 0){ | |
| $(this).css('display', 'none'); | |
| } else { | |
| $(this).css('display', ''); | |
| } | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | |
| <!-- | |
| This configuration file was written by the eclipse-cs plugin configuration editor | |
| --> | |
| <!-- | |
| Checkstyle-Configuration: Android Checks (Eclipse) | |
| Description: | |
| Slightly modified version of Sun Checks that better matches the default code formatter setting of Eclipse. |