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
@echo off | |
set "month=%date:~5,2%" | |
set "day=%date:~8,2%" | |
set "tmp=result.tmp" | |
set "result=%month%月%day%日大大集团各省市新闻稿.txt" | |
set "html=%result%.html" | |
if exist %tmp% del %tmp% |
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 ruby | |
require 'pathname' | |
require 'spreadsheet' | |
require 'roo' | |
def main resource_path = '', month = 1 | |
data = {} | |
res = collect resource_path |
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
# -*- encoding : utf-8 -*- | |
module Win2unix | |
@@file_list = [] | |
def self.tidy path, ext = 'txt' | |
get_all_files path, ext | |
@@file_list.each do |file| | |
handle file |
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 | |
namespace ladder; | |
class Ladder | |
{ | |
public function main() | |
{ | |
$sURL = $this->getURL(); |
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 ruby | |
require 'net/http' | |
require 'nokogiri' | |
# Get the rate data from boc page. | |
def getRate | |
url = 'http://www.boc.cn/sourcedb/whpj/' | |
data = Nokogiri::HTML.parse(Net::HTTP.get(URI(url))) |
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 | |
class Excel_Export | |
{ | |
/** | |
* Excel 标题 | |
* | |
* @type: Array | |
*/ | |
private $_titles = array(); |
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 | |
require __DIR__ . 'vendor/autoload.php'; | |
define('IMG_FOLDER', '/tmp/img/'); | |
function show($msg) | |
{ | |
echo $msg, PHP_EOL; | |
} |
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
import javax.xml.bind.DatatypeConverter; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
public class SignGenerator | |
{ | |
public static void main(String a[]) | |
{ | |
// Demo |
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
http://audio.simplecast.com/46453.mp3 | |
http://audio.simplecast.com/42491.mp3 | |
http://audio.simplecast.com/41169.mp3 | |
http://audio.simplecast.com/38785.mp3 | |
http://audio.simplecast.com/35051.mp3 | |
http://audio.simplecast.com/32762.mp3 | |
http://audio.simplecast.com/27610.mp3 | |
http://audio.simplecast.com/25906.mp3 | |
http://audio.simplecast.com/24121.mp3 | |
http://audio.simplecast.com/22314.mp3 |
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 | |
DIR=$1 | |
find $DIR | while read f;do | |
if [ -d $f ];then | |
continue | |
fi |