Skip to content

Instantly share code, notes, and snippets.

@y-temp4
y-temp4 / file0.css
Last active August 7, 2019 16:14
remarkで作ったスライドをPDF出力する方法 ref: https://qiita.com/y-temp4/items/96b75d9f27a85b598f34
@page {
size: 1210px 681px;
margin: 0;
}
@media print {
.remark-slide-scaler {
width: 100% !important;
height: 100% !important;
transform: scale(1) !important;
@y-temp4
y-temp4 / file0.txt
Created November 21, 2017 07:16
Jestが動かないときの対処法 ref: https://qiita.com/y-temp4/items/d08483883c24bc31f5b6
$ brew uninstall watchman
@y-temp4
y-temp4 / .babelrc
Created December 20, 2017 23:25
【初心者向け】NEM LibraryとJavaScriptを使った開発にちょっとだけ入門してみる ref: https://qiita.com/y-temp4/items/9be4b041565a4bb24dab
{
"presets": ["env"]
}
@y-temp4
y-temp4 / test.js
Created September 14, 2018 07:00
Test Gist Code.
function test(arg) {
console.log(arg)
return arg
}
function aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa() {
return true
}
@y-temp4
y-temp4 / file0.txt
Last active November 14, 2018 04:55
brewでインストールしたyarnのバージョンを変更する方法 ref: https://qiita.com/y-temp4/items/ed73daa00feeda494ad9
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/fba7635ab69384ac980c635483a7af825bc06088/Formula/yarn.rb
@y-temp4
y-temp4 / file1.js
Last active December 24, 2018 05:27
Nuxt.js を用いた新規事業開発を半年以上経験して得た知見 ref: https://qiita.com/y-temp4/items/b8cbedbd95163da82911
async getLikesCount({ commit }, { articleId }) {
const { count: likesCount } = await this.$axios.$get(`/articles/${articleId}/likes`)
return likesCount
}
@y-temp4
y-temp4 / observe-window-onbeforeunload.js
Last active July 9, 2019 04:22
window.onbeforeunload の変更を検知して「このサイトを離れますか?」のポップアップを表示しないようにする
Object.defineProperty(window, 'onbeforeunload', {
set(newValue) {
if (typeof newValue === 'function') window.onbeforeunload = null;
}
});
@y-temp4
y-temp4 / tailwind.config.js
Created August 9, 2019 02:23
Use open-color for Tailwind CSS
const openColors = require('open-color/open-color.json')
const colors = {}
Object.entries(openColors).forEach(([color, values]) => {
if (['white', 'black'].includes(color)) return
colors[color] = { ...values }
})
module.exports = {
@y-temp4
y-temp4 / settings.json
Created August 15, 2019 13:48
vetur defaultFormatter settings
{
"vetur.format.defaultFormatter.html": "none",
"vetur.format.defaultFormatter.js": "prettier-eslint",
"vetur.format.defaultFormatter.ts": "prettier"
}