Skip to content

Instantly share code, notes, and snippets.

View rememberlenny's full-sized avatar

Leonard Bogdonoff rememberlenny

View GitHub Profile
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!--[if lt IE 7]><html class="lt-ie9 lt-ie8 lt-ie7" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><![endif]-->
<!--[if IE 7]><html class="lt-ie9 lt-ie8" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><![endif]-->
<!--[if IE 8]><html class="lt-ie9" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><![endif]-->
<!--[if gt IE 8]><!--><html xmlns="http://www.w3.org/1999/xhtml"><!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Acquinity Interactive Demo</title>
/**********************************************************
* Control Room
**********************************************************/
@base: #0f1b38;
Map { background-color:@base; }
.water-poly { polygon-fill:@base; }
@rememberlenny
rememberlenny / gist:5164200
Last active December 14, 2015 23:18
Main.js file from Require.js on Foundation 4 through Yeoman.
require.config({
paths: {
jquery: '../components/jquery/jquery'
},
shim: {
"foundation/foundation" : { deps: ["jquery"] },
"foundation/foundation.alerts": { deps: ["jquery"] },
"foundation/foundation.clearing": { deps: ["jquery"] },
"foundation/foundation.cookie": { deps: ["jquery"] },
"foundation/foundation.dropdown": { deps: ["jquery"] },
@rememberlenny
rememberlenny / gist:5173704
Created March 15, 2013 22:41
Activates Orbit Slider on Foundation, then pauses on load.
$('#case-sliders').foundation('orbit', { stack_on_small: false, animation_speed: 750, bullets: false, bullets: true, }, function (response) {
$('#case-sliders').find('.orbit-timer span').click();
})
@sans:"Droid Sans Book","Arial Regular","DejaVu Sans Book";
@sans_bold:"Droid Sans Bold","Arial Bold","DejaVu Sans Bold";
/**********************************************************
* Control Room
**********************************************************/
@base: #0f1b38;
Where did Shen Jiji get his idea for the pillow story?
Having heard the story written by Shen Jiji, there is a natural question that comes up: Where did Shen Jiji get the idea from his story and what significance does it have to the times? The editor of the copy we are given also introduces a number of questions such as where was the original story first documented, who was the author, and what impact did his life’s work have on the story. Shen Jiji wrote Zheng Zhong Ji, translated as, “The World Inside the Pillow” or “The Account Upon a Pillow” to share a common Buddhist idea that desires are nothing but a dream. It is important to recognize that Shen Jiji’s story resonates closely with other authors from before his time as well as personal experiences from his own life.
Time period
We can first look at the time period Shen JiJi was living in to understand the cultural conditions he found himself writing in. Shen Jiji’s exact birth and death dates are not known, but it is somewhat known that he lived in
@rememberlenny
rememberlenny / gist:5463685
Created April 25, 2013 22:16
xHR without jquery
function request(type, url, opts, callback) {
var xhr = new XMLHttpRequest(),
fd;
if (typeof opts === 'function') {
callback = opts;
opts = null;
}
xhr.open(type, url);
@rememberlenny
rememberlenny / gist:5463688
Created April 25, 2013 22:16
Store data without jquery
element.dataset.user = JSON.stringify(user);
element.dataset.score = score;
@rememberlenny
rememberlenny / gist:5463691
Created April 25, 2013 22:17
document class add
$('body').addClass('hasJS');
// or
document.body.className += ' hasJS';
We can do:
document.body.classList.add('hasJS');
Isn’t that pretty?