background preloader

Assets/stuff

Facebook Twitter

Map Visualization in R · Data Science and R. 10 Jun 2015 Here I tried to produce some map visualization in R.

Map Visualization in R · Data Science and R

First using data from GADM database of Global Administrative Areas.Second using the package RWorldMap,Third using the package ggmap that allows visualizations of spatial data on maps retrieved from Google Maps, OpenStreetMap, etc., andFourth using the package RgoogleMaps allows you to plot data points on any kind of map you can imagine (terrain, satellite, hybrid). Getting the spatial country data library(geosphere) # use: gcIntermediate library(RgoogleMaps); library(ggmap); library(rworldmap)library(sp); library(maptools); require(RColorBrewer) # PRT_adm2.RData download from # load("data/PRT_adm2.RData") # Creates and stores in memory an object called ´gadm´ # or: # con <- url(" # print(load(con)) # close(con) # or: # library(raster) # port1 <- getData('GADM', country='PRT', level=1) load("data/PRT_adm1.RData")port1 <- get("gadm") Plot the map.

Camar Vintage Font: download free typeface. Text to speech in the browser with the Web Speech API. The Web Speech API has two functions, speech synthesis, otherwise known as text to speech, and speech recognition.

Text to speech in the browser with the Web Speech API

With the SpeechSynthesis API we can command the browser to read out any text in a number of different voices. Quick tip: using scrollIntoView() to show added elements to a container with overflow. Often we want to have an interface where we have a container with overflow: scroll with a header and a footer.

Quick tip: using scrollIntoView() to show added elements to a container with overflow

One problem with that is that when we add new elements to the container, they do get added to the end of it but the element won’t show up before the user scrolls down. In the past we hacked around this issue by comparing scrollHeight and clientHeight and setting the scrollTop property of the element. This is error prone and seems overly complicated. Enter scrollIntoView. Using this API ensuring that a new element shows up to the user is as simple as calling it on the element itself. Say we have the following list of characters and a button to add more of them. Time to First Byte: What It Is and Why It Matters.

8 August, 2019 Written by Harry Roberts on CSS Wizardry.

Time to First Byte: What It Is and Why It Matters

I’m working on a client project at the moment and, as they’re an ecommerce site, there are a lot of facets of performance I’m keen to look into for them: load times are a good start, start render is key for customers who want to see information quickly (hint: that’s all of them), and client-specific metrics like how quickly did the key product image load? Can all provide valuable insights. However, one metric I feel that front-end developers overlook all too quickly is Time to First Byte (TTFB). Strategies for Keeping CSS Specificity Low. Easily manage projects with monday.com Keeping CSS specificity low across all the selectors in your project is a worthy goal.

Strategies for Keeping CSS Specificity Low

It's generally a sign that things are in relative harmony. You aren't fighting against yourself and you have plenty of room to override styles when you need to. HTML can do that? After witnessing some awesome things CSS can do, it's time for HTML to come in the same spotlight! It's amazing that you can do so much with just HTML. 1. Improving Video Accessibility with WebVTT. Easily manage projects with monday.com "The power of the Web is in its universality.

Improving Video Accessibility with WebVTT

Access by everyone regardless of disability is an essential aspect. How To Add Pagination To WordPress. Pagination is a common feature to a lot of WordPress blogs.

How To Add Pagination To WordPress

It is important to so many site owners in fact, that it is a major feature in WordPress core. Pagination is an easy and standard practice that prevents you from having to load in all of your posts at once. If you did, your site would take a very long time to render. A lot of themes have pagination already built in. Forcing HTTPS Using the .htaccess. Your website’s visitors should be accessing your site using an SSL-encrypted connection for added security, accessibility, or PCI compliance.

Forcing HTTPS Using the .htaccess

If you’re unfamiliar with SSL, our article What is SSL and why is it important? Will get you up to speed. InMotion Hosting includes a free SSL Certificate for all Business Class Hosting Plans. How to Set Up Expires Headers on Your Website. Expires Headers can help improve the load times on your website by telling the browser when it should request the server for a file or download it from the browser’s cache.

How to Set Up Expires Headers on Your Website

If you have browser caching set up on your website then when someone visits your website certain files are saved in their browser’s cache so they don’t have to be loaded every time they visit the site or a different page on your site. For example, your logo in the header of your website only needs to be downloaded from the server once and then every time someone visits your website or a different page on your website the logo image is pulled from their cache instead of downloading from the server every time.

Expires Headers is a set of instructions that tells the browser how long to wait until it tries to download the file again. CSS can do that? A list of amazing things that CSS can do!

CSS can do that?

EDIT: Some of these properties won't work in some browsers because of support. We can check for browser support using @supports and add fallback styles accordingly. Please use Chrome to view the examples 🙂 1. box-decoration-break This CSS property specifies how an element's fragments should be rendered when broken across multiple lines, columns, or pages. 2. attr() We can retrieve values of the selected element in CSS by using attr(). 3. backface-visibility This CSS property sets whether the back face of an element is visible when turned towards the user. 4. conic-gradient.

Build adaptive layouts without media queries. For a long time I was trying to reach a perfect visual composition on web pages. I've been having lots of pain with CSS breakpoints in my daily work and was never quite satisfied with common ways of handling the responsive layout. Recently, I discovered a very cool responsive web design trick that makes everything simple, consistent and logical, and I'm eager to share it with you.

This article is mainly about creative development, thus it's for both: front end developers who might find this technique useful, and web designers who should have a general understanding of web production and how to improve the final output. I assume you already know about CSS, breakpoints and media queries. Build a blog with Grid and flexbox The traditional way Portable devices are taking over the world. In fact, usually the website layout we are seeing is not made for our device. Hybrid Lazy Loading: A Progressive Migration To Native Lazy Loading. Get a CSS Custom Property value with JavaScript - Andy Bell. In the past, I’ve done something like this to get the current breakpoint without querying the window width: JavaScript This approach very much does the job, but with CSS Custom Properties, we can have a little more flexibility and using properties to send values feels more...um...right.

The getCSSCustomProp function. How to design with CSS shapes: An introduction. The basis of every website is to sub-divide the page down into smaller elements that have content. The big problem with this for designers is that the content is always a rectangle. Screens are rectangular in shape, and any subdivision of that is going to be a rectangle. In this tutorial we are going to examine how to go beyond rectangular shapes by using the CSS clip-path property and rotation to make the design more interesting. For other ways to make your designs more interesting, check out our examples of CSS animation. Moving from Gulp to Parcel – Ben Frain. Following this pole on Twitter I thought I’d take a look at spinning up a project using Parceljs. I’ve used Gulp for years and Grunt before that. Parcel seemed like a logical progression.

That, plus, I still don’t have the stomach to try and get Webpack working! Parcel is touted as ‘zero configuration’ and although that is largely true, if you are moving from Gulp there are definitely some things you need to keep in mind. 7 Useful JavaScript Tricks. Just like every other programming language, JavaScript has dozens of tricks to accomplish both easy and difficult tasks. How to Use CSS Logical Properties to Control Layout.

CSS masonry with flexbox, :nth-child(), and order. Diagonal Containers in CSS. A few days ago, we published the diagonal hero component, a variation of the hero component, which features inclined top/bottom edges. How to design with CSS shapes: An introduction. Getting Started – Navi – Frontend Armory. This guide will walk you through the process of adding routing to a fresh create-react-app project, using Navi. Basic Components Navi’s <Router> component lies at the top of most Navi apps. It lets you add declarative, asynchronous routing to your React app. Native image lazy-loading for the web! In this post, we'll look at the new loading attribute which brings native <img> and <iframe> lazy-loading to the web!. For the curious, here's a sneak preview of it in action: We are hoping to ship support for loading in ~Chrome 75 and are working on a deep-dive of the feature we'll publish soon.

Until then, let's dive into how loading works. SAUBER - FREE MINIMAL & CLEAN SANS SERIF — Pixel Surplus. Native image lazy-loading for the web! How to create clipped, blurred background images in CSS. Crossroads Slideshow. Why you should use CSS env() The problem Here’s a more specific problem I encountered recently. Color accessibility: tools and resources to help you design inclusive products, by Stéphanie Walter - UX designer & Mobile Expert.

CSS: centering things. See also the index of all tips. Centering lines of text The most common and (therefore) easiest type of centering is that of lines of text in a paragraph or in a heading. Gradient Borders. After for simple, spicy image overlays - bryanlrobinson.com. How To Create Image Hover Overlay Effects. Edit fiddle. Style <hr> tag with CSS - CSSPortal. Broken Link Checker – WordPress plugin. This plugin will monitor your blog looking for broken links and let you know if any are found. Features Monitors links in your posts, pages, comments, the blogroll, and custom fields (optional).Detects links that don’t work, missing images and redirects.Notifies you either via the Dashboard or by email.Makes broken links display differently in posts (optional).Prevents search engines from following broken links (optional).You can search and filter links by URL, anchor text and so on.Links can be edited directly from the plugin’s page, without manually updating each post.Highly configurable.

Basic Usage Once installed, the plugin will begin parsing your posts, bookmarks (AKA blogroll) and other content and looking for links. Depending on the size of your site this can take from a few minutes up to an hour or more. The broken links, if any are found, will show up in a new tab of the WP admin panel – Tools -> Broken Links. There are several actions associated with each link. 14 of the best JavaScript APIs. Wp query - How to clear the cache? Disable Page Caching - WP Rocket Knowledge Base. Aspect Ratio Boxes. The 30 best free graffiti fonts. Blurred Borders in CSS. How To Make A Speech Synthesis Editor. Vector Icons for iOS, Android, Websites & Apps. Pngquant — lossy PNG compressor. Five Techniques to Lazy Load Images for Website Performance. Font Awesome icon as background image. How to use Font Awesome Icons in CSS as background image. Stay user-oriented up to the 404 page - The Designest.

Tech Stacks. The best free cursive fonts. 60 Multimedia icons Download / Request icons - Free icons by Xicons. Cacher. How do I change my Thank You Page? – AWeber Knowledge Base. AWeber Developer. The best WordPress websites around. ICONSVG - Quick customizable SVG icons for your project. WebGL Wonderland #7. Design - Free Surrealist Illustrations for Landing Pages. Free Download: Social Media Icons. Bootstrap Checkbox: 11 Styles with Demos Online. Fetching API Data with React.JS – hello JS. Uppy File Uploader. Games Hub a Games Category Bootstrap responsive Website Template. Free HTML Website Templates and HTML UI Kits - HTMLTEMPLATES.CO. Free Responsive Mobile Website Templates Designs - w3layouts.com. 8 little videos about the Firefox shape path editor. Inspiration: 10 Examples of Pure CSS Animation on CodePen. 11 JavaScript Animation Libraries For 2019.