If you're getting this kind of error when running Node.js programs with binary dependencies that don't support M1 yet, e.g.:
$ yarn test
dyld[51175]: missing symbol called
dyld[51176]: missing symbol called| export interface IEdge<T> { | |
| cursor: string; | |
| node: T; | |
| } | |
| interface IPageInfo { | |
| endCursor: string; | |
| hasNextPage: boolean; | |
| } |
| # config to don't allow the browser to render the page inside an frame or iframe | |
| # and avoid clickjacking http://en.wikipedia.org/wiki/Clickjacking | |
| # if you need to allow [i]frames, you can use SAMEORIGIN or even set an uri with ALLOW-FROM uri | |
| # https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options | |
| add_header X-Frame-Options SAMEORIGIN; | |
| # when serving user-supplied content, include a X-Content-Type-Options: nosniff header along with the Content-Type: header, | |
| # to disable content-type sniffing on some browsers. | |
| # https://www.owasp.org/index.php/List_of_useful_HTTP_headers | |
| # currently suppoorted in IE > 8 http://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx |
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/focus-context |
| license: mit |
| /** | |
| * Get path data for a rounded rectangle. Allows for different radius on each corner. | |
| * @param {Number} w Width of rounded rectangle | |
| * @param {Number} h Height of rounded rectangle | |
| * @param {Number} tlr Top left corner radius | |
| * @param {Number} trr Top right corner radius | |
| * @param {Number} brr Bottom right corner radius | |
| * @param {Number} blr Bottom left corner radius | |
| * @return {String} Rounded rectangle SVG path data | |
| */ |
This file shows how to use the geoConicConformalSpain projection from d3-composite-projections.
To change the file, edit draw.js and run
browserify draw.js| uglifyjs > bundle.js
The dependencies are installed with:
npm install d3-composite-projections d3-geo d3-request d3-selection d3-transition topojson
| h scroll left | |
| j scroll down | |
| k scroll up | |
| l scroll right | |
| gg scroll to top of the page | |
| G scroll to bottom of the page | |
| f activate link hints mode to open in current tab | |
| F activate link hints mode to open in new tab | |
| r reload |
| copy/delete word under cursor in Vim | |
| yw / byw | |
| Assuming that the cursor is at the first character of the word simply do this in command mode: | |
| yw | |
| y is for yank and w is for word. | |
| Other ways of doing the same thing which are not as efficient: | |
| vey | |
| the v starts visual select mode. e tells vim to move to end of word. y yanks or copies the word. to delete replace y with x. |
| syntax on | |
| set ruler " Show the line and column numbers of the cursor. | |
| set formatoptions+=o " Continue comment marker in new lines. | |
| set textwidth=0 " Hard-wrap long lines as you type them. | |
| set modeline " Enable modeline. | |
| set esckeys " Cursor keys in insert mode. | |
| set linespace=0 " Set line-spacing to minimum. | |
| set nojoinspaces " Prevents inserting two spaces after punctuation on a join (J) | |
| " More natural splits | |
| set splitbelow " Horizontal split below current. |