Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
| <!doctype> | |
| <html> | |
| <head> | |
| <title>Notch test</title> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"> | |
| <style> | |
| * {margin: 0;padding: 0;} |
| javascript:(function () { | |
| var selection = window.getSelection().toString(); | |
| var anchor = selection ? selection : document.title; | |
| void(prompt('', '[' + anchor + '](' + location.href + ')')); | |
| })(); |
| [ | |
| { | |
| "name": "Google", | |
| "url": "http:\/\/www.google.com" | |
| }, | |
| { | |
| "name": "Bing", | |
| "url": "http:\/\/www.bing.com" | |
| }, | |
| { |
| /** | |
| * Changes XML to JSON | |
| * Modified version from here: http://davidwalsh.name/convert-xml-json | |
| * @param {string} xml XML DOM tree | |
| */ | |
| function xmlToJson(xml) { | |
| // Create the return object | |
| var obj = {}; | |
| if (xml.nodeType == 1) { |
| // Changes XML to JSON | |
| // Modified version from here: http://davidwalsh.name/convert-xml-json | |
| xmlToJson(xml) { | |
| // Create the return object | |
| let obj = {}; | |
| if (xml.nodeType === 1) { // element | |
| // do attributes | |
| if (xml.attributes.length > 0) { | |
| obj['@attributes'] = {}; |
| javascript: void (function (main) { | |
| var script = document.createElement('script'); | |
| script.onload = main; | |
| script.src = 'https://davidshimjs.github.io/qrcodejs/qrcode.min.js'; | |
| document.head.appendChild(script).parentNode.removeChild(script); | |
| })(function () { | |
| var size = 400; | |
| var qr = new QRCode(document.body, { | |
| text: location.href, | |
| width: size, |
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
| Seven different types of CSS attribute selectors | |
| // This attribute exists on the element | |
| [value] | |
| // This attribute has a specific value of cool | |
| [value='cool'] | |
| // This attribute value contains the word cool somewhere in it | |
| [value*='cool'] |
| /* | |
| Copy this into the console of any web page that is interactive and doesn't | |
| do hard reloads. You will hear your DOM changes as different pitches of | |
| audio. | |
| I have found this interesting for debugging, but also fun to hear web pages | |
| render like UIs do in movies. | |
| */ | |
| const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
| const audioCtx = new window.AudioContext(); | |
| const oscillator = audioCtx.createOscillator(); | |
| oscillator.connect(audioCtx.destination); | |
| oscillator.type = "sine"; | |
| let numItems = 0 | |
| oscillator.frequency.setValueAtTime( | |
| 1, | |
| audioCtx.currentTime |