This file contains hidden or 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
| from glob import glob | |
| with open('masterfile.csv', 'a') as mf: | |
| for filename in glob('*.csv'): | |
| with open(filename) as f: | |
| contents = f.readlines() | |
| mf.write(contents) |
This file contains hidden or 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
| from glob import glob | |
| with open('masterfile.csv', 'a') as mf: | |
| for filename in glob('files/*.csv'): | |
| with open(filename) as f: | |
| mf.write(f.read()) |
This file contains hidden or 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
| var exec = require('child_process').exec; | |
| var fs = require('fs'); | |
| var util = require('util'); | |
| var http = require('http'); | |
| var url = require('url'); | |
| var PDFDocument = require('pdfkit'); // http://pdfkit.org/ | |
| http.createServer(function (req, res) { |
This file contains hidden or 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
| // ==UserScript== | |
| // @name StackExchange, Add kbd shortcut | |
| // @namespace StackExchange | |
| // @description Adds a button and a keyboard shortcut (Alt-K) to add <kbd> tags. | |
| // @version 1.2 | |
| // @match *://*.askubuntu.com/* | |
| // @match *://*.onstartups.com/* | |
| // @match *://*.serverfault.com/* | |
| // @match *://*.stackapps.com/* | |
| // @match *://*.stackexchange.com/* |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | |
| urlbase = 'http://maps.googleapis.com/maps/api/geocode/json?latlng=' | |
| key = None | |
| # list of latitude, longitude pairs | |
| latlong = [(40.714224,-73.961452), (47.3667, 8.5500)] | |
| for xy in latlong: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.