Skip to content

Instantly share code, notes, and snippets.

How Do You Upgrade Yarn?

I think much like NODE or NPM we get ourselves into these modes sometimes where what should be a simple question leads to a Google Search and of course, a StackOverflow Discussion 🙂

How do you upgrade the package that installs and updates packages?

The answer isn't obvious at all:

yarn policies set-version

From the Documentation, there is this note:

@kdarty
kdarty / README.md
Last active May 30, 2019 12:31
Sass based Feature Toggle Styles implementation.

Sass based Mixin that can be used to easily disable or hide features within your markup.

Basic usage:

<ul class="dropdown-menu" role="menu">
    <li role="menuitem" class="feature-toggle-disabled">
        <a class="dropdown-item">Coming Soon Feature</a>
    </li>
 
@kdarty
kdarty / string-enums-demo.ts
Created August 15, 2018 15:25
Here's a quick demo of using a set of Enums to derive a full Description for a Lookup value when only the Identifier was provided. Code is a copy/paste from TypeScript Playground for ease of testing
// String Enum Example using the TypeScript Playground example for test purposes
// Test here: https://www.typescriptlang.org/play/
class Greeter {
greeting: string;
constructor(message: string) {
this.greeting = message;
}
greet(skip = false) {
let skipMessage = null;
@kdarty
kdarty / Flexbox-Cross-Browser-Tips-and-Tricks.md
Last active May 19, 2017 15:53
The following are tips, tricks and links to great articles and repositories of solutions to help in dealing with those super annoying cross-browser Flexbox issues (looking right at you IE).

Flexbox Cross-Browser Tips and Tricks

The following are tips, tricks and links to great articles and repositories of solutions to help in dealing with those super annoying cross-browser Flexbox issues (looking right at you IE).

Articles and Reference Repositories

A Complete Guide to Flexbox (CSS-Tricks)
https://css-tricks.com/snippets/css/a-guide-to-flexbox/

Flexbugs (Philip Walton)

@kdarty
kdarty / Getting-Started-On-A-Mac.md
Last active May 11, 2017 18:39
The following is a running list of great articles, tips and tricks for getting started as a new Mac user. Probably the most difficult thing to grasp moving to a Mac from Windows is the Keyboard so you will find a lot of great resources below.

Getting Started On A Mac

The following is a running list of great articles, tips and tricks to help you get up to speed on a Mac.

Keyboard and Mouse

Top 10 Mac keyboard shortcuts everyone should know
http://www.cultofmac.com/317935/top-10-mac-keyboard-shortcuts/

How to master the keyboard on Mac OS X: A comprehensive guide

@kdarty
kdarty / chrome-extensions-responsive-design.md
Last active May 1, 2017 13:33
Useful Google Chrome Extensions for Responsive Design
@kdarty
kdarty / Full Stack Web Developer Position Skill Set.md
Last active April 28, 2017 20:13
As I prepare to move on to a new position, my boss asked me to write my own Job Description so he could find someone to replace me. This is my quick stab at it. What would you add or remove? Obviously, this particular position is using SQL Server for database but overall, is it too basic? What are your thoughts? By the way, I already turned in t…

Full Stack Web Developer Position Skill Set

  • Web Fundamentals: HTML, CSS, JavaScript (3 - 5 years of experience, responsive design a must)
  • UI Developer Skills (keenly attuned to look, feel and usability)
  • Experience with Adobe Photoshop and familiar with Design tools such as , Sketch and Balsamiq
  • C# Programming Language (3 - 5 years of experience)
  • Strong understanding of object-oriented programming
  • Skill for writing reusable C# libraries
  • Familiar with various design and architectural patterns
  • Design, build and maintain efficient, reusable and reliable C# code.
@kdarty
kdarty / ReadMe.md
Last active April 27, 2017 19:08
Session Management and Extension from Web Front-end client with graceful user prompt.

Session Management and Extension

The one problem all web developers face is how to make Session Timeouts more user-friendly.

What do you do when a user decides to go do something else and doesn't finish what they are doing on your site? You know that there are Web Sessions and possibly even a Database Session that needs to be maintained. So how do you make that friendly to your user?

A good answer would be to prompt the user before timeout and give them the option to extend the Session.

If the user doesn't see or otherwise react to this prompt, you should simply log the user out and return to some sort of "home" or otherise "landing" page to make sure they don't come back only to find nothing works.

@kdarty
kdarty / HTML5 Input Types and the User Experience.md
Created April 14, 2017 15:24
HTML5 has advanced the state of Web Development in so many ways but one crucial ability it has granted, which is being pushed heavily by the Mobile Computing industry, is the User Experience. We're not in Kansas anymore! Here are some great tips and information to help you take your app to the next level.

HTML5 Input Types and the User Experience

The HTML5 specification adds several new input types:

  • color
  • date
  • datetime-local
  • email
  • month
  • number
  • range