- Consent (opt-in)
- Must be told (notified) of what they are opting into.
- Needs to affirmatively opt-in with an unchecked box. (only opts in for what they were notified they are opting into, not everything you want to send.)
- Consent must be granular, covering the various ways you use the users data (e.g. email, calls).
- Must log auditable evidence of what the user consented to: the notice and when they consented.
- Performance of a contract (customer you need to send bills to)
- Legitimate interest (customer you want to send products related to what they have)
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
<?php | |
/* pagination($limit, $page, $total) | |
Designed for clean urls with a /slug/page/2 format | |
*/ | |
function pagination($current_url, $limit = 10, $page = 1, $total = 100) { | |
if($total > $limit && $page !== 'all') { | |
// pagination | |
$prevpage = ($page - 1 > 0 && $page > 2 ? '/page/'. ($page - 1) : ''); | |
$prev = preg_replace('/\/page\/[0-9]*/', $prevpage, $current_url); | |
$nextpage = ($page * $limit < $total ? '/page/'. ($page + 1) : ''); |
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
#!/bin/sh | |
find . -name '*.jpg' -execdir mogrify -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace RGB -format jpg {} \; | |
find . -name '*.png' -execdir mogrify -strip {} \; |
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
/** | |
Example Ajax Call | |
**/ | |
var ExampleClass = function() { | |
var ec = this; // for access inside the ajax response function. | |
ec.init = function() { | |
ec.requestJSON( 'http://jsfiddle.net/echo/jsonp/?banana=delicious', ec.processData ); | |
}; | |
Download Arch Linux ISO https://www.archlinux.org/download/
From Windows use rufus https://rufus.akeo.ie/
From Linux use dd where sdx is your USB drive. Run fdisk -l
to find your usb stick.
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
main { | |
display: block; | |
width: 1000px; | |
height: 50px; | |
margin: 0 auto; | |
background-color: red; | |
} | |
@media (max-width: 980px) { | |
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
Connect: | |
telnet 192.168.1.XXX | |
Volume: | |
VD = VOLUME DOWN | |
MZ = MUTE ON/OFF | |
VU = VOLUME UP | |
?V = QUERY VOLUME |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<title>Tab Title</title> |
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
<?php | |
/* | |
* Resize images dynamically using wp built in functions. | |
* Update: Use WP_Image_Editor class instead of deprecated image_resize. | |
* Updated by Joel Lisenby (original function by Victor Teixeira) | |
* | |
* php 5.2+ | |
* | |
* Example use: | |
* |
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 container; | |
var camera, scene, renderer; | |
var mouseX = 0, mouseY = 0; | |
var windowHalfX = window.innerWidth / 2; | |
var windowHalfY = window.innerHeight / 2; | |
init(); | |
animate(); |
NewerOlder