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
| SendMailRole: | |
| Type: AWS::IAM::Role | |
| Properties: | |
| AssumeRolePolicyDocument: | |
| Version: "2012-10-17" | |
| Statement: | |
| - Effect: Allow | |
| Principal: | |
| Service: lambda.amazonaws.com | |
| Action: "sts:AssumeRole" |
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
| String.join "," << List.reverse << List.map String.fromList << List.Split.chunksOfRight 3 << String.toList << String.fromInt |
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 Data.Time.Calendar | |
| import Data.Time.Format | |
| import Data.Time.LocalTime | |
| import Data.Time.Calendar.WeekDate | |
| {- -------------------- | |
| この関数がエントリポイント. | |
| --------------------- -} | |
| main = putStrLn =<< pure . formatToMonthCalendar =<< currentMonth |
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 Data.List | |
| import Data.List.Split | |
| import Data.Time.Calendar | |
| import Data.Time.Calendar.WeekDate | |
| import Data.Time.Format | |
| import Data.Time.LocalTime | |
| {- -------------------- | |
| この関数がエントリポイント. | |
| --------------------- -} |
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 java.text.SimpleDateFormat | |
| import java.time.LocalDate | |
| import java.time.Month | |
| import java.time.temporal.ChronoUnit | |
| import java.util.GregorianCalendar | |
| import java.util.Locale | |
| fun main() { | |
| val now = LocalDate.now() | |
| println(Main.formatMonthCalendar(now.year, now.month)) |
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 | |
| import Control.Concurrent (forkIO, threadDelay) | |
| import Control.Concurrent.Async | |
| import Control.Concurrent.MVar | |
| data Philosopher = Philosopher { | |
| name :: String | |
| , left :: Int | |
| , right :: Int |
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 | |
| import System.Exit | |
| main :: IO () | |
| main = do | |
| c <- getContents | |
| mapM_ core $ lines c | |
| where | |
| core :: String -> IO () |
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
| {-# LANGUAGE OverloadedStrings #-} | |
| {-# LANGUAGE FlexibleContexts #-} | |
| module Lib where | |
| import Control.Lens | |
| import Data.Aeson | |
| import Data.Aeson.Lens | |
| import Data.HashMap.Strict as M | |
| import Data.Maybe |
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 hello; | |
| import java.io.IOException; | |
| import com.amazonaws.services.lambda.runtime.Context; | |
| import com.amazonaws.services.lambda.runtime.RequestHandler; | |
| public class Handler implements RequestHandler<Request, Response> { | |
| @Override |
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
| Error: <solution_path>/FSharpSample/FSharpSample.fsproj | |
| : /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Mac/Xamarin.Mac.FSharp.targets | |
| : Project file could not be imported, it was being imported by | |
| <solution_path>/FSharpSample/FSharpSample/FSharpSample.fsproj | |
| /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Mac/Xamarin.Mac.FSharp.targets | |
| could not import "$(FSharpTargets)" |
NewerOlder