Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Your Website</title> | |
| <style> | |
| body { | |
| overflow: hidden; |
| // | |
| // CanvasCamera.js | |
| // PhoneGap iOS Cordova Plugin to capture Camera streaming into a HTML5 Canvas or an IMG tag. | |
| // | |
| // Created by Diego Araos <d@wehack.it> on 12/29/12. | |
| // | |
| // MIT License | |
| cordova.define("cordova/plugin/CanvasCamera", function(require, exports, module) { | |
| var exec = require('cordova/exec'); |
| // made for bitlanders.com | |
| .factory('middlaw', ['$rootScope', function($rootScope) { | |
| var scopePrototype = Object.getPrototypeOf($rootScope); | |
| var cache = []; | |
| var colors = { | |
| '$apply': '#8e44ad', | |
| '$digest': '#3498db', | |
| '$timeout': '#f1c40f' |
| .filter('nl2br', function () { | |
| return function (text) { | |
| return (text + '').replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + '<br>' + '$2'); | |
| } | |
| }) |
| // <img ng-repeat="n in q.r.gems | range" | |
| .filter('range', function() { | |
| return function(total) { | |
| var to = parseInt(total); | |
| var iterations = []; | |
| for(var i = 0; i < to; i++) | |
| iterations.push(i); | |
| return iterations; |
| testApp.directive('ngGeolocation', function() { | |
| return { | |
| restrict: 'A', | |
| scope: { | |
| loc: '=' | |
| }, | |
| link: function (scope, element, attrs) { | |
| if (navigator.geolocation) { | |
| navigator.geolocation.getCurrentPosition(function (position) { | |
| var lat = position.coords.latitude, |
| import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation') |
| import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) |