Discover gists
| {-# LANGUAGE DataKinds #-} | |
| {-# LANGUAGE TypeOperators #-} | |
| {-# LANGUAGE PolyKinds #-} | |
| import Control.Category | |
| import Prelude hiding ((.), id, fst, snd) | |
| newtype Id x = Id { unId :: x } | |
| newtype (.) f g x = Compose { unCompose :: f (g x) } | |
| newtype (~>) a b x = ExpF { unExpF :: a x -> b x } |
| Vue.config.optionMergeStrategies.asyncData = (to, from) => (...args) => { | |
| return async function() { | |
| to && await to(...args); | |
| from && await from(...args); | |
| }() | |
| } |
| /* ========== VARIABLES ========= */ | |
| $colors: ( | |
| primary: #005dff, | |
| accent: #FFF6BB | |
| ); | |
| $primaryColor: lightblue; | |
| $backgroundColor: #EBECF0; | |
| $borderRadius: 4px; |
| module.exports = { | |
| env: { | |
| browser: true, //depende | |
| es2021: true, | |
| }, | |
| extends: [ | |
| 'plugin:react/recommended', | |
| 'airbnb', | |
| 'prettier', | |
| 'prettier/react', |
| { | |
| "bootstrapped": true, | |
| "in_process_packages": | |
| [ | |
| ], | |
| "installed_packages": | |
| [ | |
| "10% Too Dull for My Tastes Color Scheme", | |
| "1337 Color Scheme", | |
| "A File Icon", |
| private void pauseAndPoll(){ | |
| java.io.File tmpFile = new java.io.File("/tmp/pause.touch"); | |
| long lastModified = 0; long newModified = 0; | |
| if (tmpFile.exists()) lastModified = tmpFile.lastModified(); | |
| do { | |
| System.out.println("waiting .... touch /tmp/pause.touch"); | |
| try {Thread.sleep(3 * 1000);/*3secs*/ } catch(Exception e){} | |
| if (tmpFile.exists()) newModified = tmpFile.lastModified(); | |
| } while (newModified == lastModified); | |
| } |