This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script should be saved as $PROJECT/scripts/fvm-activate | |
if [ "${BASH_SOURCE-}" = "$0" ]; then | |
echo "You must source this script: \$ source $0" >&2 | |
return 33 | |
fi | |
fvm-deactivate() { | |
if ! [ -z "${_FVM_OLD_PATH:+_}" ] ; then | |
PATH="$_FVM_OLD_PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'ListView & Transform.scale', | |
home: Scaffold( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
import 'package:flutter_hooks/flutter_hooks.dart'; | |
void main() => runApp(MaterialApp( | |
home: Scaffold( | |
appBar: AppBar( | |
title: const Text("フィルタ付き選択ダイアログ"), | |
), | |
body: ListView( | |
children: const [SelectTile()], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() => runApp(const AppBarApp()); | |
class AppBarApp extends StatelessWidget { | |
const AppBarApp({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return const MaterialApp( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
SILENT=0 | |
if [[ $1 = "-s" ]]; then | |
shift | |
SILENT=1 | |
fi | |
declare -a COMMAND=(git --no-pager $argv) | |
if [[ $1 = "!" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd $(dirname $0) | |
render_source() { | |
local -r generator=./$(basename $1) | |
local -r package=$2 | |
local -r project_root=$3 | |
cat <<EOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import getpass | |
import json | |
import sys | |
import requests | |
def main(): | |
username = input('Basic Auth Username: ') | |
password = getpass.getpass('Basic Auth Password: ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[[ -n "${__LOGGER_SH:-}" ]] && return || readonly __LOGGER_SH=1 | |
# Usage: | |
# source ./logger.sh | |
# log_info "message" | |
# 0: DEBUG | |
# 1: INFO | |
# 2: WARN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for D in $(find $(pwd) -name .git -type d | xargs -n1 dirname); cd $D && echo -e "\e[37;44;1m" && pwd && echo -e "\e[m" && git pull |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scriptencoding utf-8 | |
"""""""""""""""" | |
" キーバインド " | |
"""""""""""""""" | |
" 挿入モードで使うと殴りたくなるキー対策 | |
nnoremap OA gi<Up> | |
nnoremap OB gi<Down> | |
nnoremap OC gi<Right> |
NewerOlder