- VSCodeをインストール
- View Command Palette...(
⇧⌘P
orF1
) ->Configure Language
-> "ja" を "en" に変更保存して再起動すると英語化 - View -> Extensions(
⇧⌘X
) -> @sort:installs vim でVim拡張導入
This file contains 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
# markdown files | |
MARKDOWNS = $(wildcard *.md) | |
# converted textiles | |
TEXTILES = $(patsubst %.md,%.textile,$(MARKDOWNS)) | |
all: $(TEXTILES) | |
README.textile: README.md | |
@echo 'skipping README.textile conversion' |
This file contains 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.util.Calendar; | |
import java.util.Date; | |
import java.util.GregorianCalendar; | |
public class MyClass { | |
public static void main(String args[]) { | |
// Don be afraid that add(DAY_OF〜, value) makes no differences | |
This file contains 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
$ gem install aws-sdk | |
Fetching: jmespath-1.3.1.gem (100%) | |
ERROR: While executing gem ... (Gem::FilePermissionError) | |
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory. | |
$ which ruby | |
/usr/bin/ruby | |
$ which gem | |
/usr/bin/gem | |
$ brew install rbenv ruby-build | |
$ rbenv install --list |
This file contains 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
// | |
// check if array is empty or nil | |
// | |
class Example { | |
func check(_ array: [String]?) { | |
if (array ?? []).isEmpty == true { | |
print("array is empty or nil") | |
} else { | |
print("array is not empty or nil") |
This file contains 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
2016/01/01,元日 | |
2016/01/11,成人の日 | |
2016/02/11,建国記念の日 | |
2016/03/20,春分の日 | |
2016/04/29,昭和の日 | |
2016/05/03,憲法記念日 | |
2016/05/04,みどりの日 | |
2016/05/05,こどもの日 | |
2016/07/18,海の日 | |
2016/08/11,山の日 |
This file contains 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
call accelerate#map('nv', 'e', '<C-u>', 'repeat("\<C-u>", v:count1)') | |
call accelerate#map('nv', 'e', '<C-d>', 'repeat("\<C-d>", v:count1)') | |
call accelerate#map('nv', '', 'j', 'gj') | |
call accelerate#map('nv', '', 'k', 'gk') | |
call accelerate#map('nv', '', 'h', 'h') | |
call accelerate#map('nv', 'e', 'l', 'foldclosed(line(".")) != -1 ? "zo" : "l"') |
This file contains 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 branch | awk '/^*/{print $2}' | xargs -I% git push origin % | |
こんな感じでなんとか出来ないだろうか |
This file contains 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
# encoding: utf-8 | |
namespace :mysql do | |
desc 'backup mysql database' | |
task :backup => :environment do | |
filename = "#{Rails.root}/config/database.yml" | |
config = YAML::load(File.open(filename))[Rails.env] | |
if config.nil? |
This file contains 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 "net/http" | |
require "net/https" | |
require "uri" | |
require "rexml/document" | |
class NicoLiveException < StandardError; end | |
class NicoLive | |
attr_accessor :mail_tel, :password | |
NewerOlder