See also:
Service | Type | RAM | Storage | Limitations |
---|---|---|---|---|
👉 Adaptable | PaaS | 256 MB | Non-persistent? (1 GB database storage available) | |
AWS EC2 | IaaS | 1 GB |
// TO-DO Tree Extension | |
"todo-tree.expanded": true, | |
"todo-tree.tags": [ | |
"TODO", | |
"FIXME", | |
"OPTIMIZE", | |
"STOPSHIP" | |
], | |
"todo-tree.customHighlight": { | |
"TODO": { |
'use strict' | |
const flatCache = require('flat-cache') | |
module.exports = class Cache { | |
constructor (name, path, cacheTime = 0) { | |
this.name = name | |
this.path = path | |
this.cache = flatCache.load(name, path) | |
this.expire = cacheTime === 0 ? false : cacheTime * 1000 * 60 |
PostgreSQL Type | PostgreSQL Size | Description | Range | Diesel Type | Rust Type |
---|---|---|---|---|---|
Nullable Types | nullable | Nullable `` |
from itertools import islice | |
import firebase_admin | |
from firebase_admin import credentials | |
from firebase_admin import db | |
from firebase_admin import firestore | |
def _split(data, size=500): | |
"""Splits a dictionary into a sequence of smaller dictionaries.""" |
import BooksPage from './pages/BooksPage.js'; | |
new Vue({ | |
el: '#app', | |
data: { | |
page: BooksPage | |
}, | |
methods: { | |
navigate(event) { | |
this.page = () => import(`./${event.target.pathname}`) | |
// Vue.js < 2.5.0 |
# Bash Fidget Spinner | |
# Could also be included in a bashrc file | |
fidget() { | |
start_time="0.02"; | |
spin_efficiency="0.99"; | |
end_time="3"; | |
time="$start_time"; | |
printf "\e[92mPress any key to give another spin...\n\n"; |
/** | |
* Returns SHA-256 hash from supplied message. | |
* | |
* @param {String} message. | |
* @returns {String} hash as hex string. | |
* | |
* @example | |
* sha256('abc').then(hash => console.log(hash)); | |
* const hash = await sha256('abc'); | |
*/ |