Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View mjethani's full-sized avatar
🚢
Sabbatical

Manish Jethani mjethani

🚢
Sabbatical
View GitHub Profile
@mjethani
mjethani / flint.yml
Last active September 4, 2021 06:45
Example flint configuration for GitHub Actions
################################################################################
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or distribute
# this software, either in source code form or as a compiled binary, for any
# purpose, commercial or non-commercial, and by any means.
#
# In jurisdictions that recognize copyright laws, the author or authors of this
# software dedicate any and all copyright interest in the software to the
# public domain. We make this dedication for the benefit of the public at large
#!/usr/bin/env node
// usage: passcode [<length>]
var crypto = require('crypto')
function randomPasscode(length) {
var passcode = ''
for (var i = 0; i < length; i++) {
function* fibonacci(n = Infinity) {
yield* function* _(a = 0, b = 1) {
if (n-- > 0) {
yield a;
yield* _(b, a + b);
}
}();
}
@mjethani
mjethani / LICENSE
Last active September 22, 2015 22:41
An ECMAScript 6 version of Peter Norvig's spelling corrector
Copyright (c) 2015 Manish Jethani
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
# http://simple.wikipedia.org/wiki/Wikipedia:List_of_1000_basic_words
I
a
about
above
across
act
active
@mjethani
mjethani / BlindSignatureExample.java
Last active June 22, 2019 13:04
An example showing Chaum's RSA blind signature scheme (aka "anonymous digital cash") in Java using the Bouncy Castle crypto library
/* ----------------------------------------------------------------------------
* Author: Manish Jethani (manish.jethani@gmail.com)
* Date: July 21, 2014
*
* This is an example showing Chaum's RSA blind signature scheme using the
* Bouncy Castle crypto library.
*
* To compile and run this, you'll need the Java SDK and the Java version of
* the Bouncy Castle APIs.
*

Keybase proof

I hereby claim:

  • I am mjethani on github.
  • I am mj (https://keybase.io/mj) on keybase.
  • I have a public key whose fingerprint is 57F8 9653 7461 1F9C EEF9 578B FBDC 955C E6B7 4303

To claim this, I am signing this object: