I searched for the time on screen of every character on Game Of Thrones. I found the information until season 3 only. Here's the result:
This file contains 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 | |
# Script to change wallpaper | |
DIREC="/home/user/Imágenes/Wallpapers" | |
cd $DIREC | |
IMAGE="$(ls -1 | sort -R | head -n 1)" | |
export DISPLAY=:0 | |
gsettings set org.gnome.desktop.background picture-uri "file://$DIREC/$IMAGE" |
This file contains 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
#lang scheme | |
(define range | |
(lambda (future_list) | |
(if (list? future_list) | |
(if (= (car future_list) 0) | |
future_list | |
;else | |
(range (cons (- (car future_list) 1) future_list)) | |
) | |
;else |
This file contains 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 sys | |
import requests | |
import time | |
ROJO = "\033[31m{0}\033[0m" | |
VERDE = "\033[92m{0}\033[0m" | |
try: | |
minuta = requests.get('http://www.usm.cl/comunidad/servicio-de-alimentacion/') | |
except: | |
sys.exit(ROJO.format("Time out")) |
This file contains 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
url=$1 | |
album_id="${url##*/}" | |
json_data="`curl -s http://imgur.com/ajaxalbums/getimages/$album_id/hit.json`" | |
for line in $json_data; do | |
image_id="`echo $line | grep -o '"hash":"[A-Za-z0-9]*"' | perl -pe 's/"hash":"(.*)"/$1/g'`" | |
if [ ! -z $image_id ]; then | |
wget "i.imgur.com/$image_id.jpg" | |
fi | |
done |
This file contains 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
""" | |
The NFA is a dictionary composed by: | |
'state': [(char, new_state)] | |
""" | |
NFA = { | |
'a': [['0', 'a'],('0', 'e'), ('1', 'e'), ('0', 'd'), ('1', 'd'), ('0', 'c'), ('0', 'b')], | |
'b': [('1', 'e'), ('0', 'c')], | |
'c': [('1', 'b')], | |
'd': [('0', 'e')], | |
'e': [] |
This file contains 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 | |
# This script was made to get the link of a chapter without surfing through | |
# crunchyroll, so it's ideal if you want to use streamlink to watch the anime. | |
# First parameter always has to be the name of the serie. | |
main_url="http://www.crunchyroll.com/$1" | |
episodes="`curl -s $main_url|egrep -o '/episode-.*?\"'|sed 's/"//g'`" | |
if [ -z $2 ]; then | |
for episode in $episodes; do | |
echo $episode |
I found the info of the time in screen of GOT's characters. I made the csv and the plot using python3.
This file contains 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/python | |
from time import time, sleep | |
from random import randint | |
import random as r | |
RUTS = ['19.470.140-3', | |
'20.067.784-k', | |
'10.481.357-7', | |
'11.624.369-5', | |
'15.753.502-1', |
You need to download the source of the data (the html) of IMDb and save it as data.html, then run parse_imdb.py
, this will generate the csv.
Then you can run plot.py
.
Remember to use python3
OlderNewer