Skip to content

Instantly share code, notes, and snippets.

View MaxMEllon's full-sized avatar
:octocat:
Enjoy

Kento TSUJI MaxMEllon

:octocat:
Enjoy
View GitHub Profile
@mizchi
mizchi / package.json
Created July 14, 2023 10:32
Run RSC without next
{
"private": true,
"type": "module",
"scripts": {
"start": "tsm --conditions react-server run-rsc.tsx"
},
"license": "MIT",
"devDependencies": {
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
@mugi-uno
mugi-uno / remote-work-style-check.md
Last active October 10, 2022 11:26
リモートワークスタイルチェック

リモートワークスタイルチェック

昨今の社会情勢の影響もありリモートワークを導入する企業・チームが増えてきましたが、 一口に「リモートワーク」といってもさまざまなスタイルがあります。

企業側と働く側のミスマッチを防ぐため、リモートワークにおける観点を列挙してみました。

リモートワーク比重度

どの程度リモートワークに比重を置いて導入しているかのチェックリストです。

@shqld
shqld / css-size-comparison.csv
Last active October 3, 2022 21:13 — forked from primaryobjects/css-comparison.csv
A comparison of CSS library sizes.
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
Caution,Name,Version,Size (raw),Size (minified),Size (gzipped),"Site","URL",Remarks
,Milligram,v1.4.1,11 kb,9.0 kb,2.3 kb,"https://milligram.io/","https://cdnjs.cloudflare.com/ajax/libs/milligram/1.4.1/milligram.min.css",
,Skelton,v2.0.4,11 kb,5.8 kb,1.6 kb,"http://getskeleton.com/","https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css",
,Material Design Lite,v1.3.0,146 kb,62 kb,12 kb,"https://getmdl.io/","https://code.getmdl.io/1.3.0/material.min.js",
,Foundation,v6.6.3,168 kb,133 kb,17 kb,"https://get.foundation/","https://cdn.jsdelivr.net/npm/foundation-sites@6.6.3/dist/css/foundation.min.css",
,Materialize,v1.0.0,179 kb,141 kb,21 kb,"https://materializecss.com/","https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css",
,Bootstrap,v4.6.0,199 kb,161 kb,24 kb,"https://getbootstrap.com/docs/4.6/","https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css",
,Bootstrap,v5.1.2,206 kb,164 kb,24 kb,"https://getbootstrap.com/","https://cdn.jsdelivr.net/npm/b
@ceejbot
ceejbot / esm_in_node_proposal.md
Last active July 17, 2023 02:45
npm's proposal for supporting ES modules in node

ESM modules in node: npm edition

The proposal you’re about to read is not just a proposal. We have a working implementation of almost everything we discussed here. We encourage you to checkout and build our branch: our fork, with the relevant branch selected. Building and using the implementation will give you a better understanding of what using it as a developer is like.

Our implementation ended up differing from the proposal on some minor points. As our last action item before making a PR, we’re writing documentation on what we did. While I loathe pointing to tests in lieu of documentation, they will be helpful until we complete writing docs: the unit tests.

This repo also contains a bundled version of npm that has a new command, asset. You can read the documentation for and goals of that comma

@babarot
babarot / bench-vim-plug-vs-dein-vim.sh
Last active April 20, 2017 17:00
vim-plug と dein.vim のベンチマーク結果
#!/bin/bash
mkdir -p /tmp/time
cd /tmp/time
# vim-plug ================================================
for i in {1..100}
@sgur
sgur / vimrc_clpum.vim
Last active June 30, 2016 09:33
Vim configuration for CLPUM
if has('clpum')
cnoremap <expr> <C-g> <SID>key_descend()
cnoremap <expr> <C-w> <SID>key_ascend()
function! s:key_descend() abort "{{{
if clpumvisible()
call feedkeys("\<Right>", "t")
return ""
endif
return "\<C-g>"
endfunction "}}}
@daleobrien
daleobrien / install_git.sh
Created June 14, 2016 23:14
install git 2.9 on OSX
cd ~/Downloads
wget https://www.openssl.org/source/openssl-1.0.2h.tar.gz
tar -xvf openssl-1.0.2h.tar.gz
cd openssl-1.0.2h
./Configure darwin64-x86_64-cc
make depend -j4
sudo make install
cd ~/Downloads
@glenjamin
glenjamin / records.js
Last active May 4, 2020 16:50
Flow types for immutable records.
/* @flow */
import * as I from "immutable";
/**
* Define an immutable record intended for holding reducer state
* @param spec - the keys and their default values
* @return a state record factory function
*/
export function defineRecord<T: Object>(
@theCrab
theCrab / authentication.rb
Last active April 27, 2022 15:42
A Hanami Framework authentication based on JSON Web Tokens.
# lib/authentications/authentication.rb
# @api auth
# Authentication base class
#
module Authentication
def self.included(base)
base.class_eval do
before :authenticate!
expose :current_user