Skip to content

Instantly share code, notes, and snippets.

View arpit's full-sized avatar

Arpit Mathur arpit

View GitHub Profile
@arpit
arpit / regex.txt
Created June 28, 2017 16:34
Regex for Comcast stuff
(.*?)$
//Note the space at the beginning
^[A-Za-z]+
@arpit
arpit / aframe.md
Created June 21, 2017 18:27
Learning A Frame Notes

Setting up your device

On Android, Chrome make sure WebVR flags and GameController flags are turned on in chrome://flags

Local Dev:

Debugging:

Use cntrl+alt+i to bring up the visual inspector

@arpit
arpit / gist:cfb0a536377735f6a51b857d510bf36e
Last active May 23, 2017 06:10
Push a folder in a project to heroku
git push heroku `git subtree split --prefix tutorbotapiservice master`:master 

(add --force if needed)

Android:

  • AI enabled copy paste, on device neural networks (TensorFlowLite)
  • Picture in Picture
  • Autofill API
  • Vital: Improving battery life / core services
  • Kotlin support
  • Kotlin Foundation
  • Instant apps open to all
  • Android Go: Rethinking android for third world: Lighter apps, slimmer OS, data compression, api for network operators to manage usage/payments (top up)

Etherium talk:

3 languages used to write small contracts

Solidity : like js <- most developed compiles to the Etherium byte code that is run on Eth VM Another: Viper

Consys guys created a framework for Eth apps called Truffle

@arpit
arpit / Ruby_plan.md
Last active June 17, 2018 14:20
Ruby Plan

Skills

  • Follow the Rabbit: Verify the code path
  • Understand the state machine
  • Learn the nomenclature: What exactly is:
    • Class, Method, variable, constant, Module
    • Design Pattern, Algorithm, Data Structure
      • Program = Data Structures + Logic / Code
    • Polymorphism, idempotency
  • How do you learn new ideas? Whats one new idea you learnt this week?
  • Patience, Persistence, Concentration, Communication
@arpit
arpit / http.md
Last active August 15, 2018 21:44
HTTP basics

Basic HTTP

The Client Server Model

The core working of the internet is based on the idea of client / server communication. The client is anything close to the user (a web browser, an app, a terminal with ssh) and a server that can respond to client queries.

Clients can talk to servers via a variety of protocols. The protocols are just a way for the client and server to agree on how to send data back and forth. Its like you and I talking. We can agree that we use English and with a friend of mine I can use Hindi.

Different Client / Server protocols include:

  • HTTP
@arpit
arpit / q1.rb
Created November 15, 2016 22:01
Ruby quiz
class Man < Animal
def get_name
@name
end
end
Man.new = m
m.get_name
@arpit
arpit / user_oop.rb
Created July 24, 2016 23:51
Ruby OOP / Classes practice
class User
attr_accessor :first_name, :last_name
def self.set_species (s)
@@species = s
end