Skip to content

Instantly share code, notes, and snippets.

View mrtnpro's full-sized avatar
🍦

Martin mrtnpro

🍦
View GitHub Profile
@mrtnpro
mrtnpro / virtualhostx-rails-app-conf
Created May 18, 2015 15:59
VirtualHostX Custom Directives config for Rails apps
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ http://localhost:3000/%{REQUEST_URI} [P,QSA]
<Proxy *>
Allow from all
</Proxy>
@mrtnpro
mrtnpro / all_scss_to_sass
Created January 3, 2016 19:37 — forked from ryanburnette/sass-to-scss.sh
Convert all .scss files in the current directory to .sass files.
#!/usr/bin/env bash
for file in *.scss
do
sass-convert $file `echo $file | sed s/.scss/.sass/g`;
done
rm *.scss

Description

Describe the big picture of your changes, explain your motivation and give as much context as possible. If it fixes a bug or resolves a feature request, be sure to link to that issue (use Github's auto-closing keywords.

Don't forget to set a meaningful title and use appropriate labels.

Types of changes

What types of changes does your code introduce?

Description

Feature Request? Explain why this feature should be added. Specific use-cases are best. If you include designs please append Screenshots or Zeplin links and explain (interactive) UI elements.

Bug Reports? Please provide as much relevant info as possible. Before you submit your issue, search the archive, maybe your question was already answered.

Keybase proof

I hereby claim:

  • I am mrtnpro on github.
  • I am mrtnpro (https://keybase.io/mrtnpro) on keybase.
  • I have a public key ASAhWPPKk7p0zKHcA87qhvgH7SICJ_m173WWvkbY1tmYvwo

To claim this, I am signing this object:

@mrtnpro
mrtnpro / debug.jsx
Created October 14, 2022 12:38
React x Tailwind Grid Overlay
import React from 'react';
import clsx from 'clsx';
const availableGridClassnames = [
'grid-cols-1',
'grid-cols-2',
'grid-cols-3',
'grid-cols-4',
'grid-cols-5',