Instantly share code, notes, and snippets.

View css-variables.md
View bitbucket.js
// remove all released branches (ahead = 0)
'git push origin :' + jQuery('#branch-list tbody tr')
.find('.last-updated-column')
.filter(function() {
return parseInt(this.textContent.match(/[\d]{4}/)) <= 2016;
})
.closest('tr')
.find('.ahead-graph.empty-count')
.closest('tr')
.find('.branch-name-column .line a')
View github-emoji.md

GitHub Emoji

This is a complete list of GitHub Emojis that you can use in your markdown file or html page.

length: 1451

Image Emoji HTML Entity
grinning 😀 :grinning: 😀 &#x1f600;
View copy-to-clipboard.js
function copyToClipboard( text ) {
var textarea = document.createElement('textarea');
textarea.innerText=text;
document.getElementsByTagName('body')[0].append(textarea);
textarea.select();
try {
var successful = document.execCommand('copy');
console.log('copied ' + (successful ? 'successfully' : 'unsuccessfully'));
View mysqldump.sh
# usage: ./dump.sh
HOST=127.0.0.1
USER=root
DATABASE=database
OUTPUT=dump.sql.zip
EXCLUDED_TABLES=(
table1
table2
tableN
View .bash_completion_ssh.sh
# MIT License
#
# Copyright (c) 2016 Marco Montalbano
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
View webserver.js
/**
* name: Web Server for Node.js
* author: Marco Montalbano
* references: Node for Front-End Developers - Garann Means
*
* how to use
* ----------
* - install node.js (https://nodejs.org)
* - # node webserver.js
*