Skip to content

Instantly share code, notes, and snippets.

View stanwilsonjr's full-sized avatar
🐢
Slow and Steady

Stan Wilson Jr stanwilsonjr

🐢
Slow and Steady
View GitHub Profile

Keybase proof

I hereby claim:

  • I am stanwilsonjr on github.
  • I am stanwilsonjr (https://keybase.io/stanwilsonjr) on keybase.
  • I have a public key ASDFxjqtc0q91P_lpld24euZEITT_3YmAFgbhY4Cx5QQhAo

To claim this, I am signing this object:

@stanwilsonjr
stanwilsonjr / base.css
Last active December 16, 2015 19:10
Slideshow JS
body{
}
@stanwilsonjr
stanwilsonjr / gist:4684779
Last active December 12, 2015 00:38
iframed Modernizr test
// This will add a class to the html tag if it is iframed
// https://github.com/Modernizr/Modernizr/commit/d48a2bf1b18b891c5647dcfca9cb2713688ccec2
<script type="text/javascript">
Modernizr.addTest('framed', function(){
return window.location != top.location;
});
</script>
@stanwilsonjr
stanwilsonjr / gist:4660233
Created January 28, 2013 23:24
buzztown parials
---------- returned partial ----------
< div class='list'>
<ul>
<li>sdfsdf</li>
</ul>
</div>
<div class="pagintation">
...
var animalObject = { elephant : "Elephant" , lion : "Lion" , tiger : "Tiger",giraffe :"Giraffe" };
var animalArray = [ "Giraffe", "Lion" ,"Elephant" , "Tiger" ];
/* 1: Return Elephant from animalArray in an alert */
/* 2: Return Elephant from animalObject in an alert */
@stanwilsonjr
stanwilsonjr / gist:1031978
Created June 17, 2011 18:28
Name spacing Pattern
var objectName = (function(o,$){
var privateVar = "value",
privateObject = { key: "value" };
o.methodOne = function(){
...
};
o.methodTwo = function(){
...
@stanwilsonjr
stanwilsonjr / Javascript Curry Selector Function
Created February 8, 2011 22:06
Curry function that creates a selector function that can be used on the DOM
function get(container,selector){
return function(element){
return container[selector](element);
}
};
//used
var getById = get(document,"getElementById"), // creates get by id function equivalent to document.getElementById()