Skip to content

Instantly share code, notes, and snippets.

View AlexanderCollins's full-sized avatar
🏠
Working from home

Alex AlexanderCollins

🏠
Working from home
View GitHub Profile
@AlexanderCollins
AlexanderCollins / instance_dict.py
Created April 26, 2018 23:58
Python Dictionary, Instance Representation
# Represents a dictionary as an instance (note: cannot yet cast bact to dict type, simple access <InstanceDict>.d
class InstanceDict:
def __init__(self, d):
self.d = d
def __getattribute__(self, item):
return self.__getattr__(item)
def __getattr__(self, key):
val = self.d[key]
@AlexanderCollins
AlexanderCollins / install_flutter.sh
Created June 12, 2018 01:07
Install Flutter On Mac (Installs brew and wget as well)
#!/bin/bash
# install brew if not installed
if [[ $(command -v brew) == "" ]]; then
echo "Installing Hombrew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# check if wget is installed
if brew ls --versions myformula > /dev/null; then
import React, { useEffect, useState } from "react";
import { Dimensions, SafeAreaView, StyleSheet, Text, View } from "react-native";
import {
PanGestureHandler,
TouchableOpacity,
ScrollView,
} from "react-native-gesture-handler";
import Animated, {
useAnimatedGestureHandler,
useAnimatedStyle,