Skip to content

Instantly share code, notes, and snippets.

@filR
filR / experience.md
Last active April 25, 2017 15:17
Phil's Presentation Experience

Top 3 Talks

  • 2015-05-08 ScotlandJS Conference: Docker
    • Why was it awesome? My talk was voted in by conference ticketholders (from 150 talks).
  • 2014-03-20 Google Business Bootcamp: Web-Frontend, an Overview
    • Why was it awesome? Giving a presentation for/at/to Google!
  • 2011-10-20 Knowledge Night: Windows 8 Metro JavaScript
    • Why was it awesome? 300 students came to listen specifically to this talk!

Teaching

@transitive-bullshit
transitive-bullshit / image-service.js
Last active November 12, 2021 12:22
Angular service to resize images with antialiasing for use with canvas.
angular.module('demo').service('imageService', function ($http, $q, $timeout) {
var NUM_LOBES = 3
var lanczos = lanczosGenerator(NUM_LOBES)
// resize via lanczos-sinc convolution
this.resize = function (img, width, height) {
var self = { }
self.type = "image/png"
self.quality = 1.0
@peteymoore
peteymoore / gist:5392815
Last active December 16, 2015 06:39 — forked from nfrade/gist:4446653
HTML5 barebones template
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML5 Template</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
</body>
@Mithrandir0x
Mithrandir0x / gist:3639232
Created September 5, 2012 16:15
Difference between Service, Factory and Provider in AngularJS
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/
// author: Pawel Kozlowski
var myApp = angular.module('myApp', []);
//service style, probably the simplest one
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"