Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});Go to the egghead website, i.e. Building a React.js App
run
$.each($('h4 a'), function(index, video){
console.log(video.href);
});| $svg-container-namespace: '.svg-container'; | |
| //Give 'em' 1:1 responsive container by default | |
| #{$svg-container-namespace} { | |
| display: inline-block; | |
| position: relative; | |
| height: 0; | |
| width: 100%; | |
| padding: 0; | |
| //Default for 1:1 aspect ratio |
| "use-strict" | |
| ### | |
| # Slider | |
| # | |
| # @example | |
| # ```haml | |
| # .slider__wrapper | |
| # .slider | |
| # .slider__slide.slider__slide--active |
| let didResize = false | |
| window.addEventListener(`resize`, () => { | |
| didResize = true | |
| }) | |
| setInterval(() => { | |
| if (didResize) { | |
| // Do stuff | |
| didResize = false |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
| # The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
| # | |
| # Current known FCC address ranges: | |
| # https://news.ycombinator.com/item?id=7716915 | |
| # | |
| # Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
| # | |
| # In your nginx.conf: | |
| location / { |
This document will briefly review a few of the more common ways of using stylus plugins for those who are not familiar. Throughout these examples, we will be using a non-existant stylus plugin called example. Please change example out for whatever plugin you are actually trying to use!
First example is for if you are building your own stylus pipeline in node. This is a pretty standard way to do things.
| def slides_exists_and_are_hashed_yaml | |
| return if slides.blank? | |
| slides_yml = YAML.load(slides) | |
| if Array(slides_yml).any? { |_, v| v.nil? } || slides_yml.instance_of?(String) | |
| errors.add(:slides, 'not a valid YAML file (did you include at least one key: value?)') | |
| end | |
| end |
gem stylus in your Gemfile.node_modulesnpm install your-libStylus.use('your-lib') if defined?(Stylus)app/assets folder