Skip to content

Instantly share code, notes, and snippets.

View CliffCrerar's full-sized avatar
😎
There is a time to code, and a time to code.

C1I7F05D-C53545 CliffCrerar

😎
There is a time to code, and a time to code.
View GitHub Profile
/*
Highest Value Hour Glass Solutions
Author: Cliff Crerar
*/
// function: determines the current our glass
// - will be executed during iterations
// - takes the xc and yc parameter which are the two parts of a co-ordinate
// - then from that origin and returns it's sum to the current iteration
// - r is the two dimensional array or table
@CliffCrerar
CliffCrerar / file-extensions-with-mime-types.json
Created May 5, 2020 04:14
File extensions as keys and mime types as values
{
".123" : "application/vnd.lotus-1-2-3",
".3dml" : "text/vnd.in3d.3dml",
".3g2" : "video/3gpp2",
".3gp" : "video/3gpp",
".a" : "application/octet-stream",
".aab" : "application/x-authorware-bin",
".aac" : "audio/x-aac",
".aam" : "application/x-authorware-map",
@CliffCrerar
CliffCrerar / child_process.exec.cb.js
Created May 12, 2020 04:27
child process output callback function standard from node docs
function(error, stdout, stderr){
if (error) {
console.error(`exec error: ${error}`);
return;
}
console.log(`stdout: ${stdout}`);
console.error(`stderr: ${stderr}`);
}
@CliffCrerar
CliffCrerar / spinner.html
Created May 12, 2020 12:59
Html spinner
<style>
.spinner-overlay {
position: absolute;
background:transparent;
display: flex;
justify-content: center;
align-items: center;
top: 0;
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- Create the Department table.
IF NOT EXISTS (SELECT * FROM sys.objects
WHERE object_id = OBJECT_ID(N'[dbo].[Department]')
AND type in (N'U'))
BEGIN
@CliffCrerar
CliffCrerar / angular.txt
Last active June 19, 2020 02:02
Dev env lists
AESSoft.aessoft-class-autocomplete
Angular.ng-template
AngularDoc.angulardoc-vscode
codezombiech.gitignore
CoenraadS.bracket-pair-colorizer
dbaeumer.vscode-eslint
dzhavat.rxjs-cheatsheet
EditorConfig.EditorConfig
eg2.tslint
ghaschel.vscode-angular-html
@CliffCrerar
CliffCrerar / ng-router.conf.js
Created June 13, 2020 13:55
Angular Router config
const routerConfig = {
// enableTracing?: boolean
// useHash?: boolean
// initialNavigation?: InitialNavigation
// errorHandler?: ErrorHandler
// preloadingStrategy?: any
// onSameUrlNavigation?: 'reload' | 'ignore'
// scrollPositionRestoration?: 'disabled' | 'enabled' | 'top'
// anchorScrolling?: 'disabled' | 'enabled'
// scrollOffset?: [number, number] | (() => [number, number])
@CliffCrerar
CliffCrerar / challenge.md
Last active July 23, 2020 17:27
challenge

Challenge:

I challenge you to create a back button that that takes you back to the create screen and populates the inputs with the inputs from the route.

  • Use what you have learned from the existing implementation.
  • On first load the inputs must remain blank as they are now.
  • On the view screen displayed there will be something created as it is now.

Victory Conditions:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Id venenatis a condimentum vitae. Ut aliquam purus sit amet luctus venenatis lectus magna. Id porta nibh venenatis cras sed felis. Amet cursus sit amet dictum. Vitae proin sagittis nisl rhoncus mattis rhoncus. Cursus risus at ultrices mi. Scelerisque felis imperdiet proin fermentum leo vel orci porta non. Elit at imperdiet dui accumsan. Dictumst quisque sagittis purus sit amet volutpat. Eu sem integer vitae justo eget. Felis eget velit aliquet sagittis id. Eget gravida cum sociis natoque penatibus et magnis dis parturient. Eget nunc scelerisque viverra mauris in. At elementum eu facilisis sed odio. Cursus risus at ultrices mi tempus. Morbi blandit cursus risus at ultrices mi tempus. Est ullamcorper eget nulla facilisi etiam dignissim diam.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coming Soon</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css"
integrity="sha512-EZLkOqwILORob+p0BXZc+Vm3RgJBOe1Iq/0fiI7r/wJgzOFZMlsqTa29UEl6v6U6gsV4uIpsNZoV32YZqrCRCQ=="
crossorigin="anonymous" />