Skip to content

Instantly share code, notes, and snippets.

@garrettmac
garrettmac / pulse.css
Last active May 24, 2017 21:12
pulse.css
.pulse {display: block;box-shadow: 0 0 0 rgba(204,169,44, 0.4);animation: pulse 2s infinite;}
.pulse:hover {animation: none;}
@-webkit-keyframes pulse {
0% {
-webkit-box-shadow: 0 0 0 0 rgba(204,169,44, 0.4);
}
70% {
-webkit-box-shadow: 0 0 0 10px rgba(204,169,44, 0);
@garrettmac
garrettmac / 2016-election-results.md
Last active June 15, 2017 14:33
2016 Election Results - Blue States Trump Won

Election Results

Trump Won 3 Blue States

He gave speeches in these three Blue states that Red candidates don't ever even bother with. Resulting in his win.

Michigan Pennsylvania Wisconsin
Blue State Since 1984 1988 1934
Years Blue 32 years 28 years 36 years
@garrettmac
garrettmac / index.js
Last active June 18, 2017 23:14
RN ListView - hide first and last in list
state={
endsOfArray:{first:0,last:4,},
numberOfVisableItems:4,
array:[{"id":0,"opacity":1,"name":"Jobe Holly"},{"id":1,"opacity":1,"name":"Bernie Sanders"},{"id":2,"opacity":1,"name":"Al Frankin"},{"id":3,"opacity":1,"name":"Elizabeth Warren"},{"id":4,"opacity":1,"name":"Cory Booker"},{"id":5,"opacity":1,"name":"Sanders"},{"id":6,"opacity":1,"name":"Al"},{"id":7,"opacity":1,"name":"Elizabeth"},{"id":8,"opacity":1,"name":"Booker"}],
}
_onChangeVisibleRows(visibleRows, changedRows) {
let visableItems=_.map(visibleRows.s1, function(active, id) {return { id: id, active: active };})
// console.warn(" visableItems.length: ",visableItems.length);
@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 / notes.md
Created July 2, 2017 02:10
Nick Jacques

chsh -s $(which zsh)

@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 / Readme.md
Last active July 4, 2017 18:03
The basics on how to build a Chrome Extension.

s

@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);