Skip to content

Instantly share code, notes, and snippets.

@garrettmac
garrettmac / expandable-iq.md
Last active July 14, 2023 15:56
Master JS Interview questions with dropdowns also see https://gist.github.com/garrettmac/71cf01eca4e09f34e5c503b2bbf51f9f

Master Interview Questions


SECTION - Contents

TODO / PAradignms

Functional Programming key words

first-class functions

@garrettmac
garrettmac / custom.filter.buttons.tags.liquid
Last active March 15, 2023 00:10
Shopify Filter Snippets
Tag Filter:
<ul class="subnav clearfix">
<li{% unless current_tags %} class="active"{% endunless %}>
{% if collection.handle %}
<a href="/collections/{{ collection.handle }}{% if collection.sort_by %}?sort_by={{ collection.sort_by }}{% endif %}">All</a>
{% elsif collection.current_type %}
<a href="{{ collection.current_type | url_for_type | sort_by: collection.sort_by }}">All</a>
@garrettmac
garrettmac / index.html
Created May 20, 2017 15:57
thumbtack.com
<!DOCTYPE html>
<!--[if IE 7 ]> <html lang="en" class="ie7 "> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="ie8 "> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="ie9 "> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class=""> <!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1"><meta http-equiv="Content-Style-Type" content="text/css" /><meta http-equiv="Content-Script-Type" content="text/javascript" /><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name=dropbox-domain-verification content=0gjo970nvgw9 /><title>Thumbtack - Consider it done</title><meta property="fb:app_id" content="131357050011"><meta
property="og:url"
@garrettmac
garrettmac / React Native Animation Cheat Sheet.md
Last active December 26, 2022 12:23
Medium Blog Post - React Native Animation Cheat Sheet: Using the “LayoutAnimation” and “Animated” Components

React Native Animation Cheat Sheet: Using the “LayoutAnimation” and “Animated” Components

This is really a way for me to reference this in the future, as I always find my self forgetting parts of this, so hi future self.

@garrettmac
garrettmac / example.js
Last active May 5, 2022 08:03
Reddit API using AXIOS
import { Platform } from 'react-native'
import axios from 'axios'
import _ from 'lodash'
import subreddits from '../../subreddits'
import { extendObservable, action, observable } from 'mobx'
import normalizeUrl from 'normalize-url'
const appId = Platform.select({
ios: 'io.vyga.[APP NAME HERE]',
android: 'io.vyga.[APP NAME HERE]'
@garrettmac
garrettmac / example.js
Last active January 14, 2022 19:11
react native congressmen floating bubble heads example
import React, { Component } from 'react';
import { StyleSheet, View,Text, Image, Animated, Dimensions } from 'react-native';
import Interactable from 'react-native-interactable';
const widthFactor = Dimensions.get('window').width / 375;
const heightFactor = (Dimensions.get('window').height - 75) / 667;
const showSecondFace = true;
const showThirdFace = true;
const showFourthFace = true;
@garrettmac
garrettmac / cheatsheet.md
Created February 7, 2017 19:03
terminal commands

Terminal

remove file rm -rf [folder] find mdfind -onlyin [file]

alias Create an alias •

@garrettmac
garrettmac / a.js
Created September 20, 2017 00:31
a
a
@garrettmac
garrettmac / index.html
Created March 28, 2019 16:40
React at CodePen
<div id="app"></app>