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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<heliconZoo> | |
<clear /> | |
<application name="railo.4.project"> | |
<environmentVariables> | |
<add name="ERROR_LOG_DIR" value="%APPL_PHYSICAL_PATH%/logs" /> | |
</environmentVariables> | |
</application> |
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
[ | |
{ | |
"product": "Wordpress", | |
"parameters": { | |
"site-name": "wp4", | |
"app-pool-name": "DefaultAppPool", | |
"db-engine": "mysql", | |
"db-host": "localhost", | |
"db-port": "3306", | |
"db-username": "ывс", |
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
jQuery(function ($) { | |
window.ExampleComponent = { | |
$placeholder: $('.js-component-placeholder'), | |
$item: $('.js-component-item'), | |
$btn_submit: $('.js-btn-component-submit'), | |
init: function () { | |
this.load_something(); |
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
function linkify(text){ | |
return text.replace(/(https?:\/\/[\w\-:;?&=+.%#\/]+)/gi, '<a href="$1">$1</a>') | |
.replace(/(^|\W)@(\w+)/g, '$1<a href="http://twitter.com/$2">@$2</a>') | |
.replace(/(^|\W)#(\w+)/g, '$1<a href="http://search.twitter.com/search?q=%23$2">#$2</a>'); | |
} |
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
function prettyDate(time){ | |
var date = new Date((time || "")), | |
diff = (((new Date()).getTime() - date.getTime()) / 1000), | |
day_diff = Math.floor(diff / 86400); | |
if (isNaN(date)){ | |
return ''; | |
} | |
return day_diff == 0 && ( |
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
""" http://nedbatchelder.com/blog/200810/switching_python_versions_on_windows.html | |
Change the .py file extension to point to a different | |
Python installation. | |
""" | |
import _winreg as reg | |
import sys | |
pydir = sys.argv[1] | |
todo = [ |
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
var shell = WScript.CreateObject('WScript.Shell'); | |
var envs = shell.Environment('SYSTEM'); | |
var systemPath = envs('PATH'); | |
var paths = systemPath.split(';'); | |
if (WScript.Arguments.Count() != 1){ | |
WScript.StdErr.WriteLine('Error: one argument expected'); | |
WScript.StdErr.WriteLine('Paths in %PATH% :'); | |
for (i in paths){ | |
WScript.StdOut.WriteLine(paths[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
for /f %%i in (list.txt) do ( | |
powershell.exe -Command "(new-object System.Net.WebClient).DownloadFile('%%i', '%%~nxi')" | |
) |
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
import sys | |
import os | |
import os.path | |
VIRTUALENV_EXE = os.path.join(os.path.dirname(sys.executable), 'scripts\\virtualenv.exe') | |
VIRTUALENV_NAME = 'venv' | |
DJANGO_PROJECT_NAME = 'project' | |
PROJECT_DIR = os.path.dirname(__file__) |
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
{% load cms_tags sekizai_tags %} | |
<!doctype html> | |
<head> | |
<title>{{ request.current_page.get_title }}</title> | |
{% render_block "css" %} | |
</head> | |
<body> | |
{% cms_toolbar %} | |
{% placeholder "main" %} |
OlderNewer