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
Aral testing Gist |
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
/*$(document).live("orientationchange", function(event) { | |
ResizePageContentHeight($(".ui-page")); | |
});*/ | |
// As per: http://code.google.com/p/jqtouch/issues/detail?id=370 | |
$(window).bind('orientationchange', function(event) { | |
ResizePageContentHeight($(".ui-page")); | |
}).trigger('orientationchange'); |
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
// Create a pinch gesture recognizer instance. | |
self.pinchGestureRecognizer = [[[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(pinchGesture:)] autorelease]; | |
// And add it to your text view. | |
[self.myTextView addGestureRecognizer:self.pinchGestureRecognizer]; | |
// ... | |
- (void)pinchGesture:(UIPinchGestureRecognizer *)gestureRecognizer | |
{ |
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 original files are 960x319. | |
Image sizes to save: | |
* 800x266 - Retina for 480x320 resolution (400 logical pixel wide panel areas) | |
* 740x246 - Desktop and iPad | |
* 616x205 - Retina for 320x480 resolution (308 logical pixel wide panel areas) | |
* 400x133 - 480x320 resolution | |
* 308x102 - 320x480 resolution |
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
coffee --print --compile $1.coffee | sed '1s/^.//' | sed 's/ });/}/' | sed "s/\([^ '\"].*[^ '\"]\):/\"\1\":/" > $1.json |
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
/* | |
Apply to a <button> | |
Just playing, during Lea Verou's CSS3 workshop at NDC Oslo. | |
Released under the MIT License. http://en.wikipedia.org/wiki/MIT_License | |
*/ | |
font-size:1em; | |
border-radius: 1em; | |
text-shadow: 1px 1px 0 hsla(0, 0%, 100%, 0.5); |
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
/* Sticker */ | |
.sticker { | |
position: relative; | |
width: 3.5em; | |
height: 3.5em; | |
padding: 1em .5em 0; | |
margin: 100px; | |
background: slategray; | |
color: white; |
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
// Mixins | |
// Since some horrible browsers (e.g., on *spit* Android) don’t let you change the | |
// root em, I’m forced to use the browser default of 16px as the base. This mixin | |
// will help me keep sane by using units that correspond to pixel units. | |
line-height(h) | |
if unit(h) == "rem" | |
line-height: unit(h, 'px') | |
line-height: unit(h/16, 'rem') |
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
From: Pearl Scan <[email protected]> To: Aral Balkan | |
Subject: Link Removal Request From Your Site | |
Hi Aral | |
Some time ago one of my colleagues will have commented on your blog on | |
the link provided below leaving behind a comment and a link back to | |
our website. We have had an unnatural links warning from Google and | |
need to try to have all links that aren't related to our own site |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<svg width="201px" height="380px" viewBox="0 0 201 380" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"> | |
<title>indie-phone</title> | |
<description>Created with Sketch (http://www.bohemiancoding.com/sketch)</description> | |
<defs> | |
<path id="path-1" d="M-0.0291227715,378.94101 L199.872751,378.94101 L199.872751,22.9301112 C199.872751,22.9301112 202.32539,-0.0621634455 177.819211,-0.0621619269 C153.313032,-0.0621604084 18.8468331,-0.0621619269 18.8468331,-0.0621619269 C18.8468331,-0.0621619269 0.105729108,0.487780835 0.105728323,20.1962832 C0.105727868,39.9047856 -0.0291227715,378.94101 -0.0291227715,378.94101 Z"></path> | |
<mask id="mask-2" sketch:name="Path 1" fill="white"> | |
<use xlink:href="#path-1"></use> | |
</mask> | |
</defs> |
OlderNewer