- Install Git
- Create a GitHub account
- Open Terminal
/Applications/Utilities/Terminal.app
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
IE9, IE10, and IE11 don't properly scale SVG files added with img
tags when viewBox
, width
and height
attributes are specified. View this codepen on the different browsers.
Image heights will not scale when the images are inside containers narrower than image widths. This can be resolved in 2 ways.
As per this answer on Stackoverflow, the issue can be resolved by removing just the width
and height
attributes.
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
#!/bin/sh | |
brew install caskroom/cask/brew-cask | |
brew tap caskroom/versions | |
brew cask install airmail-beta | |
brew cask install alfred | |
brew cask install arduino | |
brew cask install atom | |
brew cask install audacity |
/* | |
=============================================================== | |
## UTILS | |
=============================================================== | |
*/ | |
@mixin cover($image) { | |
background: url($image) no-repeat center center; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; |
# Install QEMU OSX port with ARM support | |
sudo port install qemu +target_arm | |
export QEMU=$(which qemu-system-arm) | |
# Dowload kernel and export location | |
curl -OL \ | |
https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie | |
export RPI_KERNEL=./kernel-qemu-4.1.7-jessie | |
# Download filesystem and export location |
Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.
My 3 developers team has just developed React.js application with 7668
lines of CSS (and just 2 !important
).
During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.
Here are main principles we use to write CSS for modern (IE11+) browsers:
- SUIT CSS naming conventions + SUIT CSS design principles;
- PostCSS + CSSNext. Future CSS syntax like variables, nesting, and autoprefixer are good enough;
- Flexbox is awesome. No need for grid framework;
- Normalize.css, base styles and variables are solid foundation for all components;
#!/usr/bin/env tclsh | |
# MOTD script original? / mod mewbies.com | |
# Save as /etc/motd.tcl and add "/etc/motd.tcl" to the end of your /etc/profile | |
# You'll also need to: | |
# - sudo apt-get install tcl | |
# - delete the contents of /etc/motd | |
# - sudo chmod 755 /etc/motd.tcl | |
# - comment out "uname -snrvm > /var/run/motd.dynamic" in /etc/init.d/motd | |
# - change "PrintLastLog yes" to "PrintLastLog no" in /etc/ssh/sshd_config |
function urlBase64ToUint8Array(base64String) { | |
const padding = '='.repeat((4 - base64String.length % 4) % 4); | |
const base64 = (base64String + padding) | |
.replace(/\-/g, '+') | |
.replace(/_/g, '/') | |
; | |
const rawData = window.atob(base64); | |
return Uint8Array.from([...rawData].map((char) => char.charCodeAt(0))); | |
} |