Skip to content

Instantly share code, notes, and snippets.

View e10101's full-sized avatar

Eason e10101

  • Auckland, New Zealand
View GitHub Profile
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active November 16, 2024 16:00
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@bennadel
bennadel / app.component.ts
Created May 1, 2018 12:42
Creating A Medium-Inspired Text Selection Directive In Angular 5.2.10
// Import the core angular services.
import { Component } from "@angular/core";
// Import the application components and services.
import { TextSelectEvent } from "./text-select.directive";
// ----------------------------------------------------------------------------------- //
// ----------------------------------------------------------------------------------- //
interface SelectionRectangle {
@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);