This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## sdtv_mode | |
## defines the TV standard for composite output | |
## | |
## Value Description | |
## ------------------------------------------------------------------------- | |
## 0 Normal NTSC (Default) | |
## 1 Japanese version of NTSC - no pedestal | |
## 2 Normal PAL | |
## 3 Brazilian version of PAL - 525/60 rather than 625/50, different | |
## subcarrier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.............. |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FIRST ATTEMPT | |
#!/bin/bash | |
AMPPS_DIR='/Applications/AMPPS/www' | |
sudo rm -f $AMPPS_DIR | |
sudo ln -s $1 $AMPPS_DIR | |
# SECOND ATTEMPT | |
#!/bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eventListener = function (widget) { | |
widget.$postalCode.one('focus', function () { | |
applyValidationRules(widget); | |
}); | |
widget.$country.on('change', function () { | |
applyValidationRules(widget); | |
}); | |
widget.$parentForm.on('submit', function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<widget xmlns = "http://www.w3.org/ns/widgets" | |
xmlns:gap = "http://phonegap.com/ns/1.0" | |
id = "com.bundle.identifier" | |
versionCode="1" | |
version = "1.0"> | |
<name>ProjectName</name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meowsus@neonhunk:~/Sandbox/dev/rails_projects/demo_app$ bash --login | |
meowsus@neonhunk:~/Sandbox/dev/rails_projects/demo_app$ which bash | |
/bin/bash | |
meowsus@neonhunk:~/Sandbox/dev/rails_projects/demo_app$ bundle update | |
ERROR: Gem bundler is not installed, run `gem install bundler` first. | |
meowsus@neonhunk:~/Sandbox/dev/rails_projects/demo_app$ gem install bundler | |
Successfully installed bundler-1.3.5 | |
1 gem installed | |
meowsus@neonhunk:~/Sandbox/dev/rails_projects/demo_app$ bundle update | |
ERROR: Gem bundler is not installed, run `gem install bundler` first. |
NewerOlder