Skip to content

Instantly share code, notes, and snippets.

Avatar
⚰️
Feelin' Fine

Curt Howard meowsus

⚰️
Feelin' Fine
View GitHub Profile
@meowsus
meowsus / slugify.js
Last active May 11, 2021 — forked from hagemann/slugify.js
Slugify makes a string URI-friendly
View slugify.js
function slugify(string) {
const a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;'
const b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------'
const p = new RegExp(a.split('').join('|'), 'g')
return string.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(p, c => b.charAt(a.indexOf(c))) // Replace special characters
.replace(/&/g, '-and-') // Replace & with 'and'
.replace(/[^\w-]+/g, '') // Remove all non-word characters
View .gitconfig
[alias]
s = status -s
d = diff
fuck = reset --hard HEAD
co = checkout
cob = checkout -b
softfuck = reset --soft HEAD~1
ri = rebase -i
cp = cherry-pick
f = fetch
@meowsus
meowsus / sass-spec report
Created Jul 11, 2017
From `sassc-ruby` root, running `bundle exec sass-spec/sass-spec.rb`
View sass-spec report
Recursively searching under ~/Sandbox/github/sassc-ruby/sass-spec/spec for test files to test 'ruby-sass' against language version 3.4.
3.4.24 (Selective Steve)
Run options: --seed 54014
# Running:
...........................-............F............F....................................................................F........................................................F........................F..F.............................................................F.........................F....F..........................F........F......................F...................F..............................................................-..........................................F......-.............................F.....................................F..........-F................................F.......................................F.....F...-..........FF.............................................F...F......................................F..........F...................F.................F.F.F..............
View keybase.md

Keybase proof

I hereby claim:

  • I am meowsus on github.
  • I am meowsus (https://keybase.io/meowsus) on keybase.
  • I have a public key ASBdginTRLbfyPV66PUqcvG4Q9y-ijhLuZC8ALzYGWHLVQo

To claim this, I am signing this object:

@meowsus
meowsus / ultimate-ut-cheat-sheet.md
Created Sep 23, 2015 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon
View ultimate-ut-cheat-sheet.md
View gist:16e2faebb42eacd6daa3
<font size="-3" style="display: inline-block; background: black;">
<pre><font color="#221b29">0</font><font color="#130d12">1</font><font color="#241c1a">0</font><font color="#231b11">0</font><font color="#20190b">0</font><font color="#1b1304">1</font><font color="#150e03">1</font><font color="#1d1508">0</font><font color="#2a1e12">1</font><font color="#1f0f08">1</font><font color="#1e0c05">1</font><font color="#1a0b04">0</font><font color="#1a0d05">0</font><font color="#1e0f06">1</font><font color="#1c0d04">0</font><font color="#1f0e05">0</font><font color="#1f0d04">1</font><font color="#210e05">0</font><font color="#251006">1</font><font color="#260e06">0</font><font color="#260e05">1</font><font color="#270e05">0</font><font color="#250d04">1</font><font color="#230e04">0</font><font color="#210e04">0</font><font color="#1f0f04">1</font><font color="#1f1108">0</font><font color="#1e110c">0</font><font color="#1d0f0a">1</font><font color="#1f0e0b">1</font><font color="#260d11">0</font><font color="#250914">
@meowsus
meowsus / SassMeister-input-HTML.html
Created Jul 28, 2015
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<div class='huge'>
<div class='realhuge'>
huuuuge
</div>
</div>
View keybase.md

Keybase proof

I hereby claim:

  • I am meowsus on github.
  • I am meowsus (https://keybase.io/meowsus) on keybase.
  • I have a public key whose fingerprint is FE31 1055 ACFC D525 7438 9BED 4411 54A3 CEE1 A596

To claim this, I am signing this object:

@meowsus
meowsus / SassMeister-input.scss
Created Apr 27, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
$base-font-size: 16px !default;
$base-spacing-unit: $base-font-size !default;
.first {
font-size: $base-font-size;
@meowsus
meowsus / SassMeister-input.scss
Created Oct 29, 2014
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// ----
@function property-prefixes($property, $prefixes: '-ms-' '-webkit-' '-o-' '-moz-') {
$properties: $property;
@each $prefix in $prefixes {
$properties: $properties #{$prefix}#{$property}