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
<?php | |
function webshotr_v1($url, $args) | |
{ | |
$WEBSHOTR_APIKEY = "ca482d7e-9417-4569-90fe-80f7c5e1c781"; | |
$WEBSHOTR_SECRET = "d18ff559-8fc2-447f-8e8d-1b1157f9b1c2"; | |
$options['url'] = urlencode($url); | |
$options += $args; | |
foreach ($options as $key => $value) { |
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
App.PickADate = Ember.View.extend({ | |
attributes: ['monthsFull', 'monthsShort', 'weekdaysFull', 'weekdaysShort', | |
'monthPrev', 'monthNext', 'showMonthsFull', 'showWeekdaysShort', 'today', | |
'clear', 'format', 'formatSubmit', 'hiddenSuffix', 'firstDay', 'monthSelector', | |
'yearSelector', 'dateMin', 'dateMax', 'datesDisabled', 'disablePicker'], | |
events: ['onOpen', 'onClose', 'onSelect', 'onStart'], | |
tagName: 'input', | |
classNames: 'pickadate', |
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
require 'openssl' | |
require 'open-uri' | |
def encodeURIComponent(val) | |
URI.escape(val, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]")) | |
end | |
def urlbox(url, options={}, format='png') | |
urlbox_apikey = 'YOUR_API_KEY' | |
urlbox_secret = 'YOUR_API_SECRET' |