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 myApp = angular.module('myApp', []); | |
| myApp.directive('googleplace', function() { | |
| return { | |
| require: 'ngModel', | |
| link: function(scope, element, attrs, model) { | |
| var options = { | |
| types: [], | |
| componentRestrictions: {} | |
| }; |
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
| /** | |
| * Converts a value to a string appropriate for entry into a CSV table. E.g., a string value will be surrounded by quotes. | |
| * @param {string|number|object} theValue | |
| * @param {string} sDelimiter The string delimiter. Defaults to a double quote (") if omitted. | |
| */ | |
| function toCsvValue(theValue, sDelimiter) { | |
| var t = typeof (theValue), output; | |
| if (typeof (sDelimiter) === "undefined" || sDelimiter === null) { | |
| sDelimiter = '"'; |
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") |