First we will remove node and yarn
brew uninstall yarn
brew uninstall node
brew uninstall node@8
require 'json' | |
require 'http' | |
class InstagramClient | |
attr_reader :posts, :followers | |
def initialize(instagram_handle) | |
@instagram_handle = instagram_handle | |
@url = "https://www.instagram.com/#{@instagram_handle}/?__a=1".freeze | |
@data = JSON.parse HTTP.get(@url).to_s |
/** | |
* Pass in an element and its CSS Custom Property that you want the value of. | |
* Optionally, you can determine what datatype you get back. | |
* | |
* @param {String} propKey | |
* @param {HTMLELement} element=document.documentElement | |
* @param {String} castAs='string' | |
* @returns {*} | |
*/ | |
const getCSSCustomProp = (propKey, element = document.documentElement, castAs = 'string') => { |