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
| #when used in decorator args array is: ['Root', 'Request'] other times it's ['Request'] | |
| @decorator | |
| def require_https(target, *args, **kwargs): | |
| """Force path to be in SSL | |
| Uses X_FRONT_END_HTTPS header key to determine if in the correct mode. | |
| """ | |
| request = args[0] | |
| env = request.environ | |
| if not ('HTTP_FRONT_END_HTTPS' in env \ | |
| and env.get('HTTP_FRONT_END_HTTPS') == 'on'): |
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
| YUI().use('*', function(Y){ | |
| var tbl, | |
| totalRow = Y.one('#total-row').getHTML(), | |
| ds = new Y.DataSource.IO({ | |
| source: '/billing/autobiller/get' | |
| }); | |
| //setup datasource | |
| ds.plug(Y.Plugin.DataSourceJSONSchema, { | |
| schema: { |
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
| table.after('*:load', function(e){ | |
| console.log('memememe'); | |
| }); |
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
| Y.publish('TABLELOAD', {broadcast: 2}); | |
| myTable.on('TABLELOAD', function(e){ | |
| doSomething(); | |
| }); | |
| Y.fire('TABLELOAD'); |
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
| { | |
| "foo" : { | |
| "bar": [1, 2, 3, 5] | |
| } | |
| } |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>fileTypes</key> | |
| <array> | |
| <string>htm.j2</string> | |
| <string>html.j2</string> | |
| <string>xhtml.j2</string> | |
| <string>xml.j2</string> |
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
| server { | |
| listen 80 default; | |
| server_name www.localhost.com localhost.com *.localhost.com; | |
| server_name_in_redirect off; | |
| port_in_redirect off; | |
| access_log /var/log/nginx/nginx.access.log; | |
| location ~* ^/$ { | |
| proxy_set_header CIP-NETSCALER $remote_addr; | |
| proxy_set_header X-True-Origin $remote_addr; |
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
| location ~* ^/$ { | |
| proxy_set_header Front-End-HTTPS on; | |
| proxy_set_header CIP-NETSCALER $remote_addr; | |
| proxy_set_header X-True-Origin $remote_addr; | |
| proxy_set_header Host $host; | |
| proxy_pass http://anon; | |
| } | |
| location ~* ^/.*$ { | |
| proxy_set_header Front-End-HTTPS on; | |
| proxy_set_header CIP-NETSCALER $remote_addr; |
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
| { scopeName = 'text.html.jinja'; | |
| firstLineMatch = '^{% extends ["''][^"'']+["''] %}'; | |
| fileTypes = ( ); | |
| foldingStartMarker = '(<(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\b.*?>|{%\s*(block|filter|for|if|macro|raw))'; | |
| foldingStopMarker = '(</(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\b.*?>|{%\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\s*%})'; | |
| patterns = ( | |
| { name = 'meta.scope.jinja.variable.nested.html'; | |
| begin = '".*({{(.*)}}).*'; | |
| end = '"'; | |
| captures = { 2 = { name = 'meta.scope.jinja.variable.html.nested'; }; }; |
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 ruby | |
| require 'rexml/document' | |
| require 'net/http' | |
| require 'cgi' | |
| require 'ftools' | |
| require 'optparse' | |
| ### CONFIG | |
| # "City, State" or "City, Country" or ZIP Code |