チートシート
getHogeR :: Handler Hoge
この場合、Hoge型が次の3つのclassのinstanceである必要があります。
package sandbox; | |
import javax.naming.NamingException; | |
import javax.persistence.EntityManager; | |
import javax.persistence.EntityManagerFactory; | |
import javax.persistence.Persistence; | |
public class Sample { | |
@SuppressWarnings({ "nls" }) |
module Main where | |
import Data.List.Split | |
import Data.Time.Calendar | |
import Data.Time.Calendar.WeekDate | |
import Data.Time.Clock | |
import Data.Time.Format | |
import Data.Time.LocalTime | |
import Data.Text (pack, unpack, center) | |
import System.Locale |
module Main where | |
import Data.List.Split | |
import Data.Time.Calendar | |
import Data.Time.Calendar.WeekDate | |
import Data.Time.Clock | |
import Data.Time.Format | |
import Data.Time.LocalTime | |
import Data.Text (pack, unpack, center) | |
import System.Locale |
final IndicatingAjaxButton button = new IndicatingAjaxButton("deleter") { | |
@Override | |
protected void updateAjaxAttributes(final AjaxRequestAttributes pAttributes) { | |
super.updateAjaxAttributes(pAttributes); | |
final AjaxCallListener ajaxCallListener = new AjaxCallListener(); | |
ajaxCallListener.onPrecondition("return confirm('この操作は取り消せません!本当に削除してよろしいですか?');"); | |
pAttributes.getAjaxCallListeners().add(ajaxCallListener); | |
} |
public class ChildPage extends WebPage { | |
public ChildPage(final Callback pCallback) { | |
AjaxLink<?> link = new AjaxLink<Object>("link") { | |
@Override | |
public void onClick(AjaxRequestTarget pTarget) { | |
// リンクが押されたことを現在時刻と共に呼び出し元に通知 | |
pCallback.callback(pTarget, Calendar.getInstance().getTime()); | |
} | |
}; |
package main | |
import ( | |
"os" | |
"fmt" | |
"time" | |
"math/rand" | |
_ "github.com/mattn/go-sqlite3" | |
_ "github.com/lib/pq" | |
"github.com/naoina/genmai" |
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)" |
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 |
{-# 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 |