Skip to content

Instantly share code, notes, and snippets.

View indrajithi's full-sized avatar
:octocat:
Namaste

Indrajith Indraprastham indrajithi

:octocat:
Namaste
View GitHub Profile
@indrajithi
indrajithi / flask_multy_file.py
Created June 4, 2019 17:42
flask multiple file upload
import os
import uuid
from flask import Flask
from flask import request
UPLOAD_FOLDER = 'uploads/'
ALLOWED_EXTENSION = set (['Pdf', 'docx'])
app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER
@indrajithi
indrajithi / random_string.clj
Created October 22, 2019 16:33
Generate random strings in cojure
;; Create random string in clojure
(defn rand-str [len]
(apply str (take len (repeatedly #(char (+ (rand 26) 97))))))
;small
(defn rand-strB [len]
(apply str (take len (repeatedly #(char (+ (rand 26) 65))))))
;caps
@indrajithi
indrajithi / exception_handler.clj
Last active October 23, 2019 04:42
Compojure Exception Handeling Middleware, Clojure.
(ns nurture-clj.middleware.exception-handler
(:require [clj-http.client :as client]
[cheshire.core :refer [generate-string]]
[config.core :refer [env]]
[nurture-clj.log :as log]
[clojure.string :as str]
[schema.utils :as sc]
[config.core :refer [env]]
[ring.util.http-response :as respond]))
@indrajithi
indrajithi / top_indian_city_names
Last active November 6, 2019 09:41
Top Indian City Names with State
panchkula
shimla
eluru
thoothukkudi
cuttack
himachal pradesh
azamgarh
banswara
raigarh
deoghar

Keybase proof

I hereby claim:

  • I am indrajithi on github.
  • I am indr4jith (https://keybase.io/indr4jith) on keybase.
  • I have a public key whose fingerprint is 2490 9471 7AD7 F927 4BC1 F77B 03A5 B3D6 5C88 C1E4

To claim this, I am signing this object:

class CargoShip:
def __init__(self):
self.tide = None
self.run()
def get_water_levels(self):
length = input()
levels = input()
return list(map(int, levels.split()))
{
"Profiles": [
{
"Use Non-ASCII Font" : false,
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : "0.6235294",
"Red Component" : "0.4470588",
{"Key Mappings":{"0xf702-0x320000":{"Action":18,"Text":""},"0xf702-0x300000":{"Text":"","Action":2},"0xf703-0x320000":{"Action":19,"Text":""},"0xf703-0x300000":{"Text":"","Action":0},"0xf72b-0x100000":{"Text":"","Action":4},"0xf700-0x320000":{"Action":20,"Text":""},"0xf72c-0x100000":{"Text":"","Action":9},"0xf700-0x300000":{"Text":"","Action":7},"0xf72d-0x100000":{"Text":"","Action":8},"0x9-0x40000":{"Text":"","Action":32},"0xf701-0x300000":{"Text":"","Action":6},"0xf701-0x320000":{"Action":21,"Text":""},"0xf703-0x220000":{"Action":30,"Text":""},"0x4f-0x120000":{"Text":"8C1888B9-C372-489E-92FD-7F632EE5F550","Action":28},"0x58-0xa0000":{"Action":23,"Text":""},"0x19-0x60000":{"Text":"","Action":39},"0xf729-0x100000":{"Text":"","Action":5},"0x45-0x120000":{"Text":"8C1888B9-C372-489E-92FD-7F632EE5F550","Action":29},"0xf72c-0x20000":{"Text":"","Action":9},"0xf72d-0x20000":{"Text":"","Action":8}},"Touch Bar Items":{}}
@indrajithi
indrajithi / index.html
Created April 13, 2023 06:37
Styled JavaScript Countdown Clock
<h1>Countdown Clock</h1>
<div id="clockdiv">
<div>
<span class="days"></span>
<div class="smalltext">Days</div>
</div>
<div>
<span class="hours"></span>
<div class="smalltext">Hours</div>
</div>

Splitwise

Users can add expenses. Users can edit expenses. Also, users can settle expenses. Allow users to make groups and add, edit and settle expenses in the group.