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
| // Q is a lightweight wrapper around basic DOM functions | |
| // It is similar to jQuery, and follows a similar pattern | |
| // for initialisation and chaining functions. | |
| (function () { | |
| var root, | |
| Q, | |
| fn, | |
| simpleRex = /^(#?[\w-]+|\.[\w-.]+)$/, | |
| periodRex = /\./g, |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Web.Mvc; | |
| public static class SpanchorExtension | |
| { | |
| public static Spanchor Spanchor(this HtmlHelper htmlHelper, bool useAnchor, string url, object htmlAttributes = null) | |
| { | |
| var tag = useAnchor ? "a" : "span"; |
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 AWS = require('aws-sdk'); | |
| var domain = '.example.com'; | |
| var hostedZone = 'HOSTEDZONEID'; | |
| exports.handler = function(event, context, callback) { | |
| var ec2 = new AWS.EC2(); | |
| var params = { | |
| InstanceIds : [ | |
| event.detail['instance-id'] |