Skip to content

Instantly share code, notes, and snippets.

View NorthDecoder's full-sized avatar

Joe Devlin NorthDecoder

View GitHub Profile
@NorthDecoder
NorthDecoder / HTML5_template_01.html
Last active August 29, 2015 14:18
HTML5 templates
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta charset="utf-8">
</head>
<body>
<p></p>
</body>
</html>
@NorthDecoder
NorthDecoder / HTML5_test_with_qunit.html
Last active August 29, 2015 14:19
HTML5 template test with qunit and sinonjs
<!DOCTYPE html>
<html>
<head>
<title>JS tests</title>
<meta charset="utf-8">
<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.17.1.css">
</head>
<body>
<div id="qunit"></div>
@NorthDecoder
NorthDecoder / HTML5_template_with_angular.html
Last active August 29, 2015 14:19
HTML5 template with angular
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
<meta charset="UTF-8">
<!--For latest revision updates see https://developers.google.com/speed/libraries/ -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
</head>
<body>
<p></p>
@NorthDecoder
NorthDecoder / HTML5_template_with_angular_+_jquery
Last active August 29, 2015 14:20
HTML5 template with angular + jquery
<!DOCTYPE html>
<html>
<head>
<title>HTML5ng+jq</title>
<meta charset="UTF-8">
<!--For latest revision updates see https://developers.google.com/speed/libraries/ -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
@NorthDecoder
NorthDecoder / HTML5_template_with_ng+jq+bs
Last active August 29, 2015 14:20
HTML5 template with angular + jquery + bootstrap
<!DOCTYPE html>
<html>
<head>
<title>HTML5ng+jq+bs</title>
<meta charset="UTF-8">
<!--For latest revision updates see https://developers.google.com/speed/libraries/ -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="js/app.js"></script>
<!--For latest revision updates see http://www.bootstrapcdn.com/ -->
@NorthDecoder
NorthDecoder / inspectJSobject.js
Last active August 29, 2015 14:23
Inspecting javascript objects
/* Reference link-> http://codeinthehole.com/writing/inspecting-javascript-objects/
https://github.com/codeinthehole/js-nuggets/
*/
var Inspect = {
TYPE_FUNCTION: 'function',
// Returns an array of (the names of) all methods
methods: function(obj) {
var testObj = obj || self;
var methods = [];
for (prop in testObj) {
@NorthDecoder
NorthDecoder / install_drupal_7_modules.sh
Last active April 18, 2018 21:08
Drupal 7.58 module and theme installation with drush commands
#!/bin/bash
# Installation of Drupal, modules and themes with drush commands
# from http://www.drushcommands.com/drush-7x/pm/pm-download
# Specific revisions of each module are installed. Research each
# module to confirm that you are installing the lastest revision.
# Instructions for installation
# SFTP this file into your installation directory
@NorthDecoder
NorthDecoder / convertMD.html
Created October 18, 2015 04:46
Convert MD to HTML
<!DOCTYPE html>
<html>
<head>
<title>My Markdown Reader</title>
<meta charset="UTF-8">
<!--For latest revision updates see https://developers.google.com/speed/libraries/ -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/showdown/1.2.3/showdown.min.js"></script>
<!--Read a markdown file and render it as HTML-->
@NorthDecoder
NorthDecoder / gist:104459be5fb0d7a162c3
Created February 2, 2016 16:56
AngularJS installed?
try {//confirm if angular is loaded
console.log('Angular version: ' + angular.version.full + ' loaded.');}
catch(err) {
console.log('Were you expecting angular ...');
console.log(err);
}
@NorthDecoder
NorthDecoder / gist:e8921613a4fd66e6648a
Created February 2, 2016 16:59
jQuery installed?
try {//confirm if jQuery is loaded
console.log('jQuery version: ' + $.fn.jquery + ' loaded.');}
catch(err) {
console.log('Were you expecting jQuery ...');
console.log(err);
}