Skip to content

Instantly share code, notes, and snippets.

View galitskyd's full-sized avatar

David Galitsky galitskyd

  • Indianapolis, Indiana
View GitHub Profile
import csv
from ftphosting.ftp.models import *
active_sites = [2,18,45,55,67,98,125,130,133,134,136,137,139,154,240,257,314,334,361,452,626,639,644,660,674,680,729,761,826,895,911,922,938,976,1039,1051,1054,1059,1074,1158,1181,1185,1194,1223,1241,1332,1361,1379,1396,1452,1455,1461,1493,1526,1556,1567,1608,1646,1647,1691,1744,1761,1795,1796,1820,1825,1851,1855,1856,1858,1874,1885,1911,1920,1928,1934,1956,1978,1993,2000,2011,2012,2097,2098,2129,2131,2147,2200,2238,2241,2245,2247,2257,2309,2349,2357,2366,2429,2449,2456,2485,2500,2512,2593,2609,2653,2654,2684,2698,2710,2716,2735,2807,2841,2857,2889,2897,2914,2935,2956,2959,2967,3052,3061,3065,3066,3081,3086,3102,3190,3230,3264,3270,3280,3290,3312,3351,3387,3395,3407,3427,3453,3454,3481,3524,3550,3606,3723,3730,3733,3748,3759,3821,3844,3906,3918,3920,3943,3946,3981,3984,4015,4026,4123,4128,4134,4147,4173,4179,4247,4272,4273,4308,4342,4356,4370,4381,4409,4434,4441,4466,4486,4558,4610,4672,4678,4689,4691,4718,4745,4746,4747,4754,4777,4793,4812,4845,4864,4876,4877,4
@galitskyd
galitskyd / tbody
Created May 19, 2015 15:20
table body
$tbody.append(function() {
return '<tr class="record">' + data.map(function(record) {
location = record.locations.map(function(location) {
return (location.split(',')[1] || '').trim();
}).sort().filter(function(e , i, a) {
return e !== a[i - 1];
}).join(', ');
return '<td>' + record.partner + '</td><td>' + record.name + '</td><td>' + record.phone + '</td>' +
'<td>' + record.email + '</td><td>' + location + '</td>';