This file contains 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 boldText = "The React Framework for the Web."; | |
const regularText = | |
"Used by some of the world's largest companies, Next.js enables you to create high-quality web applications with the power of React components."; | |
// Use in img src | |
const nextjsConfHero = "/nextjs-conf-hero.svg"; | |
const nextjsConfLogo = "/nextjs-conf-logo.svg"; | |
const nextjsLogo = "/nextjs-logo.svg"; | |
export default function Page() { |
This file has been truncated, but you can view the full file.
This file contains 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
<table style="border-collapse: collapse;"> | |
<thead> | |
<tr style="border-bottom: 1px solid rgb(56, 68, 77);"> | |
<th | |
style="width: 36%; text-align: start; padding: 8px; position: sticky; top: 0px; background-color: rgb(30, 39, 50); z-index: 1;"> | |
<div dir="ltr" class="css-146c3p1 r-bcqeeo r-1ttztb7 r-qvutc0 r-37j5jr r-a023e6 r-rjixqe r-b88u0q" | |
style="text-overflow: unset; color: rgb(247, 249, 249);"><span | |
class="css-1jxf684 r-bcqeeo r-1ttztb7 r-qvutc0 r-poiln3" style="text-overflow: unset;">Post</span></div> | |
</th> | |
<th |
This file contains 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 ReactDOM from 'react-dom' | |
import { Modal } from 'antd' | |
const useModal = (Component, props) => { | |
const [open, setOpen] = React.useState(false) | |
const [loading, setLoading] = React.useState(false) | |
const onOk = props.onOk || (() => {}) | |
const handleOk = () => { |
This file contains 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 PropTypes from 'prop-types' | |
const EditableReactiveDiv = (props) => { | |
const { value: propsValue, onChange: propsOnChange, ...rest } = props | |
const [currentValue, setCurrentValue] = React.useState(propsValue) | |
const divRef = React.useRef(null) | |
React.useEffect(() => { | |
if (document.activeElement !== divRef.current) { |
This file contains 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
#!/usr/bin/env python | |
import argparse, os, readline | |
# Check if AWS CLI is installed | |
if os.popen("command -v aws").read() == '': | |
print('AWS Command Line Interface is not installed.') | |
exit() | |
# Parse Arguments |
This file contains 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
$('#inserting').submit(function(){ | |
var confirms = ["true"]; | |
// Class/Function to check if all values are the same. - http://stackoverflow.com/a/14832662 | |
Array.prototype.allValuesSame = function() { | |
for(var i = 1; i < this.length; i++) | |
{ | |
if(this[i] !== this[0]) |