This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.scroller { | |
height: 300px; | |
overflow-y: scroll; | |
scroll-snap-type: y mandatory; | |
scroll-padding-top: 40px; | |
} | |
.scroller section { | |
scroll-snap-align: start; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bootstrap | |
Materialize CSS | |
Ant Design | |
Semantic UI | |
Bulma | |
Foundation | |
UIKit | |
Tachyons | |
Primer | |
Tailwind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Strong type checks | |
Use === instead of == | |
2. Variables | |
3. Functions | |
4. Conditionals | |
Avoid negative conditionals. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hlsDefaultConfig = { | |
autoStartLoad: !0, | |
startPosition: -1, | |
defaultAudioCodec: void 0, | |
debug: !1, | |
capLevelOnFPSDrop: !1, | |
capLevelToPlayerSize: !1, | |
initialLiveManifestSize: 1, | |
maxBufferLength: 30, | |
maxBufferSize: 6e7, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Google Docs Viewer | |
- Only files under 25 MB can be previewed with the Google Drive viewer. | |
- Google Drive viewer helps you preview over 16 different file types, listed below: | |
+ Image files (.JPEG, .PNG, .GIF, .TIFF, .BMP) | |
+ Video files (WebM, .MPEG4, .3GPP, .MOV, .AVI, .MPEGPS, .WMV, .FLV) | |
+ Text files (.TXT) | |
+ Markup/Code (.CSS, .HTML, .PHP, .C, .CPP, .H, .HPP, .JS) | |
+ Microsoft Word (.DOC and .DOCX) | |
+ Microsoft Excel (.XLS and .XLSX) | |
+ Microsoft PowerPoint (.PPT and .PPTX) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="apple-mobile-web-app-capable" content="yes"/> | |
<meta name="apple-mobile-web-app-title" content=""/> | |
<meta name="copyright" content=""/> | |
<meta name="author" content=""/> | |
// schema | |
<script type="application/ld+json"> | |
{ | |
"@context": "http://schema.org", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta http-equiv="x-dns-prefetch-control" content="on"> | |
<link rel="dns-prefetch" href="//cdn.jwplayer.com"/> | |
<link rel="dns-prefetch" href="//fonts.googleapis.com"/> | |
<link rel="dns-prefetch" href="//www.google-analytics.com"/> | |
<link rel="dns-prefetch" href="//www.googletagmanager.com"/> | |
<link rel="dns-prefetch" href="//fcm.googleapis.com"> | |
<link rel="dns-prefetch" href="//connect.facebook.net"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chrome://webrtc-internals/ | |
https://webrtc.github.io/samples/src/content/peerconnection/restart-ice/ | |
Developer tools | |
chrome://webrtc-internals | |
opera://webrtc-internals | |
about:webrtc | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Use debounce | |
_.debounce(value => this.props.onChange(value), 300); | |
2. Brunch | |
# If you use npm | |
npm install --save-dev uglify-js-brunch | |
# If you use Yarn | |
yarn add --dev uglify-js-brunch | |
Then, to create a production build, add the -p flag to the build command: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'playlist': '/images/stories/video/playlist_hd2.xml', | |
'playlist.position': 'none', | |
'height': '400', | |
'width': '685', | |
'wmode': 'opaque', | |
'abouttext': 'JW Player Plugin Advanced', | |
'aboutlink': 'http://www.joomlarulez.com/example-jw-player-plugin.html', | |
'playbackRateControls': 'true', | |
'advertising': { | |
'client': 'vast', |