export const filterFile = {
specVersion: "lemmy-filters/1.0",
options: {
normalize: "nfkc_casefold",
stripDiacritics: true,
},
rules: [
{
name: "Any",
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
| function useMouseSpeed(updateInterval = 500) { | |
| const lastUpdateRef = useRef(Date.now()) | |
| const prevPositionRef = useRef<MousePosition | null> (null) | |
| const currentPositionRef = useRef<MousePosition | null> (null) | |
| const [speed, setSpeed] = useState(0) | |
| useEffect(() => { | |
| function trackMouse({ pageX: x, pageY: y }: MouseEvent) { | |
| x = x / window.innerWidth | |
| y = y / window.innerHeight |
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
| def sort(arr): | |
| length = len(arr) | |
| if length >= 2: | |
| splitIndex = int(length / 2) | |
| left = arr[0:splitIndex] | |
| right = arr[splitIndex:length] | |
| left = sort(left) |
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
| <html> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link href="https://fonts.googleapis.com/css?family=Open+Sans|Roboto:900|Pacifico" rel="stylesheet"> | |
| <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> | |
| <link rel='stylesheet' href='style.css'/> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
| <script src='script.js'></script> | |
| </head> | |
| <body> |
A Pen by Christian Juth on CodePen.
A Pen by Christian Juth on CodePen.
A Pen by Christian Juth on CodePen.
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
| <html> | |
| <head> | |
| <title>Todo by Christian Juth</title> | |
| <link href="https://fonts.googleapis.com/css?family=Open+Sans|Roboto:900" rel="stylesheet"> | |
| <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> | |
| <link rel='stylesheet' href='style.css'/> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
| <script src='script.js'></script> | |
| </head> | |
| <body> |
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
| # global vars | |
| perfect_number = [] | |
| stop = 100 # will find up to this many perfect numbers | |
| # (probably will crap out at about four | |
| # perfect nubmers due to size of equation) | |
| i = 0 | |
| until perfect_number.size >= stop | |
| # set vars | |
| i = i + 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
| .metadata | |
| DETAIL-* | |
| reports | |
| screenshots |
NewerOlder