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 | |
require_once('wp-load.php'); // Required by all WordPress functions. | |
wp_mail("email", "subject", "message"); // Sends message to email address. | |
phpinfo(); // Shows all PHP settings, including SMTP server. | |
?> |
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
// Bookmarklet to convert hiragana and katatana to romanji (Latin characters) | |
// Based on Hiragana, Katakana, Hepburn, Nihon-shiki, Kunrei-shiki table of http://en.wikipedia.org/wiki/Romanization_of_Japanese | |
javascript:(function(){function t(s){var n="";var i=-1;while(++i<s.length){var c=s[i];c=d[c]||c;n+=d2[c]||c};return n}function A2L(e){if(e.nodeType==3&&e.nodeValue.trim()!=""){e.nodeValue=t(e.nodeValue)}else{var i=e.childNodes.length;while(i--){A2L(e.childNodes[i])}}}var HKH=["あ:ア:a","い:イ:i","う:ウ:u","え:エ:e","お:オ:o","や:ャ:ya","ゆ:ュ:yu","よ:ョ:yo","か:カ:ka","き:キ:ki","く:ク:ku","け:ケ:ke","こ:コ:ko","ゃ:ャ:a","ゅ:ュ:u","ょ:ョ:o","さ:サ:sa","し:シ:shi:si","す:ス:su","せ:セ:se","そ:ソ:so","た:タ:ta","ち:チ:chi:ti","つ:ツ:tsu:tu","て:テ:te","と:ト:to","な:ナ:na","に:ニ:ni","ぬ:ヌ:nu","ね:ネ:ne","の:ノ:no","は:ハ:ha","ひ:ヒ:hi","ふ:フ:fu:hu","へ:ヘ:he","ほ:ホ:ho","ま:マ:ma","み:ミ:mi","む:ム:mu","め:メ:me","も:モ:mo","や:ヤ:ya","ゆ:ユ:yu","よ:ヨ:yo","ら:ラ:ra","り:リ:ri","る:ル:ru","れ:レ:re","ろ:ロ:ro","わ:ワ:wa","ゐ:ヰ:i:wi:i","ゑ:ヱ:e:we:e","を:ヲ:o:wo:o","ん:ン:n-n'(-m):n-n'","が:ガ:ga","ぎ:ギ:gi","ぐ:グ: |
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
substr(preg_replace_callback('/(.*?), /', function($matches){ | |
return '<a href="user_mod.php?frole='.rawurlencode($matches[1]).'">'.$matches[1].'</a>, '; | |
}, $row['froles'].', '), 0, -2) |
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
<FilesMatch "\.(htm|html|php)$"> | |
<IfModule mod_headers.c> | |
BrowserMatch MSIE ie | |
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie | |
</IfModule> | |
</FilesMatch> |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0\Client] | |
"Enabled"=dword:00000000 | |
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
Given the lack of comment permalinks, link looks, and the broken profile picture update link, i'll mirror my proposed answer at | |
https://social.msdn.microsoft.com/forums/vstudio/en-US/203a2cbe-bee7-42b2-a97d-1c11b81ae237/my-edit-continue-stopped-working-on-vs-2013?prof=required | |
To edit a C# program while you're running it in Visual Studio 2013: | |
1. Go to Project, Properties, Build. | |
2. Set Platform target: x86 | |
2. Disable "Optimize code" | |
3. Set Advanced, Debug Info: Full |
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(){ | |
$('#filter').on("keyup", filter) | |
// Too slow? Wait for enter: | |
//$('#filter').on('change', filter); | |
// Help IE10 because it doesn't trigger change until field loses focus. | |
//$('#filter').on('keydown', function(event){if(event.which == 13) $(this).change()}) | |
$('#filter').on("mouseup", function(){setTimeout(filter, 50)}) // Wait for IE10 to clear input. | |
}) |
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 requests # python-requests.org | |
url = 'https://portal.srxp.com/api/1/access_keys' | |
post_data = {'email':'xxx', 'password':'xxx'} | |
response = requests.post(url, json=post_data) | |
try: | |
json = response.json() | |
print("Key: " + json['access_key']) | |
except: |
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 pypyodbc # C:\Python34\Scripts>pip install pypyodbc | |
def printu(s): | |
try: print(s) | |
except: print(str(s).encode('ascii', errors='xmlcharrefreplace')) | |
con = pypyodbc.connect('DRIVER={SQL Server};SERVER=xxx;DATABASE=xxx;UID=xxx;PWD=xxx') | |
cur = con.cursor() | |
table = "reports" |
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 sql_escape(v): | |
return "'"+str(v).replace("'", "''")+"'" | |
def fill_sql(sql, values): | |
"Hacking around hard-to-reproduce pypyodbc bug. Also using tinyint for bools for easy counting." | |
unique = "%PARAMETER%" | |
sql = sql.replace("?", unique) | |
for v in values: sql = sql.replace(unique, "null" if repr(v)=="None" else str(int(v)) if type(v) == bool else repr(v) if type(v) in (int, float) else sql_escape(v), 1) | |
return sql |
OlderNewer