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 fs = require('fs'); | |
filename = process.argv[2]; | |
var data = fs.readFileSync(filename); | |
var arr = data.toString().split('\n'); | |
var returnString = ''; | |
returnString = 'const vec3 palette[' + (arr.length - 1) + '] = vec3[]( '; | |
for(var i in arr){ | |
if(arr[i].length > 5){ | |
if(i > 0){ |
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
Dim objShell, objFSO, objFile, strArguments | |
Set objShell = WScript.CreateObject("WScript.shell") | |
Set objFSO = CreateObject("Scripting.FileSystemObject") | |
Set objFile = objFSO.GetFile(WScript.ScriptFullName) | |
For Each strArgument in WScript.Arguments | |
strArguments = strArguments & " " & strArgument | |
Next | |
objShell.Run """" & objFSO.GetParentFolderName(objFile) & "\" & objFSO.GetBaseName(WScript.ScriptFullName) & ".exe""" & strArguments, 0, False |
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
<html> | |
<head> | |
<script type="text/javascript"> | |
var searchTerms = "forest city night japan"; // <- Insert your image style preference | |
var pexelsAPIToken = ""; // <- Insert your Pexel API token here | |
var url = | |
"https://api.pexels.com/v1/search?query=" + searchTerms.replace(/\s+/g, '+') + | |
"&min_width=" + window.innerWidth + "&min_height=" + window.innerHeight + "&per_page=1&page="; | |
</script> | |
<style> |
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
### Global Varaibles ### | |
$global:windowsTopMost = $false | |
$global:returnCode = 0 | |
$global:privateKeyPath = $args[0] | |
$global:passphraseEnvName = $args[1] | |
$global:sshJob = $null | |
$global:sshPassEnvVarName = $null | |
### Main Functions ### |
OlderNewer