HNHacker News
TopNewBestAskShowJobs

mofle

1,227 karma · joined May 22, 2011

[ my public key: https://keybase.io/sindresorhus; my proof: https://keybase.io/sindresorhus/sigs/f2efA_W7FvEyw55qXGSw6k9Oj3heHIAmU0gwhaGhW9I ]
submissionscomments
mofle··on Refined Twitter
It should work in Firefox 48. See https://github.com/sindresorhus/refined-twitter/pull/3 and https://blog.mozilla.org/addons/2016/04/29/webextensions-in-...

Happy to add something to the readme if anyone can test and confirm.

mofle··on Refined Twitter
A greasemonkey script in Chrome would take the same amount of memory or more, as Chrome just repackages it as an extension on install.
mofle··on Refined Twitter
This extension redirects requests before they've even started, making it much faster than what's possible with a Greasemonkey script. Greasemonkey scripts are also hard to discover and install these days.
mofle··on Refined Twitter
Requests to normal Twitter are redirected to the mobile version, which is on a sub-domain.
mofle··on Awesome Python: A curated list
See https://github.com/sindresorhus/awesome for more awesome lists.
mofle··on Bluebird in the wild: Advanced promise-based workflows
Check out https://github.com/sindresorhus/pify
mofle··on Man accidentally 'deletes his entire company' with one line of bad code
There are many ways you can safeguard [0] `rm`, but in the end, it's better to just use a tool that move files to the trash [1] instead.

[0]: https://github.com/sindresorhus/guides/blob/master/how-not-t...

[1]: https://github.com/sindresorhus/trash-cli

mofle··on LeftPad and Go: can tooling help?
I'm sindresorhus. My thoughts on the left-pad situation: https://github.com/sindresorhus/ama/issues/367
mofle··on Detecting Code Indentation
I wrote a JS module for detecting indentation some years ago. I ended up with an algorithm [0] that looks for the most common difference between two consecutive non-empty lines.

[0]: https://github.com/sindresorhus/detect-indent#algorithm

mofle··on Ava: A refined, futuristic test runner
AVA also run test files concurrently in separate processes.
mofle··on Ava: A refined, futuristic test runner
Jasmine
mofle··on Improved commenting with Markdown
Power users can remove it by putting this in their user style:

    .toolbar-commenting{display:none !important;}
Use with e.g. https://chrome.google.com/webstore/detail/stylish/fjnbnpbmke...
mofle··on Ask HN: How do prolific programmers go about their daily lives?
Just looked at your GitHub profile and you're not blocked. Couldn't find any email from you either. Don't see why I would block you. Can't remember us interacting before.
mofle··on Ask HN: How do prolific programmers go about their daily lives?
I'm Sindre. I actually spent more time on open source when I did work. Some people cook or bicycle as a hobby. I code. I'm totally addicted to making things on the computer. I used to spend work lunches coding on open source projects. I lived in a remote place (Lillehammer, Norway) with few people around and not much happening, so I had a lot of free time after work. It definitely is tough working up energy to code after doing it all day at work, but it's different. Open source coding is the most exciting thing I've ever done. I'm so glad I accidentally got into doing open source. It changed my life.
mofle··on BitBar: put the output from any script/program in your Mac OS X Menu Bar
I made a Node.js module with a nice API for it to ease plugin creation: https://github.com/sindresorhus/bitbar
mofle··on Survey of popular Node.js packages reveals credential leaks
There's an easy way to prevent credential leakage when publishing to npm => Explicitly list the files to include in the package through the `files` property in package.json.

Docs: https://docs.npmjs.com/files/package.json#files

Example: https://github.com/sindresorhus/got/blob/2f5d5ba94d625802880...

mofle··on Ava – Asynchronous test runner
AVA author here. Not ignored, just not implemented yet. AVA is still in its infancy and we're prioritizing getting the core settled first. We're are thinking of doing something even more ambitious, though. Naive watching is easy, but we want to tackle incremental testing, so you only have to run the tests that was affected by code changes since the last run. See https://github.com/sindresorhus/ava/issues/115 for more.

We're happy to receive issues if there's anything else that bothers you. We also have a Gitter chat if you'd like to discuss: https://gitter.im/sindresorhus/ava :)

mofle··on How to Find the Wi-Fi Password of Your Current Network
You can use this command-line tool to get the wifi password cross-platform:

    $ npm i -g wifi-password && wifi-password
https://github.com/kevva/wifi-password#cli
mofle··on Announcing “Exploring ES6”
By the time ES6 is everywhere you're using ES8 features which you'll have to polyfill/transpile.
mofle··on Open-sourcing Facebook Infer: Identify bugs before you ship
I made a quick installer for Infer as the default steps are a bit manual.

$ npm i -g infer-bin && infer

https://github.com/sindresorhus/infer-bin

mofle··on Show HN: A curated list of awesome lists
This is what you're looking for: https://github.com/sindresorhus/awesome-awesome-awesome-awes...
mofle··on Deku: How we built our functional alternative to React
YAFS - Yet Another Framework Syndrome.

https://medium.com/@tastejs/yet-another-framework-syndrome-y...

mofle··on What are your favourite sci-fi books?
I maintain a community created list of Sci-Fi novels worth reading:

https://github.com/sindresorhus/awesome-scifi#novels

mofle··on Npm install could be dangerous
There are some things you can do to make `rm` safer which would prevent this from working: https://github.com/sindresorhus/guides/blob/master/how-not-t...

Though the real fix is doing development in a sandboxed container.

mofle··on PhantomJS 2.0 is getting ready for release
Happy to see this! We use PhantomJS in our CLI tool Pageres, but the fact that the bundled WebKit engine in PhantomJS 1.x is ancient has caused a lot of headake for us and our users.

https://github.com/sindresorhus/pageres

mofle··on Moved ~/.local/share/steam. Ran steam. It deleted everything owned by user
I've written a short guide on how you should safeguard `rm`: https://github.com/sindresorhus/guides/blob/master/how-not-t...
mofle··on Awesome Node.js: Curated list of delightful Node.js packages
Author here. It's meant to be a resource for and by the community. Issues/PRs for additions and removals welcome! :)

The list was initially a text document on my computer as a reference on useful modules when learning Node, as the discovery on npm was really bad. 2 years later and the discovery on npm has gotten even worse. This is my try at making something a bit more coherent. It's obviously biased and I've included some of my own packages I find useful, but as stated earlier, happy to change things around.

mofle··on Awesome Node.js: Curated list of delightful Node.js packages
Not true at all. A lot of effort went into this. It's a carefully picked curation of the best modules, not the most popular ones. Thanks for this useful comment though.
mofle··on Show HN: NoteBox for iOS – Capture texts quickly and organize them easily
One thing I miss from most note apps is the ability to tag notes with just `#tag` wherever in a note. Clicking it should bring me to the tag view.
mofle··on Multiline strings in JavaScript
That's correct. Chrome is practically versionless.
← PreviousPage 3 of 6Next →