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
module Jpmobile::Mobile | |
class Au < AbstractMobile | |
def supports_cookie? | |
if @request.protocol =~ /\Ahttps/ | |
false | |
else | |
true | |
end | |
end | |
end |
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
module ActionView | |
module Helpers | |
module FormHelper | |
alias :text_field_without_inputmode :text_field | |
# ==== Options | |
# * <tt>:inputmode</tt> - 入力モード。Jpmobile::InputMode::HIRAGANA-全角ひらがな、Jpmobile::InputMode::HANKAKUKANA-半角カナ、Jpmobile::InputMode::ALPHABET-半角英字、Jpmobile::InputMode::NUMERIC-半角数字 | |
# ==== Examples | |
# text_field_tag(:user, :name, :size => 20, :inputmode => Jpmobile::InputMode::HIRAGANA) | |
# # => <input id="name" name="name" type="text" size="20" istyle="1" style="-wap-input-format:"<ja:h>""> |
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/sh | |
CLIENT_ID={MY_CLIENT_ID} # Please EDIT | |
CLIENT_SECRET={MY_CLIENT_SECRET} # Please EDIT | |
# handling params | |
MODE="READ" | |
if [ $# -eq 1 ]; then | |
if [ $1 = "-c" ]; then | |
MODE="CREATE" | |
else |
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
--- a/contrib/pg_trgm/trgm.h 2013-05-14 11:20:48.000000000 +0900 | |
+++ b/contrib/pg_trgm/trgm.h 2013-05-14 11:20:42.000000000 +0900 | |
@@ -12,7 +12,7 @@ | |
/* options */ | |
#define LPADDING 2 | |
#define RPADDING 1 | |
-#define KEEPONLYALNUM | |
+/* #define KEEPONLYALNUM */ | |
/* | |
* Caution: IGNORECASE macro means that trigrams are case-insensitive. |
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 { InjectedFormikProps, withFormik } from 'formik'; | |
import * as React from 'react'; | |
import * as Yup from 'yup'; | |
interface FormValues { | |
login: string; | |
} | |
interface FormProps { | |
login?: string; |
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 * as React from 'react'; | |
import { compose, lifecycle, pure, StateHandler, StateHandlerMap, withStateHandlers } from 'recompose'; | |
import { Message, Transition } from 'semantic-ui-react'; | |
import './FlashMessage.css'; | |
export interface FlashMessageProps { | |
message: string; | |
isWarning?: boolean; | |
} |
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
Show hidden characters
{ | |
"extends": [ | |
"tslint:latest", | |
"tslint-config-airbnb", | |
"tslint-config-prettier", | |
"tslint-eslint-rules", | |
"tslint-react" | |
], | |
"rulesDirectory": [ | |
"tslint-plugin-prettier" |
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
[ | |
{ | |
"key": "ctrl+]", | |
"command": "extension.vim_escape", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+e", | |
"command": "workbench.action.toggleSidebarVisibility" | |
}, |
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 { AxiosResponse } from 'axios'; | |
import { camel } from 'change-case'; | |
import { isArray, isObject, isString } from 'lodash'; | |
import { DateTime } from 'luxon'; | |
export const reform = ( | |
obj: object, | |
keyConverter: (k: string) => string, | |
): any => { | |
if (isArray(obj)) { |
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, { FC, useEffect, useRef } from 'react'; | |
import ListLoader from '../atoms/ListLoader'; | |
type InfinitScrollProps = { | |
loadMore?: () => void; | |
hasMore?: boolean; | |
isLoading?: boolean; | |
threshold?: number; | |
}; |
OlderNewer