Skip to content

Instantly share code, notes, and snippets.

View tomatohammado's full-sized avatar

Hammad Malik tomatohammado

View GitHub Profile
"A blatant workman ripoff of bmx 007's beautiful colemak version called 'colqer' http://www.vim.org/scripts/script.php?script_id=2865 It makes vim so that you can insert and Ex mode in the workman keyboard layout, but can do the rest in qwerty.
"usage: put it in ~/.vim/plugin/ as workman.vim
"press \; in normal mode to activate/deactivate it.
"Keyboard is qwerty
" we want workman in insert mode
function IMapColemak()
if s:imap_colemak == 0
noremap! q q
noremap! w d
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
*,
*:before,
*:after {
box-sizing: border-box;
}
.card {
margin: 10px;
text-align: center;
padding: 10px;
@tomatohammado
tomatohammado / app.js
Last active August 29, 2015 14:19
angular_app
var app = angular.module('ourApp', []);
var signedURL = 'https://api.meetup.com/2/open_events?zip=20012&and_text=False&offset=0&format=json&limited_events=False&page=200&radius=25.0&category=29&desc=False&status=upcoming&sig_id=17324211&sig=54c93a355bf1951e34451b97678e1fb26c11634b';
@tomatohammado
tomatohammado / terminal_output.txt
Created December 21, 2015 22:58
Docker Setup Debugging
hmd at Hmods-Air in ~
$ cat /dev/urandom | env LC_CTYPE=C tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
tr: Illegal byte sequence
hmd at Hmods-Air in ~
$ locale -a
af_ZA
af_ZA.ISO8859-1
af_ZA.ISO8859-15
@tomatohammado
tomatohammado / 0_reuse_code.js
Created December 22, 2015 02:19
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

#What area of web design lacks the most?

Workflow. The interactive industry is full of super-talented individuals that are great in their respective fields - coders write great code, designers create beautiful visuals and animators make great motion. But everyone seems to be using their own set of tools. We need workflows that will allow us to seamlessly blend design, video, 3D animation and interactivity without having to reinvent the wheel on each project. I think there is a lot to learn from the gaming industry in this respect.

@tomatohammado
tomatohammado / gist:63db0517a7f9e19552a7
Last active December 22, 2015 02:53
troubleshooting: applying build.sh.patch patch
hmd at Hmods-Air in ~/Dev/kidMixAppDB_FORK/KidMixDatabase/tools on master [?]
$ sh build.sh.patch
diff: unrecognized option `--git'
diff: Try `diff --help' for more information.
build.sh.patch: line 2: index: command not found
build.sh.patch: line 3: ---: command not found
build.sh.patch: line 4: +++: command not found
build.sh.patch: line 5: @@: command not found
tr: Illegal byte sequence
build.sh.patch: line 9: -MYSQL_CONTAINER_NAME=: command not found
@tomatohammado
tomatohammado / kramer_splash_background.css
Last active January 28, 2016 02:47
[via](kramers.com) the four corner background image trick is slick
.animate-area {
background-color: #fff;
background-image: url(../images/bookstore-layer-1.jpg), url(../images/cafe-layer-2.png), url(../images/cafe-layer-1.png), url(../images/bookstore-layer-2.jpg);
background-position: bottom left, top right, bottom right, top left;
background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
background-size: 40%, 40%, 40%, 55%;
height: 100vh;
width: 100%;
}
@tomatohammado
tomatohammado / plusPlus.log
Last active April 5, 2016 22:09
Doug Crockford once discussed removing ambiguity in code. I was exploring `++` vs `+= 1` or `+=3` and it is interesting to see the return values vs the stored value in memory. some of the return values threw me off, would be nice to prepend the `>` carrot to the even numbered lines (exceptions?)
var plusPlus = 1;
undefined
plusPlus
1
plusPlus = plusPlus+1
2
plusPlus = plusPlus+4
6
plusPlus = plusPlus++
6