One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
// find all elements with a z-index and indicate what they are. | |
// uses css outline which is not supported in IE <8 | |
function contrast(color){ return '#' + | |
(Number('0x'+color.substr(1)).toString(10) > 0xffffff/2 ? '000000' : 'ffffff'); | |
} | |
jQuery('*') | |
.filter(function(){ return $(this).css('zIndex') !== 'auto'; }) | |
.each(function(){ |
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt |
angular.module('demo').service('imageService', function ($http, $q, $timeout) { | |
var NUM_LOBES = 3 | |
var lanczos = lanczosGenerator(NUM_LOBES) | |
// resize via lanczos-sinc convolution | |
this.resize = function (img, width, height) { | |
var self = { } | |
self.type = "image/png" | |
self.quality = 1.0 |
var DEBUG = true; | |
//var name = "name", type = "type", stage = "stage", caught = "caught"; | |
var grass = "grass", water = "water", fire = "fire", bug = "bug", | |
psychic = "psychic", flying = "flying", ghost = "ghost", fighting = "fighting", | |
normal = "normal", poison = "poison", electric = "electric", ground = "ground", | |
fairy = "fairy", rock = "rock", ice = "ice", dragon = "dragon"; | |
var Pokemon = [ | |
{ name : "MissingNo", type : "blank", stage : 100, caught : 0, species : "Glitch Pokemon"}, |