This is an attempt to make a clearable textbox ( a textbox with a clear button , normally comes for the input type="search". ) .
Forked from Shidhin's Pen HTML Textbox with a clear button in Pure CSS and without JavaScript.
| // check for jQuery, load 1.9.1 if not there | |
| // csv to json - other gist. | |
| // html to json - this gist | |
| // json to csv and download - https://gist.github.com/Sikwan/4326948 | |
| // json to table - ? - setup datatables php to js. filters and all? Booya. | |
| // combine all these into a single object? | |
| if(typeof jQuery !== 'function'){ |
| from IPython.display import IFrame | |
| def ddg(self, arg): | |
| phrase = arg.replace(' ', '+') | |
| url = "https://duckduckgo.com/?&q={0}".format(phrase) | |
| return IFrame(url, 600, 400) | |
| ip = get_ipython() | |
| ip.define_magic('ddg', ddg) |
| ; This is part of my AutoHotkey [1] script that pastes the contents of the | |
| ; clipboard as plain text when I press Ctrl+Alt+Shift+V. | |
| ; [1]: http://www.autohotkey.com/ | |
| ; Ctrl+Alt+Shift+V | |
| ^!+v:: | |
| Clip0 = %ClipBoardAll% | |
| ClipBoard = %ClipBoard% ; Convert to plain text |
| .tufteize(@gutter, @gap) { | |
| > p { margin-right: @gutter + @gap; } | |
| .newthought { font-variant: small-caps; } | |
| p>strong, | |
| p>a:not([href^='#'])::before, | |
| p>a[href^='#'] + * { | |
| width: @gutter; | |
| margin-right: -(@gutter + @gap); |
| { | |
| "autodetect_xhtml": false, | |
| "snippets": { | |
| "html": { | |
| "snippets": { | |
| "meta:viewport": "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, minimal-ui\">", | |
| "meta:ua": "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">", | |
| "js:html5":"<!--[if lt IE 9]>\n<script src=\"\/\/html5shiv.googlecode.com/svn/trunk/html5.js\"></script>\n<![endif]-->", | |
| "js:empty": "<script>\n(function(){\n\t'use strict';\n\t\/\/\n\t\/\/ TODO\n\t\/\/\n})();\n</script>", | |
| "js:webfont2": "<script>\nWebFont.load({\n\tgoogle: {\n\t\tfamilies: ['Droid Sans:n4:i4:n7', 'Droid Serif']\n\t}\n});\n</script>", |
| /** | |
| * Include Roboto Condensed font in your project | |
| * | |
| * Download Roboto Condensed ttf files from Google Fonts and place it in the same directory of this CSS file | |
| * You can then use this font in your project by setting | |
| * font-face: "Roboto Condensed", Helvetica, Arial, sans-serif; | |
| * | |
| * @author Mattia Migliorini (deshack) | |
| * @license MIT | |
| */ |
| // ==UserScript== | |
| // @name 0AutoPagerize Settings | |
| // @namespace http://ss-o.net/ | |
| // @description oAutoPagerize Settings | |
| // @include http* | |
| // ==/UserScript== | |
| (function(){ | |
| if (document) { | |
| //If the settings are loaded after the main script, shoudn't be the case. |
| $.fn.OneClickSelect = function(){ | |
| return $(this).on('click',function(){ | |
| var range, selection; | |
| if (window.getSelection) { | |
| selection = window.getSelection(); | |
| range = document.createRange(); | |
| range.selectNodeContents(this); | |
| selection.removeAllRanges(); | |
| selection.addRange(range); |
auto syntax highlighting by google-code-prettify with Pager Extension for UserScript
https://gist.github.com/noromanba/2897358/raw/addicted-to-google-code-prettify.user.js
When you visit https://raw.github.com/ and or more servers, syntax highlight comply with color schemes