Skip to content

Instantly share code, notes, and snippets.

View ragunathjawahar's full-sized avatar
🙂

Ragunath Jawahar ragunathjawahar

🙂
View GitHub Profile
@ragunathjawahar
ragunathjawahar / friends_pets.kt
Last active April 22, 2021 08:13
Mini-refactoring challenge 1: Friends & Pets
/*
* ~ Mini-refactoring challenge 1: Friends & Pets ~
* Courtesy of https://twitter.com/ragunathjawahar
*
* Instruction
* ===========
* 1. Copy and paste the contents of this gist into a new file inside any open Kotlin project in your IDE.
* 2. Delete it after you're done with the challenge.
*
* Objective
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<title>JS Bin</title>
</head>
<body>
@ragunathjawahar
ragunathjawahar / watchers.xml
Last active March 26, 2019 04:56
TCR Kotlin file watcher for IntelliJ IDEA Ultimate
<TaskOptions>
<TaskOptions>
<option name="arguments" value="-c &quot;./gradlew test &amp;&amp; git commit -am working || git reset --hard&quot;" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" />
<option name="exitCodeBehavior" value="ALWAYS" />
<option name="fileExtension" value="kt" />
<option name="immediateSync" value="false" />
<option name="name" value="TCR on changes to Kotlin files" />
<option name="output" value="" />