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
| <!-- | |
| In this example assume we have some cases which are creatd with the a label called "Display Custom Field" | |
| And ONLY when this label is present on a case we want to display a Case Custom Field on teh case theme called "Awesome List" | |
| You would use the following (walkthrough of the logic below): | |
| --> | |
| <!--=======--> | |
| <!--Snippet--> |
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
| <div id="autosuggest" style="display: none;"></div> | |
| <div id="common"> | |
| <h4>Common Questions</h4> | |
| <p>This will show on page-load and if no results are found based on what the user is typing. You can optionally put links to common articles here.</p> | |
| </div> | |
| <script> | |
| var as_count = 0; | |
| $(function() { |
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 logging | |
| import requests | |
| from django.utils import simplejson | |
| from django.conf import settings | |
| class DeskError(Exception): | |
| def __init__(self, status): | |
| Exception.__init__(self, status) # Exception is an old-school class |
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
| pyg = 'ay' | |
| print "Welcome to the Pyg Latin Translator" | |
| original = raw_input('Enter a word to be translated:') | |
| if len(original) > 0 and original.isalpha(): | |
| word = original.lower() | |
| first = word[0] | |
| if first in ["a","e","i","o","u"]: | |
| new_word = word+pyg |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Go to Google Bookmarks: https://www.google.com/bookmarks/ | |
| On the bottom left, click "Export bookmarks": https://www.google.com/bookmarks/bookmarks.html?hl=en | |
| After downloading the html file, run this script on it to generate a KML. | |
| """ |