Skip to content

Instantly share code, notes, and snippets.

View supryan's full-sized avatar
🧀
dangerously cheesy

Ryan Gordon supryan

🧀
dangerously cheesy
View GitHub Profile
@supryan
supryan / animate-svg-pattern.svg
Last active January 24, 2023 17:13
Animate an SVG Pattern without a single line of CSS using animateTransform
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@supryan
supryan / keybase.md
Created May 8, 2019 17:42
Keybase proof

Keybase proof

I hereby claim:

  • I am supryan on github.
  • I am supryan (https://keybase.io/supryan) on keybase.
  • I have a public key ASDivYGRwC1udJZwawbb9MEBoIC0V7WJoG0taeynGUDCAgo

To claim this, I am signing this object:

@supryan
supryan / event.service.ts
Created February 14, 2019 19:14
Event Service
import { Injectable } from '@angular/core';
import { Observable, Subject, from } from 'rxjs';
@Injectable()
export class EventsService {
public listeners;
public eventsSubject;
public events;
constructor() {
@supryan
supryan / security.md
Last active August 9, 2018 20:13
Update your MySQL username/password, and secure your localhost/TLS connection.

Security Audit

Last modified: 7/17/19 6:10PM PST


Writing this for posterity to ensure that all local servers/databases are secure across an open network. All of the following actions must be done on the command line.

Change MySQL Username/Password (v5.6 and below)

This is if your credentials are default root password with blank URL. These commands only work for MySQL v5.6 and below. Your phpMyAdmin credentials will be updated immedaitely after

@supryan
supryan / detect-ie.ts
Created March 1, 2018 18:19
IE Detection
detectIE() {
const ua = window.navigator.userAgent;
const msie = ua.indexOf('MSIE ');
const trident = ua.indexOf('Trident/');
const edge = ua.indexOf('Edge/');
const rv = ua.indexOf('rv:');
if (msie > 0) {
// IE 10 or older => return version number
return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);