Skip to content

Instantly share code, notes, and snippets.

View tsnaik's full-sized avatar

Tanmay Naik tsnaik

View GitHub Profile
@tsnaik
tsnaik / design.md
Last active May 3, 2021 22:47
Collaborative Text Editor

High Level Design and Flow

Glossary

  • CRDT - Sequence conflict-free replicated data type [[1]][1]
  • index - offset of a position from beginning of the text content starting from 0
  • Messenger - handles network messages (incoming + outgoing)
  • CRDTAction - A structure containing siteId, counter, position, value. Represents an operation (insert or delete)
  • ControllerCallback - callback functions inside controller to be called by editor/messenger in an event of local/remote edit. The primary purpose of introducing this is to eliminate circular dependency which will be a pain especially in C++. Because in our case an asynchronous event can come from the editor and messenger and without callback class it would result in circular dependency. Callback functions can be implemented in C++ [[2]][2] [[3]][3]
  • ...
@tsnaik
tsnaik / 001_notes.md
Last active July 20, 2020 14:36
Sessions

Session 1 | March 28

Agenda

  • Tip of the day. Everyone has to share some short tip related to real world programming or tech or academia.
  • Everyone can cover a topic to teach others and learn along the way!
    • Visaj suggested:
      • Meeting rooms 1, 2
      • Word break 1, 2
  • Course schedule 1, 2
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{d2486d24-1000-4087-94ff-1d387cce1c59}",
// You can add more global application settings here.
**Links for actions required
**Tanmay Naik
**25-Jul-2016
-Set alarms : http://techblogon.com/simple-android-alarmmanager-example-to-schedule-an-event/
http://stackoverflow.com/questions/13909040/set-android-alarm-clock-programmatically
-Toggle Auto Rotate : http://stackoverflow.com/questions/4908048/enable-and-disable-auto-rotate-programatically
-Toggle Auto Sync : http://stackoverflow.com/questions/5138256/android-how-to-enable-disable-auto-sync-programmatically