Skip to content

Instantly share code, notes, and snippets.

Avatar
🦁
Legacy Wrastlin'

mmmeff

🦁
Legacy Wrastlin'
View GitHub Profile
@mmmeff
mmmeff / ng-svg.js
Created Jan 27, 2015
Quick little SVG injector in Angular. Uses Snap-svg, so make sure it's included in your project.
View ng-svg.js
var app = angular.module('myApp');
app.factory('Snap', [
function () {
return window.Snap;
}
]);
app.directive('ngSvg', function (Snap) {
View myElements.less
.super-element {
&__inner-stuff {
width: 69px;
}
@media screen and (max-width: 760px;) {
&__farts {
height: 10px;
}
}
@mmmeff
mmmeff / install-node-js.sh
Last active Apr 4, 2017 — forked from ankurk91/install-node-js.sh
Install node js and npm on Ubuntu/Mac using nvm
View install-node-js.sh
#!/bin/bash
# Install node and npm via nvm - https://github.com/creationix/nvm
# Run this script like - bash script-name.sh
# Prevent source
[[ "${BASH_SOURCE[0]}" != "${0}" ]] && echo -e "\e[91m This script is being sourced, will exit now \e[39m" && return
# Script will auto terminate on errors
set -e