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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Server</title> | |
</head> | |
<body> | |
<h1>Server</h1> | |
<p>This is a test.</p> | |
</body> |
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 | |
##### | |
import argparse | |
import sys | |
class MyToys: | |
@classmethod | |
def setup_args(cls, subparsers): |
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
const fs = require("fs") | |
const AWS = require('aws-sdk'); | |
const bucketPath | |
const main = (imgPath) => { | |
fs.stat(imgPath, function(err, stats) { | |
if (!stats.isDirectory()) { | |
throw new Error(`"${imgPath}" is not a directory.`) | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Shadow</title> | |
<script> | |
function addShadow() { | |
const theDiv = document.getElementById("theDiv2") | |
const shadowRoot = theDiv.attachShadow({mode: 'open'}) | |
const para = document.createElement("p") |
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
FROM python:3.7-alpine | |
WORKDIR /test-dock | |
# Install any needed packages specified in requirements.txt | |
RUN apk update && \ | |
apk add --no-cache make gcc g++ libgcc libstdc++ libsodium musl libzmq zeromq-dev linux-headers python3-dev && \ | |
pip install --upgrade pip && \ | |
pip install requests beautifulsoup4 pymysql flask uwsgi && \ | |
rm -Rf /tmp/* && \ |
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
MAX_B = 9 | |
MAX_X = 5 | |
MAX_Y = 5 | |
b = MAX_B | |
x = 0 | |
y = 0 | |
d_s = [[0 for c in range(0, MAX_X)] for r in range(0, MAX_Y)] |
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
' Credit where it is due: | |
' http://computerperformance.co.uk/ | |
' https://msdn.microsoft.com/en-us/library/aa394372(v=vs.85).aspx | |
' ---------------------------------------------------------------------- | |
Option Explicit | |
Dim objWMIService, objShell, objProcess | |
Dim strComputer, colProcess, procName, procPath | |
procName = "notepad++.exe" | |
strComputer = "." |
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
# Tomcat commands | |
Set-Variable -Name tomcat_path -Value "C:\path\to\apache-tomcat\bin\" -Scope global -Force | |
function start-tomcat { | |
$return_to = Get-Location | |
set-location -Path $tomcat_path | |
start-process .\startup.bat | |
Set-Location $return_to | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Calculator</title> | |
<script> | |
function checkSize() { | |
var html = document.documentElement; | |
var divC = document.getElementById("interface"); | |
NewerOlder