Skip to content

Instantly share code, notes, and snippets.

@stujo
stujo / oojs.md
Last active June 27, 2018 05:31
Object Oriented JavaScript

#Object Oriented Javascript

#Overview

  • Creating Objects in JavaScript
    • new Object();
    • Object Literal Notation (Important)
    • Factory Function
  • Review JavaScript's this
  • More Creating Objects in JavaScript
  • Constructor Function
@baniol
baniol / canvas_bouncing_ball.html
Created March 29, 2014 09:29
canvas bouncing ball, javascript
<html>
<head>
<style type="text/css">
canvas{ border:#666 1px solid;}
</style>
<script type ="application/javascript" language="javascript">
var canvas;
var ctx;
var dx = 1;
var dy = 2;
var self = window;
(function(self) {
var canvas, context, particles = [], explode = true, FPS = 60;
/*
* Init.
*/
@malarkey
malarkey / Contract Killer 3.md
Last active April 16, 2024 21:44
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………