Skip to content

Instantly share code, notes, and snippets.

set clipboard=unnamed
nnoremap R :action RenameElement<CR>
nnoremap <C-CR> :action ShowIntentionActions<CR>
nnoremap gb :action JumpToLastChange<CR>
nnoremap gs :action GotoSuperMethod<CR>
nnoremap == :action ReformatCode<CR>
vnoremap == :action ReformatCode<CR>
@Ryu955
Ryu955 / keymap.c
Last active November 26, 2020 04:02
keymap
/* QWERTY
* ,-----------------------------------------. ,-----------------------------------------.
* | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | Tab | Q | W | E | R | T | | Y | U | I | O | P | - |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* |LCTRL | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' |
* |------+------+------+------+------+------| { | | } |------+------+------+------+------+------|
* | LSFT | Z | X | C | V | B |-------| |-------| N | M | , | . | / | RALT |
* `-----------------------------------------/ / \ \-----------------------------------------'
/* QWERTY
* ,-----------------------------------------. ,-----------------------------------------.
* | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | ` |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* | Tab | Q | W | E | R | T | | Y | U | I | O | P | - |
* |------+------+------+------+------+------| |------+------+------+------+------+------|
* |LCTRL | A | S | D | F | G |-------. ,-------| H | J | K | L | ; | ' |
* |------+------+------+------+------+------| [ | | ] |------+------+------+------+------+------|
* | LALT | Z | X | C | V | B |-------| |-------| N | M | , | . | / | RSFT |
* `-----------------------------------------/ / \ \-----------------------------------------'
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CooperationNotes : NotesFactory{
public override void Action(){
Debug.Log("Cooperation");
if(2人が同時に押した){
// 消す
{
"rules": {
"preset-ja-technical-writing": true,
}
}
init:
npm init -y
npm install --save-dev textlint
npm install textlint-rule-preset-ja-technical-writing
# coding: UTF-8
import twitter
import settings
def tweet(id, url):
auth = twitter.OAuth(consumer_key=settings.CK,
consumer_secret=settings.CS,
token=settings.AK,
token_secret=settings.AS)
@Ryu955
Ryu955 / get.json
Last active December 2, 2017 10:04
{
"calendar": {
"id": 2359,
"year": 2017
},
"current_user": null,
"entries": [
{
"comment": "chromeの拡張機能を作ってみた話",
"date": "2017-12-04",
# coding: UTF-8
import twitter
import settings
from requests_oauthlib import OAuth1Session
twitter = OAuth1Session(settings.CK, settings.CS, settings.AK, settings.AS)
def tweet(id, url):
status= "@" + id + " 今日はアドベントカレンダーの担当日です." + url
params = {"status":status}
# coding: UTF-8
import os
import os.path
import dotenv
dotenv_path = os.path.join(os.path.dirname(__file__), '.env')
dotenv.load_dotenv(dotenv_path)
CK = os.environ.get("CONSUMER_KEY")