[ Launch: simpleD3BarChart ] 8959177 by grej
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A "deeper" indented text effect with the :before and :after pseudo-elements. | |
*/ | |
html, body { | |
height: 100%; | |
} | |
body { | |
margin: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Responsive Title Layout | |
* The first commented line is your dabblet’s title | |
*/ | |
body{ | |
background-color:lightgrey; | |
} | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.box { | |
position: relative; /* Allows children to be absolutely positioned within box */ | |
border: 1px solid red; | |
margin: 2px; | |
display: inline-block; | |
min-height:30px; | |
} | |
img.image { | |
position: absolute; | |
top: 10px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* my-dablet */ | |
.box { | |
position: relative; /* Allows children to be absolutely positioned within box */ | |
border: 2px solid red; | |
margin: 2px; | |
margin-top:10px; | |
margin-left:10px; | |
display: inline-block; | |
position: absolute; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* multiple-resource-dablet */ | |
.section{ | |
margin-left:100px; | |
margin-top:20px; | |
border:2px dotted blue; | |
max-width: 20%; | |
} | |
.box { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# takes either a vector or one-dimensional matrix as inputs a&b | |
xprod <- function(a,b) { | |
if(length(a)==3 && length(b)==3){ | |
getDet <- function(w,x,y,z) { | |
return(det(matrix(c(w,x,y,z),ncol=2))) | |
} | |
return(c(getDet(a[2],b[2],a[3],b[3]),-getDet(a[1],b[1],a[3],b[3]),getDet(a[1],b[1],a[2],b[2]))) | |
}else{ | |
return(FALSE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------- | |
# Name: Rank Order Centroid | |
# Purpose: Generate rank order centroid weights | |
# | |
# Author: Greg Jennings | |
# | |
# Created: 5 Sep 2012 | |
# Copyright: (c) Greg 2012 | |
# Licence: MIT | |
#------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (document, undefined){ | |
promptLoc = prompt('library location', "http://www.somewhere.org/lib.js"); | |
var script = document.createElement("script"); | |
// any script | |
script.src = promptLoc; | |
document.body.appendChild(script); | |
}(document)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.box { | |
background-color: blue; | |
padding: 10px; | |
max-width: 100px; | |
} | |
</style> | |
<div class="box"> </div> |
OlderNewer