Skip to content

Instantly share code, notes, and snippets.

View petrogad's full-sized avatar
🍋
Anything is possible

Pete petrogad

🍋
Anything is possible
View GitHub Profile
### Keybase proof
I hereby claim:
* I am petrogad on github.
* I am petrogad (https://keybase.io/petrogad) on keybase.
* I have a public key ASBWZ-koxwQ-je0yM-uIL78V3RVg_Hod0fxnKpyIIE2D-Ao
To claim this, I am signing this object:
@petrogad
petrogad / config.yml
Created September 21, 2018 14:15
CircleCI Configuration with AWS S3 Deploy and Cloudfront Invalidation.
# Quick CircleCI configuration that builds your JS, runs tests, and prepares to deploy to a bucket.
# With your manual approval, you can then deploy to your S3 bucket AND invalidate your cloudfront cache.
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:latest
working_directory: ~/myDirectory
@petrogad
petrogad / page.js
Last active January 5, 2018 22:31
Dynamic react-navigation Navigators.
import React, {Component} from 'react';
import {TabNavigator} from 'react-navigation';
import One from '../tabs/one';
import Two from '../tabs/two';
const pages = {
TheOne: {
screen: One,
path: '/one'
@petrogad
petrogad / gist:81ce1c8a457206188e7b
Last active August 29, 2015 14:11
Javascript Birthday Wishes
var _0x221a=["","\x48","\x70\x75\x73\x68","\x61","\x70","\x79","\x20","\x42","\x69","\x72","\x74","\x68","\x64","\x23","\x6C\x65\x6E\x67\x74\x68","\x6C\x6F\x67","\x48\x6F\x74\x4C\x6F\x75"];function birthday(_0x6207x2){var _0x6207x3=[],_0x6207x4=_0x221a[0];_0x6207x3[_0x221a[2]](_0x221a[1]);_0x6207x3[_0x221a[2]](_0x221a[3]);_0x6207x3[_0x221a[2]](_0x221a[4]);_0x6207x3[_0x221a[2]](_0x221a[4]);_0x6207x3[_0x221a[2]](_0x221a[5]);_0x6207x3[_0x221a[2]](_0x221a[6]);_0x6207x3[_0x221a[2]](_0x221a[7]);_0x6207x3[_0x221a[2]](_0x221a[8]);_0x6207x3[_0x221a[2]](_0x221a[9]);_0x6207x3[_0x221a[2]](_0x221a[10]);_0x6207x3[_0x221a[2]](_0x221a[11]);_0x6207x3[_0x221a[2]](_0x221a[12]);_0x6207x3[_0x221a[2]](_0x221a[3]);_0x6207x3[_0x221a[2]](_0x221a[5]);_0x6207x3[_0x221a[2]](_0x221a[6]);_0x6207x3[_0x221a[2]](_0x221a[13]);for(var _0x6207x5=0;_0x6207x5<_0x6207x2[_0x221a[14]];_0x6207x5++){_0x6207x3[_0x221a[2]](_0x6207x2[_0x6207x5]);} ;for(var _0x6207x5=0;_0x6207x5<_0x6207x3[_0x221a[14]];_0x6207x5++){_0x6207x4+=_0x6207x3[_0x6207x5];} ;consol
@petrogad
petrogad / SimplePHPPaypalClass.php
Last active December 20, 2015 19:39
Just a quick class for interacting with the Paypal API
<?php
/*
The MIT License (MIT)
Copyright (c) 2013
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell