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
; $Id$ | |
name = Disable Request new password | |
description = Disable 'Request new password' functionality | |
core = 6.x | |
package = "Other" | |
version = "6.x-0.1" |
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
%% run in Octave: | |
%% source 'imgfft.m' | |
filename = 'image.jpg'; | |
img = imread(filename); | |
img2=double(img); | |
img3= (img2(:,:,1)+img2(:,:,2)+img2(:,:,3))/3; |
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
#!/usr/bin/env python | |
import numpy as np | |
from sklearn import grid_search | |
from sklearn import cross_validation as cv | |
from sklearn.svm import SVC | |
from sklearn.cross_validation import StratifiedKFold | |
from sklearn.decomposition import PCA | |
loadData = lambda f: np.genfromtxt(open(f,'r'), delimiter=',') |
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
// Copyright Martin Mevald 2013. | |
// Distributed under the Boost Software License, Version 1.0. | |
// (See accompanying file LICENSE_1_0.txt or copy at | |
// http://www.boost.org/LICENSE_1_0.txt) | |
// https://gist.github.com/martinmev/5281794 | |
// PDFs and PNGs: | |
// https://www.dropbox.com/sh/vwdpj0m79e09mek/_Qj_S9iLuE | |
import processing.pdf.*; |
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
#!/usr/bin/env python | |
import sys | |
def writeErrors(mbox,filename): | |
isMessage=lambda c: mbox[c].strip()=='The mail system' | |
getMessage = lambda c,s: s if mbox[c].strip()=='' else s+' '+getMessage(c+1,mbox[c].strip()) | |
counter=0 | |
f=open(filename,'w') | |
while counter<len(mbox): |
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
#!/usr/bin/env python | |
import sys | |
import re | |
getEmails = re.compile(r'[\w\-][\w\-\.]+@[\w\-][\w\-\.]+[a-zA-Z]{1,4}') | |
content=open(sys.argv[1],'r').readlines() | |
found = set() | |
for c in content: |
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
Modified Drupal module Galleria | |
The example of the modified galleria: | |
http://www.centernarovinu.org/content/weekend-coordinators-distance-adoption | |
---------- | |
Modules: | |
Galleria 6.x-1.0 | |
http://drupal.org/project/galleria |
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 | |
////////////////////////////////////////////////// | |
//ftp class | |
//author:paul.ren | |
//e-mail:rsr_cn@yahoo.com.cn | |
//website:www.yawill.com | |
//create:2004-6-23 09:22 | |
//modify: 2011-12-30 - Martin Mevald, www.mevald.cz - added SSL connection | |
////////////////////////////////////////////////// |
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
diff --git a/www/php-ide/application/model/ftp.class.php b/www/php-ide/application/model/ftp.class.php | |
--- a/www/php-ide/application/model/ftp.class.php | |
+++ b/www/php-ide/application/model/ftp.class.php | |
@@ -5,12 +5,12 @@ | |
//e-mail:rsr_cn@yahoo.com.cn | |
//website:www.yawill.com | |
//create:2004-6-23 09:22 | |
-//modify: | |
+//modify: 2011-12-30 - Martin Mevald, www.mevald.cz - added SSL connection |
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
diff --git a/www/php-ide/js/ide_bottom_script.js b/www/php-ide/js/ide_bottom_script.js | |
--- a/www/php-ide/js/ide_bottom_script.js | |
+++ b/www/php-ide/js/ide_bottom_script.js | |
@@ -256,9 +256,6 @@ function open_file(file) { | |
'py', 'inc', 'txt', 'htaccess', 'htpassword', 'sql', 'xml', 'conf']; | |
if (typeof file != 'string') file = file.toString(); | |
- if (!file.match(new RegExp('\\.(' + allow_extension.join('|') + ')$'), 'g')) { |