Skip to content

Instantly share code, notes, and snippets.

View ajmalafif's full-sized avatar
💻

Ajmal Afif ajmalafif

💻
View GitHub Profile
@ajmalafif
ajmalafif / wget.sh
Last active November 16, 2018 02:56
wget
wget \
--page-requisites \
--html-extension \
--convert-links \
--no-parent \
--no-check-certificate \
--recursive \
https://example.com/
@ajmalafif
ajmalafif / wget.sh
Created November 16, 2018 02:55
wget
wget \
--page-requisites \
--html-extension \
--convert-links \
--no-parent \
--no-check-certificate \
--recursive \
https://example.com/
@ajmalafif
ajmalafif / fontFace.js
Created October 28, 2018 15:31 — forked from spences10/fontFace.js
Font Face helper function by mschipperheyn
/**
* Awesome helper function from Marc Schipperheyn
* https://github.com/mschipperheyn 👌
*
*/
export function fontFace(
name,
src,
fontWeight = 'normal',
@ajmalafif
ajmalafif / Component.js
Created October 24, 2018 04:42 — forked from mxstbr/Component.js
styled-components ❤ tachyons
// There's two ways to use Tachyons together with styled-components
// Both are valid, which one you use depends if you want to always apply a tachyons class when a certain component
// is rendered or if you want to apply it for specific instances.
// 1. Use .attrs to define classNames that should always be applied to a styled component
// Whenever you use <Component /> now it'll have both the styled-components as well as the Tachyons class
// See the docs for more info: https://www.styled-components.com/docs/basics#attaching-additional-props
const Component = styled.div.attrs({
className: 'bw0-l',
})`
@ajmalafif
ajmalafif / pagination.md
Created August 31, 2018 19:36 — forked from mislav/pagination.md
"Pagination 101" by Faruk Ateş

Pagination 101

Article by Faruk Ateş, [originally on KuraFire.net][original] which is currently down

One of the most commonly overlooked and under-refined elements of a website is its pagination controls. In many cases, these are treated as an afterthought. I rarely come across a website that has decent pagination, and it always makes me wonder why so few manage to get it right. After all, I'd say that pagination is pretty easy to get right. Alas, that doesn't seem the case, so after encouragement from Chris Messina on Flickr I decided to write my Pagination 101, hopefully it'll give you some clues as to what makes good pagination.

Before going into analyzing good and bad pagination, I want to explain just what I consider to be pagination: Pagination is any kind of control system that lets the user browse through pages of search results, archives, or any other kind of continued content. Search results are the o

> That’s the dream: That design systems will give designers the space to focus on what matters: The bigger picture. After all, very few designers join a company to redline or wireframe into infinity.
https://www.designsystems.com/stories/design-systems-will-not-replace-designers/
> Yes, design systems will replace many design jobs as we know them today — they already have. Interface development patterns, processes and tools are like interchangeable parts and factory assembly lines
https://www.designsystems.com/stories/will-design-systems-replace-designers/
https://cloud.google.com/maps-platform/user-guide/account-changes/
import React from "react"
import Helmet from 'react-helmet';
import '../fonts/Inter-UI-Regular.woff2'
import '../fonts/Inter-UI-Regular.woff'
import '../css/font-face.css'
import '../css/main.css'
  • 79287
  • 228.49