- $ git clone https://github.com/inverse/web-scrobbler.git
- $ git checkout multi-scrobble
- Open up Chrome/Chromium
- Click the 3 dots/hamburger (menu in the top right corner)
- Click More Tools
- Click Extensions
- Click Developer mode
- Click Load unpacked extension...
- Navigate to and select the folder for web-scrobbler that you just downloaded
- The extension will load/install
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
def lovelike(jenni, input): | |
if input.sender in ['#reddit-baseball']: | |
return | |
if random.random() <= 0.25: | |
verb = input.group(1) | |
obj = input.group(2) | |
if len(obj) >= 100: | |
obj = obj[:100] + ' [...]' | |
out = 'I ' |
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
import re | |
txt = 'some smoe msoe soem http://www.google.com/meep/peem/peme soMe sMoe Msoe soeM https://www.google.com/meep/peem/pmep/ soem msoe smoe some' | |
def my_replace(match): | |
if not str(match.group()).startswith('http'): | |
return re.sub('(?i)m', '_', match.group()) | |
else: | |
return match.group() | |
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 | |
#title :wildfly-install.sh | |
#description :The script to install Wildfly 10.x | |
#more :http://sukharevd.net/wildfly-8-installation.html | |
#author :Dmitriy Sukharev | |
#date :2016-06-18T02:45-0700 | |
#usage :/bin/bash wildfly-install.sh | |
#tested-version1 :10.0.0.CR3 | |
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22 | |
#tested-version2 :10.0.0.Final |
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
'use strict'; | |
/** | |
* Background script entry point | |
* | |
* - sets up injecting mechanism for supported sites | |
* - creates controllers for each recognized tab | |
* - sets up all chrome.* listeners, which are forwarded controllers if needed | |
* - checks auth status on run (browser start or extension enabling) and prompts for login if needed | |
*/ |
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
def formatnumber(n): | |
"""Format a number with beautiful commas.""" | |
parts = list(str(n)) | |
for i in range((len(parts) - 3), 0, -3): | |
parts.insert(i, ',') | |
return ''.join(parts) |
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 python3 | |
## This works in Python 2 and Python 3 | |
import datetime as dt | |
for x in range(2020, 1000000, 4): | |
t = dt.datetime(x, 2, 29) | |
if t.weekday() == 0: | |
print("Found it! {0}".format(x)) |
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
aliens => /say https://i.imgur.com/fzBKKCl.png | |
badass => /say https://i.imgur.com/Nit1vKC.jpg | |
bang => /say https://i.imgur.com/CJnRk4s.gif | |
bus => /say https://i.imgur.com/zRxQAER.gif | |
chan_ce => /say https://i.imgur.com/fkxDxmu.png | |
chuckle => /say https://i.imgur.com/Brr3fPv.gif | |
correct => /say https://i.imgur.com/XzHkZrI.jpg | |
dense => /say https://i.imgur.com/irCEHYJ.gif | |
disgunbegud => /say https://i.imgur.com/JgKjoVZ.gif | |
dude => /say https://i.imgur.com/JyOk4T6.jpg |