Find it here: https://github.com/bitemyapp/learnhaskell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var rawSites = { | |
| 'programming': [ | |
| 'http://blog.codinghorror.com/', | |
| 'http://thedailywtf.com/', | |
| 'http://www.hanselman.com/blog/', | |
| 'http://code.tutsplus.com', | |
| 'https://news.ycombinator.com/', | |
| 'http://www.reddit.com/r/programming/', | |
| 'http://codebetter.com', | |
| 'http://android-developers.blogspot.com/', |
There was a [great article][1] about how react implements it's virtual DOM. There are some really interesting ideas in there but they are deeply buried in the implementation of the React framework.
However, it's possible to implement just the virtual DOM and diff algorithm on it's own as a set of independent modules.
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Blue Component</key> | |
| <real>0.16470588743686676</real> | |
| <key>Green Component</key> | |
| <real>0.20784313976764679</real> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen [::]:80; | |
| listen 80; | |
| server_name app.example.com; | |
| return 301 https://$server_name$request_uri; | |
| } | |
| server { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* followers.php - use Twitter API to export data (CSV format) on people that are following you | |
| Installation: | |
| 1. Install Twitter OAuth PHP library (https://github.com/abraham/twitteroauth) | |
| 2. Adjust twitteroauth.php include path below | |
| 3. Create Twitter application (https://dev.twitter.com/apps) | |
| 4. Fill in 4 Twitter app keys below | |
| 5. Adjust $fields array if you want different fields saved |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* friends.php - use Twitter API to export data (CSV format) on people you are following | |
| Installation: | |
| 1. Install Twitter OAuth PHP library (https://github.com/abraham/twitteroauth) | |
| 2. Adjust twitteroauth.php include path below | |
| 3. Create Twitter application (https://dev.twitter.com/apps) | |
| 4. Fill in 4 Twitter app keys below | |
| 5. Adjust $fields array if you want different fields saved |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .border-radius (@radius) { | |
| -webkit-border-radius: @radius; | |
| -o-border-radius: @radius; | |
| -moz-border-radius: @radius; | |
| -ms-border-radius: @radius; | |
| border-radius: @radius; | |
| } | |
| .user-list { | |
| // need to use special `.` syntax |
NewerOlder