This file contains 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
license: gpl-3.0 |
This file contains 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
var styleSheets = Array.from(document.styleSheets); | |
var cssRules = styleSheets.filter(function(styleSheet){ | |
// cross domain stylesheets without a policy file will return false | |
return styleSheet.rules; | |
}).map(function(styleSheet){ | |
var rules = Array.from(styleSheet.rules); | |
return rules.filter(function(rule){ | |
// extract only the media query rules | |
return rule.type === CSSRule.MEDIA_RULE; | |
}) |
This file contains 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
const Card = (props) => | |
<div className="c-card"> | |
<img src="{props.img}" className="c-card__img" /> | |
<h2 className="c-card__title">{props.title}</h2> | |
<p className="c-card__desc">{props.desc}</p> | |
</div> |
This file contains 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
varying vec2 vUv; | |
uniform sampler2D tDiffuse; | |
uniform vec2 lightPosition; | |
uniform float exposure; | |
uniform float decay; | |
uniform float density; | |
uniform float weight; | |
uniform int samples; | |
const int MAX_SAMPLES = 100; | |
void main(){ |
This file contains 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
var scene, camera, renderer, composer, box, pointLight, | |
occlusionComposer, occlusionRenderTarget, occlusionBox, lightSphere, | |
angle = 0, | |
DEFAULT_LAYER = 0, | |
OCCLUSION_LAYER = 1; | |
// scene, camera, and renderer as normal for three.js | |
scene = new THREE.Scene(); |
This file contains 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
var foo = 100; | |
for(var i = 0; i < foo; i++){ | |
var ci = items[i]; | |
} |