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 branch | |
# __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`' | |
# "\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
function parse_git_dirty { | |
echo -n $(git status 2>/dev/null | awk -v out=$1 -v std="dirty" '{ if ($0=="# Changes to be committed:") std = "uncommited"; last=$0 } END{ if(last!="" && last!="nothing to commit (working directory clean)") { if(out!="") print out; else print std } }') | |
} | |
function parse_git_branch { | |
echo -n $(git branch --no-color 2>/dev/null | awk -v out=$1 '/^*/ { if(out=="") print $2; else print out}') | |
} |
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
<?php | |
/* | |
* 2016/12/12 | |
* | |
* anagram.php | |
* Simple anagram checker. (cAsE sEnsiTivE) | |
* | |
* Firman Gautama <[email protected]> | |
* |
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
/* | |
* 2016/12/12 | |
* | |
* palindrome.c | |
* Simple palindrome checker for small string. (cAsE sEnsiTivE) | |
* | |
* Firman Gautama <[email protected]> | |
* | |
*/ | |
#include <stdio.h> |
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
# | |
# 20160929 - [email protected] | |
# | |
from selenium import webdriver | |
import time | |
import concurrent.futures | |
import signal | |
from concurrent.futures import ThreadPoolExecutor | |
from random import randint |
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
window.onbeforeunload = function() { | |
var URL = '//preview.adskom.net/test12345.js'; | |
var request = null; | |
if (window.XMLHttpRequest){ | |
request = new XMLHttpRequest(); | |
} else if (window.ActiveXObject) { | |
request = new ActiveXObject("Microsoft.XMLHTTP"); | |
} |
NewerOlder