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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/milligram/1.4.1/milligram.min.css"> | |
<link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/highlight.js/10.1.2/styles/github.min.css"> | |
<script type="application/javascript" src="https://cdn.bootcdn.net/ajax/libs/marked/1.1.1/marked.min.js"></script> | |
<script type="application/javascript" src="https://cdn.bootcdn.net/ajax/libs/highlight.js/10.1.2/highlight.min.js"></script> | |
<style rel="stylesheet"> | |
body { |
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
# Add for skip | |
``` | |
*.js.map,downloads/,CMakeFiles/,*_.py,deps/,bin/,*.css,*.log,*.jpg,*.jpeg,*.gif,*.png,*.svg,venv/,VENV/,Classes/,ios\/Pods/,build/,tmp/,data/,temp/,elpa*/,classes/,target/,.aproject/,bower_components/,node_modules/, | |
``` |
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
const net = require('net'); | |
const IdMaker = (function() { | |
var seq = 0; | |
return { | |
next: () => { | |
seq = (++seq) % 10000; | |
return Date.now() + '-' + seq; | |
} |
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 file in ~/.devenv/*; | |
do | |
if [ -d $file ]; then | |
if [ -d $file/bin ]; then | |
PATH=`(cd $file/bin && pwd)`:$PATH | |
fi | |
fi | |
done |
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 | |
if [ ! -f "$1" ]; then | |
echo "File not found!" | |
exit | |
fi | |
HOSTFILE=$1 | |
function reverse { |
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 | |
declare -a array | |
array[0]="/usr/local/php/bin/php /wwwroot/kbl/tools/ClearGameLog.php" | |
array[1]="/usr/local/php/bin/php /wwwroot/kbl/tools/ProcessPvpRating.php" | |
let array_max=${#array[@]}-1 | |
function is_index_exists { |
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
SendMail | |
ImageUtils |
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
#include <stdio.h> | |
#include <time.h> | |
#include <string.h> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <execinfo.h> | |
static void signal_dump(int sig) | |
{ | |
FILE* fp; |