PHPでMySQLを操作しよう.
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
sudo arp-scan -I en0 192.168.11.0/24 |
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
nkf -w hoge_sjis.txt > hoge_utf8.txt |
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
<body> | |
<div id="app"> | |
{{ message }} | |
</div> | |
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> | |
</body> |
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
<body> | |
<div id="app"> | |
<!-- messageを描画するのは最初のみで変更はできない. --> | |
<!-- 表示を高速化したいときに使う. --> | |
<p v-once> | |
{{ message }} | |
</p> | |
<button v-on:click="clickHandler"> | |
Click me! | |
</button> |
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
# | |
# Executes commands at the start of an interactive session. | |
# | |
# Authors: | |
# Sorin Ionescu <[email protected]> | |
# | |
# Source Prezto. | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" |
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
" Specify a directory for plugins | |
" - For Neovim: stdpath('data') . '/plugged' | |
" - Avoid using standard Vim directory names like 'plugin' | |
call plug#begin('~/.vim/plugged') | |
" Make sure you use single quotes | |
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align | |
Plug 'junegunn/vim-easy-align' |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// choose either `'stable'` for receiving highly polished, | |
// or `'canary'` for less polished but more frequent updates | |
updateChannel: 'stable', |
はてなブックマークからSlackに記事をシェアするBotです.
各自がGoogle App Scriptで特定のチャンネルに投稿することを想定してます.
こういうことがやりたくて作ってみました.
雑談のタネにどうぞ.
- Google Spreadsheetを新規作成
- 「ツール」>「スクリプトエディタ」を開く.
- PostArticleFromHatena.jsの内容をひとまずコピペする.
- コード中の9行目らへんの環境変数POST_URL,DISPLAY_NAME,HATENA_USERNAMEを自分の環境に合わせる.WebhookのURLは管理者に教えてもらおう.
POST_URL
: SlackのIncoming Webhookでchannelごとに発行されるURL
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
#!/usr/bin/env perl | |
# 日本語原稿の設定例 | |
@default_files=('main.tex'); | |
# LaTeX | |
$latex = 'platex -synctex=1 -halt-on-error -file-line-error %O %S'; | |
$max_repeat = 5; | |
# BibTeX | |
$bibtex = 'pbibtex %O %S'; |
OlderNewer