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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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 { Schema } from '@upbeat/schema/src'; | |
import { | |
UpbeatId, | |
UpbeatResource, | |
RealisedResource, | |
UpbeatString, | |
UpbeatBoolean, | |
UpbeatOrderable, | |
UpbeatSet, |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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 Freshers = () => { | |
const { seconds, minutes, hours, days } = useCountdown(new Date(2019, 11, 6)); | |
return ( | |
<div> | |
<div>{days}</div> | |
<div>Days</div> | |
<div>{hours}</div> |
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
<a href="https://google.com/" class="Button">Vist Google</a> |
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
<div class="search-app-root"></div> | |
<script src="https://kings-search.netlify.com/src.416cc178.js"></script> |
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
{ | |
"threads": { | |
"43534": { | |
"members": { | |
"3454": { | |
"modules": { | |
"important": { | |
"hasSeen": false, | |
} | |
} |
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
bot = Bot() | |
# register adds the function to the bot | |
# accepts a tuple of different triggers | |
@bot.register(('!weather {location?}', '☀️')) # question mark means it isn't required | |
def weather(msg, res, location = 'brighton'): # arguments get passed in after msg, res. | |
data = requests.get(f'weatherapi.com/{location}') | |
# msg contains all data related to the message sent |
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
interface IProps { | |
condition: boolean; | |
wrap(wrapper: (children: any) => any): any; | |
children: any; | |
} | |
export const ConditionalWrap = ({ condition, wrap, children }: IProps) => | |
condition ? wrap(children) : children; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<link href="https://fonts.googleapis.com/css?family=Lato:900" rel="stylesheet"> | |
<script src="https://cdn.jsdelivr.net/lodash/4/lodash.min.js"></script> | |
</head> |
NewerOlder