Skip to content

Instantly share code, notes, and snippets.

View kamalx's full-sized avatar

Kamal Morjal kamalx

  • India
View GitHub Profile
@kamalx
kamalx / example-motion-design-docs-forked.markdown
Created January 18, 2017 06:35
Example Motion Design Docs (forked)

Example Motion Design Docs (forked)

Showing how motion design documentation can communicate branding and a direction for cohesive animation on a site. Illustrations by Kristen Kong.

A Pen by Kamal Morjal on CodePen.

License.

@kamalx
kamalx / demo.html
Created June 21, 2016 22:42 — forked from zenlor/demo.html
lazy loader
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title> - jsFiddle demo</title>
<script type='text/javascript' src='lazyload.js'></script>
<style type='text/css'>
@kamalx
kamalx / clojure.md
Created June 9, 2016 20:34
Setting Up Clojure on OS X

Setting Up Clojure on OS X

I spent a lot of time trying to find a pretty optimal (for me) setup for Clojure… at the same time I was trying to dive in and learn it. This is never optimal; you shouldn't be fighting the environment while trying to learn something.

I feel like I went through a lot of pain searching Google, StackOverflow, blogs, and other sites for random tidbits of information and instructions.

This is a comprehensive "what I learned and what I ended up doing" that will hopefully be of use to others and act as a journal for myself if I ever have to do it again. I want to be very step-by-step and explain what's happening (and why) at each step.

Step 1: Getting Clojure (1.3)

@kamalx
kamalx / wget-exit-codes.txt
Created March 22, 2016 16:00 — forked from cosimo/wget-exit-codes.txt
wget exit codes
This is the list of exit codes for wget:
0 No problems occurred
1 Generic error code
2 Parse error — for instance, when parsing command-line options, the .wgetrc or .netrc…
3 File I/O error
4 Network failure
5 SSL verification failure
6 Username/password authentication failure
7 Protocol errors
@kamalx
kamalx / dropkick.sh
Created February 15, 2016 02:21
Turn off spy cams in airbnb rentals
#!/bin/bash
#
# DROPKICK.SH
#
# Detect and Disconnect the DropCam and Withings devices some people are using to
# spy on guests in their home, especially in AirBnB rentals. Based on Glasshole.sh:
#
# http://julianoliver.com/output/log_2014-05-30_20-52
#
# This script was named by Adam Harvey (http://ahprojects.com), who also
@kamalx
kamalx / README.rst
Created February 3, 2016 00:09 — forked from dupuy/README.rst
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@kamalx
kamalx / zsh.md
Created January 6, 2016 15:35 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
@kamalx
kamalx / tmux.conf
Created October 2, 2015 17:31 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@kamalx
kamalx / gist:1f8323a2b1c8ecec0fd2
Last active September 11, 2015 20:15 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
  1. General Background and Overview
@kamalx
kamalx / organize.scpt
Last active August 29, 2015 14:25 — forked from owahab/organize.scpt
AppleScript to organize your downloads.
(*
organize - hierarchy
This Folder Action handler is triggered whenever items are added to the attached folder.
The script organizes the added files into a folder hierarchy that follows the following structure:
YYYY/M/D
Where YYYY is four-digit year, M is month and D is the day.
Copyright 2010 Omar Abdel-Wahab <[email protected]>.
You may not incorporate this code into your program(s) without
a written permission from the author but you're free to use it AS IS