v 1.1.0 ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ||| ||| !!! MERCI DE LIRE ATTENTIVEMENT CE DOCUMENT AVANT DE COMMENCER LE LABORATOIRE !!! ||| ||| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 { useCallback, useEffect, useReducer } from "react"; | |
type FetchTransition<P> = | |
| { | |
type: "fetch"; | |
} | |
| { | |
type: "fetchOK"; | |
data: P; | |
} |
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
function useDelayedRendering<T>({ | |
element, | |
delay = 200, | |
}: { | |
element: T; | |
delay: number; | |
}) { | |
const [renderedEl, setRenderedEl] = useState(element); | |
const lastRenderedAt = useRef(Date.now()); |
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
// Type definitions for patchinko v4.1.0 | |
// Project: patchinko | |
// Typescript: 3.1.6 | |
// Definitions by: Jules Samuel Randolph <https://github.com/jsamr> | |
declare module 'patchinko' { | |
type DeepPartial<T> = { | |
[P in keyof T]?: T[P] extends Array<infer U> ? Array<DeepPartial<U>> : T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : DeepPartial<T[P]>; | |
} | |
// Utility types |
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, { PureComponent } from 'react' | |
import { WebView } from 'react-native-webview' | |
const htmlStyle = ` | |
:root { | |
color: #333333; | |
background-color: transparent; | |
} | |
body, html { | |
margin: 0; |
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
I, Jules Samuel Randolph, have read and do accept the MuleSoft Contributor Agreement | |
at http://www.mulesoft.org/legal/contributor-agreement.html | |
Accepted on Sat Jul 21 2018 09:07:16 GMT-0400 (EDT) |
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
#!/bin/bash | |
# Author: jules randolph <[email protected]> https://github.com/jsamr | |
# License: MIT | |
# | |
# Usage: [<options>] <file.iso> | |
# | |
# Create a bootable FAT32 USB device from a linux-GNU/unix ISO. | |
# | |
# Options |
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
www.facebook.com | |
facebook.com | |
youtube.com | |
feedly.com | |
twitter.com | |
www.lemonde.fr |
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
#!/bin/bash | |
# Need to install remote-viewer | |
remote-viewer -f -t "windows 10" spice://localhost:5900 |
NewerOlder