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
<a href="http://okdaz">text linku</a> |
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
var static = require('node-static'); | |
// | |
// Create a node-static server to serve the current directory | |
// | |
var file = new static.Server('.', { cache: false, headers: {"Cache-Control": "no-cache, must-revalidate"} }); | |
require('http').createServer(function (request, response) { | |
file.serve(request, response, function (err, res) { | |
if (err && (err.status === 404)) { // An error as occured |
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: utf8 -*- | |
""" | |
MAKESTRINGS – EASIER I18N FOR TITANIUM APPS | |
Auto-generates localized strings.xml for Appcelerator Titanium projects by inspecting | |
the project's JS files looking for L() calls. | |
The scripts adds unlocalized strings to strings.xml, ready for translation. Already | |
localized strings in strings.xml are not touched. |
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 urllib, urllib2 | |
import xml.dom import minidom | |
from django.contrib.comments.moderation import CommentModerator | |
SFS_API_URL = 'http://www.stopforumspam.com/api?' | |
def is_spam(ip, email): | |
""" |