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 zoom = panorama.getPov().zoom; | |
var fov = 180/Math.pow(2,zoom); |
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
// | |
// CoolUnitySceneViewController.m | |
// Unity-iPhone | |
// | |
// Created by Frederik Jacques on 06/08/14. | |
// | |
// | |
#import "CoolUnitySceneViewController.h" | |
#import "GoodByeViewController.h" |
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
input[type="search"] { -webkit-appearance: textfield; } |
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
<!-- Regular expression for UK postcodes --> | |
<label for=postcode>Postcode<span class="red">*</span></label> | |
<input name=postcode type=text aria-required required pattern="[0-9]{5}(\-[0-9]{4})?|[a-zA-Z]{1,2}\d{1,2}\s?\d[a-zA-Z]{1,2}" placeholder="A valid UK postcode" /> | |
<!-- to test in the browser console use: --> | |
/^(:?[a-zA-Z]{1,2}\d{1,2}\s?\d[a-zA-Z]{1,2})$/.test("tn12 6an") |
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
#import <Foundation/NSTimer.h> | |
@interface NSTimer (PSYBlockTimer) | |
+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds repeats:(BOOL)repeats usingBlock:(void (^)(NSTimer *timer))fireBlock; | |
+ (NSTimer *)timerWithTimeInterval:(NSTimeInterval)seconds repeats:(BOOL)repeats usingBlock:(void (^)(NSTimer *timer))fireBlock; | |
@end | |
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
protected function getNewBitmap(data:BitmapData):Bitmap | |
{ | |
var horizontalRatio:Number = this.width / data.width; | |
var verticalRatio:Number = this.height / data.height; | |
var ratio:Number = Math.max(horizontalRatio,verticalRatio); | |
var matrix:Matrix = new Matrix(); | |
matrix.scale(ratio,ratio); |
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
package { | |
import flash.display.DisplayObject; | |
import flash.display.Loader; | |
import flash.display.MovieClip; | |
import flash.display.SWFVersion; | |
import flash.display.Sprite; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.events.Event; |
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="iso-8859-1" ?> | |
<!-- | |
This file provides a convenient mapping of the Flash MX 2004 UnicodeTable.xml character ranges | |
for use in Macromedia Flex's configuration file. You can copy ranges from this reference list and add | |
them to Flex's configuration file. | |
Developers embed fonts into applications as not every client has the same fonts installed. To reduce | |
the size of the application developers often include a subset of the characters available in a font - | |
this subset is known as a character range. |
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
// | |
// CaptureViewController.m | |
// TimeSmear | |
// | |
// Created by Lee Probert on 23/02/2012. | |
// Copyright (c) 2012 LyraSpace Ltd. All rights reserved. | |
// | |
#import "CaptureViewController.h" |
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
package com.cc.eurostarlive.layouts | |
{ | |
import mx.core.ILayoutElement; | |
import mx.core.IVisualElement; | |
import spark.layouts.supportClasses.LayoutBase; | |
public class GridConstraintBasicLayout extends LayoutBase | |
{ | |
/* |
OlderNewer