jq is useful to slice, filter, map and transform structured json data.
brew install jq
diff --git a/src/download/chunk_selector.cc b/src/download/chunk_selector.cc | |
index 850fec0f..248a29f9 100644 | |
--- a/src/download/chunk_selector.cc | |
+++ b/src/download/chunk_selector.cc | |
@@ -82,7 +82,7 @@ ChunkSelector::update_priorities() { | |
m_sharedQueue.clear(); | |
if (m_position == invalid_chunk) | |
- m_position = random() % size(); | |
+ m_position = 0; |
#!/usr/bin/env python3 | |
# modified version of this snippet | |
# https://gist.github.com/TheRook/95f2b872bdc81bac2371 | |
import dns.resolver | |
import dns.name | |
from urllib.parse import urlparse | |
EMOJI CHEAT SHEET
Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.
People
😄
function magicMethods (clazz) { | |
// A toggle switch for the __isset method | |
// Needed to control "prop in instance" inside of getters | |
let issetEnabled = true | |
const classHandler = Object.create(null) | |
// Trap for class instantiation | |
classHandler.construct = (target, args, receiver) => { | |
// Wrapped class instance |