This file contains hidden or 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 getVisibleWidth(elem) { | |
| // cross browser, returns decimals for ultra-precision | |
| return elem.getBoundingClientRect().right - elem.getBoundingClientRect().left; | |
| } | |
| function getNaturalWidth(elem) { | |
| var old = { | |
| overflow: elem.style.overflow, | |
| width: elem.style.width, | |
| display: elem.style.display |
This file contains hidden or 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 sudokuGenerator() { | |
| 'use strict'; | |
| var test4 = [ | |
| 1, 2, 3, 4, | |
| 3, 4, 1, 2, | |
| 2, 3, 4, 1, | |
| 4, 1, 2, 3 | |
| ]; |
This file contains hidden or 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
| #!/bin/bash | |
| ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)" | |
| brew doctor | |
| sudo gem update --system | |
| gem install compass | |
| brew install phantomjs | |
| brew install jpeg-turbo && brew link jpeg-turbo | |
| brew install optipng | |
| sudo npm install -g yeoman |
NewerOlder