Skip to content

Instantly share code, notes, and snippets.

View arpit's full-sized avatar

Arpit Mathur arpit

View GitHub Profile
import 'package:flutter/material.dart';
import 'dart:math' as math;
class DotPainter extends CustomPainter {
final int dotCount;
double outerDotsPositionAngle = 51.42;
@arpit
arpit / Android TimeZone Ids
Created June 20, 2011 13:26
List of all Android TimeZone ids
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
Africa/Algiers
Africa/Asmara
Africa/Asmera
Africa/Bamako
Africa/Bangui
Africa/Banjul
Africa/Bissau
@arpit
arpit / technologies.md
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
{
"name": "Lorem Ipsum 0",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur condimentum feugiat sollicitudin",
"external_url": "https://hypermint.com",
"image": "https://cdn.glitch.global/a23b8c7b-ba8f-40fa-8139-f59e44b54a66/moments-logo.png?v=1664984068978",
"animation_url": null,
"attributes": null
}
@arpit
arpit / cryptokitties.sol
Created January 23, 2018 21:33
Cryptokitties Contract from the Eth blockchain
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
arpit / indiehackerhome.js
Created February 15, 2022 19:33
A userscript for TamperMonkey that adds a home button to IndieHackers.com
// ==UserScript==
// @name Indiehackers home button
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Add Home to IndieHackers.com
// @author Arpit Mathur
// @match https://www.indiehackers.com/*
// @icon https://www.google.com/s2/favicons?domain=indiehackers.com
// @grant none
// ==/UserScript==
@arpit
arpit / google_io_2021.md
Created May 21, 2021 15:58
News from I/O 2021

Google IO

AI:

  • 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
arpit / Carat.js
Created March 4, 2012 17:01
Setting the carat in a contentEditable div
function setCaratTo(contentEditableElement, position)
{
var range,selection;
if(document.createRange)//Firefox, Chrome, Opera, Safari, IE 9+
{
range = document.createRange();
range.selectNodeContents(contentEditableElement);
//range.collapse(true);