bookmark_borderGit SVN

I usually use Git for version control, but my debut as a WordPress plugin developer required me to use SVN.

And I was excited to know Git actually can be used as a valid SVN client as well, as stated in the official documentation! This means I can manage my plugin code on SVN repository as well as GitHub at the same time.

Here’s what I did:

  1. Commited the files using normal SVN client (I used Tortoise SVN) to the SVN repository
  2. Create new repository on GitHub
  3. On local machine, create empty directory /plugin-name
  4. In /plugin-name directory, run git clone -s <SVN repository URL>
  5. Run git add remote <GitHub repository URL>
  6. Run git push origin master

and done! The directory is ready for commits to both GitHub and SVN repository.

In the step 4 git svn clone, in my case this had to be an http address. https didn’t work and it took me while to figure out.

git svn clone command takes pretty long. You can specify the revision number like below and then it fetches only versions from the specified revision number:

git svn clone -s -r<revision number>:HEAD <SVN repository URL>

bookmark_borderNote-taking App For Windows?

I’m looking for a nice note-taking app for my Surface Go + Surface Pen. My requirements are as simple as:

  • Pen tool (better if not pressure sensitive)
  • Selection tool (lasso is even better)

and it’s so hard to find one that fulfils them. I don’t draw pictures, so no high-level drawing features are needed. The pre-installed Microsoft SketchPad doesn’t have the selection tool. Without it, I think plain old paper is better. Google Keep is not bad, except it’s sluggish..

I wish there was something like GoodNotes for Windows.

Any suggestions are welcome!

bookmark_borderCSS Responsive Utilities

This is what I always include in my css files for visibility control depending on device size.

Below is how this works.

Class≤ 567px568 – 767 px768 – 1023 px≥ 1024px
hidden-smHiddenShownShownShow
hidden-mdShownHiddenShownShown
hidden-lgShownShownHiddenShown
hidden-xlShownShownShownHidden
visible-smShownHiddenHiddenHidden
visibe-mdHiddenShownHiddenHidden
visible-lgHiddenHiddenShownHidden
visible-xlHiddenHiddenHiddenShown