- π Hi, Iβm a full stack developer
- π Iβm interested in Software Projects
- π± Iβm currently learning Desktop app development using electronjs
- ποΈ Iβm looking to collaborate on reactjs, express-node, electron, python projects
- π« How to reach me ...
- Create a Ubuntu webapp with Icon
- ubuntu cheatsheet
- JSS Cheat sheet - Pseudo and Nested Selectors
@reduxjs/toolkit
- π¨βπ» Type terminal sudo -H gedit /usr/share/applications/whatsapp-webapp.desktop
- π Copy following text to opened screen
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=WhatsApp
GenericName=WhatsApp
Comment=WhatsApp desktop webapp
Exec=/opt/google/chrome/google-chrome --app=https://web.whatsapp.com/
Terminal=false
Type=Application
StartupNotify=true
MimeType=text/plain;
# make sure this is full path
Icon=
Categories=Network;Application;
Keywords=WhatsApp;webapp;
X-Ubuntu-Gettext-Domain=WhatsApp
StartupWMClass=web.whatsapp.com
# list all disks including unmounted
sudo fdisk -l
# mount usb disk
#fat32
sudo mount -t vfat /dev/sdb1 /media/external
# HFs+ (apple)
sudo apt-get install hfsprogs
sudo mount -t hfsplus -o force,rw /dev/sdXY /media/mntpoint
sudo fsck.hfsplus -f /dev/sdXY
# unmount
umount /media/mntpoint
# kernel version
uname -r
# ubuntu version
lsb_release -a
Refer Express application generator
npx express-generator
const styles = {
container: {
padding: 20,
'&:hover': {
background: 'blue'
},
// Add a global .clear class to the container.
'&.clear': {
clear: 'both'
},
// Reference a global .button scoped to the container.
'& .button': {
background: 'red'
},
// Use multiple container refs in one selector
'&.selected, &.active': {
border: '1px solid red'
}
}
}
Compiles to:
.container-0 {
padding: 20px;
}
.container-0:hover {
background: blue;
}
.container-0.clear {
clear: both;
}
.container-0 .button {
background: red;
}
.container-0.selected,
.container-0.active {
border: 1px solid red;
}
const styles = {
container: {
// Reference the local rule "button".
'& $button': {
padding: '10px'
},
// Multiple local refs in one rule.
'&:hover $button, &:active $button': {
color: 'red'
},
'&:focus $button': {
color: 'blue'
}
},
button: {
color: 'grey'
}
}
Compiles to:
.button-1 {
color: grey;
}
.container-0 .button-1 {
padding: 10px;
}
.container-0:hover .button-1,
.container-0:active .button-1 {
color: red;
}
.container-0:focus .button-1 {
color: blue;
}
const styles = {
button: {
color: 'red',
'@media (min-width: 1024px)': {
width: 200
}
}
}
Compiles to:
.button-0 {
color: red;
}
@media (min-width: 1024px) {
.button-0 {
width: 200px;
}
}
const styles = {
button: {
'&$warn': {
color: 'red',
'&:hover, &:focus': {
color: 'white',
background: 'red'
}
}
},
warn: {}
}
Compiles to:
.button-0.warn-1 {
color: red;
}
.button-0.warn-1:hover,
.button-0.warn-1:focus {
color: white;
background: red;
}
When extending third party libraries with high secificity selector it's often necessary to also have a high specificity selector.
const styles = {
button: {
'.button &': {
color: 'red'
}
}
}
Compiles to:
.button .button-0 {
color: 'red';
}
Redux Boilerplate |
|
---|---|
|
|