Skip to content

Instantly share code, notes, and snippets.

@garrettmac
garrettmac / Readme.md
Created June 22, 2017 15:33
Into to hiring a web or mobile app developer

https://www.reddit.com/r/SomebodyMakeThis/ https://www.reddit.com/r/AppIdeas/ https://www.reddit.com/r/apps/ https://www.reddit.com/r/webdev/ InVision you would use before hiring someone, this is an easy to use design / design flow service that syncs with photoshop that you would share with a developer. (Twitter, Uber, and Netflix I Know use this)

To gadge how big/well known a developer/developer company/web service company is see how big and how many followers their twitter has, the webdev community kinda trains you to use this as a tool and find their github.com page to gadge what other projects they've done, here you;'d check To communicate with developer while in project is in development you should use (or expect them to use) Slack.com or the chat feature InVision uses (assuming you're using InVision) https://www.invisionapp.com/

@garrettmac
garrettmac / test-script.js
Last active June 25, 2017 16:00
Building a Shopify App
alert("test script alert")
@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 / notes.md
Created July 2, 2017 02:10
Nick Jacques

chsh -s $(which zsh)

@garrettmac
garrettmac / Readme.md
Last active July 4, 2017 18:03
The basics on how to build a Chrome Extension.

s

@garrettmac
garrettmac / style.css
Created July 4, 2017 04:52
style.css
@media screen, projection {
*, ::before, ::after {
box-sizing: inherit;
}
}
@media screen, projection {
ul:not(.browser-default) {
padding-left: 0px;
list-style-type: none;
}
@garrettmac
garrettmac / politicc-injection.js
Last active July 21, 2017 15:53
politi.cc injection
// Initialize Firebase
// TODO: Replace with your project's customized code snippet
var config = {
apiKey: "AIzaSyANxoHymSH5QMTrVXI0Njg-VBy4-oaoV1M",
authDomain: "newsoria-33414.firebaseapp.com",
databaseURL: "https://newsoria-33414.firebaseio.com"
};
firebase.initializeApp(config);
@garrettmac
garrettmac / paginatiion-math.js
Last active July 29, 2017 15:21
paginatiion-math.js
page = Math.abs(parseInt(page) || 1)
console.log(" page: ",page);
//results to return
pageSize = parseInt(pageSize) || 10
//cannot go above 50
if(pageSize > maxsize)pageSize=maxsize
// limits payload size
let total= (µœ.data.length)
@garrettmac
garrettmac / React-Native-Swift-Module-Starter.md
Last active August 7, 2017 00:22
React-Native-Swift-Module-Starter.md
// RNSocialKitBridge.m
#import <React/RCTBridgeModule.h>

@interface RCT_EXTERN_MODULE(RNSocialKit, NSObject)

RCT_EXTERN_METHOD(addEvent:(NSString *)name location:(NSString *)location date:(nonnull NSNumber *)date)

@end
@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.