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
| (defn login [] | |
| (let [[email set-email] (use-state "") | |
| [password set-password] (use-state "") | |
| [mutate {:keys [loading error]}] (use-mutation {:variables {:email email :password password}}) | |
| email-valid? (check-email email)] | |
| (use-event :keypress #(when (and (= 13 (:keyCode %)) password email-valid) (mutate))) | |
| ($ mui/Box {:margin "10vh auto" | |
| :maxWidth "40ex"} | |
| ($ "form" | |
| ($ mui/TextField {:label "Электронная почта" |
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
| (ns reactik.core | |
| (:require-macros [reactik.util :refer [defc]]) | |
| (:require [cljs-bean.core :refer [->clj]] | |
| ["@material-ui/core" :as mui] | |
| ["react-dom" :as react-dom] | |
| [reactik.react :as react :refer [$]])) | |
| (defn onChange [handler] | |
| (fn [event] |
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
| libs | |
| main | |
| functionOne | |
| functionTwo | |
| genericName | |
| subFunction | |
| variable | |
| variable | |
| components |
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/bash | |
| if [ "$(id -u)" -ne "0" ]; then | |
| echo "This script requires root." | |
| exit 1 | |
| fi | |
| set -xe | |
| apt-get install mesa-utils glmark2-es2 glmark2-es2-drm |