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 scrapy | |
from scrapy.crawler import CrawlerProcess | |
class MySpider(scrapy.Spider): | |
# Your spider definition | |
... | |
process = CrawlerProcess({ | |
'USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)' | |
}) |
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
//attaching to chair | |
unitName setBehaviour "SAFE"; | |
unitName switchMove "InBaseMoves_SittingRifle2"; | |
unitName disableAI "anim"; | |
unitName attachTo [chairName,[0,0,-0.5]]; | |
//detaching from chair | |
detach panzerA1; | |
panzerA1 setPos (c1a modelToWorld [0,-1,0]); | |
panzerA1 setBehaviour "AWARE"; | |
panzerA1 enableAI "anim"; |
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
//Trigger Parameters: | |
//Name: baseSafe | |
//Shape: ellipse | |
//Size: 500;400;-1 | |
panzerA1 setPos (c1a modelToWorld [0,1,0]); //Detach from chair and end ambient sitting animation | |
panzerA1 call BIS_fnc_ambientAnim__terminate; | |
panzerA2 setPos (c2a modelToWorld [0,1,0]); | |
panzerA2 call BIS_fnc_ambientAnim__terminate; | |
panzerA3 setPos (c3a modelToWorld [0,1,0]); | |
panzerA3 call BIS_fnc_ambientAnim__terminate; |
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/sh | |
VERSION="x.x.x" | |
sudo apt-get install libssl-dev openssl | |
wget https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tgz | |
tar xzvf Python-$VERSION.tgz | |
cd Python-$VERSION | |
./configure | |
make |
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 os | |
import re | |
import string | |
fileName = '' | |
vidReg = re.compile(r'youtube\.com') | |
fileRead = open('./req.txt') | |
length = len(open('./req.txt').readlines( )) | |
video = fileRead.readlines() | |
for x in range(length): |
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 discord.ext import commands | |
class cog_name(commands.Cog, name='Long Cog Name'): | |
def __init__(self, client): | |
self.bot = client | |
@commands.command() | |
async def first_command(self, ctx): | |
pass |
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 | |
docker create --name=bazarr \ | |
--restart unless-stopped \ | |
-p 6767:6767 \ | |
-e PUID=1000 \ | |
-e PGID=1000 \ | |
-e TZ=Europe/London \ | |
-e UMASK_SET=022 \ | |
-v /home/docker/bazarr/conf:/config \ | |
-v /mnt/Movie\ Library:/movies \ |
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
"schemes": [ | |
{ | |
"name" : "Snazzy", | |
"cursorColor": "#97979b", | |
"selectionBackground": "#f1f1f0", | |
"background" : "#282a36", | |
"foreground" : "#eff0eb", | |
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
def are_dir_trees_equal(dir1, dir2): | |
""" | |
Compare two directories recursively. Files in each directory are | |
assumed to be equal if their names and contents are equal. | |
@param dir1: First directory path | |
@param dir2: Second directory path | |
@return: True if the directory trees are the same and | |
there were no errors while accessing the directories or files, |
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
::-webkit-scrollbar { | |
width: 5px; | |
height: 1px; | |
color: black | |
} | |
::-webkit-scrollbar-thumb { | |
background: white | |
} | |
::-webkit-scrollbar-thumb:hover { | |
color: darkgrey; |
OlderNewer