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 lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Title</title> | |
| <link rel="shortcut icon" href="icon.png"> | |
| <link rel="stylesheet" href="css/style.css"> | |
| <script src="https://raw.github.com/jashkenas/coffee-script/master/extras/coffee-script.js"></script> | |
| <script src="https://raw.github.com/satyr/coco/master/extras/coco.js"></script> | |
| <script src="http://documentcloud.github.com/underscore/underscore.js" type="text/javascript"></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
| _.mixin | |
| rejectKeys: (obj, keys) -> | |
| result = {} | |
| for key, val of obj | |
| if not (key in keys) | |
| result[key] = val | |
| result |
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
| - (UIImage *)resizableImageWithInsets: (UIEdgeInsets *)insets | |
| UIImage *stretchableImage; | |
| // Current OS Version | |
| if ([UIImage respondsToSelector:@selector(resizableImageWithCapInsets:)]){ | |
| stretchableImage = [self resizableImageWithCapInsets: insets]; | |
| } else { | |
| stretchableImage = [self stretchableImageWithLeftCapWidth:insets.left topCapWidth:insets.top]; | |
| } | |
| return stretchableImage; | |
| } |
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
| #!/bin/zsh | |
| CURRENT_BRANCH=$(git symbolic-ref HEAD 2>/dev/null | awk -F/ {'print $NF'}) | |
| can_ff() { | |
| a="$(git rev-parse "$1")" && | |
| test "$(git merge-base "$a" "$2")" = "$a" | |
| } | |
| needs_sync(){ |
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
| try { | |
| image = loadImage(id); | |
| } catch (Exception e) { | |
| image = loadImage('cat.jpg'); | |
| } |
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
| -# Before | |
| %aside.dialogue.dark.alerts | |
| .inner | |
| %header | |
| %button=# This was floated | |
| %h3=# Wonky positioning | |
| .content | |
| %section=# This element does nothing. | |
| %ul.item-wrapper=# This had a bunch of styles |
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
| .dialogue.dark header input[type="button"].left, .dark.ui-datepicker header input[type="button"].left, .dialogue.dark header input[type="button"].cancel, .dark.ui-datepicker header input[type="button"].cancel, .dialogue.dark header input[type="button"].back, .dark.ui-datepicker header input[type="button"].back, .dialogue.dark header input[type="submit"].left, .dark.ui-datepicker header input[type="submit"].left, .dialogue.dark header input[type="submit"].cancel, .dark.ui-datepicker header input[type="submit"].cancel, .dialogue.dark header input[type="submit"].back, .dark.ui-datepicker header input[type="submit"].back, .dialogue.dark header button.left, .dark.ui-datepicker header button.left, .dialogue.dark header button.cancel, .dark.ui-datepicker header button.cancel, .dialogue.dark header button.back, .dark.ui-datepicker header button.back, .dialogue.dark header a.button.left, .dark.ui-datepicker header a.button.left, .dialogue.dark header .dialogue.create a.left.cancel, .dialogue.create .dialogue.dark head |
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
| class Array; def sum; inject( nil ) { |sum,x| sum ? sum+x : x }; end; end | |
| require 'ruby-processing' | |
| class PieChart | |
| include Processing::Proxy | |
| include Math | |
| attr_accessor :colors | |
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
| linear-gradient(#ff9b6, #ffee6e) | |
| +box-shadow(rgba(255,255,255,.66) 0 1px 1px, rgba(0,0,0,.33) 0 2px 16px) | |
| border: 1px solid #aea976a |
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
| text-shadow: rgba(255, 255, 255, .5) 0 1px 0; | |
| background: rgba(255, 255, 255, 0.3); | |
| border: 1px solid rgba(0, 0, 0, .3); | |
| color: rgba(0, 0, 0, 0.63); |