Skip to content

Instantly share code, notes, and snippets.

$.ajax({     type: "GET",     dataType: 'html',     contentType: 'application/x-www-form-urlencoded',     url: '/url',     success: function (data) {         //have to replace script or else jQuery will remove them         var parsedHTML = data.replace(/script/gi, 'rickscript');          $(parsedHTML).find('rickscript').each(function (index, domEle) {             if (!$(this).attr('src')) {                 eval($(this).text()); //feeling lucky execute it             }         });     } });
@tom2288
tom2288 / 0_reuse_code.js
Created November 7, 2013 17:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@tom2288
tom2288 / LICENSE.txt
Created November 4, 2011 16:57 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE