Skip to content

Instantly share code, notes, and snippets.

View qmmr's full-sized avatar

Marcin Kumorek qmmr

View GitHub Profile
@qmmr
qmmr / .bashrc
Created October 12, 2012 19:21
.bashrc
echo "loading .bashrc ..."
eval `ssh-agent`
ssh-add
alias ls='ls -F --color --show-control-chars'
alias ll='ls -la'
function compile() {
echo "w8..."
@qmmr
qmmr / update-emacs-ppa.sh
Created October 20, 2012 18:40 — forked from DamienCassou/update-emacs-ppa.sh
Emacs-snapshot build script for Ubuntu PPA
#!/bin/bash
# Author: Damien Cassou
#
# This is the script I use to build https://launchpad.net/~cassou/+archive/emacs/
# from http://emacs.naquadah.org/.
MAIN_VERSION=20120911
SUB_VERSION=1
@qmmr
qmmr / test.js
Created October 21, 2012 15:59
JavaScript: isObject() && getConstructorName()
function isObject(obj) {
return (typeof obj === "object" && obj !== null) || typeof obj === "function";
}
function getConstructorName(obj) {
return (obj.constructor && obj.constructor.name) ? obj.constructor.name : "";
}
@qmmr
qmmr / script.js
Created October 22, 2012 09:07
JavaScript: Module Pattern
var APP = APP || {};
APP.namespace = function(string) {
var parts = string.split('.'),
parent = APP,
i;
if (parts[0] === 'APP') {
parts = parts.slice(1);
}
for (i = 0; i < parts.length; i += 1) {
@qmmr
qmmr / Custom.css
Created November 3, 2012 11:50
Twilight based Theme for Chrome DevTools by Rémy Bach
/**********************************************
*
* Twilight based Theme for Chrome DevTools by Rémy Bach
*
* Based off of the mnml Theme Michael P. Pfeiffer
* Based on a Gist by Ben Truyman. Further attr:
* https://gist.github.com/3040634
*
**********************************************/
@qmmr
qmmr / Custom.css
Created November 3, 2012 11:52
IR_Dark_Monokai Designed and developed by Andres Pagella (@mapagella)
/**********************************************/
/*
/* IR_Dark_Monokai
/* Designed and developed by Andres Pagella (@mapagella)
/* http://www.andrespagella.com/customising-chrome-devtools
/*
/* Based on Ben Truyman's IR_Black
/* which is...
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
@qmmr
qmmr / index.html
Created November 13, 2012 20:04
A CodePen by Marcin Kumorek.
<!doctype html>
<html>
<head>
<meta charset="utf8">
<title>Fun with border radius</title>
</head>
<body>
<div class="container"></div>
</body>
</html>
@qmmr
qmmr / callouts.css
Created December 1, 2012 19:22
Boilerplate code for form example
::-webkit-validation-bubble-message{
background-color: #434343;
padding: 20px;
color: whitesmoke;
text-shadow: -2px -2px 2px rgba(0,0,0,0.4);
font-size: 34px;
font-family: "Lobster";
border: none;
border: 3px solid rgba(255,255,255,0.8);
top: 49px;
@qmmr
qmmr / supports.js
Created December 13, 2012 14:14
Test for CSS3 support in browser.
var supports = (function(prop) {
var
div = doc.createElement('div')
, vendors = 'Khtml Ms O Moz Webkit'.split(' ')
;
return function (prop) {
var len = vendors.length;
if (prop in div.style) return true;
@qmmr
qmmr / learnThemByHeart.js
Last active February 6, 2018 09:59
Tips & Tricks of JavaScript
/* Collection by Marcin Kumorek © 2013 */
/* falsy values */
/*
null
undefined
''
0
NaN
false