Skip to content

Instantly share code, notes, and snippets.

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCYIzKs2jMRMxi3Mk8NMw1WE2L4xVwBYP+JjxPt3SAPuKk2k5/2XCPGKj+V7vwy2kWYUVIos10uAgbrMJdMNi2PcjVlnmon42EM19wNK/0UdSxeIeEQPgn506yJsjFrvGLiWDTqdraec1ijv3marZ1DdJemjBgzbikxn9Wj0SL10z72dAsiIotFEyLg6yQ0wULoh2rgv9OH2lgqOIgIrkE7LScIfDq2m7ARvTH2X1umRXS9WyVDRFnjmzrLUASsmZxNnQse7OjaJPq/IUxBX83SdkEagwvwf6u/hUQVM26Ug4Y/xK8DhQlnbmJSmm8lYGrHZwwazSwZkt8freDshKB2DVYWXNzaMZP7kzc5qBS/7m3fvXaQzAcaxvSJuFOxRFxHDpQLJBigvBWPkLpH+q5JzdVRu0keAyrSH36L8D771UttsP45k2TpuM4LhmKGTynyc/7P1T0KeZh6OPdipQKbibxB7q5GDoWIZRGNTvTxENQXMsSmdYDEAq+o1oWzeToFnymxvuuKMidb5fuUQ/aCZ+BstsoJEC6zd2NppeTbGBLkQSh/uHBdf4zs+oJNBGtmZFZ1xKdhdrKarf7zzdHW1vGMv2K758a6XVQth9gF1UMddhxuH5pdotLO8amNELbxct1IYWTCWcqOcB0oRpp+1N4vx+D3GRzuS+yFY6x/hQ==
LOGGING = {
'disable_existing_loggers': False,
'version': 1,
'formatters': {
'standard': {
'format': '%(asctime)s %(levelname)s %(name)s: %(message)s'
}
},
'handlers': {
'default': {
@pcoder
pcoder / simple-php-js-ajax-interaction
Created January 21, 2016 08:28
A simple php js ajax interaction
<?php
// the server script to go on to the PHP server
// header to allow CORS
header("Access-Control-Allow-Origin: *");
// declare the stub function to handle the GET request
function stub_function($val){
// we can use the $val which is the GET parameter here
echo "Hello!";
@pcoder
pcoder / miktex-to-latex.bat
Last active December 16, 2015 17:19
set static ip4 network configurations
:: Called from Notepad++ Run
:: [path_to_bat_file] "$(CURRENT_DIRECTORY)" "$(NAME_PART)"
:: Change Drive and to File Directory
%~d1
cd %1
:: Run Cleanup
call:cleanup