To see Windows shared folders on a Mac, follow these steps
- Get the Windows IP Address:
- On your Windows PC, open the Start menu, type
cmd, and press Enter. - Type
ipconfigand note the IPv4 Address 1. (e.g.,192.168.1.15).
| cd dist | |
| node -e " | |
| const http = require('http'); | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| http.createServer((req, res) => { | |
| const file = path.join(process.cwd(), req.url); | |
| fs.readFile(file, (err, data) => { | |
| if (err) { res.writeHead(404); res.end(); return; } | |
| res.setHeader('Access-Control-Allow-Origin', '*'); |
| <!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); } |
To set up an SSL certificate on Linux (Ubuntu), you can follow these general steps:
| 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 |
# 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| What works for me: | |
| %x, %r | |
| Change the 'Clock Format' codes as supplied below: | |
| %a, %B, %x, %r | |
A Pen by Deveedutta on CodePen.
| // 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 { |
| 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"> |