Inspiration
- Gatsby
- Sketch
https://www.smashingmagazine.com/2017/08/create-sketch-plugin-front-end-technologies/
- Codemirror
- VS Code
- Insomnia
| // Copyright 2012, Google Inc. | |
| // All rights reserved. | |
| // | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions are | |
| // met: | |
| // | |
| // * Redistributions of source code must retain the above copyright | |
| // notice, this list of conditions and the following disclaimer. | |
| // * Redistributions in binary form must reproduce the above |
Inspiration
https://www.smashingmagazine.com/2017/08/create-sketch-plugin-front-end-technologies/
| /** | |
| * @file get/set caret position and insert text | |
| * @author islishude | |
| * @license MIT | |
| */ | |
| export class Caret { | |
| /** | |
| * get/set caret position | |
| * @param {HTMLColletion} target | |
| */ |
| <html> | |
| <body> | |
| <script type="text/javascript" src="//mozilla.github.io/pdf.js/build/pdf.js"></script> | |
| <script type="text/javascript"> | |
| var url = "https://docs.google.com/document/export?format=pdf&id=1ML11ZyyMpnAr6clIAwWrXD53pQgNR-DppMYwt9XvE6s&token=AC4w5Vg7fSWH1Hq0SgNckx4YCvnGPaScyw%3A1423618416864"; | |
| var pages = [], heights = [], width = 0, height = 0, currentPage = 1; | |
| var scale = 1.5; | |
| function draw() { |
| var proc = new ffmpeg('/path/to/your_movie.avi') | |
| .takeScreenshots({ | |
| count: 1, | |
| timemarks: [ '600' ] // number of seconds | |
| }, '/path/to/thumbnail/folder', function(err) { | |
| console.log('screenshots were saved') | |
| }); |
| const functions = require('firebase-functions'); | |
| const gcs = require('@google-cloud/storage')(); | |
| const sharp = require('sharp') | |
| const _ = require('lodash'); | |
| const path = require('path'); | |
| const os = require('os'); | |
| exports.generateThumbnail = functions.storage.object('uploads/{imageId}').onChange(event => { | |
| const object = event.data; // The Storage object. |
| - Add headers | |
| - Add variables | |
| - Add queries and fragments from documentation | |
| - Multiple windows | |
| - Compress/Prettify query | |
| - History of recent queries | |
| - GraphQL Subscription | |
| - Autocompletion, documentation search and syntax highlighting | |
| - Response stats | |
| - Multiple languages |
| FROM node:6.11 | |
| WORKDIR /usr/src/app | |
| ADD . /usr/src/app/ | |
| RUN yarn | |
| RUN yarn build |
A fix for this problem is to add swap or paging space to the instance.
Paging works by creating an area on your hard drive and using it for extra memory, this memory is much slower than normal memory however much more of it is available.
To add this extra space to your instance you type:
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
sudo /sbin/mkswap /var/swap.1
sudo chmod 600 /var/swap.1
| -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif |