Skip to content

Instantly share code, notes, and snippets.

@nimbupani
nimbupani / hack.sh
Created March 31, 2012 16:55 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@nimbupani
nimbupani / gist:2770321
Created May 22, 2012 17:09 — forked from paulirish/gist:2731401
draft post on a11y

Jacob Thornton has an inspiring slide deck on accessibility that brings to fore all the concerns that web developers have with implementing features around accessibility.

For a very long time, developers have been told about making websites 'accessible'. Like it is a faucet that should be turned on or off. Till [Victor Tsaran's demonstration of using a screenreader][] (which was in 2007 - a very long time since accessibility evangelism began) - very few web developers had any idea of the real immediate impact of implementing accessibility features.

It is also interesting that very few developers even knew that blind users of screen readers read at such an extraordinary speed that very few sighted users are capable of. What are some of the other abilities that disabled users of the web use to their advantage?

People like Jason Kiss and Steve Faulkner who detail the [behavior and suppo

#!/bin/bash
echo '================================================================='
echo 'This will set up all the files necessary for Test the web forward'
echo '================================================================='
promptValue() {
read -p "$1"": " val
echo $val
}
@nimbupani
nimbupani / gyazo.rb
Created August 27, 2012 03:05
Hacking Gyazo to save to AWS
#!/usr/bin/env ruby
require 'rubygems'
require 'aws/s3'
# capture png file
tmpfile = "/tmp/image_upload#{$$}.png"
imagefile = ARGV[1]
if imagefile && File.exist?(imagefile) then
@nimbupani
nimbupani / grid-layout-syntax.md
Created November 11, 2013 18:15
Grid Layout Syntax

grid-row: span 2/3

The original syntax was:

grid-row-span: 2;

My concerns

  • I do not understand why this was altered.
  • The newer syntax is harder to understand than the old one.
@nimbupani
nimbupani / yaml.txt
Created December 29, 2011 23:00 — forked from anonymous/yaml.txt
a really useless fucking yaml cheat sheet
Collection indicators:
'? ' : Key indicator.
': ' : Value indicator.
'- ' : Nested series entry indicator.
', ' : Separate in-line branch entries.
'[]' : Surround in-line series branch.
'{}' : Surround in-line keyed branch.
Scalar indicators:
'''' : Surround in-line unescaped scalar ('' escaped ').
'"' : Surround in-line escaped scalar (see escape codes below).
@nimbupani
nimbupani / index.html
Created December 2, 2011 05:00
Showing latest post on home page with Jekyll
---
layout: default
---
<div class="blog-index">
{% assign post = site.posts.first %}
{% assign content = post.content %}
{% include post_detail.html %}
</div>
@nimbupani
nimbupani / gist-clone.js
Created September 30, 2011 17:59 — forked from tbranyen/gist-clone.js
clone all gists
#!/usr/bin/env node
var request = require("request");
var exec = require("child_process").exec;
if (process.argv.length < 3) {
console.log("Missing username argument");
}
var username = process.argv[2];