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
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
<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
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
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
// 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
#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
http://www.neglectedpotential.com/2015/06/working-with-apples-application-transport-security/ | |
http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ | |
http://stackoverflow.com/questions/30739473/nsurlsession-nsurlconnection-http-load-failed-on-ios-9 | |
https://github.com/AFNetworking/AFNetworking/issues/2779 |
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
// | |
// AppearanceManager.swift | |
// | |
// Created by Ben Dalziel on 2/17/16. | |
// | |
import UIKit | |
class AppearanceManager { |
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
enum AppColors: String { | |
case Beige = "#f5efe0", | |
Gold = "#cda582", | |
FMLRed = "#fa463c", | |
BlackVelvet = "#1e0a14", | |
DarkVelvet = "#321e28", | |
Velvet = "#4a283e", //503146", | |
// Alternate colors - use sparingly | |
FMLRedAlt = "#e14137", |