Skip to content

Instantly share code, notes, and snippets.

View aren55555's full-sized avatar
👋
Working from home

Aren Patel aren55555

👋
Working from home
View GitHub Profile
@aren55555
aren55555 / keybase.md
Created March 8, 2016 18:54
keybase.md

Keybase proof

I hereby claim:

  • I am aren55555 on github.
  • I am aren55555 (https://keybase.io/aren55555) on keybase.
  • I have a public key whose fingerprint is CA2F 7FBC 18C0 CEBF 9524 C663 9048 9CDA 50BC DE34

To claim this, I am signing this object:

2016-03-17 19:21:50,896 [ 240] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2016-03-17 19:21:50,934 [ 278] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-143.2287.1, 23 Feb 2016 00:00)
2016-03-17 19:21:50,934 [ 278] INFO - #com.intellij.idea.Main - OS: Mac OS X (10.11.3, x86_64)
2016-03-17 19:21:50,934 [ 278] INFO - #com.intellij.idea.Main - JRE: 1.8.0_40-release-b132 (JetBrains s.r.o)
2016-03-17 19:21:50,934 [ 278] INFO - #com.intellij.idea.Main - JVM: 25.40-b25 (OpenJDK 64-Bit Server VM)
2016-03-17 19:21:50,936 [ 280] INFO - #com.intellij.idea.Main - JVM Args: -Dfile.encoding=UTF-8 -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Xverify:none -Xbootclasspath/a:../lib/boot.jar -Xm
product_id = 'c3d36496-21e2-476b-a62a-349479b3b2e6'
product_secret = 'dsbKeC7PUnoeCFhXsVOT1Xzgh'
There are 16 cameras set up for this codelab. Choose a number between 1 and 16 and use the following account and camera platform URL:
Login: nestcamdeveloper+[number]@gmail.com
Password: St8rtstreaming!
Camera platform URL: http://nest-io.com/platforms/[number]
@aren55555
aren55555 / main.go
Created July 20, 2017 21:55
Embedded Marshal/Unmarshal
package main
import (
"encoding/json"
"fmt"
)
type Foo struct {
Bar
Name string
@aren55555
aren55555 / main.rb
Created October 13, 2017 07:22
Hash merges in Ruby for dmolchan
require 'pp' # gives us prety printing
users = {} # will be a map of GitHub user name to user info
# Add Aren to the map
users[:aren55555] = {
name: "Aren Patel",
company: "BufferBox -> Google -> Nest",
location: "Narnia",
website: "https://arenpatel.com"
@aren55555
aren55555 / main.rb
Created October 13, 2017 23:23
Dima Example of Optional Args
require 'pp'
require 'securerandom'
require 'faker'
def generate_car(opts={})
type = opts[:car] || "car"
id = opts[:id] || SecureRandom.uuid
attrs = opts[:json_attrs] || {}