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
#!/bin/sh | |
# /etc/acpi/default.sh | |
# Default acpi script that takes an entry for all actions | |
set $* | |
group=${1%%/*} | |
action=${1#*/} | |
device=$2 | |
id=$3 |
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
// const test = 'translate(20, -10) scale(-2) rotate (-30, -10, -90)' | |
// const test = 'translate(0,-343.82039245605483) scale(1.6900000000000002)'; | |
const test = 'fsfssd fdsfs'; | |
console.log(parseTransform(test)); | |
console.log(transformToString(parseTransform(test))); | |
function parseTransform(transformString) { | |
if (!transformString || !['rotate', 'scale', 'translate'].includes(attr => transformString.contains(attr))) { | |
return null; | |
} |
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
[@bs.val] [@bs.scope ("module")] | |
external isHotEnabled : bool = "hot"; | |
[@bs.val] [@bs.scope ("module", "hot")] external hotAccept : unit => unit = "accept"; | |
ReactDOMRe.renderToElementWithId(<App />, "root"); | |
if (isHotEnabled) { | |
hotAccept(); | |
} |