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
| $OutputEncoding = New-Object -typename System.Text.UTF8Encoding | |
| [Console]::OutputEncoding = New-Object -typename System.Text.UTF8Encoding |
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 | |
| /** | |
| * php-ansi-color | |
| * | |
| * Original | |
| * https://github.com/loopj/commonjs-ansi-color | |
| * | |
| * @code | |
| * <?php | |
| * require_once "ansi-color.php"; |
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
| ;(function(ns){ | |
| /** | |
| * mb_strwidth | |
| * @param String | |
| * @return int | |
| * @see http://php.net/manual/ja/function.mb-strwidth.php | |
| */ | |
| var mb_strwidth = function(str){ | |
| var i=0,l=str.length,c='',length=0; | |
| for(;i<l;i++){ |
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 | |
| # this script greps .rb files on the the current directory recursively for a word displaying the line, line number and file path. | |
| # greps recursively ruby files and displaing lines | |
| grep -r -n --include="*.rb" $1 . | | |
| # strip white spaces | |
| tr -d ' '| |
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
| package com.webile.upload; | |
| import java.io.BufferedReader; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.InputStreamReader; | |
| import java.util.Date; | |
| import org.apache.http.HttpResponse; | |
| import org.apache.http.client.HttpClient; | |
| import org.apache.http.client.methods.HttpPost; |
NewerOlder