import { useEffect, useRef, useState } from "react";
import "./styles.css";
import { Info } from "@mui/icons-material";
import { Box } from "@mui/material";
import { CSSTransition } from "react-transition-group";
const lorem = (
<p>
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
| const g=()=>{let l=!1;const s="color-mode",h=["light","dark"],C=o=>h.includes(o)?o:"light",n=o=>o?"dark":"light",e=matchMedia("(prefers-color-scheme: dark)"),i=n(e.matches),u="light",d=localStorage.getItem(s);d!==null&&(l=!0);let c=u;d?c=C(d):i&&(c=i);let t;const r=(o,f)=>{document.body.classList.remove(t),document.body.classList.add(o),f&&(localStorage.setItem(s,o),l=!0),t=o,a.forEach(m=>m(o))},a=new Set,M=o=>{l||r(n(o.matches),!1)};return e.addEventListener?e.addEventListener("change",M):e.addListener(M),document.addEventListener("DOMContentLoaded",()=>r(c,!1)),{subscribe:o=>(o(t),a.add(o),()=>a.delete(o)),set:o=>{r(o,!0)},update:o=>{r(o(t),!0)}}},S=g();window.__color_mode__=S; |
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 { connect } from 'react-redux' | |
| import { createStructuredSelector } from 'reselect' | |
| import MyComponent from './MyComponent' | |
| import { getName, getEmail, onEmailChanged, onNameChanged } from './userReducer' | |
| export default connect( | |
| createStructuredSelector({ | |
| name: getName, | |
| email: getEmail, | |
| }), |
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 { connect } from 'react-redux' | |
| import MyComponent from './MyComponent' | |
| function mapStateToProps(state) { | |
| return { | |
| name: state.user.name, | |
| email: state.user.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
| <?php | |
| function wpp_get_posts($args) { | |
| global $wpdb; | |
| $prefix = $wpdb->prefix; | |
| $wpp_prefix = $wpdb->prefix . "popularposts"; | |
| $select = "SELECT SQL_CALC_FOUND_ROWS"; | |
| $from = " FROM"; |
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 UIKit | |
| import DatePickerCell | |
| class ViewController: UITableViewController { | |
| var cells:NSArray = [] | |
| override func viewDidLoad() { | |
| self.tableView.rowHeight = UITableViewAutomaticDimension | |
| self.tableView.estimatedRowHeight = 44 |
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 <Foundation/Foundation.h> | |
| @interface DVColorLockView : UIView | |
| @property (nonatomic, strong) UIColor *lockedBackgroundColor; | |
| @end |
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
| - (void)viewDidLaod { | |
| //Create cells. | |
| _tableViewData = @[ | |
| @{ | |
| @"title" : @"Section 1", | |
| @"cells" : @[ | |
| _eventCell | |
| ]}, |