CMSPages/GetDocLink.ashx
CMSPages/Newsletters/GetEmailBrowserContent.ashx
CMSPages/GetAzureFile.aspx
CMSPages/Scheduler.ashx
CMSPages/GetMetafile.aspx
getmetafile/{fileguid}/{filename}
CMSPages/GetFile.aspx
getfile/{nodeguid}/{filename}
cms/getfile/{nodeguid}/{filename}
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
const int analogPin = A0; | |
const int ledPin = 14; | |
int analogPinVal = 0; | |
void setup() { | |
pinMode(ledPin, OUTPUT); | |
Serial.begin(115200); | |
} |
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
<?php | |
// WARNING - You should always ensure that the code cannot be updated | |
// using an anonymous function before using this | |
function createCallback($paramList, $code) { | |
$callback = create_function($paramList, $code); | |
return $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
/* | |
Copyright 2017 Patrick Galbraith | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and | |
associated documentation files (the "Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the | |
following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial |
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
uint UIntPow(uint x, uint pow) | |
{ | |
if (x == 0 || x == 1) | |
return x; | |
if (pow >= 32) | |
throw new OverflowException("Power exceeds allowed size for UInt32"); | |
uint ret = 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
@echo off | |
cls | |
set "resolution=1080" | |
for /f "tokens=* delims=" %%G in ('dir /A-D /B *.jpg') do ( | |
ffmpeg -y -i "%%~G" -vf "scale='min(%resolution%,iw)':min'(%resolution%,ih)':force_original_aspect_ratio=decrease" "%%~G" | |
) | |
for /f "tokens=* delims=" %%G in ('dir /A-D /B *.png') do ( |
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 User = (function () { | |
function User (id, nam) { | |
var self = this; | |
this.id = id; | |
this.nam = nam; | |
this.__data = {}; | |
for(var p in self) { |
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
@echo off | |
setlocal EnableDelayedExpansion | |
set c=0 | |
set version="" | |
for /f "tokens=1,2 delims=:, " %%a in (' find ":" ^< "package.json" ') do ( | |
if "%%~a"=="version" ( | |
set version=%%~b | |
) |
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
diff --git a/modules/processing.py b/modules/processing.py | |
index 24c537d..0525cfd 100644 | |
--- a/modules/processing.py | |
+++ b/modules/processing.py | |
@@ -156,20 +156,41 @@ class StableDiffusionProcessing(): | |
return image_conditioning | |
def depth2img_image_conditioning(self, source_image): | |
- # Use the AddMiDaS helper to Format our source image to suit the MiDaS model | |
- transformer = AddMiDaS(model_type="dpt_hybrid") |
Simple PEG.JS grammer to parse logical expressions like:
test in(1, "2") and (flag = true or test ~ "test" or price >= 100.00 and (total > 100 or total < 200))
Which will output an AST that looks like:
{