Skip to content

Instantly share code, notes, and snippets.

.separator {
position: relative;
width: 3rem;
height: 3rem;
border: 0;
margin: 0;
}
.separator::before,
.separator::after {
position: absolute;
{
"terminal.integrated.fontFamily": "\"RobotoMono Nerd Font Mono\"",
"editor.fontFamily": "\"Ricty Diminished\", Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 14,
"git.autofetch": true,
"editor.renderWhitespace": "boundary",
"eslint.validate": [
"javascript",
"javascriptreact",
{ "language": "typescript", "autoFix": true },
@hbsnow
hbsnow / hoge.php
Last active June 1, 2019 05:43
論理演算テスト
<?php
function hoge() {
echo 'hoge';
return true;
}
if (true && hoge()) {
echo 'hage';
}
// -> hogehage
@hbsnow
hbsnow / settings.json
Created January 14, 2019 01:51
VSCode設定ファイル
// Place your settings in this file to overwrite the default settings
{
"editor.fontFamily": "'Ricty Diminished', 'Menlo', monospace",
"editor.tabSize": 2,
"editor.renderWhitespace": "boundary",
"editor.fontSize": 14,
"editor.renderIndentGuides": true,
"terminal.integrated.shell.windows": "C:\\Windows\\Sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
"sync.gist": "",
"sync.autoDownload": false,
@hbsnow
hbsnow / .zshrc
Last active November 15, 2020 02:38
zsh設定ファイル
export LANG=ja_JP.UTF-8
export LC_ALL=ja_JP.UTF-8
export VISUAL='code -w'
export EDITOR=$VISUAL
autoload -Uz is-at-least
# prezto
if [ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]; then
@hbsnow
hbsnow / SassMeister-input.scss
Created September 23, 2015 07:19
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
$layers: (
forefront: 9001,
modal: (
base: 9000,
header: 801,
@hbsnow
hbsnow / github.less
Created June 22, 2015 17:09
highlight.jsのテーマ。
pre.highlight {
// prefix
@base: hljs-;
@lang: language-;
// color
@base00: #fff;
@base0: #333;
@base1: #969896;
@brown: #693a17;
@hbsnow
hbsnow / github.less
Last active August 29, 2015 14:18
prism.jsのテーマ。
pre[prism] {
// color
@base00: #fff;
@base0: #333;
@base1: #969896;
@brown: #693a17;
@orange: #df5000;
@red: #b52a1d;
@magenta: #a71d5d;
@violet: #795da3;
@hbsnow
hbsnow / layout.less
Created March 18, 2015 14:48
flexboxのためのLESS
.layout {
// display
&.horizontal,
&.horizontal-reverse,
&.vertical,
&.vertical-reverse {
display: flex;
}
&.inline {
@hbsnow
hbsnow / gist:ecda9da7083e50abfc06
Created December 31, 2014 05:17
数値入力に必要なキー以外を無効化する
private void KeyPressNumberOnly(Object sender, KeyEventArgs e)
{
if ((e.Key < Key.D0 || e.Key > Key.D9) &&
(e.Key < Key.NumPad0 || e.Key > Key.NumPad9) &&
e.Key != Key.Back &&
e.Key != Key.Delete &&
e.Key != Key.Left &&
e.Key != Key.Right &&
e.Key != Key.Tab)
{