/*
Made by [egy.js](https://www.instagram.com/egy.js/);
*/
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
function theme_precmd { | |
local TERMWIDTH=$(( COLUMNS - ${ZLE_RPROMPT_INDENT:-3} )) | |
# local TERMWIDTH=20 | |
PR_FILLBAR="" | |
PR_PWDLEN="" | |
local promptsize=${#${(%):---(%D{%H:%M:%S})---()--}} | |
local pwdsize=${#${(%):-%~}} |
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
from bs4 import BeautifulSoup | |
import asyncio | |
import aiohttp | |
import aiofiles | |
import csv | |
import os | |
import re |
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 time | |
from selenium import webdriver | |
from bs4 import BeautifulSoup | |
from selenium.webdriver.chrome.options import Options | |
CHROME_DRIVER_PATH = '/mnt/c/Users/leekiernan/AppData/Local/Google/chromedriver.exe' | |
# driver = webdriver.Chrome(CHROME_DRIVER_PATH) | |
# driver.get('http://www.google.com/xhtml'); | |
# time.sleep(5) | |
# search_box = driver.find_element_by_name('q') |
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
# 404: https://www.whsmith.co.uk/dept/toys-and-games-toys-model-railway-14x00010 | |
# 200: https://www.whsmith.co.uk/dept/books-biography-and-true-stories-humour-02x02589 | |
from bs4 import BeautifulSoup | |
import requests | |
import re | |
import csv | |
import sys | |
import os |
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
--[[ | |
p1 = 910x2065 | |
p2 = 910x1560 | |
p3 = 910x1055 | |
p4 = 910x551 | |
p5 = 910x46 | |
]] | |
CREATETIME="2017-01-27 19:57:16"; |
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
.overlay { | |
position:absolute; | |
top:0; right:0; bottom:0; left:0; | |
background:transparent; | |
background-image: -svg(linear-gradient( 135deg, rgba(#ccc, 0.15) 0%, rgba(#ccc, 0.15) 50%, transparent 50%, transparent 100%) ); | |
} |
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
// Generated on 2014-09-18 using generator-webapp 0.4.9 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
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
var Hook = { | |
hooks: [], | |
register: function ( name, callback ) { | |
if( 'undefined' == typeof( Hook.hooks[name] ) ) { | |
// Create empty array if first hook for name. | |
Hook.hooks[name] = [] | |
} | |
Hook.hooks[name].push( callback ) |
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
require 'google_directions' | |
clubs = { | |
chelsea: { latitude:51.4816, longitude:-0.191034, directions: {} }, | |
swansea_city: { latitude:51.6428, longitude:-3.93473, directions: {} }, | |
aston_villa: { latitude:52.5092, longitude:-1.88508, directions: {} }, | |
manchester_city: { latitude:53.483, longitude:-2.20024, directions: {} }, | |
liverpool: { latitude:53.4308, longitude:-2.96096, directions: {} }, | |
tottenham_hotspur: { latitude:51.6033, longitude:-0.065684, directions: {} }, | |
arsenal: { latitude:51.5549, longitude:-0.108436, directions: {} }, |
NewerOlder