Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Hindsight is 2020. Wonder what they meant ;-)

Anand Sharma indrayam

💭
Hindsight is 2020. Wonder what they meant ;-)
View GitHub Profile
@indrayam
indrayam / intellij.txt
Created Nov 13, 2020
IntelliJ IDEA running Kotlin Code
View intellij.txt
/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/java -javaagent:/Users/anasharm/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/202.7319.50/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=49795:/Users/anasharm/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/202.7319.50/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Users/anasharm/local-workspace/kotlin-apps/head-first-kotlin/chapter-6/target/classes:/Users/anasharm/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.4.10/kotlin-stdlib-common-1.4.10.jar:/Users/anasharm/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.10/kotlin-stdlib-jdk8-1.4.10.jar:/Users/anasharm/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.4.10/kotlin-stdlib-1.4.10.jar:/Users/anasharm/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.jar:/Users/anasharm/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.4.10/kotlin-stdlib-jdk7-1.4.10.jar Chapter6Kt
/Library/Java/JavaVirtualMachines
View vscode-projects.json
[
{
"name": "nerd-notes",
"rootPath": "/Users/anasharm/Dropbox/workspace/documentation/nerd-notes",
"paths": [],
"group": "",
"enabled": true
},
{
"name": "personal-notes",
@indrayam
indrayam / sublime-plugins.txt
Last active Feb 15, 2020
All Sublime Text 3 Plugins (Feb 2020)
View sublime-plugins.txt
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"AdvancedNewFile",
"Alignment",
@indrayam
indrayam / sublime-settings.txt
Last active Feb 2, 2020
Sublime Text 3 Configuration (as of Feb 2020)
View sublime-settings.txt
{
"auto_complete": false,
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 0,
"auto_complete_with_fields": false,
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 1,
"caret_style": "solid",
@indrayam
indrayam / keybindings.json
Last active Aug 7, 2020
VS Code Keyboard mappings (Aug 2020)
View keybindings.json
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+cmd+p",
"command": "projectManager.listProjects"
},
{
"key": "alt+cmd+p",
"command": "-projectManager.listProjects"
},
View kafka-productivity-hacks.md

I've been working with Kafka for over 7 years. I inevitably find myself doing the same set of activities while I'm developing or working with someone else's system. Here's a set of Kafka productivity hacks for doing a few things way faster than you're probably doing them now. 🔥

Get the tools

@indrayam
indrayam / FileIOTest.java
Created Jun 19, 2019
Simplest FileIO in Java (Part 2)
View FileIOTest.java
package dev.anandsharma.corejava.ch3;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.util.Scanner;
public class FileIOTest2 {
@indrayam
indrayam / FileIOTest1.java
Last active Jun 19, 2019
Simplest FileIO in Java (Part 1)
View FileIOTest1.java
package dev.anandsharma.corejava.ch3;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.util.Scanner;
public class FileIOTest1 {
public static final String RW_FILE_PATH = "/Users/anasharm/Downloads/test1.txt";
@indrayam
indrayam / .vimrc
Last active Mar 3, 2019
My .vimrc (as of March 2019)
View .vimrc
" .vimrc
" Maintained by: Anand Sharma
" anand.sharma@gmail.com
" Heavily borrowed from https://github.com/zanshin/dotfiles
" Need more studying: https://bitbucket.org/sjl/dotfiles/src/4e6f3d36c2417fd778f30192b90c51795bdcd368/vim/vimrc?at=default
"
" -------------------------------------------------------------------
" Forget compatibility with vi
" -------------------------------------------------------------------
set nocompatible
@indrayam
indrayam / settings.json
Last active Aug 7, 2020
My VSCode Settings (Aug 2020)
View settings.json
// Place your settings in this file to overwrite the default settings
{
// Workbench Settings
"workbench.activityBar.visible": true,
"workbench.tips.enabled": false,
"workbench.startupEditor": "none",
"workbench.settings.editor": "json",
"workbench.editor.highlightModifiedTabs": true,
"workbench.editor.enablePreview": false,
"workbench.colorCustomizations": {
You can’t perform that action at this time.