Skip to content

Instantly share code, notes, and snippets.

View hashd's full-sized avatar
🧬
Crunching Code

Kiran Danduprolu hashd

🧬
Crunching Code
View GitHub Profile
@hashd
hashd / caseUtils.ts
Last active August 12, 2022 23:24
Casing Utilities - TypeScript
enum CharType {
NUMBER,
LOWERCASE_CHARACTER,
UPPERCASE_CHARACTER,
WHITESPACE,
OTHER,
}
type TRange = {
length: number;
@hashd
hashd / batch_convert.sh
Last active October 9, 2017 21:33
Batch convert NEF to jpg in Linux/macOS [Prerequisites: ImageMagick, ufraw-batch]
#!/bin/bash
# Change to directory at first argument or use the current folder
if [ ! -z "$1" ]; then
cd "$1"
fi
mkdir -p jpeg
for file in *.NEF; do
filename="${file%.NEF}.jpg"
echo "Converting $file to $filename"
@hashd
hashd / Markdown_Settings_Sublime.md
Last active November 5, 2015 17:32
Better Markdown Editing in Sublime Text
{
  	# Enable spell check
	"spell_check": true,
	"dictionary": "Packages/Language - English/en_US.dic",
	
	# 80 char width column width and wrap enabled
	"word_wrap": true,
	"wrap_width": 80,
	

Topics

  • Common destructing patterns/idioms
  • Tagged template literals
  • Iterators, Iterables, For of loops
  • New collection types (Map, Set, WeakMap, WeakSet, TypedArrays)
  • Generators and Yield
  • Modules
  • Symbols