Skip to content

Instantly share code, notes, and snippets.

View arpit's full-sized avatar

Arpit Mathur arpit

View GitHub Profile
arpit / Android TimeZone Ids
Created June 20, 2011 13:26
List of all Android TimeZone ids
View Android TimeZone Ids
arpit /
Last active July 4, 2023 10:23
List of Software Technologies

App Development

  • Android
    • Java
    • Kotlin
  • iOS
    • Objective C
    • Swift
  • Cross Platform
    • React Native
  • Flutter
View gist:5a6febe95fa3a840a9532689279adfed
"name": "Lorem Ipsum 0",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur condimentum feugiat sollicitudin",
"external_url": "",
"image": "",
"animation_url": null,
"attributes": null
arpit / cryptokitties.sol
Created January 23, 2018 21:33
Cryptokitties Contract from the Eth blockchain
View cryptokitties.sol
pragma solidity ^0.4.11;
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
contract Ownable {
address public owner;
arpit / indiehackerhome.js
Created February 15, 2022 19:33
A userscript for TamperMonkey that adds a home button to
View indiehackerhome.js
// ==UserScript==
// @name Indiehackers home button
// @namespace
// @version 0.1
// @description Add Home to
// @author Arpit Mathur
// @match*
// @icon
// @grant none
// ==/UserScript==
arpit /
Created May 21, 2021 15:58
News from I/O 2021

Google IO


  • New conversational dialog model LAMDA
  • MUM AI model for Search: Better understanding of queries, learns 75 languages together, 1000x more powerful vs Bert
  • "I’ve hiked Mt. Adams and now want to hike Mt. Fuji next fall, what should I do differently to prepare?"
  • Starline
  • Photos create memories based on object detection
  • Cinematic moments > add frames between images > Apple live photos (which record video)
arpit / Carat.js
Created March 4, 2012 17:01
Setting the carat in a contentEditable div
View Carat.js
function setCaratTo(contentEditableElement, position)
var range,selection;
if(document.createRange)//Firefox, Chrome, Opera, Safari, IE 9+
range = document.createRange();
arpit /
Last active May 10, 2020 05:06
Flutter notes

Sizing Widgets:

  • Expanded
  • Flexible
  • LimitedBox <-> ConstrainedBox
  • FittedBox
  • SizedBox

Note: When creating widgets in column / row, if the size is too big (like when presenting in a modal screen) use the attribute: mainAxisSize.min to contain the widget

Use Spacer when you want to create space using a flex property. Use SizedBox when you want to create space using a specific number of logical pixels.