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
| "{{ params.id }}" |
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
| Hey #(foo)# #(bar)#! | |
| <csp:comment> | |
| Output: Hey foo bar! | |
| </csp:comment> |
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
| <script language="cache" method="imageUri" arguments='field:%String="", cmsStory:dt.cms.schema.CMSStory=-1' returntype="%String" procedureblock="1"> | |
| set return = "" | |
| if ($length(field) && $isobject(cmsStory)) { | |
| set cmsPictureId = ##class(dt.cms.support.Rules).extractPicture(field, cmsStory, 0) | |
| if (cmsPictureId '= -1) { | |
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
| #[ set publication = $get(%request.Data("publication", 1)) ]# | |
| <csp:if condition=($length(publication))> | |
| #(publication)# | |
| <dti:publication:set name="#(publication)#" /> | |
| #(gPublication)# | |
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
| ###### NEW: | |
| from django.conf.urls.defaults import * | |
| from sporty import views | |
| urlpatterns = patterns('', | |
| url( | |
| # 30 characters or fewer. Letters, numbers and @/./+/-/_ characters: | |
| r'^users/(?P<username>[a-zA-Z0-9@.+-_]+)/$', |
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
| /** | |
| * degreeMinuteSecond2DecimalDegree() | |
| * About: Converts degree-minute-second (DMS) form to decimal degree (DD) form. | |
| * Returns: Decimal degree (DD) form. | |
| * @param: String. | |
| */ | |
| private function degreeMinuteSecond2DecimalDegree(s:String):Number { | |
| // http://www.ehow.com/how_2363249_form-decimal-degree-dd-form.html | |
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
| <!-- [BEGIN] comScore --> | |
| <script>var _comscore=_comscore||[];_comscore.push({c1:'2',c2:'14055685'});(function(){var s=document.createElement('script'),el=document.getElementsByTagName('script')[0];s.async=true;s.src=(document.location.protocol=='https:'?'https://sb':'http://b')+'.scorecardresearch.com/beacon.js';el.parentNode.insertBefore(s,el);})();</script> | |
| <noscript><img src="//b.scorecardresearch.com/p?c1=2&c2=14055685&cv=2.0&cj=1" width="1" height="1" alt=""></noscript> | |
| <!-- [END] comScore --> | |
| <!-- [BEGIN] Quantcast --> | |
| <script>var _qevents=_qevents||[];(function(){var elem=document.createElement('script');elem.src=(document.location.protocol=='https:'?'https://secure':'http://edge')+'.quantserve.com/quant.js';elem.async=true;elem.type='text/javascript';var scpt=document.getElementsByTagName('script')[0];scpt.parentNode.insertBefore(elem,scpt);})();_qevents.push({qacct:'p-a2gE_aSO6ndbI'});</script> | |
| <noscript><img src="//pixel.quantserve.com/pixel/p-a2gE_aSO6ndbI.gif" width="1" height="1" al |
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
| import datetime | |
| from django.contrib import admin | |
| from treebeard.admin import TreeAdmin | |
| from dox.models import Page | |
| #-------------------------------------------------------------------------- | |
| # | |
| # Admin models: | |
| # | |
| #-------------------------------------------------------------------------- |
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
| <script language="cache" runat="server"> | |
| set id = 1 | |
| set exists = ##class(dt.z.guide.weather.hourly).%ExistsId(id) | |
| if (exists) { | |
| set cond = ##class(dt.z.guide.weather.hourly).conditionsGetStored(id) | |
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
| from django.contrib.auth.models import User | |
| from django.contrib import admin | |
| from dox.models import Page | |
| #-------------------------------------------------------------------------- | |
| # | |
| # Admin models: | |
| # | |
| #-------------------------------------------------------------------------- |