Categories

  • AngularJS (43)
  • AWS (4)
  • Continuous Integration (1)
  • CSS (24)
  • D3 (3)
  • Data Structures & Algorithms (1)
  • Database (1)
  • Deployment (2)
  • Docker (2)
  • Flask (3)
  • Fun Projects (8)
  • Git (11)
  • IOS (12)
  • JavaScript (62)
  • Kendo (2)
  • Linux (2)
  • Marketing (2)
  • NextJS (6)
  • NodeJS (4)
  • OS X (24)
  • Performance (8)
  • PHP (4)
  • Python (14)
  • Rails (14)
  • React Native (2)
  • ReactJS (12)
  • Recommendations (8)
  • Ruby (6)
  • SICP (3)
  • Testing (8)
  • Thoughts (33)
  • THREE.js (1)
  • Tools (16)
  • TypeScript (4)
  • Ubuntu (7)
  • Uncategorized (11)
  • VIM (4)
  • VSCode (2)
  • Webpack (4)

Archives

  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • August 2024
  • July 2024
  • July 2023
  • March 2023
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • January 2022
  • September 2021
  • April 2021
  • February 2021
  • January 2021
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • July 2019
  • June 2019
  • April 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • July 2018
  • June 2018
  • May 2018
  • February 2018
  • January 2018
  • December 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • February 2017
  • January 2017
  • November 2016
  • October 2016
  • September 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • September 2013

Tags

AngularJS Book Charles Chrome CoffeeScript Compatibility CSS DigitalOcean Flask Fun Future Future Reference Git Jasmine JavaScript jQuery Knowledge Learn Less Map Material Design NextJS NodeJS parallax Performance PHP Programmers Proxy Psychology Python Rails ReactJS Reference RoR Ruby Ruby on Rails Self-teach Snippet Testing The Art of Learning Three.js Vim Webpack Wordpress Xcode

Most Helpful Posts

  • Angular Email Validation with Ng-Pattern (2596)
  • How to: Prevent Body From Scrolling When Overlay Is On (2291)
  • Reference: $state.go() with Parameter (1604)
  • Angular: All About Input Type="File" (1543)
  • Protractor Locators (Selectors) (1062)
  • How To Remove All NPM Proxy Settings (931)
  • Disable Popup "Please Fill In this Field" (859)
  • Cannot read property 'replace' of undefined in jQuery (562)
  • React: How To Prompt User of Unsaved Data before Leaving Site (556)
  • Object.prototype.toString.call()? (555)
  • How to: Prevent Body From Scrolling (459)
  • Angular Directive: Click Elsewhere? (402)
  • Render Post Processing with Three.js (293)
  • Angular: Requiring ng-model as Component (243)
  • Common Errors with NanoScroller (229)

Total quant of thanks: 18729

  • Email
  • LinkedIn
  • Instagram
  • GitHub
  • Widgets
  • Connect
  • Search

Have Fun Learning

Passionately Curious

Menu

Skip to content
  • Portfolio
  • Recommendations
  • Archive
  • About
  • 日志

Category Archives: JavaScript

JavaScript, Tools, Webpack

Webpack: How to Import from Root

February 25, 2020lucia 1 Comment

It can be easily set up with a module resolver:

Continue reading →
Standard
JavaScript, TypeScript

Difference between ESLint and Prettier

December 6, 2019luciaESLint, Lint, Prettier Leave a comment

What they do:

  • ESLint: underline when code doesn’t comply to logical rules. Can run a script and fix some easy errors (etc. unused variables lying around)
  • Prettier: doesn’t change the logic of code, only formats it (etc. removing extra spaces, turning double quotes to singles)
Continue reading →
Standard
JavaScript

new Date() Not Valid in Safari

October 22, 2019lucia Leave a comment

Not all the date formats can be used to create a date with new Date().

Continue reading →
Standard
JavaScript

Object doesn’t support property or method ‘scrollTo’

October 14, 2019lucia Leave a comment

Even if Edge is not called Internet Explorer, it’s still basically IE. 🙁 And IEs don’t support scrollTo.

Continue reading →
Standard
JavaScript, ReactJS

React: How To Prompt User of Unsaved Data before Leaving Site

February 9, 2019luciaReact, ReactJS 2 Comments

There’s a specific function for this: beforeunload.

Continue reading →
Standard
JavaScript

Yarn Upgrade All Dependencies to Latest

January 30, 2019luciaReference Leave a comment

For reference:

yarn upgrade-interactive --latest

And use a key to select all of them.

Standard
JavaScript

Looping Through Async/Await

January 10, 2019lucia Leave a comment

Two situations.

Continue reading →
Standard
JavaScript

Webpack: New Resolve Root Path

November 11, 2018luciaVSCode, Webpack Leave a comment
- src
 |- components
 ||- CatComponent.js
 ||- DogComponent.js
- node_modules

/* src/components/DogComponent.js */
import CatComponent from 'components';

For importing from another directive to work like imports from node_modules like above, configure webpack.

Continue reading →
Standard
JavaScript

Tab Forever Loading

September 25, 2018lucia Leave a comment

If you find the loading spinner in browser tab spinning forever, it might be due to the use of document.write().

Continue reading →

Standard
AngularJS, JavaScript

AngularJS: How to Get The Controller of Another Component

May 16, 2018lucia 1 Comment

Or perhaps it should be called “How to get rid of the $parent.$parent.$parent...$parents in your code”, or “How do components talk to one another”.

There are a couple of ways to deal with it.
Continue reading →

Standard

Post navigation

← Older posts
Leonpharmacy.com | Theme: Ryu by WordPress.com.
Have Fun Learning
Proudly powered by WordPress Theme: Ryu.