- Get to the page with tweets you want to scrape.
- Throw the content of
scrape.js
into the console. console.log(JSON.stringify(Array.from(captured).map(d => d[1]), null, 2))
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
license: mit | |
scrolling: true | |
height: 300 |
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 | |
while true; do | |
currTime=`date +%Y%m%d%H%M` | |
if [ "$currTime" -ge 201507081658 -a "$currTime" -le 201507082300 ]; then | |
echo "$currTime: Stream should be on. Start ffmpeg if the process does not exist" | |
if [ "$(pidof ffmpeg)" ]; then | |
echo "$currTime: ffmpeg already running." | |
sleep 10 | |
else |
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
<div> | |
<!-- this is duplicated on format --> | |
<style></style> | |
</div> |
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
function qualifyURL(url) { | |
var a = document.createElement('a'); | |
a.href = url; | |
return a.href; | |
} |
Reusable slopegraph inspired/adapted from Ben Van Dyke's example into a reusable chart.
This slopegraph example shows the number of personal computers installed in a country per household. This includes desktop PCs and laptops, but excludes smartphones and terminals connected to mainframe computers. All figures are calculated using total number of Personal Computers and the Total Number of Households.
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
sudo /usr/local/McAfee/AntiMalware/VSControl stopoas | |
sudo killall VShieldService | |
sudo killall VShieldScanner |
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
/** @jsx Preact.h */ | |
import Preact from 'preact'; | |
import Stage from './components/stage'; | |
const container = document.querySelector('[data-encryption-explainer]'); | |
const stage = container.querySelector('.scrollyteller-stage'); | |
// Get rid of support message. | |
document.querySelector('.interactive_support_msg').parentNode.remove(); |
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
#!/usr/bin/env bash | |
open -n "/Applications/VLC.app" udp://@239.193.4.128:5000 | |
/Applications/VLC.app/Contents/MacOS/VLC --no-audio udp://@239.193.4.70:5000 & |
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
+ [*] who is (@candidate) [*] | |
- <call>candidate-info:who <star></call> | |
+ [*] who (@candidate) is [*] | |
@ who is <star> | |
+ [*] what [*] about [*] (@candidate) [*] | |
@ who is <star> | |
+ [*] what [*] (@candidate) [*] (electorate|seat) [*] |
NewerOlder