- Install:
- jest:
npm install --save-dev jest - ts-jest:
npm install --save-dev ts-jest @types/jest
- Modify package.json
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
| <script context="module"> | |
| export let name; | |
| </script> | |
| <div class="bg-gradient-tweets"> | |
| <div class="wrapper py-2 text-center"> | |
| <h2 class="pt-1 text-black">Real users getting real value</h2> | |
| <div> | |
| <div class="d-flex justify-content-center"> | |
| <div class="slider w-100 maxw-800" x-data="app_slider(6)"> |
| https://drafts.csswg.org/css-syntax-3/#input-byte-stream | |
| CSS parsing | |
| The process consists of | |
| bytes->stream codepoints->stream tokens->parse css syntax output | |
| The output is a CSSStyleSheet object. | |
| 1. User agent recieves a stream of bytes | |
| (typically coming over the network or | |
| from the local file system). |
| import * as React from 'react'; | |
| import Head from 'next/head'; | |
| import Layout from '../components/Layout'; | |
| import ProjectCard from '../components/ProjectCard'; | |
| /* | |
| inline style jsx not globals.css is where css vars | |
| and root css styles are being read | |
| submenu border is not found | |
| has --accents-2: #333; | |
| backup color #fff |
class Bar { name: string; constructor(name: string) { this.name = name; } } class Foo extends Bar{ constructor(name: string) { super(name); } getName() {
| import * as React from 'react'; | |
| enum ActionTypes { | |
| TogglePopover, | |
| ClosePopover, | |
| SetButton, | |
| SetButtonId, | |
| SetPanel, | |
| SetPanelId, |
Check what is the max no of user_watches being set currently
$ cat /proc/sys/fs/inotify/max_user_watches
Check what is the max no. of inotify instances which correspond to the no. of allowed Watch Services instances.
$ cat /proc/sys/fs/inotify/max_user_instances
Implementing Algebraic Effects in C “Monads for Free in C”
Microsoft Research Technical Report MSR-TR-2017-23 Daan Leijen Microsoft Research Updated by Kielan Lemons [email protected]
Abstract. We describe a full implementation of algebraic effects and handlers as a library in standard and portable C99, where effect operations can be used just like regular C functions. We use formal operational semantics to guide the C implementation at every step where an evaluation context corresponds directly to a particular C execution context. Finally we show a novel extension to the formal semantics to describe optimized tail resumptions and prove that the extension is sound. This gives two orders of magnitude improvement to the performance of tail resumptive operations (up to about 150 million operations per second on a Core [email protected])
| GHOST_ContextHandle GHOST_CreateOpenGLContext(GHOST_SystemHandle systemhandle, | |
| GHOST_GLSettings glSettings) | |
| { | |
| GHOST_ISystem *system = (GHOST_ISystem *)systemhandle; | |
| return (GHOST_ContextHandle)system->createOffscreenContext(glSettings); | |
| } |