Skip to content

Instantly share code, notes, and snippets.

View ssrihari's full-sized avatar

Srihari Sriraman ssrihari

View GitHub Profile
@ssrihari
ssrihari / clojure-learning-list.md
Last active April 24, 2024 03:06
An opinionated list of excellent Clojure learning materials

An opinionated list of excellent Clojure learning materials

These resources (articles, books, and videos) are useful when you're starting to learn the language, or when you're learning a specific part of the language. This an opinionated list, no doubt. I've compiled this list from writing and teaching Clojure over the last 10 years.

  • 🔴 Mandatory (for both beginners and intermediates)
  • 🟩 For beginners
  • 🟨 For intermediates

Table of contents

  1. Getting into the language
(ns wiki-crawler.core
(:require [clojure.string :as s])
(:import [org.jsoup Jsoup]
[org.jsoup.nodes Document Element]))
(def base-url
"https://en.wikipedia.org")
(defn fetch [page-link]
(.get (Jsoup/connect (str base-url page-link))))
@ssrihari
ssrihari / carnatic-basics-practice.org
Last active October 17, 2015 05:31
Sarali, Janta, Dhatu, Alankaras

Sarali Varisais

1

S   R   G   M   |   P   D   |   N   S   ||
S   N   D   P   |   M   G   |   R   S   ||

2

S   R   S   R   |   S   R   |   G   M   ||
@ssrihari
ssrihari / postgres-clusters-nuances.org
Last active April 15, 2024 04:46
Postgres clusters and their nuances

Postgres clusters and their nuances

Why

  • Do you even need a cluster of postgreses? Why did we choose to create a cluster ourselves?
  • Why didn’t RDS work for us? Why it might not work for you.
  • What are other RDS like services out there?

Postgres side of things:

  • What you need to know within postgres so your data can be streamed down to multiple nodes quick, and efficiently.
dog.legs.walk! if dog.normal?
dog.hover_craft.hover! if dog.robot?
[Saturday 15 Sep 2012] [9:16:21 PM] <Alexia_Death> :) you really need to sell it to mitch :)
[Saturday 15 Sep 2012] [9:16:47 PM] <Alexia_Death> he is king of the heap right now:)
[Saturday 15 Sep 2012] [9:17:10 PM] <srihari> Alexia_Death: hm... he said he likes it... but I'm not sure how much :)
[Saturday 15 Sep 2012] [9:17:45 PM] <Alexia_Death> srihari: ask him what you need to do to get it merged ;)
[Saturday 15 Sep 2012] [9:18:00 PM] <srihari> Alexia_Death: sure I will :)
[Saturday 15 Sep 2012] [9:18:29 PM] Quit Aidiera has left this server (Crisis averted.).
[Saturday 15 Sep 2012] [9:23:58 PM] <mitch_> only here quickly
[Saturday 15 Sep 2012] [9:24:06 PM] <mitch_> ok it needs coding style
[Saturday 15 Sep 2012] [9:24:48 PM] <mitch_> and "tito" doesn't mean anything except a former balkan dictator
[Saturday 15 Sep 2012] [9:25:47 PM] <mitch_> and all these global variables must go
@ssrihari
ssrihari / fuzzy.c
Created September 15, 2012 15:30
Fuzzy search method
static gboolean
fuzzy_search ( gchar *string,
gchar *key)
{
gchar *remaining_string = string;
if ( strlen(key) == 0 )
return TRUE;
if ( (remaining_string = strchr(string, key[0])) != NULL )
return fuzzy_search( remaining_string+1, key+1 );
@ssrihari
ssrihari / diff-gimp-tito
Created September 15, 2012 12:44
Diff tito upstream/master
diff --git a/README b/README
index 29f1af1..0c68004 100644
--- a/README
+++ b/README
@@ -1,97 +1,136 @@
- ------------------------------
- GNU Image Manipulation Program
- 2.8 Stable Branch
- ------------------------------
-
@ssrihari
ssrihari / slq-todo.notes
Created August 27, 2012 08:40
Single line question TODOs
Mandatory - reflect in dummy view
-Should show * when mandatory
Responses should reflext max length, mandatory and image
Refactor single line dummy rendering to use the partial
-pass question data and errors to partial.
Hide all actually questions initially after loading the page.