Skip to content

Instantly share code, notes, and snippets.

@captain-blue210
captain-blue210 / 0000000001.json
Created Jul 18, 2021
personal karabiner setting
View 0000000001.json
{
"title": "Emacs like key bindings (rev 2)",
"maintainers": ["captain-blue210"],
"rules": [
{
"description": "page_down -> ctrl + v",
"manipulators": [
{
"type": "basic",
"from": {
View amazon_short_url_getter
javascript: (function () {
const title = document.title.split('|')[0].trim();
const url = `https://www.amazon.co.jp/dp/${ue_pti}`;
const markdown = `[${title}](${url})`;
navigator.clipboard.writeText(markdown).then(function () {
alert(`URL Copied! : ${markdown}`);
}, function () {
alert('URL Copy failed..')
})
View GoodsControllerTest.java
package captain.blue210.studyfornetsuperbackend.presentation.api.controller.goods;
import captain.blue210.studyfornetsuperbackend.domain.model.goods.Goods;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.security.test.context.support.WithMockUser;
import org.springframework.test.web.servlet.MockMvc;
View index.spec.ts
import { NuxtAxiosInstance } from '@nuxtjs/axios';
import { createLocalVue } from '@vue/test-utils';
import axios from 'axios';
import { cloneDeep } from 'lodash';
import Vuex from 'vuex';
import ROUTES from '~/routes/api';
import * as storeIndex from '~/store/index';
const localVue = createLocalVue();
localVue.use(Vuex);