Here are a few common tasks you might do in your templates, as they would be written in ExpressionEngine vs. Craft CMS.
This file contains 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
{ | |
"auto_complete": false, | |
"auto_complete_commit_on_tab": false, | |
"auto_complete_delay": 50, | |
"auto_complete_selector": "source - comment", | |
"auto_complete_size_limit": 4194304, | |
"auto_complete_triggers": | |
[ | |
{ | |
"characters": "<", |
This file contains 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
DJ Ango, yo! | |
http://railsenvy.com/2007/9/10/ruby-on-rails-vs-django-commercial-7 | |
The Whistles | |
[now broken] http://www.youtube.com/watch?v=ccgXjA2BLEY | |
http://www.youtube.com/watch?gl=US&hl=en&client=mv-google&v=Nnzw_i4YmKk | |
Do it live! | |
http://www.youtube.com/watch?v=2tJjNVVwRCY | |
REMIX: http://www.youtube.com/watch?v=5j2YDq6FkVE&NR=1 |
This file contains 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 python | |
# -*- coding: utf-8 -*- | |
import urllib, urllib2, cookielib | |
import string, os, re, time, datetime, sys | |
import xbmc, xbmcgui, xbmcplugin, xbmcaddon | |
#from xml.etree import ElementTree | |
from elementtree import ElementTree |
This file contains 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 python | |
# -*- coding: utf-8 -*- | |
import urllib, urllib2, cookielib | |
import string, os, re, time, datetime, sys | |
import xbmc, xbmcgui, xbmcplugin, xbmcaddon | |
BASE = [ | |
'http://apps.ohlulz.com/rtmpgui/list.xml', | |
#'http://localhost/links.xml', |
This file contains 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
/* | |
#ie10 will only be red in MSIE 10, | |
both in high contrast (display setting) and default mode | |
*/ | |
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { | |
#ie10 { color: red; } | |
} |
This file contains 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
void getToken() | |
{ | |
print("getToken"); | |
getTokenService = new GetTokenService(); | |
getTokenService.getToken().then((ServiceEvent event) | |
{ | |
login(); | |
}); | |
} |
This file contains 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
""" | |
setup: | |
pip install requests | |
pip install requests[socks] | |
super helpful: | |
- http://packetforger.wordpress.com/2013/08/27/pythons-requests-module-with-socks-support-requesocks/ | |
- http://docs.python-requests.org/en/master/user/advanced/#proxies | |
""" |
This file contains 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
/** | |
* App Endpoint API Access Example | |
* | |
* Author: SmartThings | |
*/ | |
preferences { | |
section("Allow Endpoint to Control These Things...") { | |
input "switches", "capability.switch", title: "Which Switches?", multiple: true | |
input "locks", "capability.lock", title: "Which Locks?", multiple: true |
OlderNewer