This file contains 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 Data.Either (either) | |
import Data.Map.Lazy (fromList) | |
import Graphics.HsExif (getOrientation, parseFileExif) | |
file :: FilePath | |
file = "tools/4f517b31-caea-4ade-9cc5-069d6c9970dd.jpeg" | |
main :: IO () | |
main = do | |
eexif <- parseFileExif file |
This file contains 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
$ mkdir ~/works | |
$ cd ~/works | |
$ wget -c http://www.imagemagick.org/download/ImageMagick.tar.gz | |
$ tar xf ImageMagick.tar.gz | |
$ cd ImageMagick-6.9.3-4/ | |
$ ./configure --prefix=$HOME/usr --disable-openmp --disable-opencl | |
$ make | |
$ make install | |
$ echo "export PATH=\$HOME/usr/bin:\$PATH" >> ~/.bash_profile | |
$ echo "export PKG_CONFIG_PATH=\$HOME/usr/lib/pkgconfig" >> ~/.bash_profile |
This file contains 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 Control.Monad.IO.Class (liftIO) | |
import Control.Monad.Trans.Resource (runResourceT) | |
import qualified Data.ByteString.Lazy as LBI | |
import Data.Default (def) | |
import Data.Either (either) | |
import Graphics.ThumbnailPlus ( CreatedThumbnails(..) | |
, createThumbnails | |
, Configuration(..) | |
, Size(..) | |
, Thumbnail(..) |
This file contains 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
{-# LANGUAGE OverloadedStrings #-} | |
import Network.Mail.Client.Gmail | |
import Network.Mail.Mime | |
main :: IO () | |
main = sendGmail | |
"foo@gmail.com" -- username | |
"password" -- password | |
(Address Nothing "from@example.com") -- from |
This file contains 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
{-# LANGUAGE OverloadedStrings #-} | |
import Network.Mail.Mime | |
main :: IO () | |
main = renderSendMail mail' | |
where | |
from = Address Nothing "from@example.com" | |
mail = addPart [plainPart "本文"] $ emptyMail from | |
mail' = mail { mailHeaders = [ ("to", "to1@example.com, to2@example.com") |
This file contains 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
<div class="container"> | |
<div class="row"> | |
<form action="#" class="form-horizontal"> | |
<div class="form-group container"><!-- ここが問題 --> | |
<label for="input-name" class="col-sm-2 control-label">おなまえ</label> | |
<div class="col-xs-12 col-sm-8"> | |
<input type="text" class="form-control" id="input-name" placeholder="おなまえ" maxlength="80" required="required"> | |
</div> | |
</div> |
This file contains 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
alias cabal='TMPDIR=~/.tmp LANG=en_US.UTF-8 cabal' | |
export PATH=$HOME/usr/bin:$PATH | |
export PATH=$HOME/.cabal/bin:$PATH | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/${HOME}/usr/lib/ghc-7.8.4/rts-1.0 | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/${HOME}/usr/lib/ghc-7.8.4/ghc-prim-0.3.1.0 | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/${HOME}/usr/lib/ghc-7.8.4/integer-gmp-0.5.1.0 | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/${HOME}/usr/lib/ghc-7.8.4/base-4.7.0.2 | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/${HOME}/usr/lib/ghc-7.8.4/filepath-1.3.0.2 | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/${HOME}/usr/lib/ghc-7.8.4/array-0.5.0.0 | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/${HOME}/usr/lib/ghc-7.8.4/deepseq-1.3.0.2 |
This file contains 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
Gradle sync failed: /Applications/Android Studio.app/Contents/gradle/gradle-2.4/lib/plugins/gradle-diagnostics-2.4.jar (No such file or directory) |
This file contains 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
<% if (user) { %> | |
<h2><%= user.name %></h2> | |
<% } %> |
This file contains 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
foreign import ccall jsQuerySelectorAll :: Elem -> JSString -> IO (Ptr [Elem]) |