This script allows you to tell when an element becomes visible in the browser window. You can use this to apply styling/animations to elements.
Add this to your javascript. Make sure jQuery is called before this script.
- jQuery
| 'use strict'; | |
| // Add ECMA262-5 method binding if not supported natively | |
| // | |
| if (!('bind' in Function.prototype)) { | |
| Function.prototype.bind= function(owner) { | |
| var that= this; | |
| if (arguments.length<=1) { | |
| return function() { | |
| return that.apply(owner, arguments); |
| <?php | |
| /* | |
| Plugin Name: WooCommerce Attribute Links | |
| Description: Display product attribute archive links on product page, right below the add to cart button. | |
| Version: 1.0 | |
| Author: Coen Jacobs | |
| Author URI: http://coenjacobs.me | |
| */ |
| [[NSOperationQueue mainQueue] addOperationWithBlock:^{ | |
| [self presentViewController:activityVC animated:YES completion:^{ | |
| }]; | |
| }]; |
| // | |
| // WPTextAttachment.h | |
| // ReadArticle | |
| // | |
| // Created by Moore, Stuart on 12/27/13. | |
| // Copyright (c) 2013 The Washington Post. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> |
| function debounce(callback, wait, immediate = false) { | |
| let timeout = null | |
| return function() { | |
| const callNow = immediate && !timeout | |
| const next = () => callback.apply(this, arguments) | |
| clearTimeout(timeout) | |
| timeout = setTimeout(next, wait) |
Follow the instructions to checkout a full Swift build for Linux:
git clone https://github.com/apple/swift.git
cd swift
./utils/update-checkout --clone
Update the libdispatch component to use the 'experimental/foundation' branch:
cd swift-corelibs-libdispatch