Skip to content

Instantly share code, notes, and snippets.

// 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'){
@jolij
jolij / ddg_magic.py
Created March 27, 2016 00:14 — forked from kikocorreoso/ddg_magic.py
Duckduckgo magic for he IPython notebook
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)
@jolij
jolij / paste-as-plain-text.ahk
Created November 1, 2015 06:20
AutoHotKey: Paste clipboard contents as plain text
; 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
@jolij
jolij / tufteize-codepen.less
Last active August 29, 2015 14:25 — forked from 32bitkid/tufteize-codepen.less
Tufte style link/citations/asides for codepen.io blog posts.
.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
*/
@jolij
jolij / oAutoPagerize.Settings.user.js
Last active August 3, 2019 10:20
* [_]() ≡ []() #[] oAutoPagerize with my modifications (instructables.com w/a, advanced debugging and styling etc)
// ==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);
@jolij
jolij / addicted to google-code-prettify.README.md
Last active August 29, 2015 14:09 — forked from noromanba/addicted-to-google-code-prettify.user.js
auto syntax highlighting by google-code-prettify with Pager Extension for UserScript