I spent so much time with Coffee that I constantly want to write this in Javascript:
return if x
Today I encountered with a new issue:
if (true) a = 1; if (false) a = 2; a = 3;
What should a’s value be?
I spent so much time with Coffee that I constantly want to write this in Javascript:
return if x
Today I encountered with a new issue:
if (true) a = 1; if (false) a = 2; a = 3;
What should a’s value be?
Double clicking the text inside input and it doesn’t appear selected. Cursor can’t even be placed at the start of the input. It’s because of this:
-moz-user-select: none;
Either don’t use this on everything(*), or do a counter one on all <input>.
First, if you already have another language under your belt, search “X Language for Y Language Developers”. If not, no worries, simply find out these things about the new language:
What we want to achieve:
<div ng-repeat="item in arr | objFilter:'name':keyword:matchCase"></div> arr = [ {name: 'A'} {name: 'B'} ] app.filter 'objFilter', -> return (input, prop, value, matchCase) -> arr = [] input.forEach (item) -> if item[prop] reg = new RegExp(value, if matchCase then '' else 'i') arr.push(item) if item[prop].match(reg) return arr
<label ng-model="pref.active" btn-radio="'choceA'"> <input type="radio" name="groupName"> </label>
The btn-radio part is a STRING–It needs a valid string.
How to cut off long single-line text with a nice clean ellipsis?
text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
Note: there has to be a limit to the div’s width.
It’s not about failing. It’s about getting feedback, fast.
As creatures who move in one direction in time, events spread across different spots of time-space could be lined up and explained with cause and effect. It’s how neurones work. Strengthen the repeated connections and destruct the singled-out ones.
Last night I flipped through his blog posts on recommendation, and it blew my mind. I might not have had this level of mind-blown-ness in months.
Seriously, go read it if you haven’t.