The 5 data types in Swift and their basic uses:
The Best Way to Learn a New Language
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:
Angular: All About Input Type=”File”
What we want to achieve:
- styling file input
- get the name(s) of files, since we aren’t depending on the original input to tell us what our user has uploaded
- bonus: read and display the text content of file
Angular Snippet: matchCaseFilter
<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
Angular Bootstrap: Why Multiple Radio Buttons Showed Up As Active
<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.
CSS: End Long Line in Ellipsis
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.
Why It’s Vital To Fail, Fast.
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.
Recommendation: Patrick’s Blog
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.
Mac: How to See What Icons are In Font Files, To Be Used in CSS
First, we need the tool–FontLab Studio.
Angular: Dependency Injection with Providers
Error message:
Uncaught Error: [$injector:modulerr] Failed to instantiate module x due to: Error: [$injector:modulerr] Failed to instantiate module x due to: Error: [$injector:unpr] Unknown provider: xx