Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| /** | |
| * Convert Excel file to Sheets | |
| * @param {Blob} excelFile The Excel file blob data; Required | |
| * @param {String} filename File name on uploading drive; Required | |
| * @param {Array} arrParents Array of folder ids to put converted file in; Optional, will default to Drive root folder | |
| * @return {Spreadsheet} Converted Google Spreadsheet instance | |
| **/ | |
| function convertExcel2Sheets(excelFile, filename, arrParents) { | |
| var parents = arrParents || []; // check if optional arrParents argument was provided, default to empty array if not |
| grep 'user\|dbname\|pass' app/etc/local.xml | tr -d '\n' | sed 's/<username><\!\[CDATA\[\(.*\)\]\]><\/username>.*<password><\!\[CDATA\[\(.*\)\]\]><\/password>.*<dbname><\!\[CDATA\[\(.*\)\]\]><\/dbname>/ mysqldump -u\1 -p\2 \3 > ..\/\3.sql/g' | sh |
| /** | |
| * Returns Mobile Speed & Optimization and Desktop Speed & Optimization values in six adjacent columns | |
| * by Cagri Sarigoz | |
| */ | |
| function checkAll(Url) { | |
| //CHANGE YOUR API KEY WITH YOUR_API_KEY BELOW | |
| var key = "YOUR_API_KEY"; | |
| var serviceUrlMobile = "https://www.googleapis.com/pagespeedonline/v4/runPagespeed?url=" + Url + "&strategy=mobile&key=" + key; | |
| var serviceUrlDesktop = "https://www.googleapis.com/pagespeedonline/v4/runPagespeed?url=" + Url + "&strategy=desktop&key=" + key; |
| import json, re | |
| import urllib2 | |
| from urlparse import urlparse | |
| from urllib import urlopen, urlencode | |
| class UKParliamentReader(): | |
| """ | |
| Chat to the UK Parliament API | |
| """ |
| #!/usr/bin/env python | |
| import os | |
| import math | |
| from numpy import interp | |
| from random import choice, sample | |
| from time import sleep | |
| from math import log1p | |
| # from colour import Color |