Skip to content

Instantly share code, notes, and snippets.

@udkl
udkl / CSS-heading-soundmanager.css
Created April 13, 2012 04:56
CSS-heading-soundmanager
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 April 14, 2012 14:28
CSS-text-border-stroke
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 April 18, 2012 00:47
CSS - Threadflip - Description text
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 July 20, 2012 05:21
Top Shadow to HTML page
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 January 1, 2016 22:19
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.
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 January 1, 2014 19:15
A boilerplate for creating a 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 August 29, 2015 14:10
wezm zsh theme customization
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 July 4, 2016 20:57 — forked from nepsilon/git-change-commit-messages.md
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
udkl / aoc_2015_day2.js
Created March 17, 2017 04:01
Advent of code 2015 - Day 2
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 September 22, 2020 22:22
sh in the terminal - looping through all files in the current dir and running a command
for i in *.html ; do echo "$i" && pandoc -s ./$i -o ./output/$i.md ; done