Within an <ion-scroll>, this directive creates sticky item headers that get bumped out of the way by the next item.
Demo: http://cl.ly/2u2X390s0H1a
Requirements:
- Needs UnderscoreJS for its
_.throttleutility. - Must be used within an
or
| Note: Some older devices such as the Galaxy S III did not get the Chromium based browser with | |
| the update to Android 4.2 or later. When Samsung later introduced the Galaxy S3 Neo it did get | |
| the new browser. | |
| Note: With the Android 4.3 release and version 1.5 of the Chromium browser, Samsung did not | |
| enable WebAudio API for the Note 3. All other devices did get the WebAudio API. | |
| Note: Samsung did not update the browser version with the upgrade from Android 4.3 to 4.4, | |
| but did add getUserMedia and WebRTC functionality. |
| var elements = document.querySelectorAll("div"), | |
| callback = (el) => { console.log(el); }; | |
| // Spread operator | |
| [...elements].forEach(callback); | |
| // Array.from() | |
| Array.from(elements).forEach(callback); | |
| // for...of statement |
Within an <ion-scroll>, this directive creates sticky item headers that get bumped out of the way by the next item.
Demo: http://cl.ly/2u2X390s0H1a
Requirements:
_.throttle utility.or| #!/bin/bash | |
| # Path to where you want to backup mysql databases. | |
| opath=/Users/username/Sites/Backups/mysql/ | |
| # Local mysql details. Make a username with only read access. Allow SELECT, LOCK TABLES. | |
| mysqlhost=127.0.0.1 | |
| username=read_only_user | |
| password=read_only_password |
| // | |
| // CommonMacros.h | |
| // Created by Tom Adriaenssen (@inferis) | |
| // Inspired by the awesome work by Piet Jaspers (@pjaspers) | |
| // | |
| /* | |
| * How to use this file: | |
| * 1. Find your .pch file | |
| * 2. Import this file |
Without wasting much time, Let us get started!
Follow these simple instructions:
Step 1: Login into your WHM panel and using easyapache enable Memcache
Step 2: SSH into your server and fire this command yum install memcached.x86_64 php-pecl-memcache.x86_64
| gifify() { | |
| if [[ -n "$1" ]]; then | |
| if [[ $2 == '--good' ]]; then | |
| ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
| time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
| rm out-static*.png | |
| else | |
| ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
| fi | |
| else |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| # Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg | |
| $ sudo chown -R `whoami` /usr/local/texlive | |
| $ tlmgr update --self | |
| $ tlmgr install ucs | |
| $ tlmgr install etoolbox | |
| # Install pandoc view homebrew |