Skip to content

Instantly share code, notes, and snippets.

@udkl
udkl / CSS-heading-soundmanager.css
Created Apr 13, 2012
CSS-heading-soundmanager
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
@udkl
udkl / gist:2384762
Created Apr 14, 2012
CSS-text-border-stroke
View gist:2384762
http://css-tricks.com/adding-stroke-to-web-text/
#top-logo
{
font-family: ChunkFiveRegular;
font-size: 0.7em;
}
#top-logo .two {
@udkl
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
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
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
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
udkl / wezm.zsh-theme
Last active Aug 29, 2015
wezm zsh theme customization
View wezm.zsh-theme
PROMPT='
$(git_prompt_info)%(?,,%{${fg_bold[white]}%}[%?]%{$reset_color%} )%{$fg[yellow]%}%# %{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[blue]%}("
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[red]%}⚡%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
@udkl
udkl / git-change-commit-messages.md
Created Jul 4, 2016 — forked from nepsilon/git-change-commit-messages.md
How to change your commit messages in Git?
View git-change-commit-messages.md

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
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
udkl / sh
Created Sep 22, 2020
sh in the terminal - looping through all files in the current dir and running a command
View sh
for i in *.html ; do echo "$i" && pandoc -s ./$i -o ./output/$i.md ; done
You can’t perform that action at this time.