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
<ApplicationManifest xmlns="http://schemas.google.com/ApplicationManifest/2009"> | |
<Name>Hello World</Name> | |
<Description>Demonstrates a simple Google Apps Marketplace application</Description> | |
<!-- Administrators and users will be sent to this URL for application support --> | |
<Support> | |
<Link rel="support" href="http://cbardal.com/support" /> | |
</Support> | |
<!-- Show this link in Google's universal navigation for all users --> |
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
<?php | |
//AmttZAQFTIYPuPjvZXl0Uz5pEjJQaP5b3nJQoZW8ivM | |
print preg_replace("/wDZIpXddRHh2QxRgrsYU3o9QA6zvGH/e", "aujp9BBjJTvVaN7OMETTyR4MhP9Q6amVJK=HMAqVUbqupl02qRJdjCqFSoVND9iNIhUUiAp3bVlF8k8n3GGaJwfbZ2odyLq7t=QQA7HbRthNSe1Jk7ktsFKH7zkuAPqtP70P3FrIyOVGtLQSH1B16M82AhlBxQuBMsREy0MmNis7u0O2yPqtcnkdJKe7bN9o7PsuN6VbdDWMBkC11tjRWIufSNbubYYWoFF3AbSdeopgOsVDb6VxCESVStEtHcFviLmim6BGirmwY9113Km5O5PhnTQvwVfThH3IB5Pkk2V0zLyrVakkT1G8IXr5tMNPTFYV0n6jdQhSbU0wujVDYcAgzrah4oxMuKhsxbRQryiIHg53FP7ds7=hmZEfD2sxAOfyqwDXkmfsIZjNpfqWap4CE8iIxP7yebmKNqhxRCeacDnGiTc00VADRiMExH4QifavK9icAC3cFfjozBmxWn2oKCt9KmOtGodQmBtnDkEIFox5pZrABhpLkYIu=WcFA7Wn8EP=oUIu97nmUTnV2ShaqqKpCnuDiGqfK7fzPniNiKz4ecOVuvwZa7EdizgG6LmFGG5WucjSnYKG1YckJN=jIDBr4hyxtZ41fwLPOvh2Ir90FZiOmhyul1beXOQFoJ7J6HYI36=Am80sVh78EurpjHI7WZB=j9IeEhm8cm8Di7w4cszgbgL=nU70u90S7Hw=oY8F=5Jhz6aQmPxDv9DYS=XB8VT3cF3GdyLdrV=gQaw4pj7ag0yy9Kz6fIx9NoDrcPJJlJp2kbuO=pofocTmmIgHRTFf8JLZZVi=fN2EokTnP9I4ZceBlAJ3TOWQXiqw5NwYbndEMwsbt2UITzJ5zSvIgHY5qEqjRc8tEayRLgs6XCCq2MjqeUyAcM6HQkqiCnRGCEXOkFI8HLn |
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
/** | |
* Unobtrusive scripting adapter for jQuery | |
* | |
* Requires jQuery 1.4.3 or later. | |
* https://github.com/rails/jquery-ujs | |
*/ | |
(function($) { | |
// Triggers an event on an element and returns the event result | |
function fire(obj, name, data) { |
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
{%for course in courses%} | |
.c{{course.id}}{ | |
background-color: {{colors.forloop.counter}} | |
} | |
{%endfor%} |
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
lista=[3, 4, 9, 14, 15, 19, 28, 37, 47, 50, 54, 56, 59, 61, 70, 73, 78, 81, 92, 95, 97, 99] | |
n=0 | |
def powerset(seq): | |
if len(seq): | |
head = powerset(seq[:-1]) | |
return head + [item + [seq[-1]] for item in head] | |
else: | |
return [[]] | |
def funcsort(seq, func): |
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
static String getLongest(String s) | |
{ | |
String longest = ""; | |
for (int i = 1; i < s.Length; i++) | |
{ | |
String first = s.Substring(0, i); | |
for (int j = 0; j < first.Length; j++) | |
{ |
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
class Array | |
def iterate! | |
self.each_with_index do |n, i| | |
self[i] = yield(n) | |
end | |
end | |
end | |
class Array |
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
otrostring="100" | |
i=131312 | |
int(otrostring+str(i)[1:len(str(i))]) |
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
(r'^api/$', 'flipea.html.views.api'), | |
(r'^api/favorites\.(xml|json)$', 'flipea.api.views.favorites'), | |
(r'^api/public\.(xml|json)$', 'flipea.api.views.public_timeline'), | |
(r'^api/statuses/replies\.(xml|json)$', 'flipea.api.views.user_timeline_mentions'), | |
(r'^api/statuses/friends_timeline\.(xml|json)$', 'flipea.api.views.home_timeline'), | |
(r'^api/statuses/user_timeline\.(xml|json)$', 'flipea.api.views.user_timeline'), | |
(r'^api/statuses/user_timeline/([a-zA-Z0-9_\-]+)\.(xml|json)$', 'flipea.api.views.username_timeline'), | |
(r'^api/statuses/home_timeline\.(xml|json)$', 'flipea.api.views.home_timeline'), | |
(r'^api/statuses/public_timeline\.(xml|json)$', 'flipea.api.views.public_timeline'), | |
(r'^api/statuses/friends\.(xml|json)$', 'flipea.api.views.following'), |
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
def auth_required(func): | |
def decorator(request, *args, **kwargs): | |
return basic_auth(func, request, *args, **kwargs) | |
return decorator | |
def basic_auth(func, request, *args, **kwargs): | |
if request.META.has_key('HTTP_AUTHORIZATION'): | |
(authmeth, auth) = request.META['HTTP_AUTHORIZATION'].split(' ', 1) | |
if authmeth.lower() == 'basic': | |
auth = auth.strip().decode('base64') |
OlderNewer