Skip to content

Instantly share code, notes, and snippets.

Avatar

Amnon Khen amnonkhen

  • Citi Innovation Lab Tel Aviv
  • Israel
View GitHub Profile
@amnonkhen
amnonkhen / cloudSettings
Last active Dec 5, 2019
akh_vscode_Settings
View cloudSettings
{"lastUpload":"2019-12-05T10:22:03.233Z","extensionVersion":"v3.4.3"}
@amnonkhen
amnonkhen / .bashrc
Last active Apr 12, 2020
add the linux `watch` tool capability to windows git bash
View .bashrc
# add to ~/.bashrc
source ~/.bash/watch.sh
@amnonkhen
amnonkhen / run-remote-java-win.ps1
Last active Dec 6, 2018
powershell snippet to run a java command line on a remote windows host
View run-remote-java-win.ps1
Invoke-Command -ComputerName REMOTE_HOST -ScriptBlock { & java -classpath 'cp-jar-list' '-Dprop=val' MyClass }
@amnonkhen
amnonkhen / README.md
Created Jun 11, 2017 — forked from ngryman/README.md
intellij javascript live templates
View README.md

intellij javascript live templates

Just a dump of handy live templates I use with IntelliJ. They should also work with WebStorm.

How to

  • Go to settings.
  • Search for live templates.
  • Under the javascript section you should be able to manage your templates.
@amnonkhen
amnonkhen / tree_from_node_list.py
Last active Aug 29, 2015
given list[list[String], where each list[String] represents a node in the following manner: node.id -> child0.id -> child1.id -> ...rebuild the tree.
View tree_from_node_list.py
# given list[list[String], where each list[String] represents
# a node in the following manner: node.id -> child0.id -> child1.id -> ...
# rebuild the tree.
# solution checks for loops, multiple parents, types (only strings)
£ there are a few test cases in the end
import logging
from unittest import TestCase
You can’t perform that action at this time.