All the sources codespage 31
JavaScript
August 17, 2014 am31 09:30
#197
function isNegative(number) {
if (number.match(/^-\d+$/)) {
return true;
} else {
return false;
}
}
Python
August 17, 2014 am31 04:59
#124
row_dict = {
'data1' : row['r_data1'],
'data2' : row['c_data1'],
'data3' : row['c_data2'],
'data4' : row['cfs_data1'],
'data5' : row['cfs_data2'],
'data6' : row['cfs_data3'],
'data7' : row['p_data1'],
'data8' : row['p_data2'],
'data9' : row['s_data1'],
'data10' : row['s_data2'],
}
JavaScript
August 16, 2014 am31 08:20
#152
int i = 100;
while(i > 1)
{
--i;
if(i == 1) i =100;
}