React.js環境構築(未完)
VSCodeの導入
- VSCodeをインストール
- View Command Palette...(
⇧⌘P
orF1
) ->Configure Language
-> "ja" を "en" に変更保存して再起動すると英語化 - View -> Extensions(
⇧⌘X
) -> @sort:installs vim でVim拡張導入
# markdown files | |
MARKDOWNS = $(wildcard *.md) | |
# converted textiles | |
TEXTILES = $(patsubst %.md,%.textile,$(MARKDOWNS)) | |
all: $(TEXTILES) | |
README.textile: README.md | |
@echo 'skipping README.textile conversion' |
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 | |
$ 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 |
// | |
// 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") |
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,山の日 |
⇧⌘P
or F1
) -> Configure Language
-> "ja" を "en" に変更保存して再起動すると英語化⇧⌘X
) -> @sort:installs vim でVim拡張導入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"') |
git branch | awk '/^*/{print $2}' | xargs -I% git push origin % | |
こんな感じでなんとか出来ないだろうか |
# 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? |
require "net/http" | |
require "net/https" | |
require "uri" | |
require "rexml/document" | |
class NicoLiveException < StandardError; end | |
class NicoLive | |
attr_accessor :mail_tel, :password | |