Skip to content

Instantly share code, notes, and snippets.

@lukaszgrolik
lukaszgrolik / font-weights.md
Last active April 24, 2024 11:29
Commonly used names for CSS font-weight values

unknown source

value name
100 extralight/ultralight
200 light/thin
300 book/demi/light
400 regular/normal
500 medium
600 semibold/demibold
@lukaszgrolik
lukaszgrolik / utils.js
Created September 9, 2014 08:56
utils.js
function capitalizeFirstLetter(string)
{
return string.charAt(0).toUpperCase() + string.slice(1);
}
function moveArrayElement(arr, old_index, new_index) {
while (old_index < 0) {
old_index += arr.length;
}
while (new_index < 0) {
[user]
name = lorem
email = ipsum@dolor.sit
[alias]
a = add
b = branch
c = commit
cae = commit --allow-empty
cf = config
cl = clone
@lukaszgrolik
lukaszgrolik / .bash_profile
Last active December 18, 2015 20:49
Linux console prompt with git branch
# ...
source ~/.bashrc
@lukaszgrolik
lukaszgrolik / 0_reuse_code.js
Created August 14, 2014 06:27
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