I hereby claim:
- I am sanjayginde on github.
- I am sanjayginde (https://keybase.io/sanjayginde) on keybase.
- I have a public key whose fingerprint is 20C7 5D65 4559 F7B2 26F7 173E 2C75 9150 3F79 4AF9
To claim this, I am signing this object:
| #!/bin/bash -e | |
| if [ -z "$KEY_DIR" ]; then | |
| echo "FAILED: \$KEY_DIR is required. Please point it at the location of your identity keys." | |
| exit 1 | |
| fi | |
| # if [ -z "$AWS_ACCESS_KEY_ID" ]; then | |
| # echo "FAILED: \$AWS_ACCESS_KEY_ID is required. Please pass this variable inline or export to your session." | |
| # exit 1 |
| %title=h ((title=yield(:title)).blank?) ? "Contently" : "#{title} : Contently".html_safe | |
| =yield | |
| =yield :javascript |
| <?php | |
| echo "Raw dump of Apache Headers follows.<br/>"; | |
| foreach (getallheaders() as $name => $value) { | |
| echo "$name: $value<br/>"; | |
| }; | |
| echo '<hr/>$_SERVER dump: <pre>'; | |
| print_r($_SERVER); | |
| echo '</pre>'; | |
| ?> |
| var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" | |
| function base64_decode(input){ | |
| var output = new Array(); | |
| var chr1, chr2, chr3; | |
| var enc1, enc2, enc3, enc4; | |
| var i = 0; | |
| var orig_input = input; | |
| input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); | |
| if (orig_input != input) |
I hereby claim:
To claim this, I am signing this object:
| .expandable | |
| .read-more, .read-less | |
| // link styles go here (if needed)... | |
| .long-content | |
| display: none |
| -# Empty layout used as layout replacement for testing... | |
| !!! 5 | |
| != html5_haml_tag(:lang => 'en') do | |
| %head | |
| %meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/ | |
| %title=h ((title=yield(:title)).blank?) ? "Contently" : "#{title} : Contently".html_safe | |
| %body | |
| =yield | |
| =yield :javascript | |
| =yield :jstemplates |
| ;(function($, document) { | |
| $(document).delegate('a[data-confirm]', 'confirm', function(event) { | |
| event.preventDefault(); | |
| var $link = $(this); | |
| // Placeholder for custom confirmation popup, etc | |
| my_custom_dialog_widget.confirm({ | |
| message: $link.attr('data-confirm'), | |
| title: "Are you sure?", |
| # RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
| # defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
| module Player | |
| describe MovieList, "with optional description" do | |
| it "is pending example, so that you can write ones quickly" | |
| it "is already working example that we want to suspend from failing temporarily" do | |
| pending("working on another feature that temporarily breaks this one") |
| /** | |
| * File size validation using jQuery Tools Validation (http://jquerytools.org/documentation/validator/index.html) | |
| */ | |
| if (Modernizr.fileapi) { | |
| $.tools.validator.fn('input[type="file"][data-filemaxsize]', function($file_input, value) { | |
| var files = $file_input.get(0).files, | |
| max_megabytes = parseInt($file_input.data('filemaxsize')), | |
| max_bytes = max_megabytes * BYTES_PER_MEGABYTE; | |
| if (files.length > 0 && files[0].size > max_bytes) { |