This file contains hidden or 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
| <button id="open">open</button> | |
| <div class="box scale"> | |
| <h1> | |
| hey | |
| </h1> | |
| </div> |
This file contains hidden or 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, { useEffect, useState } from 'react' | |
| import PropTypes from 'prop-types' | |
| import { Animated, Easing } from 'react-native' | |
| const RotateView = ({ rotate, degree, initialDegree, duration, children, ...otherProps }) => { | |
| const [rotateValue] = useState(new Animated.Value(0)) | |
| useEffect(() => { | |
| const toValue = rotate ? 1 : 0 |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq.Expressions; | |
| using System.Reflection; | |
| namespace ADD_YOUR_NAME_SPACE_HERE | |
| { | |
| public static class CustomAttributeHelper | |
| { | |
| public static MemberInfo GetExpressionMember<T>(Expression<Func<T>> accessor) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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, { useState } from 'react' | |
| import { TextField, IconButton } from '@material-ui/core' | |
| import AddIcon from '@material-ui/icons/Add' | |
| import DeleteIcon from '@material-ui/icons/Delete' | |
| interface TodoItem { | |
| id: number | |
| value: string | |
| } |
This file contains hidden or 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
| upperCaseCaptions = () => { | |
| const items = document.querySelectorAll('.subtitle-list-item textarea') | |
| const reactProp = Object.keys(items[0]).find(x => x.startsWith('__reactProps')) | |
| items.forEach(item => { | |
| const upperText = item.textContent.toUpperCase() | |
| item[reactProp].onChange({target: {value: upperText}}) | |
| }) | |
| } | |
| upperCaseCaptions() |
OlderNewer