Skip to content

Instantly share code, notes, and snippets.

View Spea's full-sized avatar
💻
Coding

Martin Parsiegla Spea

💻
Coding
View GitHub Profile
// https://bsaber.com/songs/top/page/2/?time=3-months&difficulty=expert-plus&ranked=false#038;difficulty=expert-plus&ranked=false
function getTitle(node) {
let artist = node.querySelector('.mapper_id').innerText;
let song = node.querySelector('.entry-title').innerText;
return `${artist} (${song})`.replace(/[^().-_a-z0-9[\] ]+/ig, '');
}
function getFile(node) {
@neojp
neojp / gist:5561946
Created May 12, 2013 00:42
How to install Node.js & NPM on CentOS 6.4
# rpm -Uvh http://epel.mirror.constant.com/6/i386/epel-release-6-8.noarch.rpm
# yum --enablerepo=epel-testing install npm
@amitchhajer
amitchhajer / Count Code lines
Created January 5, 2013 11:08
Count number of code lines in git repository per user
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n
@ziadoz
ziadoz / awesome-php.md
Last active July 13, 2024 05:29
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.