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
| var fs = require('fs'); | |
| var exec = require('child_process').exec; | |
| function inspect(object, filename) { | |
| var html = "<script>var j = " + JSON.stringify(object) + "; console.log(j);</script> open console"; | |
| var tmpFile = (filename) ? filename : "/tmp/inspect.html"; | |
| fs.writeFileSync(tmpFile, html) | |
| exec("open " + tmpFile); | |
| } |
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
| function output = sigmoid(incoming) | |
| output = 1/(1+(exp(incoming * -1))) | |
| endfunction | |
| %question 4 | |
| Wxh=-.1 | |
| Whh=.5 | |
| Why=.25 | |
| hbias=.4 | |
| ybias=0 |
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
| def expandJson(df, colName): | |
| jsonString = df.iloc[0][colName] | |
| decoded = json.loads(jsonString) | |
| attrs = decoded.keys() | |
| fld = df[colName] | |
| for attr in attrs: df[attr] = json.loads(fld)[attr] |
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
| def expandJson(df, colName): | |
| jsonString = df.iloc[0][colName] | |
| decoded = json.loads(jsonString) | |
| attrs = decoded.keys() | |
| print(attrs) | |
| fld = df[colName] | |
| for attr in attrs: df[colName+attr] = [loadjson(x,attr) for x in fld] |
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
| function lastMessage(){ | |
| let a = document.getElementsByTagName('yt-live-chat-text-message-renderer'); | |
| return { | |
| user: a[a.length-1].getElementsByTagName('yt-live-chat-author-chip')[0].innerText, | |
| message: a[a.length-1].querySelector('#message').innerText, | |
| } | |
| } | |
| window.ggCacheChat = {user:'',message:''} |
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
| (function(){ | |
| select = document.createElement("select"); | |
| selectId = "insertedSelect"; | |
| select.id = selectId; | |
| options =[ | |
| {p:49, cost:"599" , label:"35,000 FBA Orders"}, | |
| {p:50, cost:"799" , label:"50,000 FBA Orders"}, | |
| {p:51, cost:"1099", label:"75,000 FBA Orders"}, | |
| {p:52, cost:"1349", label:"100,000 FBA Orders"}, |
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
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
| .................................................................................................................................................................................................................................''''..............'''''..................''''''''''''''''...'''''''''''''''''......''''''...............'''''''''''''''''''''....'.........................'''''''''''''''''''''''''''''''''''''''''''''....''''.......................................................................................................................................................................................................................................................................................................................................'''''''''''''''''''''''''''''',,,,,,,,,, | |
| ............................................................................................................................................................................................................................... |
OlderNewer