Skip to content

Instantly share code, notes, and snippets.

View baronTommy's full-sized avatar
:octocat:
ぎっとはぶ

Tommy baronTommy

:octocat:
ぎっとはぶ
View GitHub Profile
@minop1205
minop1205 / conventional-commits.md
Last active June 21, 2024 15:28
コミットメッセージ規約
@anekos
anekos / support-internet-explorer.js
Created March 5, 2020 08:09
Internet Explorer に対応する JavaScript
if (~window.navigator.userAgent.indexOf('Trident')) {
location.href = 'https://getfirefox.com';
}
@anekos
anekos / not_works.sh
Created October 1, 2019 10:22
シェルスクリプトでクロージャ(勿論動かない)
function upload () {
local src="$1"
# ...
mv "$temp" "$src"
clean_src () {
rm "$src"
}
trap clean_src EXIT
@Ciantic
Ciantic / example-typeorm-jest.test.ts
Created April 16, 2019 17:50
Example of testing TypeOrm with Jest and Sqlite in-memory database
import { createConnection, getConnection, Entity, getRepository } from "typeorm";
import { PrimaryGeneratedColumn, Column } from "typeorm";
@Entity()
export class MyEntity {
@PrimaryGeneratedColumn()
id?: number;
@Column()
name?: string;
@AquiTCD
AquiTCD / .cz-config.js
Created November 30, 2018 01:55
.cz-config
'use strict';
module.exports = {
types: [
{
value: 'feat',
name: 'feat: 新機能',
title: 'Features'
},
{
value: 'fix',
@mizchi
mizchi / predict-frontend.md
Last active May 12, 2023 03:43
React のユーザーから見た今後のフロントエンドの予想

この記事は議論のたたき台で、ポジショントークや、偏見にまみれています。

今のフロントエンドの分類

  • 古典的なサーバーサイド WAF への +α の味付け
  • 大規模なクライアントアプリケーション管理のための SPA
  • SEO / SSR を考慮した Node ヘヴィーな環境

他、提唱されてるパターン

@anekos
anekos / x-yaml-to-json.vim
Created November 2, 2018 14:26
自動で YAML に変換して書きだす Vim さん (*.x.yaml とすること)
" 自動で YAML に変換して書きだす (*.x.yaml とすること) {{{
function! s:yaml_to_json()
let l:from = expand('%')
let l:to = expand('%:r:r') . '.json'
let l:result = system('ruby -rjson -ryaml -e "puts(JSON.pretty_generate(YAML.load(ARGF.read)))" ' . shellescape(l:from) . ' > ' . shellescape(l:to))
if v:shell_error
echoerr printf("Failed to yaml_to_json: %d\n%s", v:shell_error, l:result)
endif
endfunction