Skip to content

Instantly share code, notes, and snippets.

View UcheSylvester's full-sized avatar
🚀

Uchenna Sylvester Okoro UcheSylvester

🚀
View GitHub Profile
@UcheSylvester
UcheSylvester / setAttributes.js
Last active June 30, 2019 08:07
setAttributes.js
// setAttributes function for setting multiple attributes to a particular element at once!
function setAttributes(element, attributes) {
for(let key in attributes) {
element.setAttribute(key, attributes[key])
}
}
// Call it like this:
setAttributes(element, {"class": "center", "width": "100%", "height": "100%", ...});

LINUX CHEAT LIST

This is a collection of all I have learned when using Linux (ubuntu)

  • ctrl+shift+T: opens terminal
  • cd <directory-name>: change directory
  • ls': Lists all files and directories in a directory
@UcheSylvester
UcheSylvester / box-shadow.html
Created March 18, 2020 20:44 — forked from ocean90/box-shadow.html
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@UcheSylvester
UcheSylvester / box-shadow.html
Created March 18, 2020 20:44 — forked from ocean90/box-shadow.html
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;