Skip to content

Instantly share code, notes, and snippets.

View mrmccormack's full-sized avatar

Rob McCormack mrmccormack

View GitHub Profile
@mrmccormack
mrmccormack / landing-page.html
Last active October 15, 2017 13:07
landing-page.html: validation MUI is a lightweight CSS framework that follows Google's Material Design guidelines.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>UNTITLED</title>
<script src="https://cdn.muicss.com/mui-0.9.27/extra/mui-combined.min.js"></script>
<style>
@mrmccormack
mrmccormack / landing-page-fa.html
Created October 28, 2017 00:22
MUICSS Template with Font Awesome / Animate.js
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>UNTITLED</title>
<script src="https://cdn.muicss.com/mui-0.9.27/extra/mui-combined.min.js"></script>
@mrmccormack
mrmccormack / user.js
Created November 14, 2017 21:12
Expressjs / Nodejs Error: Can't set headers after they are sent.
/**
* POST /signup
* Create a new local account.
*/
// TODO: if you try existing email and exist. username, this will trigger an errors
// Error: Can't set headers after they are sent.
// not sure why this happens, it works sometimes
@mrmccormack
mrmccormack / readme.md
Created November 23, 2017 14:20
Hackathon Modifications UpWork Contractor
@mrmccormack
mrmccormack / color.php
Last active December 15, 2017 20:24
IM315 color.php for test
<?php
$favcolor = "red";
switch ($favcolor)
{
case "red":
echo "Your favorite color is red!";
break;
case "blue":
echo "Your favorite color is blue!";
@mrmccormack
mrmccormack / README.md
Last active February 13, 2018 19:21
Mr. M.'s Chrome Theme on Google Chrome Store
@mrmccormack
mrmccormack / play_youtube-spectre.js
Created April 4, 2018 18:54
tabris.js webview with custom HTML example
const { TextView, WebView, ImageView, ui } = require('tabris')
// Using WebView to play responsive YouTube video and responsive images. Utilizes https://picturepan2.github.io/spectre/
const introText = 'This text from Tabris, WebView below using Spectre.css for responsive images and video.'
const logo = 'https://eclipsesource.com/wp-content/uploads/2015/10/tabris-icon-logo-small.png'
const youtubeURL = 'BzMLA8YIgG0'
const relatedImage = 'https://edge.alluremedia.com.au/m/g/2017/05/SAM_0023-01-1.jpeg'
@mrmccormack
mrmccormack / README.md
Last active April 10, 2018 12:17
Example using JavaScript Standard formatting

Understanding "JavaScript Standard" format

  • The code shown here: refreshcomposite.js is how you might be writing JavaScript
  • Let's try to format this up using the "JavaScript Standard" - which is gaining in popularite

Movie of the Week

  • Watch this... put in WILDocument
  • Mr. M. subscribes to his channel Fun Fun functions
  • a programmer at Spotify... what is his background
@mrmccormack
mrmccormack / test.md
Created April 15, 2018 17:36
test tabris naming convention

|a| b |c |--|--| | e | f|h

@mrmccormack
mrmccormack / camera.js
Created April 17, 2018 12:33
IM415 Simple Camera App
const { Button, ImageView, ui } = require('tabris')
const widthPhoto = 300
const heightPhoto = 400
function takePhoto () {
let onSuccess = image => imgPhoto.image = image
let onFail = message => console.log('Camera failed because: ' + message)
navigator.camera.getPicture(onSuccess, onFail, {
quality: 50,