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 { useEffect, useRef, useState } from 'react' | |
/** | |
* return a promise that resolves when useState updates | |
* | |
* @usage | |
* | |
* * const [state, setState] = useAwaitState('') | |
* | |
* * await setState('newVal') |
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
yarn add link:../ |
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/RCTViewManager.h> | |
@interface RCTComponentViewManager : RCTViewManager | |
@property (nonatomic, strong) UIView *wrapper; | |
@end | |
@implementation RCTComponentViewManager | |
/* |
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
console.log(document.getElementsByTagName('div')[0].__vue__.$store.state) |
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 path = require('path') | |
const phpCsfixer = 'docker exec -i lep php ./vendor/bin/php-cs-fixer' | |
const toRelativePath = (absolutePaths) => { | |
const cwd = process.cwd() | |
const relativePaths = absolutePaths.map((file) => path.relative(cwd, file)) | |
return relativePaths.join(' ') | |
} | |
/** |
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
<!-- https://codepen.io/fatlinesofcode/pen/yXVGPp --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
background-color: #ffffff; | |
margin: 0; | |
overflow: hidden; |
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
/* | |
* Css easing equations as sass variables. Includes the Greensock power alias names | |
* @usage : .myclass{ transition : opacity 0.5s $easeOutPower1 0.0s;} | |
*/ | |
$linear : cubic-bezier(0.250, 0.250, 0.750, 0.750) !default | |
$ease : cubic-bezier(0.250, 0.100, 0.250, 1.000) !default | |
$ease-in : cubic-bezier(0.420, 0.000, 1.000, 1.000) !default | |
$ease-out : cubic-bezier(0.000, 0.000, 0.580, 1.000) !default | |
$ease-in-out : cubic-bezier(0.420, 0.000, 0.580, 1.000) !default |