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, { createContext, useContext } from 'react'; | |
type HelloWorldContextType = { | |
hello: string; | |
}; | |
// create context with no default values | |
export const HelloWorldContext = createContext<HelloWorldContextType | undefined>(undefined); | |
export const WorkspaceProvider = ({ children }: { children: React.ReactElement }) => { | |
// async or optional operation here |
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 | |
# coding: utf-8 | |
""" | |
String to Brainfuck. | |
Converts a string to a brainfuck code that prints that string. | |
Author: j0hn <[email protected]> | |
""" |