Skip to content

Instantly share code, notes, and snippets.

View josephnle's full-sized avatar

Joseph josephnle

View GitHub Profile
@josephnle
josephnle / README.md
Last active March 25, 2021 17:59
Figma user macro for Confluence

Figma user macro for Confluence

This user macro is a simple way to embed Figma files using Confluence macros.

The macro accepts 3 parameters:

  • Url: The URL of the Figma file (not embed link!). This value is required and is validated using RegEx. If it is invalid, an error will render.
  • Height: Height of the embed window. Defaults to 450px
  • Width: Width of the embed window. Defaults to 100%.
@josephnle
josephnle / zapierCryptoquote.js
Last active December 16, 2017 07:18
Code to send Pushbullet message with updates on cryptocurrency prices
const currencies = ['BTC', 'ETH', 'LTC']; // Coinbase currencies
Promise.all(currencies.map(coin => {
return fetch(`https://api.coinbase.com/v2/prices/${coin}-USD/spot`)
.then(res => res.json())
.then(data => data.data.amount)
.then(amount => `${coin}: $${amount}`)
}))
.then(amounts => {
return fetch('https://api.kraken.com/0/public/Ticker?pair=XRPUSD')
@josephnle
josephnle / keybase.md
Created February 12, 2017 23:23
keybase.md

Keybase proof

I hereby claim:

  • I am josephnle on github.
  • I am josephle (https://keybase.io/josephle) on keybase.
  • I have a public key ASC455lamwFK3BU0frK8KHsY6CrgfEtBrOoD__EroNaZWAo

To claim this, I am signing this object:

@josephnle
josephnle / SassMeister-input-HTML.html
Created August 18, 2015 22:33
Generated by SassMeister.com.
<div class="container outer">
<div class="container inner">
<ul class="container nav-bar">
<li class="item"><a href="#">Item 1</a></li>
<li class="item">Item 2</li>
<li class="item">Item 3</li>
<li class="item">Item 4</li>
</ul>
</div>
<div class="container inner">