Skip to content

Instantly share code, notes, and snippets.

View deveedutta's full-sized avatar
🚫
Account Suspended....!!!

Deveedutta (Suspended) deveedutta

🚫
Account Suspended....!!!
View GitHub Profile
@deveedutta
deveedutta / oscillator.js
Last active February 19, 2019 14:47
oscillator component
import { h, Component } from 'preact';
import style from './style';
const audioContext = new (window.AudioContext || window.webkitAudioContext);
export default class Oscillator extends Component {
play() {
if( this.oscillator ) return;
@deveedutta
deveedutta / prettyDateUnixEpochTime.js
Last active August 18, 2016 06:20
JavaScript Pretty Date for Unix Epoch Time originally by John Resig
/*
* JavaScript Pretty Date
* Copyright (c) 2011 John Resig (ejohn.org)
* Originally Licensed under the MIT and GPL licenses.
* Derivative work Copyright (c) 2016 Deveedutta Maharana (statusok200.wordpress.com)
* Derivative work under MIT and GPL and WTFPL licenses.
*/
// Takes a Unix Epoch Time and returns a string representing how
// long ago the date represents.