Skip to content

Instantly share code, notes, and snippets.

View Jdcorley's full-sized avatar

Jack Corley Jdcorley

  • Connecticut
View GitHub Profile
@Jdcorley
Jdcorley / audit-on-push.yml
Created February 1, 2022 20:17 — forked from LukeMathWalker/audit.yml
GitHub Actions - Rust setup
name: Security audit
on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
jobs:
security_audit:
runs-on: ubuntu-latest
steps:
@Jdcorley
Jdcorley / player-js-analysis.md
Created September 26, 2017 22:47 — forked from R-V-S/player-js-analysis.md
player.js analysis
  1. This file declares a class, Player, instantiates it, and assigns it to a global player variable.
  2. The Player class contains four methods:
    • constructor()
    • playPause()
    • skipTo()
    • setVolume()
  3. The constructor() method sets initial values for the currentlyPlaying, playState, volume, and soundObject properties.
    • currentlyPlaying is set to the first item in album.songs.
    • The initial playState is "stopped".
  • The volume is set to the number 80.