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
INSERT INTO Member (MemberID, MbrFirstName, MbrLastName, MbrPhoneNumber, Gender) VALUES (101, 'David', 'Hamilton', '555-2701', 'M'); | |
CREATE TABLE Members ( | |
MemberID int NOT NULL , | |
MbrFirstName nvarchar (25) NULL , | |
MbrLastName nvarchar (25) NULL , | |
MbrPhoneNumber nvarchar (15) NULL , | |
Gender nvarchar (2) NULL | |
) | |
GO |
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
/* | |
* Dependencies | |
*/ | |
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var vss = require('vinyl-source-stream'); | |
/* | |
* Paths | |
*/ |
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
/* | |
* Module : templater | |
* Purpose : Builds and populates javascript templates | |
* Created by : Martin Jul Hammer | |
* Date : 28-12-2016 | |
*/ | |
module.exports = (function (templater, undefined) { | |
"use strict"; | |
/* Dependencies */ |
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
/* | |
* Module : personCreator | |
* Purpose : Ease the creation of Person objects, and keeps track of created people. | |
* Created by : Martin Jul Hammer | |
* Date : 24-12-2016 | |
*/ | |
(function (personCreator, $, undefined) { | |
"use strict"; | |
var peopleCreated = []; |
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 handlebar template --> | |
<div class="entry"></div> | |
<script id="entry-template" type="text/x-handlebars-template"> | |
<h1>{{title}}</h1> | |
<div class="body"> | |
{{body}} | |
</div> | |
</script> | |
<!-- A handlebar template containing a block expression --> |
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
if (typeof jQuery == 'undefined') { | |
alert("Doesn't work from internal"); | |
} else { | |
alert("Yay! Works from internal"); | |
} |
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
<script type="text/javascript"> | |
function init() { | |
var vidDefer = document.getElementsByTagName('iframe'); | |
for (var i=0; i<vidDefer.length; i++) { | |
if(vidDefer[i].getAttribute('data-src')) { | |
vidDefer[i].setAttribute('src',vidDefer[i].getAttribute('data-src')); | |
} | |
} | |
} window.onload = init; | |
</script> |
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
<script type="text/javascript"> | |
function downloadJSAtOnload() { | |
var element = document.createElement("script"); | |
element.src = "!!!YOURJAVASCRIPTHERE!!!.js"; | |
document.body.appendChild(element); | |
} | |
if (window.addEventListener) | |
window.addEventListener("load", downloadJSAtOnload, false); | |
else if (window.attachEvent) | |
window.attachEvent("onload", downloadJSAtOnload); |