A Pen by Deveedutta on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { h, Component } from 'preact'; | |
import Header from './header'; | |
import Home from './home'; | |
import Oscillator from './oscillator'; | |
export default class App extends Component { | |
render() { | |
return ( | |
<div id="app"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A Chord react (or call it preact) component that plays a combination of 3 oscillators | |
// And generates various chords | |
// <Chord chordname="C Major" frequencies="196.00, 261.63, 329.63" type="sine" /> | |
import { h, Component } from 'preact'; | |
import style from './style'; | |
const audioContext = new (window.AudioContext || window.webkitAudioContext); | |
export default class Chord extends Component { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What works for me: | |
%x, %r | |
Change the 'Clock Format' codes as supplied below: | |
%a, %B, %x, %r | |
# RandR extension
xrandr --output VGA1 --off
xrandr --orientation normal
xrandr -o normal
xrandr --output LVDS --auto --rotate normal --pos 0x0 --output VGA --auto --rotate left --right-of LVDS
xrandr | grep connected
xrandr --output eDP1 --brightness 0.95
xrandr --output eDP1 --brightness 0.5
xrandr --output eDP1 --brightness 0.25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=/usr/local/bin:$PATH | |
export PATH=/usr/bin:$PATH | |
export PATH=/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin:$PATH | |
export PATH=/Applications/Sublime\ Text.app/Contents/SharedSupport/bin:$PATH | |
export PATH=/Users/deveedutta.m/mongodb/bin:$PATH | |
export PATH=/Users/deveedutta.m/redis/src:$PATH | |
export PATH=/Users/deveedutta.m/apache-tomcat-8.0.36/bin:$PATH | |
export PATH=/Users/deveedutta.m/apache-maven-3.3.9/bin:$PATH | |
export PATH=/usr/local/mysql/bin:$PATH |
To set up an SSL certificate on Linux (Ubuntu), you can follow these general steps:
- You can either generate a self-signed certificate for testing purposes or purchase a certificate from a trusted certificate authority (CA).
- If you choose to purchase a certificate, follow the CA's instructions for obtaining the certificate. Typically, you will need to provide them with a certificate signing request (CSR) generated on your server.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Carnival SVG Animation</title> | |
<style> | |
@keyframes spin { | |
0% { transform: rotate(0deg); } | |
100% { transform: rotate(360deg); } |