Skip to content

Instantly share code, notes, and snippets.

View cryptogentlemen.md

DoomsDay SAAS Bitcoin Wallet:

doomsday.money or cryptogentlemen.com

Can you cross the borders and do financial transactions if many things from the current Status Quo breaks down?

  • Your bank database can be hacked
    • They don’t probably have too many real time replications distributed geographically.
  • “The Cloud” where all your data is, and most of the internet runs from, is probably in well defined physical location(s)
View keybase.md

Keybase proof

I hereby claim:

  • I am becomingguru on github.
  • I am lprasad (https://keybase.io/lprasad) on keybase.
  • I have a public key ASCQqYcG6vcwo2_JA0QtM9Rda8HZNn5zB0u2MN6tQSrp3Ao

To claim this, I am signing this object:

View trip.md

Special places and interesting points of note in your trip to the sacred places associated with The Buddha's life:

Lumbini:

  • Site of the birth of Gautama and also the three Buddhas preceding Gautama.
  • Sal trees still visible;
  • The Buddha walked as soon as he was born;
  • The Buddha talked a soon as he was born;
  • First footprint of the infant Siddhartha (Siddhartha => “one whose aim is accomplished”), as soon as he was born is still preserved;
  • Siddhartha's Mother Queen Maya died within a week of his birth;
@becomingGuru
becomingGuru / compress-pdf-with-gs.md
Created Jul 31, 2017 — forked from firstdoit/compress-pdf-with-gs.md
Compress PDF files with ghostscript
View compress-pdf-with-gs.md

This can reduce files to ~15% of their size (2.3M to 345K, in one case) with no obvious degradation of quality.

ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

Other options for PDFSETTINGS:

  • /screen selects low-resolution output similar to the Acrobat Distiller "Screen Optimized" setting.
  • /ebook selects medium-resolution output similar to the Acrobat Distiller "eBook" setting.
  • /printer selects output similar to the Acrobat Distiller "Print Optimized" setting.
  • /prepress selects output similar to Acrobat Distiller "Prepress Optimized" setting.
View fractions.py
from fractions import Fraction
def get_fractions(m=5):
all_fractions = [Fraction(nume,deno) for deno in range(1,m+1) for nume in range(0,deno+1)]
uniq_fractions = set(all_fractions)
fractions_list = list(uniq_fractions)
fractions_list.sort()
return fractions_list
@becomingGuru
becomingGuru / dear_mark.md
Last active Feb 9, 2016
Dear Mark Zuckerberg,
View dear_mark.md

Save the Internet Team welcomes efforts and intentions of individuals and companies to enable connectivity to the billions of Indians.

We strongly believe, like you do Mark, that internet is a great leveller. Everyone should have connectivity, but Mark, everyone should also have the right connectivity and we had to be very vigilant. Given our current economic context where 64 billionaires like you are worth more than half the population on the planet, much of whom live in this country, all of us who live in this society owe it to ourselves to prevent any form of potential rent seeking behaviour further and keep things open and enable a free market for many future successful online companies to startup and thrive.

Would Facebook be where it is today Mark if all the Harvard students already had free access to AOL and you had to pitch Comcast to include theFacebook as a “basic service” for free? Would they all pay just to get it, or would you have had resources to pay Comcast if they wanted to bring in you

View dear_mark.md

Dear Mark Zuckerberg,

Save the Internet Team welcomes efforts and intentions of individuals and companies to enable connectivity to the billions of Indians.

We strongly believe, like you do Mark, that internet is a great leveller. Everyone should have connectivity, but Mark, everyone should also have the right connectivity and we had to be very vigilant. Given our current economic context where 64 billionaires like you are worth more than half the population on the planet, much of whom live in this country, all of us who live in this society owe it to ourselves to prevent any form of potential rent seeking behaviour further and keep things open and enable a free market for many future successful online companies to thrive and come.

Would Facebook be where it is today Mark if all Harvard students already had free access to AOL and you had to pitch Comcast to include theFacebook as a “basic service” for free? Would they all pay just to get it, or would you have had resources to pay Comcast if they wanted

View gist:9423841e11d2b676c7ff

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

View gist:7939995
5. A Duck
kyoryu
Duck-wireframe
A feature added for no other reason than to draw management attention and be removed, thus avoiding unnecessary changes in other aspects of the product.
I don't know if I actually invented this term or not, but I am certainly not the originator of the story that spawned it.
This started as a piece of Interplay corporate lore. It was well known that producers (a game industry position, roughly equivalent to PMs) had to make a change to everything that was done. The assumption was that subconsciously they felt that if they didn't, they weren't adding value.
View gist:6460553
A Duck
kyoryu
Duck-wireframe
A feature added for no other reason than to draw management attention and be removed, thus avoiding unnecessary changes in other aspects of the product.
I don't know if I actually invented this term or not, but I am certainly not the originator of the story that spawned it.
This started as a piece of Interplay corporate lore. It was well known that producers (a game industry position, roughly equivalent to PMs) had to make a change to everything that was done. The assumption was that subconsciously they felt that if they didn't, they weren't adding value.
You can’t perform that action at this time.