Skip to content

Instantly share code, notes, and snippets.

View Nonemoticoner's full-sized avatar

Nonemoticoner

  • Kraków, Poland
View GitHub Profile
@Nonemoticoner
Nonemoticoner / README.md
Created November 13, 2016 16:19 — forked from joyrexus/README.md
Form/file uploads with hapi.js

Demo of multipart form/file uploading with hapi.js.

Usage

npm install
npm run setup
npm run server

Then ...

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@Nonemoticoner
Nonemoticoner / PHP: Detect IE
Last active December 17, 2015 19:49 — forked from krazylegz/gist:703428
PHP: Detect IE
<?php // SEE IF THE BROWSER BEING USED IS INTERNET EXPLORER
function ae_detect_ie()
{
if (isset($_SERVER['HTTP_USER_AGENT']) &&
(strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
return true;
else
return false;
}
?>