Skip to content

Instantly share code, notes, and snippets.

Kirk Portas kirkportas

Block or report user

Report or block kirkportas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View core.js
DEBUG=true; // Global Debug Var
// This could be "var DEMO_APP =", using window.DEMO_APP implies that other files will join to this window variable.
// This DEMO_APP var will contain the entire JS application.
window.DEMO_APP = {
// Simple router of page names & Template file locations
// This lets us refer to a template with an easy-to-use name like 'landing'
pageRouter: { 'landing': 'www/templates/landing.hbs' },
init: function() {
@kirkportas
kirkportas / 1 index.html
Created Jun 29, 2016
Devblog 1 - JS Architecture
View 1 index.html
<!DOCTYPE html>
<html>
<head>
<title>Kirk <3 JS</title>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="css/index.css"/>
<!-- Jquery + Handlebars -->
<script type="text/javascript" src="lib/jquery-2.2.4.min.js"></script>
@kirkportas
kirkportas / index.html
Last active Jun 29, 2016
Devblog 1 Snippets - JS Architecture- index.html
View index.html
<!DOCTYPE html>
<html>
<head>
<!-- ..stuff.. -->
<!-- Jquery + Handlebars -->
<!-- Bootstrap -->
<!-- Compiled templates file -->
<!-- Home-rolled modules (core/api/tasks) -->
</head>
@kirkportas
kirkportas / fileattach
Last active Aug 29, 2015
studentAttachment PUT
View fileattach
Request URL:https://s3.amazonaws.com/connect-nonprod.mheducation.com/connectstreaming/dev/dev2/file_attach_assignment_files/241442448/241442449/14799276/1000360489/1429038478123/PortasKirk(kirkstud)/html5_multiple_test.html?x-amz-acl=public-read&AWSAccessKeyId=AKIAJVTQNEZQ5ZGVHR6A&Expires=1429038778&Signature=ZDnwn0bf2n%2BijDicBQ3ju2q2HLA%3D
x-amz-acl:public-read
AWSAccessKeyId:AKIAJVTQNEZQ5ZGVHR6A
Expires:1429038778
Signature:ZDnwn0bf2n+ijDicBQ3ju2q2HLA=
View git-branch-status
#!/bin/bash
# git-branch-status
# * originally by http://github.com/jehiah
# * "s'all good!" message by http://github.com/kd35a
# * ANSI colors by http://github.com/knovoselic
# * column formatting, filters, and usage by http://github.com/bill-auger
# this script prints out pretty git branch sync status reports
View signup address error
During Signup, after entering an Address and clicking 'Continue', a 422 error is thrown. The network POST is below.
The session is opened though - so a new browser tab will be logged in.
==HEADERS==
Remote Address:10.213.3.230:8080
Request URL:http://104.130.23.90/signup/addresses
Request Method:POST
Status Code:422 Unprocessable Entity
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
You can’t perform that action at this time.