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
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
| 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, |
| // 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'] = {}; |
| /** | |
| * 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) { |
| [ | |
| { | |
| "name": "Google", | |
| "url": "http:\/\/www.google.com" | |
| }, | |
| { | |
| "name": "Bing", | |
| "url": "http:\/\/www.bing.com" | |
| }, | |
| { |
| javascript:(function () { | |
| var selection = window.getSelection().toString(); | |
| var anchor = selection ? selection : document.title; | |
| void(prompt('', '[' + anchor + '](' + location.href + ')')); | |
| })(); |
| <!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;} |
#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6
Paragraph
| ;;; -*- tab-width: 2 -*- | |
| ;;; These four lines go at the beginning of almost every code file. 16-byte iNES header | |
| .inesprg 1 ; one bank of program code | |
| .ineschr 1 ; one bank of picture data | |
| .inesmap 0 ; we use mapper 0 | |
| .inesmir 1 ; Mirror setting always 1 | |
| ;;; BANKING |
| <html> | |
| <head> | |
| <!-- | |
| @tag hta:application | |
| @attribute ApplicationName Sets the name of the HTA. | |
| @attribute Border [Thick]|Thin|None | |
| @attribute BorderStyle [Normal]|Raised|Sunken|Complex|Static | |
| @attribute Caption [Yes]|No |