Skip to content

Instantly share code, notes, and snippets.

@atinsood
atinsood / serving_runtime.yaml
Created February 28, 2023 14:21
serving_runtime
apiVersion: serving.kserve.io/v1alpha1
kind: ServingRuntime
metadata:
name: wisdom
namespace: modelmesh-serving
spec:
containers:
- env:
- name: ACCEPT_LICENSE
value: "true"
@atinsood
atinsood / summary.md
Last active April 3, 2024 00:09
Summary for the article "A Deep Dive into the Wonderful World of Preprocessing in NLP"

Keybase proof

I hereby claim:

  • I am atinsood on github.
  • I am atinsood (https://keybase.io/atinsood) on keybase.
  • I have a public key ASDVrbVwoBkBmGkdnuDX7m8XB6XsnlCNkqyjXQ4pPlCHMAo

To claim this, I am signing this object:

@atinsood
atinsood / cassandra_notes.md
Last active April 4, 2016 14:37
Cassandra notes

Cassandra/C*

Key characteristics:

  • P2P . No concept of zookeeper or named nodes so no single point of failure. Every node in the cluster has the same responsibility and no node gets any special treatment.
  • Adding more m/c's means higher number of opeartions/sec

Best practices/Pre-requisites for a C* install:

  • NTP for synchronized clocks across nodes
@atinsood
atinsood / cassandra_notes.md
Created February 11, 2016 04:40
cassandra notes

I have been reading cassandra for sometime now, just thought of posting my notes that I wrote that helped me to understand the operations page of cassandra wiki (http://wiki.apache.org/cassandra/Operations)

These notes are just a rough cut and if ever I get time will try to make them more legible, just thought of putting them to help others.

Cassandra Notes

Before reading this doc please please please go through http://wiki.apache.org/cassandra/Operations

@atinsood
atinsood / a_notes
Last active January 24, 2016 00:14
Anagrams
Shows 3 diff approaches of solving the anagram problem:
1. Using tranditional imperative programming anagram-soln1,
2. Using streams and reactive programming anagram-soln2
3. Using functional programming via clojure
swap-zeroes.java shows how to convert a list like {0, 1, 2, 7, 7, 9 ,0,0,0,4,0,3,0, 6, 0, 3,2} to {1,2,7,7,9,4,3,6,3,2,0,0,0,0,0,0,0}
i.e. pushing all the zeroes towards the end using a simple swap function without the need of accessing the array from both directions
@atinsood
atinsood / connect_circles_with_path
Created November 2, 2014 14:42
Connect 2 SVG circles with path
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Snap.svg</title>
<style>
body {
#background: #333;
}
public class TestDBXCreate {
private DbxClient client;
private String name;
private DbxEntry.Folder rootFolder;
public DBXRootFolder(String name) {
this.name = name;
try {
@atinsood
atinsood / exploreFacebook.py
Last active December 17, 2015 12:29
Basic lookup using facebook graph api without using the auth token.
import requests
import pprint
import facebook
import json
FB_APP_CLIENT_ID = ''
FB_APP_CLIENT_SECRET = ''
FB_MY_USER_ID = ''
@atinsood
atinsood / gist:5545043
Last active December 17, 2015 03:39
RPC between python client and a java server over HTTP using avro
#!/usr/bin/python
import avro.ipc as ipc
import avro.protocol as protocol
avroProtocol = protocol.parse(open("tweetWithAvr.avr").read())
java_rpc_server_address = ("localhost", 9090)
if __name__ == "__main__":