Skip to content

Instantly share code, notes, and snippets.

View wangzuo's full-sized avatar
🎯
Focusing

Wang Zuo wangzuo

🎯
Focusing
View GitHub Profile
@wangzuo
wangzuo / readme.md
Created October 20, 2018 03:42
hermes

Frontend

  • npm & yarn
  • webpack & dev server npm start (vendor.js)
  • react repl
  • styling & css module

Backend

const assert = require('assert');
// Given an array of integers, more than half of which are the same integer. Please print out that integer.
// Moore’s Voting Algorithm
// time: O(n)
// space: O(1)
// https://leetcode.com/problems/majority-element/
// more than n/2 times
// hash counter solution? space O(n)
const major1 = function(a) {
let cnt = 0,
@wangzuo
wangzuo / typography.css
Created April 26, 2019 10:50
typography.css
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
}
article,
aside,
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.500S" type="static" mediaPresentationDuration="PT0H0M26.091S" maxSegmentDuration="PT0H0M5.000S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011,http://dashif.org/guidelines/dash264">
<Period duration="PT0H0M26.091S">
<AdaptationSet segmentAlignment="true" maxWidth="720" maxHeight="900" maxFrameRate="30" par="720:900" lang="eng" subsegmentAlignment="true" subsegmentStartsWithSAP="1">
<Representation id="17880936458342364vd" mimeType="video/mp4" codecs="avc1.64001F" width="720" height="900" frameRate="30" sar="1:1" startWithSAP="1" bandwidth="231005" FBQualityClass="hd" FBQualityLabel="720w" FBPlaybackResolutionMos="0:100.00,360:92.83,480:92.00,720:88.18,1080:83.23">
<BaseURL>https://scontent-hkt1-2.cdninstagram.com/v/t50.2886-16/233536622_215662053824013_242533827639734245_n.mp4?_nc_ht=scontent-hkt1-2.cdninstagram.com&amp;_nc_cat=1&amp;_nc_ohc=AYsseZVpQrgAX8kokRa&amp;edm=AABBvjUBAAAA&amp;ccb=7-4&amp;oh=6dc8990b2f41fcf9f710bac9af8d4cdb