Skip to content

Instantly share code, notes, and snippets.

guest271314

Block or report user

Report or block guest271314

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View txt.js
/*! txt.js Copyright (C) 2014 guest271314 license http://opensource.org/licenses/BSD-2-Clause
* reference : http://stackoverflow.com/questions/24587514/how-to-use-a-text-files-contents-in-html-as-text
* usage 1 : `p[0].innerText = _$.txt.p0;` ,
* usage 2 : `_$.txt.add(1, "p1");` ,
* usage 3 : `for (var i = 2; i < p.length; i++) { _$.txt.add(i, "p" + i);};` ,
* usage 4 : `var elem = document.createElement("p"); elem.id = p.length; document.body.appendChild(elem);
* usage 4, cont. : `_$.txt.add(5, "text\n"+ txt.p4);`
* jsfiddle : http://jsfiddle.net/guest271314/xCFP5/ , http://jsfiddle.net/guest271314/xF3A8/
*/
(function(w, el) {
View d.js
(function() { window.txtFile = {"data1":"Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Nemo enim ipsam voluptatem, quia voluptas sit, aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum, quia dolor sit amet consectetur adipisci[ng] velit, sed quia non numquam [do] eius modi tempora inci[di]dunt, ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur?\n At vero eos et accusamus et iusto odio dignissimos ducimus, qui blanditiis praesentium volupt
View cycle.js
/*! cycle.js Copyright (c) 2014 guest271314 http://opensource.org/licenses/BSD-2-Clause
`html`
<div id="cycle">
<img src="" alt="" />
<img src="" alt="" />
<img src="" alt="" />
<img src="" alt="" />
</div>
View content.json
callback({"result":"<p>something that I need to add</p>"})
View file.csv
Year Make Model Description Price
1997 Ford E350 ac, abs, moon 3000.00
1999 Chevy Venture "Extended Edition" 4900.00
1999 Chevy Venture "Extended Edition, Very Large" 5000.00
1996 Jeep Grand Cherokee MUST SELL! air, moon roof, loaded 4799.00
View jquery.simplesidebar-v2014-09-21.js
//Simple Sidebar v1.0.3 by DcDeiv https://github.com/dcdeiv
// GPLv2 http://www.gnu.org/licenses/gpl-2.0-standalone.html
(function ($) {
$.fn.simpleSidebar = function (options) {
//declaring all global variables
var sbw, align, callbackA, callbackB,
//allowing user customisation
defaults = {
settings: {
opener: undefined,
View js
(function(_self) {
_self.gist = 1;
return _self.gist
}(window))
View get.txt
"%3Cimg%20src%3D%22empty.gif%22%20onerror%3D%22alert('get')%3Bthis.parentNode.removeChild(this)%3B%22%20%2F%3E"
You can’t perform that action at this time.