Skip to content

Instantly share code, notes, and snippets.

View Milkywayrules's full-sized avatar
🧐

Dio Ilham Djatiadi Milkywayrules

🧐
View GitHub Profile
@leon
leon / README.md
Last active April 21, 2023 07:04
NX tailwind 3 setup

Tailwind 3 has jit mode and purge built in.

So we only need to specify a list of globs to the content prop of the tailwind.config.js

@nrwl/workspace contains a function called createGlobPatternsForDependencies which can generate an array of globs that you can pass to tailwind.

@amerkay
amerkay / lean-startup-guide.md
Last active April 7, 2024 17:45
The Beginner’s Guide to Lean Startup

The Beginner’s Guide to Lean Startup

Originally published on March 29, 2016 By Danny Holtschke. It was taken down, so I revived it from the Web Archives.

Note that some links, starting with web.archive.org, may not load properly, but should be readable.

The Beginner’s Guide to Lean Startup is your starting point to avoiding the biggest startup founder mistake — ever. Building something nobody wants.

Lean

@ghalusa
ghalusa / youtube_id_regex.php
Created June 20, 2015 23:14
Extract the YouTube Video ID from a URL in PHP
<?php
// Here is a sample of the URLs this regex matches: (there can be more content after the given URL that will be ignored)
// http://youtu.be/dQw4w9WgXcQ
// http://www.youtube.com/embed/dQw4w9WgXcQ
// http://www.youtube.com/watch?v=dQw4w9WgXcQ
// http://www.youtube.com/?v=dQw4w9WgXcQ
// http://www.youtube.com/v/dQw4w9WgXcQ
// http://www.youtube.com/e/dQw4w9WgXcQ
// http://www.youtube.com/user/username#p/u/11/dQw4w9WgXcQ