$mod
refers to the modifier key (alt by default)
startx i3
start i3 from command line$mod+<Enter>
open a terminal$mod+d
open dmenu (text based program launcher)$mod+r
resize mode ( or to leave resize mode)$mod+shift+e
exit i3
# | |
# Build configuration for Circle CI | |
# | |
general: | |
artifacts: | |
- /home/ubuntu/your-app-name/app/build/outputs/apk/ | |
machine: | |
environment: |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
height: 100%; | |
margin: 0; | |
width: 100%; | |
overflow: hidden; | |
} |
"A phantom type is a parametrised type whose parameters do not all appear on the right-hand side of its definition..." Haskell Wiki, PhantomType
The following write-up is intended as an introduction into using phantom types in ReasonML.
Taking a look at the above definition from the Haskell wiki, it states that phantom types are parametrised types where not all parameters appear on the right-hand side. Let's try to see if we can implement a similar example as in said wiki.
keycode 8 = | |
keycode 10 = 1 exclam | |
keycode 11 = 2 at at | |
keycode 12 = 3 numbersign | |
keycode 13 = 4 dollar dollar | |
keycode 14 = 5 percent | |
keycode 15 = 6 asciicircum | |
keycode 16 = 7 ampersand braceleft | |
keycode 17 = 8 asterisk bracketleft | |
keycode 18 = 9 parenleft bracketright |
This is a walkthrough of how to set up Visual Regression Testing with Jest for an application created with create-react-app
.
The following walkthrough uses React as an example, but the approach should work for any modern frontend library! I assume it can be used with Angular, Vue, Cycle.js and more.
This gist walks you through a create-react-app
application as an example of how to set up Visual Regression Testing in Jest using libraries I wrote recently which enable this: jsdom-screenshot
, jest-transform-css
and jest-transform-file
.
// void operator | |
void 0 // returns undefined | |
void (0) // returns undefined | |
void 'abc' // returns undefined | |
void {} // returns undefined | |
void (1 === 1) // returns undefined | |
void (1 !== 1) // returns undefined | |
void anyfunction() // returns undefined | |
// A demonstration of sorting objects with Ord instances | |
// equals :: Setoid a => a ~> a -> Boolean | |
// lte :: Ord a => a ~> a -> Boolean | |
/* | |
* Data Constructors, and their Setoid and Ord instances | |
*/ | |
// I'm using the daggy library to make constructors https://github.com/fantasyland/daggy | |
const daggy = require('daggy') |
open Relude.Globals; | |
module R = Relude; | |
let (>>=) = IO.(>>=); | |
let fetchPostById: string => IO.t(string, string) = | |
id => | |
Fetch.fetch("https://jsonplaceholder.typicode.com/posts/" ++ id) | |
|> Js.Promise.then_(Fetch.Response.text) |