Skip to content

Instantly share code, notes, and snippets.

<!-- Android -->
<platform name="android">
<!-- Icons -->
<icon density="ldpi" src="res/icons/android/48.png"/>
<icon density="mdpi" src="res/icons/android/72.png"/>
<icon density="hdpi" src="res/icons/android/96.png"/>
<icon density="xhdpi" src="res/icons/android/144.png"/>
<!-- Splash -->
<splash density="land-ldpi" src="res/splash/android/drawable-land-ldpi-screen.png"/>
<splash density="land-mdpi" src="res/splash/android/drawable-land-mdpi-screen.png"/>
@dscamahorn
dscamahorn / meta-tags-favicon.html
Last active October 2, 2017 02:29
Favicon, touch/web clip, tile and pin configuration. Includes Chrome for Android address bar background color (theme-color).
<!--Favicon-->
<link rel="shortcut icon" type="image/ico" href="favicon.ico" />
<!--Tile-->
<meta name="application-name" content="System Name"/>
<meta name="msapplication-TileColor" content="#000"/>
<meta name="msapplication-square70x70logo" content="tile-tiny.png"/>
<meta name="msapplication-square150x150logo" content="tile-square.png"/>
<meta name="msapplication-wide310x150logo" content="tile-wide.png"/>
<meta name="msapplication-square310x310logo" content="tile-large.png"/>
<!--Pin-->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="cleartype" content="on">
@dscamahorn
dscamahorn / meta-tags-viewport-web-hybrid-app.html
Last active August 29, 2015 14:26
Viewport meta tags for web and hybrid apps
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
@dscamahorn
dscamahorn / meta-tags-viewport-website.html
Created July 30, 2015 15:44
Viewport meta tags for websites
<meta name="viewport" content="width=device-width, initial-scale=1">
@dscamahorn
dscamahorn / robots.txt
Last active August 29, 2015 14:26
Sample robots.txt file
#All Bots
User-agent: *
#Exceptions
Disallow: /folder/
Disallow: /file.xyz
#Ask
User-agent: Teoma
#Assets that do not have meta tags
Disallow: /folder/
Disallow: /file.xyz
@dscamahorn
dscamahorn / meta-tags-prevent-cached.html
Created July 31, 2015 15:09
Preventing a cached resource from being used (for frequently changed resources)
<meta http-equiv="expires" content="-1">
@dscamahorn
dscamahorn / meta-tags-prevent-store.html
Created July 31, 2015 15:10
Preventing the browser from storing a resource locally
<meta http-equiv="cache-control" content="no-store">
@dscamahorn
dscamahorn / httpd.conf
Created July 31, 2015 15:14
Configure REP directives via X-Robots-Tags. Apache with Headers Module - .htaccess file or httpd.conf
<IfModule mod_headers.c>
# REP directives for all files
<Files ~ ".*">
Header set X-Robots-Tag "noarchive, noodp"
</Files>
#REP directives for specific files
<Files ~ "\.(png|jpe?g|gif|mp4|ogv|webm|flv|fla|js|xml|json|txt|css)$">
Header set X-Robots-Tag "noindex"
</Files>
</IfModule>
@dscamahorn
dscamahorn / lists-unordered.scss
Created July 31, 2015 15:19
Use :before to style bullets for unordered lists.
ul {
margin-left: 30px;
margin-bottom: 30px;
margin-top: 10px;
color: #000;
list-style: none;
line-height: 22px;
ul {
margin-bottom: 0;
}