Skip to content

Instantly share code, notes, and snippets.

View jdnichollsc's full-sized avatar
🏠
Working from home

J.D Nicholls jdnichollsc

🏠
Working from home
View GitHub Profile
@robksawyer
robksawyer / TimezoneService.js
Last active May 26, 2016 22:30
An Angular service that helps with Timezone related things.
/**
* Bower dependencies:
* timezone-js
* moment
* moment-timezone
* angular-moment
* angular-tz-extensions
*
* index.html:
* <script src="lib/timezone-js/src/date.js"></script>
@koshdnb
koshdnb / Sortable list with GSAP Draggable.markdown
Created June 4, 2015 15:00
Sortable list with GSAP Draggable
using UnityEngine;
using System.Collections;
using System;
using System.Collections.Generic;
/// <summary>
/// Gareth Williams - Lonewolfwilliams LTD
/// http://lww.io
/// </summary>
public class Promises : MonoBehaviour

Prepare and run an end-of-module assessment for HTML&CSS

What's needed this week?

I suggest two possible formats for the assessment: either Nate's single-file quiz, here: https://gist.github.com/NateWr/3d8b0cc5eb19712912d9f31dfb1d7896 or my interactive version on Kahoot, here: https://create.kahoot.it/share/html-css-quick-quiz/98be1fc1-00d6-4186-98b9-fbac58b8fce3

  • Pick one format.
  • Check that the content is suitable.
  • Translate it.
  • Add any more questions that you think are important, but keep the exercise under 1 hour.
@vmoratog
vmoratog / rotateImage.ts
Created November 29, 2019 03:54
Rotate images in Canvas
const imageData = canvas.toDataURL()
const degrees = 90
const image = new Image();
image.onload = () => {
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.save();
ctx.translate(canvas.width / 2, canvas.height / 2);
ctx.rotate(degrees * Math.PI / 180);
ctx.drawImage(image, -image.width / 2, -image.width / 2);
@vmoratog
vmoratog / Enlaces.md
Last active February 10, 2020 04:51
ionic 4 intro

Instalar dependencias

npm i -g ionic cordova

Crear proyecto

ionic start nombreProyecto blank
@Blackmist
Blackmist / web.config
Created September 15, 2014 14:10
custom web.config for IISNode, using ./bin/application as the entrypoint
<?xml version="1.0" encoding="utf-8"?>
<!--
This configuration file is required if iisnode is used to run node processes behind
IIS or IIS Express. For more information, visit:
https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config
-->
<configuration>
<system.webServer>

Technical Interview Prep v2

Intro myself

My background

  • Always been a computer guy, but only been programming for about 4 years.
  • Was 27 when I got my first full time dev job.

Caveats

@kenbellows
kenbellows / log-binary-tree.js
Created April 17, 2017 21:04
Log a binary tree data structure to the console
/**
* Recursively print a binary tree data structure
* @param {function} printFn function used to print output; called with a single string argument
* @param {object} node current node object
* @param {string|function} leftKey name of current node's left child property, or a function that accepts the
* current node and returns the left child node
* @param {string|function} rightKey name of current node's right child property, or a function that accepts the
* current node and returns the right child node
* @param {string|function} displayKey property to display, or a function that returns a display string
* @param {string} [indent=''] current indentation string; mostly used to build up indentation across levels
@dlucidone
dlucidone / Nativescript String to Base64 String and Vice-Versa.ts
Last active January 31, 2021 00:53
Nativescript Base64 Manipulation Methods
/*
* Convert A String to Base64 String or Vice-Versa
*/
declare const android: any;
declare const java: any;
declare const NSData: any;
declare const NSUTF8StringEncoding: any;
declare const NSString: any;