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(exports) { | |
"use strict"; | |
/** | |
* arr["1..3"]かarr["1,2,3"]という形式かを判断する | |
* @private | |
*/ | |
function sliceInfo(str) { | |
var |
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
#スコープの関係でグローバル変数 | |
$msg = "Hello, Before World!" | |
def say(str = $msg) | |
puts str | |
end | |
say #=> Hello, Before World! | |
$msg = "Hello, After World!" |
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
// obj.toString() | |
str = obj+""; |
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
module Main where | |
{-# LANGUAGE OverloadedStrings #-} | |
import System.IO | |
import Control.Monad.IO.Class (liftIO) | |
import Codec.Binary.UTF8.String (encode) | |
import Data.ByteString | |
import Data.Conduit | |
import qualified Data.Conduit.Binary as CB |
NewerOlder