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 factorial(num) | |
{ | |
// If the number is less than 0, reject it. | |
if (num < 0) { | |
//error message to user | |
console.log('use a number above 1'); | |
return -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
var moonPhase = 'full'; | |
var foggyNight = false; | |
if (moonPhase === 'full' || foggyNight === true){ | |
console.log('Howwwwwlll!!'); | |
} | |
else if (moonPhase === 'mostly new'){ | |
console.log('Back on two feet'); | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
{ | |
"CreationDate": "2018-10-6", | |
"Commands": [ | |
{ | |
"Command": "open", | |
"Target": "https://forum.a9t9.com/", | |
"Value": "" | |
}, | |
{ | |
"Command": "clickAt", |
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
for img in *.png; do | |
width=$(identify -format %W ${img}) | |
width=$(( ${width} * 9 / 10 )) | |
convert \ | |
-background '#0008' \ | |
-gravity center \ | |
-fill white \ | |
-size ${width}x100 \ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head profile="http://selenium-ide.openqa.org/profiles/test-case"> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link rel="selenium.base" href="" /> | |
<title>testCSVsave</title> | |
</head> | |
<body> | |
<table cellpadding="1" cellspacing="1" border="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
print(''' | |
******************************************************************************* | |
| | | | | |
_________|________________.=""_;=.______________|_____________________|_______ | |
| | ,-"_,="" `"=.| | | |
|___________________|__"=._o`"-._ `"=.______________|___________________ | |
| `"=._o`"=._ _`"=._ | | |
_________|_____________________:=._o "=._."_.-="'"=.__________________|_______ | |
| | __.--" , ; `"=._o." ,-"""-._ ". | | |
|___________________|_._" ,. .` ` `` , `"-._"-._ ". '__|___________________ |
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
# -*- coding: utf-8 -*- | |
# @author: Peter Lamut | |
import argparse | |
import os | |
import shutil | |
N = 10 # the number of files in seach subfolder folder | |