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
:: works only with version 3.4.3+ | |
@ECHO OFF | |
FOR %%f IN (.\inputs\*.tvd) DO ( | |
echo converting %%f ... | |
EchoWave %%f -minimize -save_cine dcm_jpeg outputs\%%~nf.dcm -exit | |
) | |
echo done! |
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 sympy import Symbol cse, ccode | |
from sympy.utilities import numbered_symbols | |
# Inspired by http://stackoverflow.com/questions/22665990/optimize-code-generated-by-sympy | |
def sympyToC(symname, symfunc): | |
tmpsyms = numbered_symbols("tmp") | |
symbols, simple = cse(symfunc, symbols=tmpsyms) | |
symbolslist = map(lambda x:str(x), list(symfunc.atoms(Symbol)) ) | |
symbolslist.sort() |
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 file src/WiFiClient.cpp change ths method: | |
size_t WiFiClient::write(const uint8_t *buf, size_t size) | |
{ | |
sint16 err; | |
if (_socket < 0 || size == 0) { | |
setWriteError(); | |
return 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
var RecursiveChildComponent = React.createClass({ | |
render() { | |
return <div> | |
{this.recursiveCloneChildren(this.props.children)} | |
</div> | |
}, | |
recursiveCloneChildren(children) { | |
return React.Children.map(children, child => { | |
var childProps = {}; | |
if (React.isValidElement(child)) { |