Skip to content

Instantly share code, notes, and snippets.

@rajeshpv
rajeshpv / psicalc.js
Last active Jan 26, 2021
PSI Conversions SA-5015 jira has details
View psicalc.js
function calcPsi(read, loc) {
const readVal = read.v * read.mul;
const h = loc.elevation + loc.elevationOffset;
return calcPsiDirect(read.m, h, readVal);
}
function calcPsiDirect(uom, h, readVal){
let newVal = -1;
switch (uom) {
View mvnTestPauseAndPoll.java
private void pauseAndPoll(){
java.io.File tmpFile = new java.io.File("/tmp/pause.touch");
long lastModified = 0; long newModified = 0;
if (tmpFile.exists()) lastModified = tmpFile.lastModified();
do {
System.out.println("waiting .... touch /tmp/pause.touch");
try {Thread.sleep(3 * 1000);/*3secs*/ } catch(Exception e){}
if (tmpFile.exists()) newModified = tmpFile.lastModified();
} while (newModified == lastModified);
}
View crow-story.md

तृष।त: काक:

एक: काक: आसि । स: तृष: अतीव पीइित: । स: कुतोपि किन्चितपि ज

View sanksrit-prayer.md

पठामि संस्कृतं नित्यं | वदामि संस्कृतं सदा |

ध्यायामि संस्कृतं सम्यक् | वन्दे संस्कृतमातरं ||

संस्कृतस्य प्रसाराय | नैजं सर्वं ददाम्यहं |

संस्कृतस्य सदा भक्तो | वन्दे संस्कृतमातरं ||

संस्कृतस्य कृते जीवन् | संस्कृतस्य कृते यजन् |

आत्मानं आहुतं मन्ये | वन्दे संस्कृतमातरं ||

हिन्दुधर्मं समाजञ्च | पवित्रां संस्कृतिं तथा |

View sanskrit-keyboard.md
  • It is better to type Sanskrit and create digital documents to redistribute, compare and grade and submit assignments online etc., (ex: google docs). Hence I suggest better to learn "Devanagiri-QWWERTY" keyboard.
  • Below details are compiled from this link which works for both windows/mac system
    • credit: compiled by José C. Rodriguez, Emory College Language Center, Emory University 2009
  • More about Swaras and Vyanjanah - http://acharya.gen.in:8080/sanskrit/sans.php?lnum=0&pnum=1
View sankskrit-keyboard-test.html
<body>
<li>For Keyboard use https://ubcsanskrit.ca/keyboards.html</li>
<li>Alphabets list http://www.pinterest.com/pin/662732901392873122/</li>
<li>Reference: https://sanskritdocuments.org/learning_tools/</li>
<p>
I typed sanskrit using above keyboard link
</p>
<div class="sanskrit">
<br/> अ आ इ ई
View pavers.md

CAP Order

  • 12" wall cap xxxx => 120 * $2.86= $343.20 or else 105 * $3.18=$333.90 :: Dimensions = 2" x 12" x 8"
  • 12" wall cap buff => 120 * $1.78= $213.60 or else 105 * $1.98=$207.90 :: Dimensions = 2" x 12" x 8"

Pavers