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.
var container; | |
var camera, scene, renderer; | |
var mouseX = 0, mouseY = 0; | |
var windowHalfX = window.innerWidth / 2; | |
var windowHalfY = window.innerHeight / 2; | |
init(); | |
animate(); |
<?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: | |
* |
<!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> |
Connect: | |
telnet 192.168.1.XXX | |
Volume: | |
VD = VOLUME DOWN | |
MZ = MUTE ON/OFF | |
VU = VOLUME UP | |
?V = QUERY VOLUME |
main { | |
display: block; | |
width: 1000px; | |
height: 50px; | |
margin: 0 auto; | |
background-color: red; | |
} | |
@media (max-width: 980px) { | |
main { |
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.
/** | |
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 ); | |
}; | |
#!/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 {} \; |
<?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) : ''); |