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 serialize from 'serialize-javascript'; | |
import path from 'path'; | |
import fs from 'fs'; | |
import React from 'react'; | |
import ReactDOMServer from 'react-dom/server'; | |
export default <P>( | |
App: React.ReactElement<P>, | |
globalState: string | undefined, | |
): Promise<string> => new Promise((resolve, reject) => { |
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
-------------------------------------------- | |
Version: 1.45.1 | |
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a | |
Date: 2020-05-14T08:33:47.663Z | |
Electron: 7.2.4 | |
Chrome: 78.0.3904.130 | |
Node.js: 12.8.1 | |
V8: 7.8.279.23-electron.0 | |
OS: Darwin x64 18.5.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
let parent = document.querySelector('.sticky-element').parentElement; | |
while (parent) { | |
const hasOverflow = getComputedStyle(parent).overflow; | |
if(hasOverflow !== 'visible') { | |
console.log(hasOverflow, parent); | |
} | |
parent = parent.parentElement; | |
} |
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 parent = document.querySelector('.sticky-element').parentElement; | |
while (parent) { | |
const hasOverflow = getComputedStyle(parent).overflow; | |
if(hasOverflow !== 'visible') { | |
console.log(hasOverflow, parent); | |
} | |
parent = parent.parentElement; | |
} |
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 ExternalLink = function (editor: any, preset: any) { | |
const className = 'tui-link'; | |
const toolbar = editor.getUI().getToolbar(); | |
const { i18n } = editor; | |
const EVENT_NAME = 'externalLinkButtonClicked'; | |
const wwEditor = editor.wwEditor; | |
// Register Event | |
editor.eventManager.addEventType(EVENT_NAME); |
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
// | |
// A mixin to scale any property based on the current viewport with | |
// min and max values. | |
// +fluid(font-size, 300px, 500px, 12px, 30px) | |
// +fluid(padding-left, 200px, 600px, 14px, 40px) | |
// +fluid(height, 200px, 600px, 140px, 400px) | |
// | |
@function strip-unit($value) | |
@return $value / ($value * 0 + 1) |
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 { MouseTracker } from './mousetracker'; | |
/** | |
* A class that creates a parallax effect based on the mouse position. | |
* @hidden | |
*/ | |
export class Parallaxer { | |
private animate_: boolean; |
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 { MouseTracker } from './mousetracker'; | |
/** | |
* A class that creates a parallax effect based on the mouse position. | |
* @hidden | |
*/ | |
export class Parallaxer { | |
private animate_: boolean; |
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
# Delete all branches that contain 'search_keyword' | |
git branch | grep 'search_keyword' | xargs git branch -D | |
# Delete all branches that have already merged into master or staging | |
git branch --merged | egrep -v "(^\*|master|staging)" | xargs git branch -D |
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 mathf = { | |
getRandom : (min, max) => { | |
return Math.random() * (max - min) + min; | |
}, | |
getRandomInt : (min, max)=>{ | |
return Math.floor(Math.random() * (max - min + 1)) + min; |
NewerOlder