sudo lsof -i tcp:3000
babel src --out-dir lib
-
Trace
UnhandledPromiseRejectionWarning
process.on('unhandledRejection', (reason, p) => { console.log('Unhandled Rejection at: Promise', p, 'reason:', reason); // application specific logging, throwing an error, or other logic here })
React
- Michael Jackson - Never Write Another HoC (read the comments as well)
JavaScript
iOS Drawing
- Smooth Freehand Drawing on iOS
- Drawing smooth lines with cocos2d ios inspired by Paper
- Bezier paths in practice (I): From basic shapes to custom designable controls
- iOS SDK: Advanced Freehand Drawing Techniques
- Core Graphics Tutorial Part 3: Patterns and Playgrounds
- Core Graphics, Part 3: Lines
- Patterns
- iOS Brush Hardness like Photoshop
- Core Graphics Tutorial Part 2: Gradients and Contexts
iOS AV
NLP
Python
-
Another useful function:
urllib.quote()
.When you are making HTTP requests, if the uri contains special character like
ć
, sayhttp://dbpedia.org/data/Mileva Marić.json
, useurlib.quote()
to replace special characters with "%xx". If you do this, you will be sending your request tohttp://dbpedia.org/data/Mileva%20Mari%C4%87.json
, great; if you don't do this, the requesting uri will behttp://dbpedia.org/data/Mileva Mari\xc4\x87.json
orhttp://dbpedia.org/data/Mileva Mari\u0107.json
, and you are fucked. :)
CSS
Other
-
Slides for Text Mining: slides