AND | Tall Viewport (<1) | Square Viewport (=1) | Wide Viewport (>1) |
---|---|---|---|
Tall Image (<1) | fit-height | fit-width | fit-width |
Square Image (=1) | fit-height | fit-width/fit-height | fit-width |
Wide Image (>1) | fit-height | fit-height | fit-width |
This file contains 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
<?php | |
namespace Illuminate\Database\Query\Grammars; | |
use Illuminate\Support\Arr; | |
use Illuminate\Database\Query\Builder; | |
class SqlServerGrammar extends Grammar | |
{ | |
/** |
This file contains 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
/** | |
* This gulpfile will copy static libraries and a index.html file as well as | |
* merge, babelify and uglify the rest of the javascript project. | |
* | |
* TODO: | |
* - Separate media, libs and src with different watchers. | |
* - Media and libs should only be copied to dist if they are different sizes. | |
* | |
* The expected project is to be laid out as such: | |
* |
This file contains 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
var wordList = [ | |
"a", | |
"aardvark", | |
"aback", | |
"abacus", | |
"abaft", | |
"abalone", | |
"abandon", | |
"abandoned", | |
"abase", |
This file contains 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
USER_MAC=$(ifconfig en1 | grep ether | sed 's/.*ether //g' | awk -F: '{printf("%02s:%02s:%02s:%02s:%02s:%02s",$1,$2,$3,$4,$5,$6)}') | |
OUTLET_MAC=$(arp $(route get default | grep gateway | sed 's/ gateway: //g') | sed 's/.* at //g' | sed 's/ on.*//g' | awk -F: '{printf("%02s-%02s-%02s-%02s-%02s-%02s",$1,$2,$3,$4,$5,$6)}') | |
POST_DATA="'checky=1&user_mac=$USER_MAC&outlet_mac=$OUTLET_MAC'" | |
PHPSESSID=$(curl -I -G --max-redirs 0 http://login.d-synergy.com/mcdonalds-new/index.php --data $POST_DATA | grep PHPSESSID | sed 's/.*PHPSESSID=//g' | sed 's/.*PHPSESSID=//g' | sed 's/\;.*//g') | |
COOKIE="'Cookie: PHPSESSID=$PHPSESSID'" | |
POST_DATA="'checky=1&user_mac=$USER_MAC&outlet_mac=$OUTLET_MAC'" | |
echo $COOKIE | |
echo $POST_DATA | |
curl 'http://login.d-synergy.com/mcdonalds-new/check.php' -H $COOKIE -H 'Origin: http://login.d-synergy.com' -H 'Content-Type: application/x-www-form-urlencoded' --data $POST_DATA |
This file contains 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
$.Controller("Comment", | |
{ | |
defaultOptions: { | |
"{comment}": "[data-comment]" | |
} | |
}, | |
function(self) { return { | |
comment: { | |
remove: function(id) { |
This file contains 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
<?php | |
/** | |
* Normalise a file path string so that it can be checked safely. | |
* | |
* Attempt to avoid invalid encoding bugs by transcoding the path. Then | |
* remove any unnecessary path components including '.', '..' and ''. | |
* | |
* @param $path string | |
* The path to normalise. | |
* @param $encoding string |