I hereby claim:
- I am kilgarenone on github.
- I am kilgarenone (https://keybase.io/kilgarenone) on keybase.
- I have a public key whose fingerprint is 0C7F 36F9 D181 5034 BE9E 3671 C928 0A46 64AF F2EB
To claim this, I am signing this object:
function placeCaretAtEnd(el) { | |
el.focus(); | |
if (typeof window.getSelection != "undefined" | |
&& typeof document.createRange != "undefined") { | |
var range = document.createRange(); | |
range.selectNodeContents(el); | |
range.collapse(false); | |
var sel = window.getSelection(); | |
sel.removeAllRanges(); | |
sel.addRange(range); |
var filterTaskInAsset = (function() { | |
// Private variables | |
var expandedAsset = {}, | |
assetStore = {}, | |
loadMoreHref = null, | |
list = null, | |
currentStatus = null; | |
// Cache asset's properties | |
function insertAssetStates(assetId, assetObj) { |
I hereby claim:
To claim this, I am signing this object:
<md-select [formControl]="selectFormControl" | |
(click)="detectKeys()" | |
[required]="isRequired" | |
[disabled]="isDisabled" | |
[attr.role]="'listbox'" | |
[attr.aria-labelledby]="placeholder" | |
placeholder="placeholder"> | |
<md-option #selectBox *ngFor="let option of options" | |
[class.inFocus]="searchedOptionValue == option.value" | |
[value]="option.value">{{option.description}} |
export interface RebuildRequest { | |
type: string; | |
args: { | |
path: string; | |
body?: string; | |
opt: RequestOptions; | |
} | |
}; | |
// a http request method |
import * as React from 'react'
import { connect } from 'react-redux'
// props that you pass in from the parent component
interface ExposedProps {
someExposedProp?: any,
}
/*
The 'someStateSelector' method could be a 'reselect' type of selector.
import * as React from 'react' | |
import * as Yup from 'yup' | |
import { Field, reduxForm } from 'redux-form' | |
import validator from './validator.ts' | |
// more imports | |
class YourClass extends React.Component<Props> { | |
// stuffs | |
render() { |
// src/__mocks__/axios.ts | |
const mockAxios = jest.genMockFromModule('axios') | |
// this is the key to fix the axios.create() undefined error! | |
mockAxios.create = jest.fn(() => mockAxios) | |
export default mockAxios |
import * as React from "react"; | |
import { css, cx } from "react-emotion"; | |
const cssRadioButton = css` | |
font-size: 17px; | |
.label { | |
cursor: pointer; | |
border-radius: 12px; | |
color: #757575; |