Skip to content

Instantly share code, notes, and snippets.

@hsnali
hsnali / config
Created September 6, 2025 01:15
ghostty
# This is the configuration file for Ghostty.
#
# This template file has been automatically created at the following
# path since Ghostty couldn't find any existing config files on your system:
#
# /Users/hsn/Library/Application Support/com.mitchellh.ghostty/config
#
# The template does not set any default options, since Ghostty ships
# with sensible defaults for all options. Users should only need to set
# options that they want to change from the default.
@hsnali
hsnali / starship.toml
Created September 6, 2025 01:15
starship
[aws]
format = '\[[$symbol($profile)(\($region\))(\[$duration\])]($style)\]'
[bun]
format = '\[[$symbol($version)]($style)\]'
[c]
format = '\[[$symbol($version(-$name))]($style)\]'
[cmake]
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@hsnali
hsnali / index.html
Created December 29, 2017 23:43 — forked from anonymous/index.html
react-konva DEMO react-konva DEMO // source http://jsbin.com/xanirakuca
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="react-konva DEMO">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>react-konva DEMO</title>
<script src="https://fb.me/react-15.1.0.js"></script>
<script src="https://fb.me/react-dom-15.1.0.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/konva/1.7.6/konva.min.js"></script>
@hsnali
hsnali / index.js
Created July 31, 2017 05:29
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
const padStart = require('lodash/padStart');
const dateFns = require('date-fns')
const displayValue = "44/1/1";
const format = "YYYY-MM-DD";
convertDateDisplayToISO = (date) => {
@hsnali
hsnali / just-read-light-theme
Last active June 27, 2017 06:19
Just Read extension light theme css
@import url('https://fonts.googleapis.com/css?family=Roboto+Slab|Roboto:300,400,900');
@import url('https://fonts.googleapis.com/css?family=Gentium+Book+Basic');
@import url('https://fonts.googleapis.com/css?family=Libre+Baskerville');
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {