Setup:
$ npm init
$ npm install [email protected]
Place index.html, tailwind.config.js, postcss.config.js, and styles.css in the same folder.
Run the following which works ✅
| class Feedable a b c | b -> a, b -> c where | |
| feed :: [a] -> b -> (b, c) |
| {-# LANGUAGE TemplateHaskell #-} | |
| import Data.Lens.Template | |
| import Data.Lens.Lazy | |
| data Line = Line { | |
| _lnBeg :: Point | |
| , _lnEnd :: Point | |
| } deriving (Show) |
| {-# LANGUAGE OverloadedStrings #-} | |
| import Data.Char (isPunctuation, isSpace) | |
| import Data.Monoid (mappend) | |
| import Data.Text (Text) | |
| import Control.Exception (fromException) | |
| import Control.Monad (forM_) | |
| import Control.Concurrent (MVar, newMVar, modifyMVar_, readMVar) | |
| import Control.Monad.IO.Class (liftIO) | |
| import qualified Data.Text as T | |
| import qualified Data.Text.IO as T |
| function createWebSocket(path) { | |
| var host = window.location.hostname; | |
| if(host == '') host = 'localhost'; | |
| // Unsecured | |
| //var uri = 'ws://' + host + ':9160' + path; | |
| // Secured | |
| var uri = 'wss://' + host + ':9160' + path; | |
| #!/bin/bash | |
| # From http://www.akadia.com/services/ssh_test_certificate.html | |
| rm server.key | |
| rm server.csr | |
| rm server.key.org | |
| rm server.crt | |
| openssl genrsa -des3 -out server.key 1024 | |
| openssl req -new -key server.key -out server.csr |
| ############################################################################### | |
| # Module for MFCC extraction | |
| # By Maigo Yun Wang, 02/08/2012 | |
| ############################################################################### | |
| # Quick tutorial: | |
| # import MFCC | |
| # x = ... # x is a wave signal saved in a 1-D numpy array | |
| # mfcc = MFCC.extract(x) | |
| # # mfcc is a 2-D numpy array, where each row is the | |
| # # MFCC of a frame in x |
| <!DOCTYPE html> | |
| <!-- saved from url=(0046)http://www.paulrhayes.com/experiments/cube-3d/ --> | |
| <html lang="en" id="paulrhayes-com" class="js csstransforms3d csstransitions wf-adobecaslonpro1-n4-active wf-adobecaslonpro1-n7-active wf-swingdancer1-n5-active wf-active"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| <!-- Hey there, thanks for looking at the source. Skip down until you see the experiment start comments --> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>Paul Hayes: Experiment: 3D CSS cube, use arrow keys to rotate</title> | |
| <meta name="description" content="Use up, down, left and right keys to navigate a 3D cube, built using CSS perspective, transform and transition properties."> | |
| <meta name="keywords" content="css, css3, 3d, cube, webkit, css cube, transition, transform, webkit-transform, webkit-transition, webkit-perspective"> | |
| <meta name="author" content="Paul Hayes"> |
| import requests, boto3, base64, hashlib | |
| access_key = "..." | |
| secret_key = "..." | |
| bucket = "..." | |
| s3 = boto3.client('s3', | |
| aws_access_key_id=access_key, | |
| aws_secret_access_key=secret_key) | |
| test_encrypt_key = os.urandom(32) |
Setup:
$ npm init
$ npm install [email protected]
Place index.html, tailwind.config.js, postcss.config.js, and styles.css in the same folder.
Run the following which works ✅
Setting up tailwind css the easiest way possible:
$ mkdir simple-tailwind
$ cd simple-tailwind
# We'll put our html templates inside templates/parts
# General config will go in the base of the templates folder
$ mkdir -p templates/parts
$ mkdir static