- Convert CapsLock to Ctrl by Changekey
- Install AutoHotKey and create a file (e.g. ~/autohotkey.ahk)
; https://qiita.com/Q_tomoking/items/eedd42c4f2099a9a8542
# window の操作 | |
bind -n S-down new-window | |
bind -n S-left prev | |
bind -n S-right next | |
# | |
# | |
# # C-bのキーバインドを解除する | |
set-option -g prefix C-t | |
unbind-key C-b |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"strconv" | |
"strings" | |
"math" | |
) |
#!/bin/sh | |
set -eu | |
docker container run -d -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=password \ | |
--name scalacheck-mysql mysql:5.7 | |
# Wait for setup | |
set +e | |
for i in $(seq 20) |
; https://qiita.com/Q_tomoking/items/eedd42c4f2099a9a8542
package example | |
object SampleMain { | |
import cats._ | |
import cats.data._ | |
import cats.instances.option._ | |
type StateMachine = StateT[Option, Int, String] |
# The recipe to install td-agent3. | |
# This is tested only for Ubuntu 14.04 LTS. | |
# Install td-agent | |
# Should be td-agent3 | |
# TODO: Avoid to execute `apt-get update` in the recipe? | |
execute 'install td-agent' do | |
command "curl -L https://toolbelt.treasuredata.com/sh/install-ubuntu-trusty-td-agent3.sh | sh" | |
action :run | |
end |
curl https://start.spring.io/starter.tgz -d dependencies=web,security,lombok -d type=gradle-project -d groupId=com.tiqwab artifactId=boot-with-security packageName=com.tiqwab name=boot-with-security | tar -xzvf - |
module HereDoc.Quote ( | |
heredoc | |
) | |
where | |
import Data.Char | |
import qualified Language.Haskell.TH as TH | |
import Language.Haskell.TH.Quote | |
{- |
# timing of visiting nodes | |
PRE = 1 | |
IN = 0 | |
POST = -1 | |
''' | |
Implementation of splay tree | |
''' | |
class Node: |
class Node: | |
def __init__(self, x, parent=None): | |
self.key = x | |
self.left = None | |
self.right = None | |
self.parent = parent | |
def append_child(self, child): | |
if self.key > child.key: | |
self.left = child |