Skip to content

Instantly share code, notes, and snippets.

View aminroosta's full-sized avatar
:octocat:

Amin Roosta aminroosta

:octocat:
View GitHub Profile
map d removeTab
map u restoreTab
map l nextTab
map h previousTab
map t Vomnibar.activateInNewTab
map <c-o> goBack
map <c-i> goForward
map ;y LinkHints.activateCopyLinkUrl
map gp togglePinTab
map zi zoomIn

Overview

This document is a proposal for the typescript language and the Deno runtime as an official programming language in Deriv.


Background

TypeScript is an open-source language which builds on JavaScript, by adding static type definitions.

@aminroosta
aminroosta / deno-slite.ts
Created May 20, 2020 06:20
deno sqlite example
import { open, save, DB } from "https://deno.land/x/sqlite/mod.ts";
class Database {
private constructor(private db: DB) { }
static async connect(path : string) {
return new Database(await open(path));
}
execute(query: string, values : object = {}) {
@aminroosta
aminroosta / cvim
Last active July 18, 2022 20:20
cvim
set noautofocus
set numerichints
set typelinkhints
"let barposition = "bottom"
let scrollstep = 240
let searchlimit = 10
let scrollduration = 100
set smoothscroll
map H scrollLeft
map L scrollRight
@aminroosta
aminroosta / init.coffee
Created January 9, 2016 23:20
atom init.coffee file to add toggle fold support
atom.commands.add 'atom-text-editor',
'editor:toggle-folding': (event) ->
editor = @getModel()
bufferRow = editor.bufferPositionForScreenPosition(editor.getCursorScreenPosition()).row
if editor.isFoldedAtBufferRow(bufferRow)
editor.unfoldBufferRow(bufferRow)
else
editor.foldBufferRow(bufferRow)
@aminroosta
aminroosta / keymap.cson
Last active April 10, 2016 13:18
atom vim keymappings
'atom-text-editor.vim-mode:not(.insert-mode)':
'L': 'pane:show-next-item'
'H': 'pane:show-previous-item'
', w': 'core:save'
', q': 'core:close',
'z a': 'editor:toggle-folding'
'z m': 'editor:unfold-all'
', t': 'you-complete-me:get-type'
', g': 'you-complete-me:go-to'
@aminroosta
aminroosta / vim.sublime-keymap
Created January 9, 2016 23:17
sublime vim keybindings 2016-01-09
[
/***** VINTAGE KEYMAPS *****/
{ "keys": ["H"], "command": "prev_view", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{ "keys": ["L"], "command": "next_view", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{ "keys": [",","q"], "command": "close", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{ "keys": [",","w"], "command": "save", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{ "keys": [",","c"], "command": "toggle_comment", "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": false } ] },
{ "keys": [",",","], "command": "reindent", "args": { "single_line": false } , "context": [{ "key": "setting.command_mode", "operand": true }, { "key": "setting.is_widget", "operand": fals