-
Update your dependencies inside
package.jsonSwitch internal app archetype
@walmart/electrode-archetype-react-app @walmart/electrode-archetype-react-app-dev
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
| package main | |
| import ( | |
| "encoding/base64" | |
| "net/http" | |
| "strings" | |
| ) | |
| type handler func(w http.ResponseWriter, r *http.Request) |
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 args = [].slice.call(arguments, 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
| """ | |
| Simple forking echo server built with Python's SocketServer library. A more | |
| Pythonic version of http://gist.github.com/203520, which itself was inspired | |
| by http://tomayko.com/writings/unicorn-is-unix. | |
| """ | |
| import os | |
| import SocketServer | |
| class EchoHandler(SocketServer.StreamRequestHandler): |
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
| #!/usr/bin/env python | |
| """ | |
| web page screenshot by webkit | |
| command usage: | |
| python webkitscreenshot.py test.html | |
| library usage: | |
| import webkitscreenshot | |
| image = webkitscreenshot.screenshot_vfb("file://test.html") |
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
| # | |
| # Get web page screenshot | |
| # | |
| # usage: | |
| # xvfb-run -s "-screen 0 1024x768x24" python getschreenshot.py test.html | |
| # | |
| # libs: | |
| # - pygtk: http://www.pygtk.org/ | |
| # - pywebkitgtk(python-webkit): http://code.google.com/p/pywebkitgtk/ | |
| # - PIL: http://www.pythonware.com/products/pil/ |