Skip to content

Instantly share code, notes, and snippets.

View fivenp's full-sized avatar
🖤

fivenp fivenp

🖤
View GitHub Profile
@fivenp
fivenp / readme.md
Last active February 26, 2021 09:48
CSS vs StyledComponents <-> Design

Usecase

Imagine we're having an App where we have 3-5 different needs for displaying Avatars: A page with different Sections (Chat, Content, Sidebar, Header, etc) which might include an Avatar in different sizes

This is how it looks in "Design World" -> https://www.figma.com/file/a4Yck5hlUwJ83XAULwIHVu/Component-Sample?node-id=0%3A1

The Avatar itself is a component that has 3 different size "Variants" (props :))

Verifying my Blockstack ID is secured with the address 1A6Wnisd7cbMgWnkzGMRWrJwBfWVeJdNpE https://explorer.blockstack.org/address/1A6Wnisd7cbMgWnkzGMRWrJwBfWVeJdNpE
@fivenp
fivenp / bench.sh
Created October 27, 2017 07:56
benchmark your vps
#!/bin/bash
cname=$( awk -F: '/model name/ {name=$2} END {print name}' /proc/cpuinfo )
cores=$( awk -F: '/model name/ {core++} END {print core}' /proc/cpuinfo )
freq=$( awk -F: ' /cpu MHz/ {freq=$2} END {print freq}' /proc/cpuinfo )
tram=$( free -m | awk 'NR==2 {print $2}' )
swap=$( free -m | awk 'NR==4 {print $2}' )
up=$(uptime|awk '{ $1=$2=$(NF-6)=$(NF-5)=$(NF-4)=$(NF-3)=$(NF-2)=$(NF-1)=$NF=""; print }')
echo "CPU model : $cname"

Keybase proof

I hereby claim:

  • I am fivenp on github.
  • I am fivenp (https://keybase.io/fivenp) on keybase.
  • I have a public key ASD-zgoFZFsagNdqUtXbX-VPh3L0wVWnmbkiJNLCdWIM2wo

To claim this, I am signing this object:

{"palette" : {
"lightBlack":"#2c2c2c",
"lightBlackIntense":"#232323",
"turquoise":"#00bf93",
"turquoiseIntense":"#16a086",
"mint":"#2dcc70",
"mintIntense":"#27ae61",
"green":"#42e453",
"greenIntense":"#24c333",
"yellow":"#ffff25",
$palette = array(
'lightBlack' => '#2c2c2c',
'lightBlackIntense' => '#232323',
'turquoise' => '#00bf93',
'turquoiseIntense' => '#16a086',
'mint' => '#2dcc70',
'mintIntense' => '#27ae61',
'green' => '#42e453',
'greenIntense' => '#24c333',
'yellow' => '#ffff25',
const palette = {
lightBlack: '#2c2c2c',
lightBlackIntense: '#232323',
turquoise: '#00bf93',
turquoiseIntense: '#16a086',
mint: '#2dcc70',
mintIntense: '#27ae61',
green: '#42e453',
greenIntense: '#24c333',
yellow: '#ffff25',
// Allthings Colors
$a-color-light-black: #2c2c2c;
$a-color-light-black-intense: #232323;
$a-color-turquoise: #00bf93;
$a-color-turquoise-intense: #16a086;
$a-color-mint: #2dcc70;
$a-color-mint-intense: #27ae61;
$a-color-green: #42e453;
$a-color-green-intense: #24c333;
// Allthings Colors
@a-color-light-black: #2c2c2c;
@a-color-light-black-intense: #232323;
@a-color-turquoise: #00bf93;
@a-color-turquoise-intense: #16a086;
@a-color-mint: #2dcc70;
@a-color-mint-intense: #27ae61;
@a-color-green: #42e453;
@a-color-green-intense: #24c333;
@fivenp
fivenp / create-snippet.sublime-snippet
Created May 20, 2016 12:06
Sublime Text 3 - Snippet for creating Snippets
<snippet>
<content><![CDATA[
<snippet>
<content>
<![CDATA[${1:Write your snippet here}]]\>
</content>
<tabTrigger>${2:tabTrigger}</tabTrigger>
<!-- Scope is optional -->
<scope>${3:scope}</scope>
<!-- Description is optional -->