Skip to content

Instantly share code, notes, and snippets.

@rickalee
rickalee / youtube_embed_no_cookie.php
Created March 27, 2018 02:55
Youtube No Cookie Domain
@rproenca
rproenca / Clipboard.js
Last active May 28, 2024 08:57
Copy text to clipboard using Javascript. It works on Safari (iOS) and other browsers.
window.Clipboard = (function(window, document, navigator) {
var textArea,
copy;
function isOS() {
return navigator.userAgent.match(/ipad|iphone/i);
}
function createTextArea(text) {
textArea = document.createElement('textArea');
@nikolowry
nikolowry / ._readme
Last active December 26, 2018 06:24
Customize Keystone
This GIST illustrates a hack to allow for configurable backend-url and admin styles in Keystone.js
New deps introduced:
- node-dir
- shelljs
New directory structure after running "yo keystone":
.
|____admin
| |____assets