Skip to content

Instantly share code, notes, and snippets.

Uday K udkl

Block or report user

Report or block udkl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
udkl / aoc_2015_day2.js
Created Mar 17, 2017
Advent of code 2015 - Day 2
View aoc_2015_day2.js
function parseDimension(dimension) {
var packageDimensions = dimension.split("x");
return packageDimensions;
function numericSort(a, b) {
if (a < b) return -1;
if (a > b) return 1;
return 0;
udkl /
Created Jul 4, 2016 — forked from nepsilon/
How to change your commit messages in Git?

How to change your commit messages in Git?

At some point you’ll find yourself in a situation where you need edit a commit message. That commit might already be pushed or not, be the most recent or burried below 10 other commits, but fear not, git has your back 🙂.

Not pushed + most recent commit:

git commit --amend

This will open your $EDITOR and let you change the message. Continue with your usual git push origin master.

udkl / wezm.zsh-theme
Last active Aug 29, 2015
wezm zsh theme customization
View wezm.zsh-theme
$(git_prompt_info)%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )%{$fg[yellow]%}%# %{$reset_color%} '
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
udkl / Basic AMD module using the CommonJS format
Created Jan 1, 2014
A boilerplate for creating a AMD module using the CommonJS format.
View Basic AMD module using the CommonJS format
define(function (require) {
// import dependencies
var defineComponent = require('./lib/component');
// export component constructor
return defineComponent(helloWorld);
// component definition
function helloWorld () {};
udkl / TiddlyWikiHelperMacros
Last active Jan 1, 2016
Collection of Macros used across TiddlyWiki files. It's on gist because of the need of a central place to update the macros and then copy into other tiddlyWikis.
View TiddlyWikiHelperMacros
config.macros.hero= {};
config.macros.hero.handler = function (place,macroName,params,wikifier,paramString,tiddler) {
var heroText= params.length > 0 ? params[0] : "BLANK";
wikify("__@@''"+heroText+"''@@__", place);
config.macros.insight= {};
config.macros.insight.handler = function (place,macroName,params,wikifier,paramString,tiddler) {
udkl / top_shadow
Created Jul 20, 2012
Top Shadow to HTML page
View top_shadow
body:before {
content: "";
position: fixed;
top: -10px;
left: 0;
width: 100%;
height: 10px;
-webkit-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
-moz-box-shadow: 0px 0px 10px rgba(0,0,0,.8);
udkl / gist:2410176
Created Apr 18, 2012
CSS - Threadflip - Description text
View gist:2410176
font-family "mreavesmod","Helvetica Neue",Arial,Helvetica,sans-serif
font-size 20px
font-weight 400
font-style normal
font-size-adjust none
color #333333
text-transform none
text-decoration none
letter-spacing normal
word-spacing 0
udkl / gist:2384762
Created Apr 14, 2012
View gist:2384762
font-family: ChunkFiveRegular;
font-size: 0.7em;
#top-logo .two {
udkl / CSS-heading-soundmanager.css
Created Apr 13, 2012
View CSS-heading-soundmanager.css
font-family "ChunkFive","ChunkFiveRegular","helvetica neue",helvetica,arial,verdana,tahoma,"sans serif"
font-size 42px
font-weight 500
font-style normal
font-size-adjust none
color #333333
text-transform none
text-decoration none
letter-spacing 0
word-spacing 0
You can’t perform that action at this time.