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.terminalAuthentication": false, | |
| "git.openRepositoryInParentFolders": "always", | |
| "editor.inlineSuggest.enabled": true, | |
| "editor.cursorBlinking": "solid", | |
| "editor.tabSize": 2, | |
| "editor.fontFamily": "Monaco", | |
| "editor.fontSize": 12, | |
| "editor.insertSpaces": true, | |
| "editor.formatOnSave": true, |
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
| {"lastUpload":"2020-01-19T13:32:49.974Z","extensionVersion":"v3.1.2"} |
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
| require 'bundler/inline' | |
| gemfile(true) do | |
| source 'https://rubygems.org' | |
| gem 'logger' | |
| gem 'aws-sdk-s3' | |
| gem 'parallel' | |
| end | |
| class ImageSync |
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
| mkdir ~/vim | |
| cd ~/vim | |
| # Staically linked vim version compiled from https://github.com/ericpruitt/static-vim | |
| # Compiled on Jul 20 2017 | |
| curl 'https://s3.amazonaws.com/bengoa/vim-static.tar.gz' | tar -xz | |
| export VIMRUNTIME="$HOME/vim/runtime" | |
| export PATH="$HOME/vim:$PATH" | |
| cd - |
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
| // 既定値を上書きするには、このファイル内にキー バインドを挿入します | |
| [ | |
| { | |
| "key": "ctrl+k", | |
| "command": "editor.action.commentLine", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "cmd+/", | |
| "command": "-editor.action.commentLine", |
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
| 'use strict'; | |
| const https = require('https'); | |
| const mysql = require('mysql2'); | |
| const ssh2Client = require('ssh2').Client; | |
| const ssh = new ssh2Client(); | |
| const dbHost = ''; | |
| const dbUser = ''; | |
| const dbPassword = ''; |
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
| $(function () { | |
| $('form').submit(function () { | |
| const form = $(this); | |
| if (form.hasClass('prevent-double-click')) { | |
| event.preventDefault(); | |
| } else { | |
| form.addClass('prevent-double-click'); | |
| } | |
| }); | |
| }); |
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
| $(function() { | |
| $('#lists li').sort(function (list) { | |
| if ($(list).find('.target-object')[0]) { | |
| return 1; | |
| } else { | |
| return -1; | |
| } | |
| }).appendTo('#lists'); | |
| }); |
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
| nginx -> puma -> rails | |
| nginx | |
| netstat -anp | grep LISTEN | |
| tail -f /var/log/nginx/access.log |
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
| # いつもの定義 | |
| # class Bar | |
| # def hello | |
| # puts 'hello' | |
| # end | |
| # end | |
| # rubyの理解 | |
| Bar = Class.new do | |
| def hello |
NewerOlder