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
Microsoft Visual Studio Community 2015 | |
Version 14.0.25431.01 Update 3 | |
Microsoft .NET Framework | |
Version 4.6.01586 | |
Installed Version: Community | |
Visual Basic 2015 00322-20000-00000-AA088 | |
Microsoft Visual Basic 2015 |
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
using Xamarin.Forms; | |
namespace ${Namespace}.Views | |
{ | |
public partial class MainPage : ContentPage | |
{ | |
public MainPage () | |
{ | |
InitializeComponent (); | |
} |
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
mkdir drawable-xxhdpi; mkdir drawable-xhdpi; mkdir drawable-hdpi; mkdir drawable-mdpi | |
for file in $(find . -type f -iname '*-xxhdpi*'); do | |
mv "$file" "drawable-xxhdpi/${file/-xxhdpi/}" | |
done | |
for file in $(find . -type f -iname '*-xhdpi*'); do | |
mv "$file" "drawable-xhdpi/${file/-xhdpi/}" | |
done | |
for file in $(find . -type f -iname '*-hdpi*'); do | |
mv "$file" "drawable-hdpi/${file/-hdpi/}" | |
done |
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
using System; | |
using UIKit; | |
namespace Utils | |
{ | |
public static class Zeplin | |
{ | |
public static UIColor TopazColor(this UIColor color) | |
{ | |
return UIColor.FromRGBA( |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<bundle> | |
<!-- (optional) describes alternate manifests for this product --> | |
<bundleLinks> | |
<link title="High Crown/Curved Bill" xmlURL="/uploads/designer/assets/products/384425_true_fitted_4_caps/384425_fitted_high_crown_curved_bill.xml" /> | |
<link title="High Crown/Flat Bill" xmlURL="/uploads/designer/assets/products/384425_true_fitted_4_caps/384425_fitted_high_crown_flat_bill.xml" /> | |
<link title="Medium Crown/Curved Bill" xmlURL="/uploads/designer/assets/products/384425_true_fitted_4_caps/384425_fitted_medium_crown_curved_bill.xml" /> | |
<link title="Medium Crown/Flat Bill" xmlURL="/uploads/designer/assets/products/384425_true_fitted_4_caps/384425_fitted_medium_crown_flat_bill.xml" /> | |
</bundleLinks> | |
<!-- (optional) overrides defaults for the scene --> |
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
public static float EaseOutBack(float t, float start, float length) | |
{ | |
float s = 1.70158f; | |
return length*((t=t-1)*t*((s+1)*t + s) + 1) + start; | |
} |
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 localMediaTime = CAAnimation.CurrentMediaTime(); | |
NSObject[] keyframes = TweenBuilder.CreateKeyValues(-295, 0, Easing.EaseOutBounce); | |
var homeIn = new CAKeyFrameAnimation { | |
KeyPath = "position.x", | |
Duration = 1.4, | |
BeginTime = localMediaTime, | |
FillMode = CAFillMode.Forwards, | |
RemovedOnCompletion = false, |
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
using System; | |
using System.IO; | |
using MonoTouch.UIKit; | |
namespace | |
{ | |
public static class ScreenResolutionUtil | |
{ | |
public static bool IsTall |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace V2DRuntime.Tween | |
{ | |
public delegate float EasingFormula(float t, float start, float length); | |
// easing equations from the ever brilliant Robert Penner |
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
// addEventListener polyfill 1.0 / Eirik Backer / MIT Licence | |
(function(win, doc){ | |
if(win.addEventListener)return; //No need to polyfill | |
function docHijack(p){var old = doc[p];doc[p] = function(v){return addListen(old(v))}} | |
function addEvent(on, fn, self){ | |
return (self = this).attachEvent('on' + on, function(e){ | |
var e = e || win.event; | |
e.preventDefault = e.preventDefault || function(){e.returnValue = false} | |
e.stopPropagation = e.stopPropagation || function(){e.cancelBubble = true} |