See imgur / linked pastebin and github mirror for 1-8 → 1-8 balancers. Creator: raynquist, github mirror linked in Balancers Illustrated: 1 through 8 balancers explained, imgur album linked in Balancer Book Update (Summer 2019)
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
| // Cut text down to required length | |
| function get_chirp_text( $text ) { | |
| return substr( $text, 0, 200 ); | |
| } | |
| // Parse hashtags from text | |
| function get_hashtags( $text ) { | |
| preg_match_all("/S*#((?:\[[^\]]+\]|\S+))/", $text, $matches); | |
| return $matches; | |
| } |
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
| // Gulp module imports | |
| import {src, dest, watch, parallel, series} from 'gulp'; | |
| import del from 'del'; | |
| import livereload from 'gulp-livereload'; | |
| import sass from 'gulp-sass'; | |
| import minifycss from 'gulp-minify-css'; | |
| import jade from 'gulp-jade'; | |
| import gulpif from 'gulp-if'; | |
| import babel from 'gulp-babel'; | |
| import yargs from 'yargs'; |
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
| <div class="parallax" data-ratio="<?php $s = getimagesize("parallax.jpg"); echo round($s[0]/$s[1],2); ?>" data-speed="0.5" > | |
| <span>test</span> | |
| <img class="i" src="parallax.jpg" alt="" /> | |
| </div> |
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
| { | |
| "env": { | |
| "browser": true, | |
| "node": true, | |
| "es6": true | |
| }, | |
| "plugins": ["react"], | |
| "ecmaFeatures": { |
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
| var ParallaxManager, ParallaxPart; | |
| ParallaxPart = (function() { | |
| function ParallaxPart(el) { | |
| this.el = el; | |
| this.speed = parseFloat(this.el.getAttribute('data-parallax-speed')); | |
| this.maxScroll = parseInt(this.el.getAttribute('data-max-scroll')); | |
| } | |
| ParallaxPart.prototype.update = function(scrollY) { |
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
| <?php | |
| /* | |
| Plugin Name: My Widget | |
| Plugin URI: http://mydomain.com | |
| Description: My first widget | |
| Author: Me | |
| Version: 1.0 | |
| Author URI: http://mydomain.com | |
| */ |
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
| /************************* | |
| *---JQUERY PARALLAX---- * | |
| ************************* | |
| * | |
| * Alexander Junger, 2014 | |
| * License: MIT | |
| * | |
| */ | |
| (function($) { |
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
| body { | |
| margin: 0; | |
| padding: 0; | |
| font-family: Helvetica, Arial, sans-serif; | |
| } | |
| #hero { | |
| position: relative; | |
| height: 750px; | |
| overflow: hidden; |
These rules are adopted from the AngularJS commit conventions.
NewerOlder