Skip to content

Instantly share code, notes, and snippets.

@tmack8001
tmack8001 / rivian_graphql_collection.json
Last active October 27, 2022 01:14
Rivian GraphQL Postman Collection
{
"info": {
"_postman_id": "838a5157-8988-4cff-84d5-1901fcdf37ca",
"name": "Rivian GraphQL",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "15345"
},
"item": [
{
"name": "CSRF",
@tmack8001
tmack8001 / Rivian HA - Dashboards and Automations.md
Last active February 17, 2024 21:37
Rivian Home Assistant - Dashboards

Below are a bunch of YML files for setting up Home Assistant dashboards and automations for Rivian vehicles.

@tmack8001
tmack8001 / ios-color-from-rgba
Created May 4, 2015 21:51
UIColor from RGBA (RGB+Alpha macro for iOS)
#define UIColorFromRGBA(rgbaValue) [UIColor \
colorWithRed : ((float)((rgbaValue & 0xFF000000) >> 24)) / 255.0 \
green : ((float)((rgbaValue & 0xFF0000) >> 16)) / 255.0 \
blue : ((float)(rgbaValue & 0xFF00) >> 8) / 255.0 \
alpha : ((float)(rgbaValue & 0xFF)) / 255.0]
@tmack8001
tmack8001 / build.gradle
Last active August 29, 2015 14:06
Include com.github.amlcurran.showcaseview:library:5.0.0
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
dependencies {