Skip to content

Instantly share code, notes, and snippets.

View e10101's full-sized avatar

Eason e10101

  • Auckland, New Zealand
View GitHub Profile
@gitawego
gitawego / captcha.js
Created July 31, 2015 12:51
simple captcha in angular
angular.module('myApp.directives', [])
.directive('captcha', function () {
return {
scope: { ngData: '@', ngClick: '@' },
restrict: 'A',
link: function (scope, el, attrs) {
var canvas = el[0];
var context = canvas.getContext("2d");
var fontsize = 14;
@johnferrie
johnferrie / _filter.sass
Created October 4, 2012 21:08
CSS3 Filter Effects Sass Mixin
// https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html
//
// grayscale ex: filter: grayscale(100%);
// sepia ex: filter: sepia(100%);
// saturate ex: filter: saturate(0%);
// hue-rotate ex: filter: hue-rotate(45deg);
// invert ex: filter: invert(100%);
// brightness ex: filter: brightness(15%);
// contrast ex: filter: contrast(200%);
// blur ex: filter: blur(2px);