Skip to content

Instantly share code, notes, and snippets.

View blueelvis's full-sized avatar

Pranav blueelvis

View GitHub Profile
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: serve_hostname
name: serve_hostname
spec:
replicas: 2
selector:
matchLabels:
@blueelvis
blueelvis / isNumeric.ts
Created November 24, 2018 20:05
Use this to check if a string is really a number or not... Code is based in TypeScript
function isNumeric(x:string,base:number=10):boolean {
const parsedInt = parseInt(x,base);
if (isNaN(parsedInt)) {
return false;
} else {
return true;
}
}
#!/bin/sh
echo "Hello World!"