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
| # Slow GIF | |
| RewriteRule ^slowfile.gif$ slowfile.php [L] |
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
| Pillow==3.4.1 | |
| python-resize-image==1.1.3 |
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
| # Update the 2nd instance of AllowOverride, which is in the docroot Directory directive | |
| perl -pi -e 's{AllowOverride None}{++$n == 1 ? "AllowOverride All" : $&}ge' /usr/local/apache2/conf/httpd.conf | |
| # Tack the mod_rewrite module load on to the end of the file | |
| echo 'LoadModule rewrite_module modules/mod_rewrite.so' >> /usr/local/apache2/conf/httpd.conf |
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
| The company maintains similar offices in Cape Town, South Africa, and outside Portland, Maine, and gives employees a $250-a-month stipend if they want to use commercial co-working offices elsewhere. |
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
| A single, continuous slider from Zillow’s Affordability Calculator — allowing the customer to explore various options quickly. Fixed values, such as annual income, monthly debts and down payment are defined once. |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Simple Map</title> | |
| <meta name="viewport" content="initial-scale=1.0"> | |
| <meta charset="utf-8"> | |
| <style> | |
| /* Always set the map height explicitly to define the size of the div | |
| * element that contains the map. */ | |
| #map { |
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
| // First, click on the event link that looks like "0 Going · 28 Interested" and then "inspect element" on the modal | |
| const list = document.getElementsByClassName("uiScrollableAreaBody")[6] // Your markup may vary. The One I wanted was index 6 | |
| const people = list.getElementsByTagName("span") // HTMLCollection | |
| const peopleArray = [].slice.call(people) // Convert to an array we can map() | |
| peopleArray.map(personEl => personEl.innerText) // Copy the results and clean up in Vim :D |
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
| const util = require('util') | |
| const execFile = util.promisify(require('child_process').execFile); // node 8+ | |
| const getGatewayIp = () => | |
| new Promise((resolve, reject) => { | |
| execFile('/sbin/ip', ["route"]) | |
| .then(result => { | |
| if (result.stdout) { | |
| const ip_pattern = /\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b/; | |
| const ip = result.stdout.match(ip_pattern)[0]; |
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
| { | |
| "_id": "6c5cfc1c77bfa802c55f2a8561005f34", | |
| "_rev": "2-8abc0d63720e5f85b74a5af0342b41c3", | |
| "publication_timestmap": "1516779903", | |
| "title": "Vegan Tex-Mex Tacos", | |
| "author": "Brian L. Patton", | |
| "packs": [ | |
| { | |
| "id": "a1b2c3", | |
| "name": "Amazing Breakfasts" |
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
| // Pressing Control-R will render this sketch. | |
| int x = 50; | |
| int y = 50; | |
| void setup() { // this is run once. | |
| // set the background color | |
| background(255); |