Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
$base_dir = $argv[1]; | |
$rs_dir = opendir($base_dir); | |
while ($filename = readdir($rs_dir)) { | |
if (false === strpos($filename, '.doc')) { | |
continue; | |
} | |
$filepath = $base_dir . '/' . $filename; | |
$arr_line = file($filepath); | |
$boundary = ''; |
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 | |
preg_replace("/[^\x{4e00}-\x{9fa5}A-Za-z0-9 ,_!@#$%*;?]/u", "", $str); |
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/sh | |
CONF=$HOME/.local/etc/goto.conf | |
EXPECT=$HOME/.local/bin/doexpect.sh | |
function goto { | |
if [[ "$1" == "-l" || "$1" == "" ]] ;then | |
__list_info | |
else |
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 | |
$allSortFile = "allSort.txt" ; | |
if (!file_exists($allSortFile)){ | |
$fout = fopen($allSortFile,"w"); | |
$allSolution = allSort(1,10); | |
foreach($allSolution as $item){ | |
$line = implode("\t",$item) ; | |
fputs($fout,$line . "\n") ; | |
} | |
fclose($fout) ; |
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/sh | |
function printc() | |
{ | |
local color=$1 | |
local msg=$2 | |
if [ "$msg" = "" ] ; then | |
echo "printc: usage: printc color<yellow|green|blue|red|skyblue> msg" | |
fi | |
if [ "$color" = "yellow" ];then |
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 (c) 2010, Huy Nguyen, http://www.huyng.com | |
# 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. | |
# * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the | |
# following disclaimer in the documentation and/or other materials provided with the distribution. |
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
" ====================================================================================== | |
" File : .vimrc | |
" Author : Wu Jie | |
" Last Change : 12/02/2009 | 12:02:28 PM | Wednesday,December | |
" Description : | |
" ====================================================================================== | |
"///////////////////////////////////////////////////////////////////////////// | |
" exVim global settings | |
" NOTE: you should change to your own settings. |
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
""""""let mapleader""""" | |
let mapleader="," | |
let g:mapleader="," | |
""""""ignorecases""""" | |
set ignorecase | |
set incsearch | |
"""""show numbers""""" | |
set number | |
"""""set the tab width""""" |
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
<!-- copy this to YOUR_THEME.tmTheme--> | |
<dict> | |
<key>name</key> | |
<string>diff: deleted</string> | |
<key>scope</key> | |
<string>markup.deleted</string> | |
<key>settings</key> | |
<dict> | |
<key>background</key> | |
<string>#EAE3CA</string> |