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
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |
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 from "react"; | |
| import { useFormik } from "formik"; | |
| export default () => { | |
| const { handleChange, handleSubmit, values, errors } = useFormik({ | |
| validationSchema: userInfoSchema, | |
| initialValues: { | |
| firstName: "", | |
| lastName: "", | |
| email: "" |
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 * as Yup from "yup"; | |
| const userInfoSchema = Yup.object().shape({ | |
| firstName: Yup.string() | |
| .min(4, "First name should be minimum 4 character") | |
| .required("First name is required"), | |
| lastName: Yup.string() | |
| .min(5, "Last name should be minimum 5 character") | |
| .required("Last name is required"), | |
| email: Yup.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
| let interval = null | |
| let ntt = function () { | |
| interval = setInterval(function () { | |
| document.querySelector('[data-testid=caret]').click() | |
| setTimeout(function () { | |
| document.querySelector('[role=button]').click() | |
| document.querySelector('[data-testid=confirmationSheetConfirm]').click() | |
| }, 200) |
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
| let interval = null | |
| let count = 10000 | |
| let ntt = function(){ | |
| interval = setInterval(function(){ | |
| document.querySelectorAll('[data-testid=unretweet]').forEach((t)=> { | |
| t.click() | |
| document.querySelector('[data-testid=unretweetConfirm]').click() | |
| }) | |
| count += 1000 | |
| window.scrollTo(0, count); |
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
| let interval = null | |
| let count = 10000 | |
| let ntt = function(){ | |
| interval = setInterval(function(){ | |
| document.querySelectorAll('[data-testid=unlike]').forEach((t)=> { | |
| t.click() | |
| }) | |
| count += 1000 | |
| window.scrollTo(0, count); |
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
| $('.dropdownLi').on('mouseenter',function () { | |
| $(this).children('ul').slideDown(300).css('display', 'block'); | |
| $(".dropdownLi").mouseleave(function () { | |
| $(".dropdownSection").fadeOut(300) | |
| }); | |
| }) |
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
| watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache |
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
| export const styles = StyleSheet.create({ | |
| center: { | |
| flex: 1, | |
| justifyContent: 'center', | |
| alignItems: 'center' | |
| } | |
| }); |
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
| $.ajax({ | |
| cache: false, | |
| url: "YOUR_CONTROLLER_NAME/ACTION_NAME", | |
| data: { data: YOUR_DATA }, | |
| type: 'post', | |
| success: () => { | |
| //Do something for success; | |
| }, | |
| complete: () => { | |
| //Do something for complete; |
NewerOlder