Skip to content

Instantly share code, notes, and snippets.

View kedarmhaswade's full-sized avatar
💭
Just trying to catch up with my calendar

Kedar Mhaswade kedarmhaswade

💭
Just trying to catch up with my calendar
  • JyMob
  • Sunnyvale, USA
View GitHub Profile
This file has been truncated, but you can view the full file.
-तरंग 01 01 0400 01 00005942
-धारा 01 01 0400 01 00027382
-सारखा 01 01 0400 01 00026718
1000000 01 01 0400 01 00031077
10000000 01 01 0400 01 00015838
100000000 01 01 0400 01 00031073
11 01 01 0400 02 00026899 00026900
14 01 01 0400 02 00005305 00026902
150 01 01 0400 01 00030156
17 01 01 0400 01 00013732
package practice;
/**
* Simple program that generates wordlists of various lengths given certain characters.
*/
public class WordList {
private static final char[] alphabet = new char[]{
'अ',
'आ',
'इ',
'अआअ',
'अआइ',
'अआई',
'अआउ',
'अआऊ',
'अआए',
'अआऐ',
'अआक',
'अआख',
'अआग',
@kedarmhaswade
kedarmhaswade / The list of प्रत्याहाराः
Last active August 14, 2021 00:39
The output of my program which prints all प्रत्याहाराः based on the शिवसूत्रणि।
Program is [here](https://github.com/kedarmhaswade/impatiently-j8/blob/master/src/main/java/practice/Pratyaahaara.java#L12).
all count: 291
अण्: [अ, इ, उ]
इण्: [इ, उ]
अक्: [अ, इ, उ, ऋ, ऌ]
इक्: [इ, उ, ऋ, ऌ]
उक्: [उ, ऋ, ऌ]
अङ्: [अ, इ, उ, ऋ, ऌ, ए, ओ]
इङ्: [इ, उ, ऋ, ऌ, ए, ओ]
@kedarmhaswade
kedarmhaswade / devanagari-based-multi-lingual-template.tex
Last active March 27, 2021 09:45
A basic smartphone-viewable template for devanagari based articles typeset for different (Indic) languages. Uses velthuis encoding for 7-bit ASCII transliteration.
% Thanks to: https://tex.stackexchange.com/q/565173/64425
\documentclass[a6paper]{article}
\usepackage{geometry}
\geometry{
bottom=20mm,
left=5mm,
right=5mm,
}
\usepackage{polyglossia}
@kedarmhaswade
kedarmhaswade / elements.txt
Created August 2, 2020 16:16
118 elements from the modern periodic table: name, symbol, atomic number
Hydrogen,H,1
Helium,He,2
Lithium,Li,3
Beryllium,Be,4
Boron,B,5
Carbon,C,6
Nitrogen,N,7
Oxygen,O,8
Fluorine,F,9
Neon,Ne,10

Mathematical Creation

How is mathematics made? What sort of brain is it that can compose the propositions and systems of mathematics? How do the mental processes of the geometer or algebraist compare with those of the musician, the poet, the painter, the chess player? In mathematical creation which are the key elements? Intuition? An exquisite sense of space and time? The precision of a calculating machine? A powerful memory? Formidable skill in following complex logical sequences? A supreme capacity for concentration?

The essay below, delivered in the first years of this century as a lecture before the Psychological Society in Paris, is the most celebrated of the attempts to describe what goes on in the mathematician's brain. Its author, Henri Poincaré, cousin of Raymond, the politician, was peculiarly fitted to undertake the task. One of the foremost mathematicians of all time, unrivaled as an analyst and mathematical physicist, Poincaré was known also as a brilliantly lucid expositor of the philosophy

@kedarmhaswade
kedarmhaswade / ValueIsNotVariable.java
Created April 22, 2019 02:08
A method call expression results in a value, not an automatic variable (that should appear on the lhs of an assignment statement)
class ValueIsNotVariable {
static int get() {
return 10;
}
static void inc() {
get() += 1;
}
}
/**
➜ Java javac Assign.java
@kedarmhaswade
kedarmhaswade / .psudo
Last active February 8, 2019 05:53
A simple, but mysterious function
// This is simply some pseudo code; applicable to any programming language that has support for
// basic data types and recursive functions
// Two questions:
// 1- Solve the "mystery": what does the function do?
// 2- Enhance the function to accommodate other integers.
function mystery(int a, int b) {
if (b == 1) {
return a
}
return mystery(a, b - 1) + a
@kedarmhaswade
kedarmhaswade / queue.go
Last active January 18, 2019 02:15
A naive circular buffer ...
// A naive circular buffer ...
type CircularBuffer struct {
buf []int
cap, head, tail int
}
func (q *CircularBuffer) add(d int) error {
if q.tail-q.head > q.cap {
return errors.New("buffer full")
}