Skip to content

Instantly share code, notes, and snippets.

@dfkuro
dfkuro / .hyper.js
Created August 2, 2022 23:18
Hyper term config
"use strict";
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
// choose either `'stable'` for receiving highly polished,
config: {
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
// default font size in pixels for all tabs
--[[
THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
`lvim` is the global options object
]]
-- Personal code by dfkuro
vim.opt.relativenumber = true
vim.opt.expandtab = false
vim.opt.shiftwidth = 2
const fetchJson = (...args) =>
fetch(...args).then(response => {
if(!response.ok) {
throw new Error(`HTTP Error response: ${repsponse.status} ${response.statusText}`)
}
return response.json()
})
// Fetching JSON is simplified
const data = await fetchJson('https://blockchain.info/ticker')