Skip to content

Instantly share code, notes, and snippets.

View usucode's full-sized avatar
:octocat:
happy hacking!

Yusuke Akiyama usucode

:octocat:
happy hacking!
View GitHub Profile
@usucode
usucode / _breakpoint.scss
Last active March 3, 2021 01:59
SCSS utils
$breakpoint-sm: 400px !default;
$breakpoint-md: 768px !default;
$breakpoint-lg: 1024px !default;
// min-width
$breakpoint-up: (
'sm': 'screen and (min-width: #{$breakpoint-sm})',
'md': 'screen and (min-width: #{$breakpoint-md})',
'lg': 'screen and (min-width: #{$breakpoint-lg})',
) !default;
@usucode
usucode / firebase-google-signin.vue
Created December 21, 2019 20:33
Vue.js Firebase Google認証
<template>
<div>
<h1>SignIn page</h1>
<v-avatar v-show="photoUrl">
<img :src="photoUrl" alt="John" />
</v-avatar>
<v-btn @click="SignIn" color="info">Google Sign In</v-btn>
<v-btn @click="SignOut" color="secondary">Sign Out</v-btn>
<v-btn @click="GetProfiele" color="success">GetProfiele</v-btn>
<p>login: {{ login }}</p>
@usucode
usucode / push.sh
Created October 9, 2019 06:30
複数のgit push
#!/bin/bash
# 例としてoriginとhkrcにリモートリポジトリを登録した場合
# エラー処理
if [ $# -ne 1 ]; then
echo "指定された引数は$#個です。" 1>&2
echo "実行するには1個の引数が必要です。" 1>&2
exit 1
fi
// Break Point
/***
* How to use
* @include bp(sp) {...}, @include bp(tab) {...}, @include bp(pc) {...},
* @include bp($sp, $md) {...}, @include bp($md, $lg) {...}, @include bp(500px, 768px) {...},
* @include bp(up, $sm) {...}, @include bp(down, $md) {...}, @include bp(up, 768px) {...},
***/
@mixin bp($dir,$val: null) {
@usucode
usucode / docker-compose.yml
Created July 30, 2019 04:29 — forked from megos/docker-compose.yml
Oracle DB 11g docker compose
db:
image: oracle/database:11.2.0.2-xe
ports:
- 1521:1521
- 8085:8080
shm_size: 1g
volumes:
- ./data:/u01/app/oracle/oradata
environment:
- ORACLE_PWD=<password>