Skip to content

Instantly share code, notes, and snippets.

// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract GamePrediction {
address public owner;
// owner = msg.sender;
struct Game {
string name;
@lprsd
lprsd / GIF-Screencast-OSX.md
Created August 23, 2021 07:44 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

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)

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:

@lprsd
lprsd / trip.md
Last active December 22, 2018 16:46

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;
@lprsd
lprsd / compress-pdf-with-gs.md
Created July 31, 2017 18:19 — forked from guifromrio/compress-pdf-with-gs.md
Compress PDF files with ghostscript

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.
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
@lprsd
lprsd / dear_mark.md
Last active February 9, 2016 15:14
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 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

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

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).