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
//The first example is adding a subview to your MainWindow nib so that it loads a nib from another view controller. | |
//The following code goes in the AppDelegate.m under the following method | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
// Override point for customization after application launch | |
[window addSubview:switchViewController.view]; //replace switchViewController with your own viewController | |
[window makeKeyAndVisible]; | |
return YES; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Getting data back with Datasource</title> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css"> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.2.0/build/cssbase/base-min.css"> | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/3.2.0/build/cssgrids/grids-min.css"> | |
<link rel="stylesheet" type="text/css" href="styles.css"> | |
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
/*Gradient Text in Webkit*/ | |
.gradient { | |
font-size: 100px; | |
background: -webkit-gradient(linear, left top, left bottom, from(white), to(black)); | |
-webkit-background-clip: text; | |
-webkit-text-fill-color: transparent; | |
} | |
/*Inset Text*/ | |
.inset { |
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
/** | |
* Simple Drag plugin that can be attached to a Node or Widget via the plug method. | |
* @module dd | |
* @submodule dd-plugin | |
*/ | |
/** | |
* Simple Drag plugin that can be attached to a Node or Widget via the plug method. | |
* @class Drag | |
* @extends DD.Drag |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<head> | |
<script type="text/javascript" src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js"></script> | |
<style> | |
body { | |
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", | |
"Helvetica Neue", sans-serif; |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<head> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="default" /> | |
<meta name="apple-touch-fullscreen" content="yes" /> | |
<meta name="viewport" content="width=device-width,maximum-scale=1.0" /> | |
<meta name = "viewport" content = "initial-scale = 1.0, user-scalable = no"> | |
<script type="text/javascript" src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js"></script> |
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
{ | |
"name" : "panel", | |
"displayName": "Panel", | |
"description": "The Panel is a UI Control that is meant to behave similarly to an OS window. The Panel control extends the functionality of Overlay, adding support for modality, close/dismiss buttons, autohiding and autofocus. Plugins to make it draggable and resizable are supported as well. Panel includes a pre-defined stylesheet to support default look and feel characteristics.", | |
"author" : "tilomitra", | |
"tags": ["widget", "beta", "panel", "extension"], | |
"use" : ["panel"], | |
"examples" : [ |
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 scrollView = new Y.ScrollView({ | |
srcNode: '#resultList', | |
height: 260, | |
flick: { | |
minDistance:1, | |
minVelocity:0.4, | |
axis: "y" | |
}, | |
deceleration: 0.983, | |
bounce:0.65, |
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
/* | |
This method takes a NSDictionary of likes returned by facebook and returns an NSMutableDictionary of NSArrays, where | |
each key in the dictionary corresponds with a "category" | |
For example: | |
{ | |
"company": [{} , {} , {} ], | |
"song": [ {} , {} ] | |
} | |
OlderNewer