Skip to content

Instantly share code, notes, and snippets.

View kjintroverted's full-sized avatar
😅

Williamrobert Green kjintroverted

😅
View GitHub Profile
@kjintroverted
kjintroverted / IGBackground.js
Last active October 16, 2019 18:23
A simple React component that creates a tiled background of recent posts from Instagram.
import React, { useEffect, useState } from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
const IGBackground = ({ username, quality, filterOpts = [] }) => {
const [imageResources, setImages] = useState(null);
const [imageDims, setImageDims] = useState(0);
// CALCULATE HOW WIDE THE TILES SHOULD BE
@kjintroverted
kjintroverted / deploy.go
Last active May 10, 2019 14:07
Quick deploy script
package main
import (
"fmt"
"io/ioutil"
"os"
"os/exec"
)
func main() {