$spacing: 1rem;
body {
margin: ($spacing * 4) $spacing;
}
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
% docker compose up (git)-[develop] | |
[+] Running 12/12 | |
⠿ db Pulled 12.6s | |
⠿ 9a5c778f631f Pull complete 4.1s | |
⠿ 6c09b1c7d50d Pull complete 4.2s | |
⠿ 7d5a6697daf1 Pull complete 4.3s | |
⠿ 06f40b0c53d7 Pull compl |
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
// ==UserScript== | |
// @name Disable keyboard shortcuts | |
// @namespace https://github.com/mori-dev | |
// @description ページのキーボードショートカットを殺す | |
// @include https://github.com/* | |
// @include https://gist.github.com/* | |
// @include https://mail.google.com/* | |
// ==/UserScript== | |
unsafeWindow.$(document).unbind('keydown.hotkey'); |
- 不正確な情報の可能性があります *
開発/テスト/ビルド用 npm パッケージは devDependencies
、 それ以外を dependencies
にしましょう。前者は npm i -D foo
後者は npm i -S foo
です。
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 React from 'react'; | |
import { Root } from 'native-base'; | |
import * as Expo from 'expo'; | |
import { AppNavigator } from './routes'; | |
export default class App extends React.Component { | |
constructor() { | |
super(); |
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
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"encoding/pem" | |
"io" | |
"log" | |
"os" |
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
package app_error | |
import ( | |
"net/http" | |
"time" | |
"github.com/labstack/echo" | |
) | |
type ApiError struct { |
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
/* taken from https://github.com/bryaneaton13/react-pull-to-refresh/blob/master/examples/basic/app.css */ | |
.ptr-element { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
color: #aaa; | |
z-index: 10; | |
text-align: center; | |
height: 50px; |
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 { createMiddleware } from 'redux-beacon'; | |
import { logger } from 'redux-beacon/extensions/logger'; | |
import { GoogleAnalytics } from 'redux-beacon/targets/google-analytics'; | |
// Redux Beacon EventDefinition | |
// イベントトラッキング: https://developers.google.com/analytics/devguides/collection/analyticsjs/events?hl=ja | |
export const GAEvents = { | |
C1_A1_L1: { | |
eventFields: (action: any) => ({ | |
hitType: 'event', |
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
class MyAppProvider extends Component { | |
constructor() { | |
super() | |
this.state = { rehydratedFlag: false } | |
} | |
componentWillMount() { | |
appEventHandler.on(AppEvents.FINISH_REHYDRATE_STORE, () => { | |
this.setState({ rehydratedFlag: true }); |
NewerOlder