I hereby claim:
- I am robotto on github.
- I am robotto (https://keybase.io/robotto) on keybase.
- I have a public key ASAY0jDlqVXaQ10QkSF8BFBZy8fgdAfXbW6J86uacbWIbQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Takes DOI strings as arguments for wget to first get SchHub info page, then extract pdf url, and then get that pdf! | |
| # usage: | |
| # Get a single pdf with: ./sciHub.sh 10.1145/1375761.1375762 | |
| # USe as many DOIs as arguents as you'd like :) | |
| # to pass a list of DOI strings as arguments to this script you could use: "cat DOIS.txt | xargs ./sciHub.sh" | |
| # replace .tw in the sci-hub url with whatever tld is currently in operation.... | |
| for DOI in "$@" | |
| do |
| import pytz | |
| import datetime | |
| import time | |
| import urllib2 | |
| import json | |
| import os | |
| import elementtree.ElementTree as ET | |
| url = 'http://scores.nbcsports.com/ticker/data/gamesNEW.js.asp?jsonp=true&sport=%s&period=%d&random=%d' |
| from time import sleep | |
| import serial ### pip install pyserial: https://pypi.org/project/pyserial/ | |
| # MAKE SURE THE BAUDRATE MATCHES WITH THE ARDUINO (Serial.begin(115200);) | |
| # ser = serial.Serial("/dev/ttyACM0",115200) #Linux | |
| ser = serial.Serial("COM15", 115200) # Windows | |
| while True: | |
| #sleep(1) | |
| # The arduino is doing something like: | |
| # Serial.print(ax); |
| //MAX7219 | |
| #include <SPI.h> | |
| #include <Adafruit_GFX.h> | |
| #include <Max72xxPanel.h> | |
| #define stringArraySize 7 | |
| //int pinBatt = A0; | |
| int pinCS = 8; // Attach CS to this pin, DIN to MOSI and CLK to SCK (cf http://arduino.cc/en/Reference/SPI ) | |
| int numberOfHorizontalDisplays = 4; | |
| int numberOfVerticalDisplays = 1; |
| #include "Keyboard.h" | |
| const int buttonPin = 10; | |
| void setup() { | |
| pinMode(buttonPin, INPUT_PULLUP); | |
| Keyboard.begin(); | |
| } | |
| void loop() { |
| import csv | |
| import sys | |
| from bs4 import BeautifulSoup | |
| #Dette script indeholder ikke hemmelige eller personfølsomme oplysninger, men behandler manuelt anskaffede personoplysninger. | |
| #Programmet æder klasselister (uden billeder) genereret via aarhus tech selvbetjeningen. | |
| #Gem den genererede side som PrintPage.html i samme mappe som dette script. | |
| inputFilename = "PrintPage.html" | |
| outputFilename = "_klasseliste_til_adobe_admin_console_upload.csv" |
| #run with python3 | |
| #js scraper code copied from: https://taras.codes/blog/linkedin-organization-follower-count/ ... replaced regex with string.strip | |
| import socket | |
| from pyquery import PyQuery | |
| import string | |
| import time | |
| print(time.ctime(),"startup!") | |
| TCP_IP = '5.79.74.16' #<-insert server IP here. |
| $fn = 32; //establish a decent roundness | |
| length = 75; | |
| height = 30; | |
| width = 40; | |
| bigHoleDiameter = 37.5; | |
| filletRadius = 3; | |
| /* |