This file contains hidden or 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
alias static-this='docker run --rm -v `pwd`:/usr/share/nginx/html -p 80:80 -d nginx:alpine' | |
function static_that() { | |
docker run --rm -v `pwd`/${1}:/usr/share/nginx/html -p 80:80 -d nginx:alpine | |
} | |
alias static-that='static_that' |
This file contains hidden or 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> | |
<head> | |
<title>Spotify based Pass the Parcel</title> | |
</head> | |
<body> | |
<h1>Spotify based Pass the Parcel</h1> | |
<button id="resume">Start Passing that Parcel</button> | |
<script src="https://sdk.scdn.co/spotify-player.js"></script> |
This file contains hidden or 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 'reflect-metadata'; | |
// Load zone.js for the server. | |
import 'zone.js/dist/zone-node'; | |
import { enableProdMode } from '@angular/core'; | |
import { renderModuleFactory } from '@angular/platform-server'; | |
// Import module map for lazy loading | |
import { provideModuleMap } from '@nguniversal/module-map-ngfactory-loader'; | |
import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs'; | |
import { join } from 'path'; |
This file contains hidden or 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
#!/bin/node | |
const puppeteer = require('puppeteer'); | |
const join = require('path').join; | |
const url = process.argv[2] || 'http://localhost:4000/sponsorship-opportunities'; | |
const filename = process.argv[3] || 'sponsor-pack.pdf'; | |
(async () => { | |
try { | |
const browser = await puppeteer.launch(); |
This file contains hidden or 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
const path = require('path') | |
module.exports = { | |
'*.ts': relativePaths => { | |
return [ | |
`ng lint --fix --files ${relativePaths.join(' --files ')}`, | |
`git add ${relativePaths.join(' ')}`, | |
]; | |
} | |
} |
OlderNewer