Skip to content

Instantly share code, notes, and snippets.

console.log("Usage Syntax: scanScope($scope.model, 'SCANFOR');");
function scanScope(whatToScan, scanValue, parentTree) {
var insertString = '';
for (var key in whatToScan) {
if (((whatToScan[key] != null) && (whatToScan[key].indexOf != undefined) && whatToScan[key].indexOf(scanValue) > -1) || key.indexOf(scanValue) >= 0) {
if (parentTree != null) {
insertString = parentTree + '.';
} else {
insertString = '';
}
@jalexanderfox
jalexanderfox / dabblet.css
Created February 5, 2014 19:15
rotated heading
/**
* rotated heading
*/
#testwrap { border:1px solid red; height:300px; position:relative; width:80% }
#testwrap:before { content:"test"; background:blue; color:orange; }
#testwrap:before {
transform: rotate(90deg);
-webkit-transform: rotate(90deg);