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
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0] |
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
// Tail node log | |
bdalziel@dev02:~$ sudo su | |
[sudo] password for bdalziel: | |
root@dev02:/home/bdalziel# tail -f /var/log/node/less.log | |
.. log ... | |
// Kill & restart process in background |
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
bdalziel-air:~ bdalziel$ cd github/SlyTrunk/ios-shapeshuffle-v2/ | |
bdalziel-air:ios-shapeshuffle-v2 bdalziel$ mkdir .git/info | |
bdalziel-air:ios-shapeshuffle-v2 bdalziel$ emacs .git/info/exclude |
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
YUI.add("muse-pin-it-button", function (Y) { | |
var isInit = false; | |
var putButtonMarkupOnPage = function () { | |
var urlParams = window.location.search.substr(1) + ""; | |
var params = Y.QueryString.parse(urlParams); | |
var url = params.url; | |
var description = params.description; | |
var media = params.media; | |
Y.one('body').setContent('<a data-pin-config="beside" href="//pinterest.com/pin/create/button/?url=' + url + '&media=' + media + '&description=' + description + '" data-pin-do="buttonPin" ><img src="//assets.pinterest.com/images/pidgets/pin_it_button.png" /></a>'); | |
} |
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
<html> | |
<head> | |
<script src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js" type="text/javascript"></script> | |
<style type="text/css"> | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
</style> |
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
var sizeZoomRatio = function (gallery) { | |
var zoomBodyNode = gallery.one('.zoomBody'); | |
var zoomBodyRatioNode = zoomBodyNode.one('.zoomBoundaryRatio'); | |
zoomBodyRatioNode.addClass('nudging'); | |
var imgWidth = Y.Util.getClassValue(zoomBodyRatioNode, 'imgW'); | |
var imgHeight = Y.Util.getClassValue(zoomBodyRatioNode, 'imgH'); |
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
var performZoomAndPositionImg = function (newZoomLevel) { | |
var zoomScaleContainer = Y.one('.fullScreenGallery .fullScreenExperience'); | |
var zoomBoundary = zoomScaleContainer.one('.zoomBoundary'); | |
var zoomImage = zoomBoundary.one('.zoomImg'); | |
var oldLeftOffset = zoomImage.get('offsetLeft'); | |
var oldTopOffset = zoomImage.get('offsetTop'); | |
var oldImgHeight = zoomImage.get('offsetHeight'); | |
var oldBoundaryHeight = zoomBoundary.get('offsetHeight'); |
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
@boundaryScale: 2; | |
.zoomStep(@zoomFactor) { | |
@boundarySize: (@boundaryScale * @zoomFactor); | |
.zoomBoundary { | |
width: @boundarySize; | |
height: @boundarySize; | |
top: (0 - (@boundarySize - 100%)/2); | |
left: (0 - (@boundarySize - 100%)/2); | |
} | |
@imgPrimaryDimensionSize: ((100% + ((@boundarySize - 100%)/2)) / (@boundarySize/100)); |
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
.zoom-100 { .zoomStep(100%); } | |
.zoom-125 { .zoomStep(125%); } | |
.zoom-150 { .zoomStep(150%); } | |
.zoom-175 { .zoomStep(175%); } | |
.zoom-200 { .zoomStep(200%); } | |
.zoom-225 { .zoomStep(225%); } | |
.zoom-250 { .zoomStep(250%); } | |
.zoom-275 { .zoomStep(275%); } | |
.zoom-300 { .zoomStep(300%); } |
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
li.gallerySlide .slideBody { | |
height: 100%; | |
/* Total width = 100% with padding */ | |
width: 80%; | |
padding-left: 5%; /* nudge selected slide in from left */ | |
padding-right: 15%; /* PEEK */ | |
overflow: auto; /* think vertical scroll bars with small browser height */ | |
} | |
li.gallerySlide .assetWrap { |