Skip to content

Instantly share code, notes, and snippets.

View mrcampbell's full-sized avatar

Mike Campbell mrcampbell

  • Stax
  • Northern Utah
View GitHub Profile
<?php
echo "Hello World!";
function sendPushOverDebug($title, $message)
{
echo <<<END
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
var data = {
'token' : 'TOKEN',
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExceptionHandlingExample
{
using System;
using System;
using System.Collections.Generic;
using System.Linq;
namespace SyncableTest
{
class MainClass
{
/// <summary>
@mrcampbell
mrcampbell / index.ejs
Created January 19, 2018 21:04
Lunch and Learn Node.js Example
<!-- ./views/index.ejs -->
<h2><%- title %></h2>
<p>Welcome to my website!</p>
console.log('updated 2');
/**
* html2pdf.js v0.9.0
* Copyright (c) 2018 Erik Koopmans
* Released under the MIT License.
*/
!function(A,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):A.html2pdf=t()}(this,function(){"use strict";function A(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function t(A){return A&&A.__esModule&&Object.prototype.hasOwnProperty.call(A,"default")?A.default:A}function e(A,t){return t={exports:{}},A(t,t.exports),t.exports}var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(e(function(t,e){t.exports=function(){function t(A){return"function"==typeof A}function e(){var A=setTimeout;return function(){return A(r,1)}}function r(){for(var A=0;A<v;A+=2){var t=T[A],e=T[A+1];t(e),T[A]=void 0,T[A+1]=void 0}v=0}function i(A,t){var e=arguments,n=this,r=new this.constructor(a);void 0===r[N]&&w(r);var i=n._state;return i?
* {
color: blue !important;
}
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.jsPDF = factory());
}(this, (function () { 'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
@mrcampbell
mrcampbell / HttpMethods.go
Created January 17, 2019 04:36
Scratch Pad for Everything Go
package main
// http://polyglot.ninja/golang-making-http-requests/
/**
* NOTES:
* Always close the response Body
* Always use a timeout:
```
timeout := time.Duration(5 * time.Second)
@mrcampbell
mrcampbell / Test_functionA.go
Last active July 8, 2019 20:18
Medium Article: Unit Tests: A Form of Documentation. Exhibit "Express expectations of the current functionality"
func Test_functionA(t *testing.T) {
type args struct {
a int
b int
}
tests := []struct {
name string
args args
want int
wantErr bool
@mrcampbell
mrcampbell / medium_sqlc_query.sql
Created December 4, 2019 20:36
SQLC Medium Article
-- name: SetPreProvisionFields :exec
UPDATE provisions
SET provisioned_at = now(),
location_id = $2
WHERE salesforce_opportunity_id = $1;