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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta name="robots" content="noindex,nofollow" /> | |
| <meta charset="UTF-8"> | |
| <title>This is Template</title> | |
| <style type="text/css"> | |
| #container { | |
| width: 960px; |
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
| docker stop $(docker ps -a -q) |
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
| for seq in event.data["seq"] | |
| console.log "Request: " + seq | |
| fetch(new Request("/#{seq}", {mode: 'no-cors'})).then((response) -> | |
| console.log "after Request: " + seq | |
| caches.open(CACHE_NAME).then((cache) -> | |
| cache.put("/#{seq}", response) | |
| ) | |
| ).catch((err) -> | |
| console.error(err) | |
| ) |
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
| docker rm `docker ps -a | grep "hogehoge" | cut -c 1-12` | |
| 例) docker rm `docker ps -a | grep "5 months ago" | cut -c 1-12` |
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
| git diff --name-only origin/master | xargs bundle exec rubocop --force-exclusion |
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
| <html> | |
| <title></title> | |
| <body> | |
| <script> | |
| window.onload = function() { | |
| var image = document.getElementById("cat_image") | |
| var data_url = imageToBase64(image, "image/jpg") | |
| console.log(data_url) | |
| document.getElementById("hoge").innerHTML = data_url | |
| } |
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
| #!/bin/sh | |
| change_file_list=`git diff --cached --name-status | cut -c3-`; | |
| for FILE in $change_file_list | |
| do | |
| if grep -sq "binding\.pry" $FILE; then | |
| echo "binding.pry、はいってますよ。${FILE}" | |
| exit 1 | |
| fi | |
| done |
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
| scope :condition, -> { | |
| joins(B: :C).where(C: {C_column: "hoge"}) | |
| } |
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
| find ./*.jpg -mtime +3 | xargs sudo rm -rf |
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
| # | |
| sudo service vboxadd-service stop | |
| sudo date -s "02/08 7:00 2017" | |
| # 元に戻す | |
| sudo service vboxadd-service start | |
NewerOlder