This code is a direct copy of the code found on the Express.js site under Getting Started. I just followed installing and hello world from there to get a basic server up and running.
(index.js file)
| /** | |
| * Fix for vw, vh, vmin, vmax on iOS 7. | |
| * http://caniuse.com/#feat=viewport-units | |
| * | |
| * This fix works by replacing viewport units with px values on known screen sizes. | |
| * | |
| * iPhone 6 and 6 Plus cannot run iOS 7, so are not targeted by this fix. | |
| * Target devices running iOS 8+ will incidentally execute the media query, | |
| * but this will still produce the expected result; so this is not a problem. | |
| * |
This code is a direct copy of the code found on the Express.js site under Getting Started. I just followed installing and hello world from there to get a basic server up and running.
(index.js file)
| /** | |
| * Fix for vw, vh, vmin, vmax on iOS 7. | |
| * http://caniuse.com/#feat=viewport-units | |
| * | |
| * This fix works by replacing viewport units with px values on known screen sizes. | |
| * | |
| * iPhone 6 and 6 Plus cannot run iOS 7, so are not targeted by this fix. | |
| * Target devices running iOS 8+ will incidentally execute the media query, | |
| * but this will still produce the expected result; so this is not a problem. |
OUTDATED. PLEASE SEE gists/Autorun.inf Commands.md
The Autorun script file at [DeviceLetter]\Autorun.inf can be used to do a variety of things.
Valid line entries are:
[autorun]
Label=
Computer.| user web; | |
| # One worker process per CPU core. | |
| worker_processes 8; | |
| # Also set | |
| # /etc/security/limits.conf | |
| # web soft nofile 65535 | |
| # web hard nofile 65535 | |
| # /etc/default/nginx |
| <?php | |
| /* | |
| SimpleXLSX php class v0.6.8 | |
| MS Excel 2007 workbooks reader | |
| Example 1: | |
| $xlsx = new SimpleXLSX('book.xlsx'); | |
| print_r( $xlsx->rows() ); | |
| Example 2: |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/gorilla/mux" | |
| "github.com/gorilla/securecookie" | |
| "net/http" | |
| ) | |
| // cookie handling |
| /* | |
| Download a file | |
| */ | |
| function downloadFile(fileId) { | |
| var request = gapi.client.drive.files.get({ | |
| 'fileId': fileId | |
| }); | |
| request.execute(function(resp) { | |
| window.location.assign(resp.webContentLink); | |
| }); |
| (function($){ | |
| /** | |
| * Register ajax transports for blob send/recieve and array buffer send/receive via XMLHttpRequest Level 2 | |
| * within the comfortable framework of the jquery ajax request, with full support for promises. | |
| * | |
| * Notice the +* in the dataType string? The + indicates we want this transport to be prepended to the list | |
| * of potential transports (so it gets first dibs if the request passes the conditions within to provide the | |
| * ajax transport, preventing the standard transport from hogging the request), and the * indicates that | |
| * potentially any request with any dataType might want to use the transports provided herein. | |
| * |
| <?php | |
| /** | |
| * JSON data to html table | |
| * | |
| * @param object $data | |
| * | |
| */ | |
| function jsonToTable ($data) | |
| { |