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!
| arr = [900, 1, 39, 12, 8, 15, 39, 11, 100] | |
| quicksort = (arr) -> | |
| if(arr.length < 2) | |
| return arr | |
| unless arr or arr.length > 1 | |
| throw new Error 'Input invalid' | |
| pivot = arr[0] |
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!
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){ |
#Nice little Vim bits
Reformat in vim for a nice column layout
:%!column -t
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 ..."
#Steps to create shell script
~/.bin~/.bin/scriptchmod +x ~/.bin/script##Conditionals:
if [ $1 ]
then
| http://statistics.dwp.gov.uk/asd/asd2/index.php?page=fraud_error | |
| http://www.theaccountancy.co.uk/uk-taxpayers-guilty-of-overpayment-1688.html |
| //Rounding a decimal | |
| Math.round(num * 100) / 100 |
#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