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
const path = require('path') | |
module.exports = { | |
'*.ts': relativePaths => { | |
return [ | |
`ng lint --fix --files ${relativePaths.join(' --files ')}`, | |
`git add ${relativePaths.join(' ')}`, | |
]; | |
} | |
} |
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
#!/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 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 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 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 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
/** | |
* This injects Tailwind's base styles, which is a combination of | |
* Normalize.css and some additional base styles. | |
* | |
* You can see the styles here: | |
* https://github.com/tailwindcss/tailwindcss/blob/master/css/preflight.css | |
* | |
* If using `postcss-import`, use this import instead: | |
* | |
* @import "tailwindcss/preflight"; |
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
const { spawn } = require('child_process'); | |
const fileName = './angular.json'; | |
let file; | |
try { | |
file = require(fileName); | |
} catch(e) { | |
console.error(e); | |
process.exit(1); |
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
{ | |
"cli": { | |
"defaultCollection": "." | |
} | |
} |
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
# Docker Container management | |
alias docker-rm='docker rm $(docker ps -aq)' | |
alias docker-st='docker stop $(docker ps -aq)' | |
alias docker-rm-img="docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi" | |
# Git Helpers | |
function gitRmMerged() { | |
git branch --merged ${1:-master} | grep -v "${1:-master}" | xargs -n 1 git branch -d | |
} | |
export -f gitRmMerged |
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
#! /usr/bin/env node | |
const fs = require('fs'); | |
const files = [ | |
'src/tsconfig.app.json', | |
'src/tsconfig.server.json', | |
'src/tsconfig.spec.json' | |
]; | |
const paths = { |
NewerOlder