Skip to content

Instantly share code, notes, and snippets.

View vuongddang's full-sized avatar

Vuong Dang vuongddang

View GitHub Profile
@vuongddang
vuongddang / lodash-react-component.tsx
Created December 10, 2020 07:12
Import and use a particular lodash function in react component
import { maxBy } from 'lodash'
const items = [
{ name: 'A', price: 1 },
{ name: 'B', price: 2 }
]
maxBy(items, 'price')
// => {name: 'B', price: 2}
@vuongddang
vuongddang / wordpress-divibuilder-mute-video-background.js
Created February 6, 2018 12:28
Wordpress :: Divi Builder :: Mute video background (Add this to Theme Option / Integrations / <head>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(".et_pb_section_video_bg video").prop('muted', true);
});
</script>