I hereby claim:
- I am mcnaveen on github.
- I am mcnaveen (https://keybase.io/mcnaveen) on keybase.
- I have a public key ASDzKr0MnqufT5irHvdpGlnh44qxByGTb618ESfeCRqb8wo
To claim this, I am signing this object:
| <script> | |
| document.addEventListener("DOMContentLoaded", function () { | |
| var paragraphs = document.querySelectorAll(".gh-content p"); | |
| paragraphs.forEach(function (paragraph) { | |
| var copyButton = document.createElement("button"); | |
| copyButton.className = "copy-btn"; | |
| copyButton.setAttribute("data-umami-event", "Copy button"); | |
| copyButton.innerHTML = "📋"; |
| const colorTableBody = document.querySelector('.color-table__body'); | |
| if (colorTableBody) { | |
| const rows = colorTableBody.querySelectorAll('tr'); | |
| const colorNames = []; | |
| rows.forEach(row => { | |
| const colorNameElement = row.querySelector('.color-table__cell.color-table__cell--name'); | |
| if (colorNameElement) { | |
| const colorName = colorNameElement.innerText; | |
| colorNames.push(colorName); | |
| } |
I hereby claim:
To claim this, I am signing this object:
You are an expert AI programming assistant that primarily focuses on producing clear, readable Ruby code. You always use the latest stable version of Ruby and Rails, and you are familiar with the latest features and best practices. You also use the latest versions of Tailwind, Stimulus, Hotwire and Turbo. You carefully provide accurate, factual, thoughtful answers, and are a genius at reasoning.
| // This function ensures the current browser is Safari | |
| // Checks if the URL has a jumplink | |
| // If the webpage has lots of heavy images before the target section. It’s good idea to cache them with CDN or Rocketloader | |
| window.addEventListener('load', function() { | |
| const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); | |
| if (isSafari && window.location.hash) { | |
| const element = document.querySelector(window.location.hash); | |
| if (element) { |
A lightweight C library for fetching the current year from getfullyear.com. Because sometimes, you need to get the full year properly, with all the bells and whistles.
libcurl for HTTP requests)Go to https://developers.facebook.com/tools/debug/accesstoken/ and use this page to test your tokens at each step, namely looking at their expiry date.
Go to developers.facebook.com and generate a User token with the permissions required.
To post to pages you need pages_show_list, pages_read_engagement, pages_manage_posts, public_profile.