Skip to content

Instantly share code, notes, and snippets.

@mqli
mqli / grokking_to_leetcode.md
Created June 7, 2022 10:55 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@mqli
mqli / test.ipynb
Last active May 6, 2021 01:59
test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mqli
mqli / extend-a-vue-file-component.md
Last active August 30, 2016 09:10
Way of Extend a '.vue' File Component

It not a good practise,you should alway use mixin as you can.

  • Say that your have a 3rd party component fits your need 90%
  • Only a bit of code you want to customize, maybe just the html layout
  • The component doesn't have a option for that
  • the component is a '.vue' import by vue-loader so you can't OtherComponent.extend
  import OtherComponent from 'OtherComponent'
 Vue.extend(OtherComponent).extend({
@mqli
mqli / Few Line of Hack Code Make React-Native Run on Windows.md
Last active July 13, 2017 19:14
Few Line of Hack Code Make React-Native Run on Windows

#Few Line of Hack Code Make React-Native Run on Windows

While React-Native just add support of Android,yet officeally they just only support on OSX.

After a few hours of debugging, I find a simple way of let React-Native run on Windows.

Make sure all requirements were all setup following this:

Then initilize the project following this: