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
# Back-Propagation Neural Networks | |
# | |
# Written in Python. See http://www.python.org/ | |
# Placed in the public domain. | |
# Neil Schemenauer <[email protected]> | |
import math | |
import random | |
import string |
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
:: To actually include the path expansion character (tilde), I had to give valid numbers; see http://ss64.com/nt/rem.html for bug reference. Also, try call /? for more info. | |
@REM The %~n0 extracts the name sans extension to use as output folder. If you need full paths, use "%~dpn0". The -y forces overwriting by saying yes to everything. Or use -aoa to overwrite. | |
@REM Using `x` instead of `e` maintains dir structure (usually what we want) | |
:: If you want recursive, use FOR /R | |
@FOR %%a IN (*.zip) DO @( | |
@if [%1] EQU [/y] ( | |
@7z x "%%a" -o"%%~dpna" -aoa | |
) else if [%1] EQU [/yd] ( | |
@7z x "%%a" -o"%%~dpna" -aoa |
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
#------------------------------------------------------------------------------- | |
# Purpose: | |
# Author: Pat | |
#------------------------------------------------------------------------------- | |
#!/usr/bin/env python | |
from __future__ import division | |
import math | |
import numpy as np | |
import pylab as pl |
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
#------------------------------------------------------------------------------- | |
# Purpose: | |
# Author: Pat | |
#------------------------------------------------------------------------------- | |
#!/usr/bin/env python | |
import math | |
import numpy as np | |
import pylab as pl | |
from pprint import pprint, pformat |
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
#------------------------------------------------------------------------------- | |
# Purpose: | |
# Author: Pat | |
#------------------------------------------------------------------------------- | |
#!/usr/bin/env python | |
import math | |
import numpy as np | |
import pylab as pl | |
from pprint import pprint, pformat |
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
#------------------------------------------------------------------------------- | |
# Purpose: Coffee cooling simulation | |
# Author: Pat (Hecuba) | |
#------------------------------------------------------------------------------- | |
#!/usr/bin/env python | |
from pprint import pprint, pformat | |
## Coffee cooling | |
# Start at 90 C, target temp is 75 C | |
# Cream drops temp 5 C immediately |
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
#------------------------------------------------------------------------------- | |
# Author: Pat Kujawa | |
#------------------------------------------------------------------------------- | |
#!/usr/bin/env python | |
import numpy as np | |
import random | |
from collections import defaultdict | |
from pprint import pprint, pformat | |
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
#------------------------------------------------------------------------------- | |
# Author: Pat Kujawa | |
#------------------------------------------------------------------------------- | |
#!/usr/bin/env python | |
import numpy as np | |
from pprint import pprint, pformat | |
class Cell(object): | |
def __init__(self): | |
self.is_terminal = False |
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
@if "%1"=="" ( | |
@echo Usage: %0 sourceFile file1 [file2 file3 ...] | |
goto :eof | |
) | |
@set sourceFile=%1 | |
@shift | |
:parseparams | |
@if [%1] neq [] ( | |
@if not exist %1 echo F | xcopy %sourceFile% %1 /F /-Y | |
REM If you don't want the prompts displayed onscreen, use the next line instead (but it won't show the paths of the files copied) |
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
#region (c)2009-2011 Lokad - New BSD license | |
// Copyright (c) Lokad 2009 | |
// Company: http://www.lokad.com | |
// This code is released under the terms of the new BSD licence | |
#endregion | |
#if !SILVERLIGHT2 |