-
Pew: Majority of millennials, Generation X get political news from Facebook (for Baby Boomers: local TV)
-
Does this lead to a filter bubble or echo chamber?
-
Why does Facebook want to do this research?
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
| #!/bin/bash | |
| CURRENT_BRIGHTNESS=$(pkexec xfpm-power-backlight-helper --get-brightness) | |
| MIN_BRIGHTNESS=0 | |
| MAX_BRIGHTNESS=$(pkexec xfpm-power-backlight-helper --get-max-brightness) | |
| POSSIBLE_STEPS=16 | |
| STEP_AMOUNT=$((($MAX_BRIGHTNESS - $MIN_BRIGHTNESS) / $POSSIBLE_STEPS)) | |
| function set_brightness() { | |
| new_brightness=$1 |
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
| // On a twitter.com page in Chrome with a stream of Tweets (e.g., a timeline or | |
| // a search results page), copy and paste the code below into a JS console. | |
| // You'll get back a tab-delimited, newline-separated string (watch out, it'll | |
| // be big) that you can copy and paste directly into Excel. | |
| $('.js-stream-tweet').map(function(i, tweetElem) { | |
| var createdTimestamp = parseInt(tweetElem.querySelector('.js-short-timestamp').getAttribute('data-time-ms'), 10); | |
| return { | |
| created_at: new Date(createdTimestamp).toISOString(), |
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
| -----BEGIN PGP SIGNED MESSAGE----- | |
| Hash: SHA512 | |
| I am transitioning GPG keys away from an old smartcard-generated key to a new | |
| set of smartcard-stored subkeys over which I have more granular control. | |
| There is no urgent reason for this transition other than the fact that my old | |
| key is expiring, which makes this as convenient a time as any. My hope is that | |
| I will be able to manage my key more effeciently going forward with this new | |
| setup and new workflow. |
Your username on GitHub: myersjustinc Please publicly post the following Gist, and name it keybase.md:
I hereby claim:
- I am myersjustinc on github.
- I am myersjustinc (https://keybase.io/myersjustinc) on keybase.
- I have a public key whose fingerprint is E696 5388 5DF6 B978 30A5 6723 DBCE 2CD7 D0E2 F991
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
| #!/bin/bash | |
| # When you upgrade your Python installation in Homebrew, any virtualenvs that | |
| # relied on that Python installation will stop working because of some broken | |
| # symlinks. | |
| # | |
| # Stéphane Wirtel documented a solution: | |
| # http://wirtel.be/posts/en/2014/07/29/fix_virtualenv_python_brew/ | |
| # | |
| # This automates that for all virtualenvs installed with virtualenvwrapper |
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
| class TabulaJava < Formula | |
| desc "Text extraction from PDFs, using command-line Tabula core" | |
| homepage "https://github.com/tabulapdf/tabula-java" | |
| version "0.8.0" | |
| head "https://github.com/tabulapdf/tabula-java.git", :revision => "577916327edd480b81604b1df63a9a583b814f5c" | |
| depends_on "maven" | |
| def install |
-
SSL issues when installing any gem, either using
gem installorbundle install:-
Replace the certs from
rvm osx-ssl-certswith the ones from cURL:$ wget 'https://curl.haxx.se/ca/cacert.pem' $ cp cacert.pem /usr/local/etc/openssl/cert.pem $ sudo cp cacert.pem /etc/openssl/cert.pem
-
-
Switching Ruby versions inside a Python virtualenv throws a warning such as:
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
| class Batik < Formula | |
| desc "Java-based toolkit for SVG images" | |
| homepage "https://xmlgraphics.apache.org/batik/" | |
| url "https://associatedpress-datateam-automation.s3.amazonaws.com/misc/batik-bin-1.8.tar.gz" | |
| sha256 "424c59245471d1134c45d549c5cd995fa6444fa2c0f429cee26c193c049c5e21" | |
| bottle :unneeded | |
| def install | |
| libexec.install "lib", Dir["*.jar"] |
You want the most up-to-date shapefile of Congressional districts, but you don't want Michigan to be a giant blob.
(The Census Bureau offers some cartographic boundary shapefiles without this problem, but they aren't always the most current.)