A Pen by Orry Baram on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ListenWithMe = (function() { | |
// Add your own config here | |
var LASTFM_API_KEY = ""; | |
var LASTFM_USERNAME = ""; | |
// Element to inject the widget into | |
var $playerWrapper = document.getElementById('spotify-player-wrapper'); | |
return { | |
init: init | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adds a delay to a hovered element | |
* @param {DOMElement} el | |
* @param {Object} opts | |
* opts = { | |
onHover: {Function}, | |
offHover: {Function}, | |
onDelay: {Integer}, | |
offDelay: {Integer}, | |
hoverTarget: {DOMElement} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# DirtyDaub's Theme - https://gist.github.com/orrybaram/8ce1eeefda56d72437153d98295f88a2 | |
# An Agnoster / Powerline-inspired theme for ZSH | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
# Make sure you have a recent version: the code points that Powerline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html ⚡ lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<script async src="https://cdn.ampproject.org/v0.js"></script> | |
<title>Amp Ads | Mic</title> | |
<link rel="canonical" href="http://example.ampproject.org/article-metadata.html" /> | |
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> | |
<meta name="amp-3p-iframe-src" content="https://localhost:9666/amp-remote"> | |
<script type="application/ld+json"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const numberToPixel = prop => { | |
if (!Number.isInteger(prop) || prop === 0) return prop; | |
return `${prop}px`; | |
} | |
const camelToDash = str => str | |
.replace(/(^[A-Z])/, ([first]) => first.toLowerCase()) | |
.replace(/([A-Z])/g, ([letter]) => `-${letter.toLowerCase()}`) | |
Step 1. Setup up a raiblock node using these instructions https://github.com/clemahieu/raiblocks/wiki/Docker-node
Step 2.
yarn
yarn build:client # then open up index.html and check logs
node . # to run in node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Navigation = styled.div`/* styles */`; | |
const Navigation = () => ( | |
<Navigation /> | |
); | |
// => JS interpreter: "I can't believe you've done this x_x" |