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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
width: 100px; |
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
/** | |
* Dabblet | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
width: 100px; | |
-webkit-transform:rotate(30deg); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Title</title> | |
<meta name="author" content="" media="screen"> | |
<meta name="description" content="" media="screen"> | |
<link href="http://reset5.googlecode.com/hg/reset.min.css" rel="stylesheet" /> |
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
-webkit-transition: all 0.5s ease; | |
-moz-transition: all 0.5s ease; | |
-o-transition: all 0.5s ease; | |
transition: all 0.5s ease; |
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
/* | |
Intercepts navigation actions in the html document and translates them to selectors when applicable | |
*/ | |
- (void)webView:(WebView *)webView decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request frame:(WebFrame *)frame decisionListener:(id<WebPolicyDecisionListener>)listener | |
{ | |
NSArray *call = [[[request URL] absoluteString] componentsSeparatedByCharactersInSet:[NSCharacterSet characterSetWithCharactersInString:@":"]]; | |
// Find OSX protocol. | |
if ([call[0] isEqualToString:@"osx"]) { |
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
App = new Object(); | |
// Send message to application | |
// with the format osx:selector:attr1:attr2:etc... | |
App.sel = function (sel){ | |
var iframe = document.createElement('iframe'); | |
iframe.setAttribute('src', 'osx:' + sel); | |
document.documentElement.appendChild(iframe); | |
iframe.parentNode.removeChild(iframe); | |
iframe = null; | |
} |
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
/** | |
* Scrolling shadows by @kizmarh and @leaverou | |
* Only works in browsers supporting background-attachment: local; & CSS gradients | |
* Degrades gracefully | |
*/ | |
html { | |
background: white; | |
font: 120% sans-serif; | |
} |
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
- (NSArray *)allTLDArray { | |
return [NSArray arrayWithObjects:@"AC", @"AD", @"AE", @"AERO", @"AF", @"AG", @"AI", @"AL", @"AM", @"AN", @"AO", @"AQ", @"AR", @"ARPA", @"AS", @"ASIA", @"AT", @"AU", @"AW", @"AX", @"AZ", @"BA", @"BB", @"BD", @"BE", @"BF", @"BG", @"BH", @"BI", @"BIZ", @"BJ", @"BM", @"BN", @"BO", @"BR", @"BS", @"BT", @"BV", @"BW", @"BY", @"BZ", @"CA", @"CAT", @"CC", @"CD", @"CF", @"CG", @"CH", @"CI", @"CK", @"CL", @"CM", @"CN", @"CO", @"COM", @"COOP", @"CR", @"CU", @"CV", @"CW", @"CX", @"CY", @"CZ", @"DE", @"DJ", @"DK", @"DM", @"DO", @"DZ", @"EC", @"EDU", @"EE", @"EG", @"ER", @"ES", @"ET", @"EU", @"FI", @"FJ", @"FK", @"FM", @"FO", @"FR", @"GA", @"GB", @"GD", @"GE", @"GF", @"GG", @"GH", @"GI", @"GL", @"GM", @"GN", @"GOV", @"GP", @"GQ", @"GR", @"GS", @"GT", @"GU", @"GW", @"GY", @"HK", @"HM", @"HN", @"HR", @"HT", @"HU", @"ID", @"IE", @"IL", @"IM", @"IN", @"INFO", @"INT", @"IO", @"IQ", @"IR", @"IS", @"IT", @"JE", @"JM", @"JO", @"JOBS", @"JP", @"KE", @"KG", @"KH", @"KI", @"KM", @"KN", @"KP", @"KR", @"KW |
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
/** | |
* Opens a file into a BufferedReader. | |
* | |
* @param filename A file to read. | |
* @return A BufferedReader for reading the file. | |
* @throws FileNotFoundException | |
*/ | |
private static BufferedReader openFile(String filename) throws FileNotFoundException { | |
return new BufferedReader(new FileReader(filename)); | |
} |
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
<link rel="import" href="../google-map/google-map.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
OlderNewer