Giter VIP home page Giter VIP logo

samanthaming.com's Introduction

logo

πŸ”₯ NEW Code Tidbit Every Week πŸ”₯

Hi, my name is Samantha Ming. I'm a Front End Developer who shares programming goodness with the community πŸ’›

This repo contains all the content source for my website. You will find all the original markdown files and high-quality images that you can download. For the best experience, it's best to read these files on my website.


Articles 🌐
Code Tidbits JavaScript, CSS, and HTML Code Snippets EN site
Flexbox30 Learn Flexbox with 30 Code Tidbits EN site
Pictorials Step by Step Code Tutorials. EN site
Web Basics Web Basics Explained with Tidbits. EN
CodeTidbits30 30 days of the best code snippets. - site
Blog Articles on programming and things I learned EN site

🏷 Submit Ticket

✍️ Suggest a topic you want me to cover
🐞 Report a bug on my site
⚑️ Request a feature on my site

πŸ‘‹ Say Hello

Instagram: @samanthaming - My favorite place to post & share stories
Twitter: @samantha_ming - Catch all my posts & where I announce things
Facebook: @hi.samanthaming
Medium: @samanthaming
Dev.to: @samanthaming

Official: www.samanthaming.com - Find all my content here

πŸ’– Download & Share

Absolutely! You are more than welcome to download and share my code tidbits. If you've gotten any value from my content and would like to help me reach more people, please do share!

One thing that I kindly ask is that you don't edit the images or crop my name out. Please leave the images intact. Thank you for choosing to do the right thing πŸ˜‡

🌟 Contribution

Yes! Anyone is welcome to contribute to the quality of this content. Please feel free to submit a PR request for typo fixes, spelling corrections, explanation improvements, etc.

πŸ“š Translation

Yes! If you'd like to translate my articles, please do it! You can also add your translated copy to this repo, simply create a Pull Request. Here's the translation contribution guide

I haven't add translation support on my website. But it's coming! So your translation will just appear on the official repo for now.

βš– Note

I will be using the content of this repo for my upcoming podcast and maybe other publications. So, if you do contribute content, please be aware that you agree that you're giving me a non-exclusive license to use this content as I deem appropriate. After doing a podcast episode on law and legal matters, I thought it's important that I include this section. Thanks for understanding!

πŸ‘©πŸ»β€βš–οΈ License

Thank you for wanting to share and include my work in your project 😊 If you're wondering how to provide attributions. It simply means don't edit the images. I have attribution automatically built into them. So you don't have to provide additional attribution when you share the images.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

samanthaming.com's People

Contributors

samanthaming avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

samanthaming.com's Issues

[Bug Report]

Describe the bug

404 - Page not found

Steps to Reproduce

  1. Go to 'My Top 3 Favorite FREE JavaScript Courses'
  2. Scroll to 'Up & Going with JavaScript'
  3. Clink 'Link'
  4. Get 404

Expected Behavior

Expected to be redirect to 3rd free JavaScript Course by Up & Going

Screenshots

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Device Affected

  • Mobile
  • Tablet
  • Computer

Netlify CMS for easy blog posting

Netlify CMS

Respected developer/owner of this amazing website. I want you to add Netlify cms to this website so it will be easy to post blog posts directly from browser /admin. It will be easy for you too and me hehe.
Thanks

[Suggestion] TidBits counting instead of Days

Describe the bug

Its not a BUG its a suggestion
Change the Flexbox 30 Days numbering to TidBits counting.
Since all the content its there the days counting its a little strange

Instead of

Day 1: Introduction


TidBit 1: Introduction

or

FlexBox TidBit 1: Introduction

[Site Feature Request]

First things first, tidbits are amazing. I just love to read them. It is like mini version of MDN docs with really good explanation. Thank you.

Feature Description

Smooth scroll in your page.

Additional context

I was just going through this link
https://www.samanthaming.com/tidbits/43-3-ways-to-remove-array-duplicates/#_3-using-reduce

You have a table of contents. I clicked on to see the reduce method, and it took me there but not in a smooth way.

So small suggestion to make it smooth is to add the following line of styling in css.

* { scroll-behavior: smooth; }

Add Animations / Transitions to the site

Feature Description

One thing I love about web-apps are the subtle transitions and animation, they look small but greatly improve the overall UX of the app.

I would love to see you add some kind of transitions / animations to the site, like the cards sliding in, or the big Headers being eased in.
I'm attaching few of the resources for you to go over as well

Animate CSS
https://daneden.github.io/animate.css/

Anime.js
https://github.com/juliangarnier/anime

Vue.js Examples
https://vuejsexamples.com/vuejs-plugin-for-creating-epic-sequential-animation-entrances/

Popmotion
https://popmotion.io/pose/

Broken Social Media LINKS on About Me page's aside element

When I clicked, in an Social Media link from the aside element, it sends me to a 404 No Found Page. The Social Media links work in contact page; nav and footer elements work well too.

Example

If the <a> element for Github contains this link, https://www.samanthaming.com/about/https:/github.com/samanthaming/, it leads to a 404 No Found page.

Expected Behavior

I expected it to direct me the social pages as happened on the other elements (nav and footer).

Screenshots

Aside Element in About Me Page ❌
aside-element

404 No Found Page ❌
404

Contact Page βœ”οΈ
contact-page

Fix Suggestion

Double check to understand why is this happening. I did not have success on my end by editing on Chrome DevTools.

<a href="https://github.com/samanthaming/" class="flex items-center hover:text-fuscia hover-transition-fast hover:underline">

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Device Affected

  • Mobile
  • Tablet
  • Computer

[Bug Report] Mobile Device Scroll Issue

Describe the bug

Go down and start scrolling horizontally on Top TidBits. And then try to scroll vertically. It doesn't allow me to scroll vertically anymore.

Steps to Reproduce

Go down and start scrolling horizontally on Top TidBits. And then try to scroll vertically

Expected Behavior

Screenshots

Fix Suggestion

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Device Affected

  • Mobile (Pixel 3)
  • Tablet
  • Computer

Set up Articles and website code in separate repositories on Github with multiple repo push

Topic

Hi Samantha, first of all kudos for such an amazing website. ✨

You had shared an article on why you moved to Vuepress from Nuxt. Currently, I am also using Nuxt Content.

I see that on this current repository of yours that you only have articles, and not your website code. (I assume you have your website code in a separate private repository). So, my kind request is can you write a post on how you have set up your Github repositories? πŸ˜„

Topics / Need for such post?

  1. Currently, I have all my code + markdown files in a single repo on Github. But I only want to keep my articles public, and keep my code private. πŸ˜‹
  2. The set up should be something like this...
  • In private repo A, all my code + md files should stay. In public repo B, only my md files should stay.
  • This way I can still static generate my website from repo A and deploy it.
  • When I edit my articles on repo A, I should also be able to commit and push into both repositories. But with such push, only articles should be updated in repo B, and not the entire code of repo A should get copied to repo B.

Or

  1. do you edit your articles on this current repo and then fetch your posts via Github API and do some parsing or something like that?
  2. do you use Git submodules?

References

  1. Your own Git set up.
  2. using git remote --set-url

Category

  • Article
  • Video
  • Help

Thanks in advance πŸ’›

Improvment to TailwindCSS article

To tackle repeating utility classes you can use @apply as suggested in this article:

<button class="btn-gray">
  Button
</button>

<style>
.btn-gray {
  @apply bg-gray text-white font-bold py-2 px-4 rounded;
}
.btn-gray:hover {
  @apply bg-gray-dark;
}
</style>

So I would suggest that you can improve this part of your article by using @apply to tackle the repetition of css utility classes.

[Bug Report] Share links attribute title="something here"

Describe the bug

Hi Samantha,

Of course I had to had a look to your "hacker news" link since your article gave me the idea to add it to my web component ;)

Doing so I noticed that all your social links have an attribute title which contains something here. I'm guessing that it isn't the expected behavior.

Steps to Reproduce

See screenshot.

Expected Behavior

I'm guessing a text like Share this article on .... instead of the placeholder something here.

Screenshots

Capture d’écran 2020-02-07 Γ  18 05 23

[Bug Report] Image preview

Image preview does not close

When you click on the image it expands, but it does not close if you move the scroll

Steps to Reproduce

Click on the dark area

Example:

  1. Go to any site that contains an expandable image
  2. Click on the image to expand and then in the dark area around the image

Expected Behavior

The preview works correctly as long as you do not click on the dark area, you can open any image and if you scroll the scroll it will close

Screenshots

alt text

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Device Affected

  • Mobile
  • Tablet
  • Computer

[Bug Report]

No transitions

There should be transitions to give a visual experience. Now it looks like it's getting bumps while navigating between pages

[Topic Suggestion]

Topic

References

Category

  • [ x ] Tidbit
  • Article
  • Video
  • Podcast

Don't forget to apply a Label if applicable

[Topic Suggestion]

Topic

Hi,

First think, website https://www.samanthaming.com/ is very informative. But I would like to share some UI changes.

Please focus on font-size and description content. images sizes should be minimum as per content size. If I go to particular topic ..lets say css display property then page should show all the details of display property. I can see very few information available on page. font-size not properly managed. images are very lengthy.

Would like to see new tutorials on ES6...ES2020, SASS
SVG, Advanced javascript concepts.

References

Category

  • Tidbit
  • Article
  • Video
  • Podcast

Don't forget to apply a Label if applicable

[Bug Report] Mobile Site - swiping too far inside of a code block opens the side menu

Describe the bug

On mobile, if you scroll far enough in a code block, it will activate the side menu. Probably because the swipe to open action is active on the entire page which makes sense, but should probably be ignored in certain areas.

Steps to Reproduce

  1. Mobile Phone
  2. Go to any article on the site, for me 3 ways to clone objects in javascript
  3. Go to any code block that has horizontal scroll (doesn't wrap), for me 3. Using JSON
  4. Scroll to the right inside the code block (it's hit or miss sometimes but can be reproduced a good amount - but try and stay inside the code block when swiping, sometimes a small swipe works, sometimes it has to be a long swipe, sometimes you have to give it like 2 seconds and then try again (lol))

Expected Behavior

I expect that elements that have horizontal scroll on mobile will not activate any menus

Screenshots

None

Fix Suggestion

This isn't specific to Vue, I would assume its a common issue in JS and HTML. I haven't taken a look at the code and if I manage to figure it out I'll PR it but this can remain open to anyone. I guess you could stop propagation from bubbling up or prevent default on swipes on that class?

Browsers Affected

  • Whatever Instagram App built-in browser is
  • Mobile Safari
  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Device Affected

  • Mobile
  • Tablet
  • Computer

The scroll bar in the mobile hamburger menu looks like of 1980s.

Describe the bug

The scroll bar in the mobile hamburger menu looks like of 1980s.

image

Steps to Reproduce

.sidebar::-webkit-scrollbar {
width: .7em;
}
.sidebar::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

.sidebar::-webkit-scrollbar-thumb {
background-color: #333;
outline: 1px solid #ea0000;
border-radius:5px;
}

Expected Behavior

Screenshots

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Device Affected

  • Mobile
  • Tablet
  • Computer

Feature - PWA

Hi Samantha Ming,
It's a nice experience if you enabled your website with the progressive web app. (like https://alligator.io/)

Best regards - Sujeet Jaiswara

[Site Feature Request] Adding to an article

Feature Description

https://www.samanthaming.com/tidbits/35-es6-way-to-clone-an-array/

I'd like you to add a suggestion for cloning arrays with levels, and objects that are complex.

Additional context

I am adopting a best practice for all cloning situations:

this.pageListOrObjectWithLevels = JSON.parse(JSON.stringify(someListOrObjectWithLevels));

It may be heavy but in Web Components (salesforce Lightning Web Components) it solves a lot of issues with the page not getting updated.

This is not a bug but a design suggestion.

I was reading your array flatmap article, it was well designed but I found little bit distracting by the side designs on the right side.
Particularly TidBits panel, it would have been much nice if there is a border (or background color difference) between main article and side suggestions.

Javascript Spread operator[Topic Suggestion]

Hi Samantha.
I wanted to get this issue understanding clear.
I have this object original. I clone it to duplicateState.
But if I am updating the clone's zeroth index value by adding 1, it is updating the original too?
And how do I update the clone's zeroth index therefore?
const original = {
counters: [
{ id: 1, value: 4 },
{ id: 2, value: 0 },
{ id: 3, value: 0 },
{ id: 4, value: 0 }
]
};
console.log(original);

 const dupliacteState = [...original.counters];
 dupliacteState[0].value++;
 console.log(original.counters[0]);

Error in "How to Check if Object is Empty in JavaScript"

Object.create(null) produces empty objects that don't get detected as such because their constructor is undefined.

I believe these can be handled with something like the following

isEmptyObject = (o) => (typeof o === 'object') && o && !Object.keys(o).length && [undefined, Object].includes(o.constructor)

Category

  • Tidbit

RSS feed

Feature Description

Any chance you can implement an RSS feed for your site?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.