Skip to content

Instantly share code, notes, and snippets.

View juliankrispel's full-sized avatar

Julian Krispel juliankrispel

View GitHub Profile
@juliankrispel
juliankrispel / bootstrap_sucks.md
Created October 11, 2013 15:47
Actual examples of why bootstrap sucks

Try extending an item with the class control-label with the class text-left, what do you think will happen?

<label class="text-left control-label">Label</label>

Think the label will be left alligned? No!

@juliankrispel
juliankrispel / css-frameworks-comparison.md
Created September 17, 2013 10:19
CSS Frameworks - A comparison

CSS Frameworks Comparison

I wrote a little scripts that shows [some stats about the frameworks](http://juliankrispel.github.io/css-specificity-benchmark/]

##Twitter Bootstrap Size: 16KB Bootstrap seems to be the default for many developers and startups. And I can see why. It has a boatload of fully designed, fully functional components (Not only CSS, also Javascript). It's biggest strength is however also its biggest weakness. Because Bootstrap is so fully featured and so 'designed' already, by picking it you are buying into their way of doing things. Although they vastly improved in their 3.0 release, Bootstrap still struggles with a high rate of specificity which make it hard to extend.

The new version of bootstrap has major advantages over 2.3.2. They shaved off 30% of it's codebase without feature-reduction and is 14% less specific than its predecessor.

var getType = function(thing){
if(thing === null) return "[object Null]";
return Object.prototype.toString.call(thing);
}
// Determines whether all properties of data are contained in containsData
var deepContains = function contains(data, containsData ) {
for (var i in data){
var key = i;
if(key.indexOf('not_') === 0){
@juliankrispel
juliankrispel / vimbits.md
Last active December 17, 2015 13:48
Nice little things in vim
@juliankrispel
juliankrispel / traumschreiben.md
Last active December 17, 2015 06:29
Der Kongress

Die Sitzung war kurz vor dem Beginn.

Dieser Fremde hat sich dazu gemischt. Ich hab ihn ertappt, den Feind, ich hab gesehen was er gemacht hat. Als wir beginnen im Wohnraum des Gasthauses und kurz bevor der Fremde anfängt zu reden. Schreite ich ein, ich muss sie warnen.

"Diese Person die hier sitzt wird …"

Ploetzlich merk ich das der Fernseher mit seiner Lautstärke meine Worte verschluckt. Ich dreh ihn leiser und rede weiter.

"Die Person die heute zu uns gestossen ist ..."

@juliankrispel
juliankrispel / bash_scripting.md
Last active December 17, 2015 03:59
Bash scripting

#Steps to create shell script

  1. Create folder for your shell scripts like ~/.bin
  2. Create script file ~/.bin/script
  3. Chmod it chmod +x ~/.bin/script

##Conditionals:

if [ $1 ]

then

@juliankrispel
juliankrispel / gist:5317034
Created April 5, 2013 06:14
Statistics: Benefit Fraud vs Tax Evasion vs Overpaid Tax
http://statistics.dwp.gov.uk/asd/asd2/index.php?page=fraud_error
http://www.theaccountancy.co.uk/uk-taxpayers-guilty-of-overpayment-1688.html
@juliankrispel
juliankrispel / js_recipes.js
Created March 14, 2013 15:26
Javascript recipes
//Rounding a decimal
Math.round(num * 100) / 100
@juliankrispel
juliankrispel / typical_milestones.md
Last active December 14, 2015 12:19
Typical Milestones for a Web-Project

#Typical Milestones for a Web-Project

##Pre-Design Phase

###Initial Communication

Before we do any design it's clearly important to define the basis for our decisions. In pre-design meetings it's good to get an idea of what position the product has in the clients company, what its purpose is, what the expectations are etc.

Note: You're not a business-consultancy but a designer/developer, be mindful of the difference

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.