Skip to content

Instantly share code, notes, and snippets.

View massifaqiri's full-sized avatar

Massi Faqiri massifaqiri

View GitHub Profile

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@massifaqiri
massifaqiri / css-media-queries-cheat-sheet.css
Created July 25, 2020 05:26 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }
@massifaqiri
massifaqiri / enzyme-cheatsheet.js
Created July 21, 2020 23:50 — forked from jahe/enzyme-cheatsheet.js
Enzyme Cheatsheet
// Show rendered HTML
const wrapper = shallow(<App />)
console.log(wrapper.debug())
// Disable lifecycle methods of react within tests
const wrapper = mount(<App />, { disableLifecycleMethods: true })
// Assert number of occurrences
expect(wrapper.find('p').length).toBe(1)