Skip to content

Instantly share code, notes, and snippets.

View MelMacaluso's full-sized avatar
🌝
You are very curious, aren't ya?

Mel Macaluso MelMacaluso

🌝
You are very curious, aren't ya?
View GitHub Profile
@MelMacaluso
MelMacaluso / StringToValidCssClass.js
Last active August 22, 2018 17:30 — forked from dbowling/gist:2589645
Convert text to a valid CSS class name
string = 'Invalid C$$ class name';
// Actually delete the spaces too...
string.replace(/[!\"#$%&'\(\)\*\+,\.\/:;<=>\?\@\[\\\]\^`\{\|\}|\s~]/g, '').toLowerCase();
@MelMacaluso
MelMacaluso / default.conf
Created December 4, 2018 11:50
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;