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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Box Shadow</title> | |
| <style> | |
| .box { | |
| height: 150px; | |
| width: 300px; | |
| margin: 20px; |
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 win1 = Titanium.UI.createWindow({ | |
| title:'Tab 1', | |
| backgroundColor:'#fff', | |
| layout: 'vertical' | |
| }); | |
| var bt1 = Ti.UI.createButton({title: 'send message (method 1)', top: 200}); | |
| bt1.addEventListener('click', function(e) |
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
| // create tab group | |
| var tabGroup = Titanium.UI.createTabGroup(); | |
| // | |
| // create base UI tab and root window | |
| // | |
| var win1 = Titanium.UI.createWindow({ | |
| title: 'Tab 1', | |
| backgroundColor: '#fff' | |
| }); |
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 API_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
| var mc_base_url = 'http://us7.api.mailchimp.com/1.3/?method=listSubscribe'; | |
| var mc_list_id = 'xxxxxxxxxx'; | |
| var mc_double_optin = false; | |
| /** | |
| * Uses the MailChimp API to add a subscriber to a list. | |
| */ | |
| function sendToMailChimp_(fn, ln, em, yr){ |
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 getSignature() { | |
| //pretty basic function for testing | |
| if ( startupChecks()) { return; } | |
| var email = SpreadsheetApp.getActiveSpreadsheet().getActiveCell().getValue().toString(); | |
| if ( email === "" ) { | |
| Browser.msgBox("No email selected", "Please select a cell containing a user's email" , Browser.Buttons.OK); | |
| return; | |
| } | |
| var result = authorisedUrlFetch(email, {}); | |
| Browser.msgBox(result.getContentText()); |
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
| <?php | |
| /* Source: http://www.apphp.com/index.php?snippet=php-get-remote-ip-address */ | |
| function makeMyUrlFriendly($url){ | |
| $output = preg_replace("/\s+/" , "_" , trim($url)); | |
| $output = preg_replace("/\W+/" , "" , $output); | |
| $output = preg_replace("/_/" , "-" , $output); | |
| return strtolower($output); | |
| } | |
| ?> |
OlderNewer