Skip to content

Instantly share code, notes, and snippets.

View xiaohp's full-sized avatar
🎯
Focusing

xiaohai xiaohp

🎯
Focusing
View GitHub Profile
@xiaohp
xiaohp / interview.js
Last active March 19, 2020 10:57
function
// 有这样一个 url: http://vip.qq.com/hello?a=1&b=2&c=3&d=xxx
// 写一段 JS 程序将 url 的参数转成对象的形式并返回
// {
// a: '1',
// b: '2',
// c: '3',
// d: 'xxx',
// }
const query = function(url) {
https://press.one/p/address/v?s=b0d7aa852118984d8694fd51b8ae77430e45c353ba0f66ed03b45c6a6074565b0efe68a8bc2e30ce8321fb3fc44a5e20b4894d7d1c11143dc306933cc7a36a411&h=489b3f2b99773584ef046e32360454293bfc64431e15cf030194668ee4bea478&a=f966f2a517a51c9fb7445638f0b575c0791f5af6&f=P1&v=2
@xiaohp
xiaohp / README.md
Created June 18, 2018 13:03 — forked from agnoster/README.md
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@xiaohp
xiaohp / apple-mq.css
Last active September 21, 2017 07:07 — forked from AllThingsSmitty/apple-mq.css
iPhone 6/6 Plus and Apple Watch CSS media queries
/* iPhone 6 landscape */
@media only screen and (min-device-width: 375px)
and (max-device-width: 667px)
and (orientation: landscape)
and (-webkit-min-device-pixel-ratio: 2)
{ }
/* iPhone 6 portrait */
@media only screen
and (min-device-width: 375px)