Skip to content

Instantly share code, notes, and snippets.

View Jolaolu's full-sized avatar
🏠
Working from home

Anjolaoluwa Jolaolu

🏠
Working from home
View GitHub Profile
@Jolaolu
Jolaolu / media-query.css
Created December 28, 2019 11:37 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@Jolaolu
Jolaolu / vue.md
Created September 28, 2019 17:35 — forked from DawidMyslak/vue.md
Vue.js and Vuex - best practices for managing your state

Vue.js and Vuex - best practices for managing your state

Modyfing state object

Example

If you have to extend an existing object with additional property, always prefer Vue.set() over Object.assign() (or spread operator).

Example below explains implications for different implementations.

@Jolaolu
Jolaolu / infosec_newbie.md
Created February 1, 2019 13:47 — forked from mubix/infosec_newbie.md
How to start in Infosec
//defining the options
var option1 = 1
var option2 = 2
var option3 = 3
//initiating the contacts object in an array
var contacts = [
{
firstname: "John",
lastname: "smith",
{},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
{}
module.exports = {
"plugins": [
require('tailwindcss')('tailwind.js'),
require('autoprefixer')(),
]
}
<div class=" container mx-auto py-10">
<div class="border m-6 rounded-lg bg-white mx-auto max-w-sm shadow-lg rounded-lg overflow-hidden">
<div class="sm:flex sm:items-center px-6 py-4">
<img class="block h-16 sm:h-24 rounded-full mx-auto mb-4 sm:mb-0 sm:mr-4 sm:ml-0" src="https://api.adorable.io/avatars/196/[email protected]" alt="">
<div class="text-center sm:text-left sm:flex-grow">
<div class="mb-4">
<p class="text-xl leading-tight">Jane Doe</p>
<p class="text-sm leading-tight text-grey-dark">Software Developer at SpongeBob LLC.</p>
</div>
<div class="flex flex-wrap">
@Jolaolu
Jolaolu / index.html
Last active July 8, 2018 18:44
html file for responsive images gallery
<html>
<head>
<title>Responsive Gallery<title>
<!--links to the stylesheet-->
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<!-- class of 'container' holds other items (sub classes)-->
<div class='container'>
<div><img src=''/></div>