Skip to content

Instantly share code, notes, and snippets.

View immannino's full-sized avatar
💁‍♂️
fabulous

Tony immannino

💁‍♂️
fabulous
View GitHub Profile
@immannino
immannino / ThanksgivingJokes.json
Created November 11, 2017 22:44
JSON Object Array of Thanksgiving Jokes
const data = [
{Question:"What would you get if you crossed a turkey with an ghost?", Answer:"A poultrygeist!"},
{Question:"Why did the police arrest the turkey?", Answer:"They suspected fowl play."},
{Question:"Why did the turkey cross the road twice?", Answer:"To prove he wasn’t a chicken!"},
{Question:"What happened when the turkey got into a fight?", Answer:"He got the stuffing knocked out of him!"},
{Question:"What key won’t open any door?", Answer:"A turkey!"},
{Question:"What did the mother turkey say to her disobedient children?", Answer:"If your father could see you now, he’d turn over in his gravy"},
{Question:"What kind of weather does a turkey like?", Answer:"Fowl weather!"},
{Question:"What’s the best dance to do on Thanksgiving?", Answer:"The turkey trot."},
{Question:"If you call a large turkey a gobbler what do you call a small one?", Answer:"Goblet"},
@immannino
immannino / Bash profile colors
Last active December 19, 2018 06:25
bash profile
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
<!--The content below is only a placeholder and can be replaced.-->
<style>
.top-container {
height: 100vh;
display: grid;
grid-template-columns: 2fr 1fr 2fr;
grid-template-rows: 1fr 1fr;
margin: 0;
}
.title {
const randomHexColorCode = () => {
let n = (Math.random() * 0xfffff * 1000000).toString(16);
return '#' + n.slice(0, 6);
};
console.log(randomHexColorCode());
@immannino
immannino / index.html
Last active April 24, 2018 05:38
MOONSHOT: Test Web App
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>PersonalSite2018</title><base href="./"><link href="https://fonts.googleapis.com/css?family=Comfortaa" rel="stylesheet"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/x-icon" href="favicon.ico"><link href="styles.ac89bfdd6de82636b768.bundle.css" rel="stylesheet"/></head><body><app-root></app-root><script type="text/javascript" src="inline.318b50c57b4eba3d437b.bundle.js"></script><script type="text/javascript" src="polyfills.bf95165a1d5098766b92.bundle.js"></script><script type="text/javascript" src="main.1c13409f4ef634b21c70.bundle.js"></script></body></html>
@immannino
immannino / 3rdpartylicenses.txt
Last active June 4, 2018 03:20
MOONSHOT: Youtube Grid thing
core-js@2.5.7
MIT
Copyright (c) 2014-2018 Denis Pushkarev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
{
const height = 33;
const context = DOM.context2d(width, height);
for (let i = 0; i < width; ++i) {
const t = i / width;
const r = Math.floor(255 * Math.sin(Math.PI * (t + 0 / 3)) ** 2);
const g = Math.floor(255 * Math.sin(Math.PI * (t + 1 / 3)) ** 2);
const b = Math.floor(255 * Math.sin(Math.PI * (t + 2 / 3)) ** 2);
context.fillStyle = `rgb(${r},${g},${b})`;
context.fillRect(i, 0, 1, height);
[1518-06-12 23:57] Guard #2633 begins shift
[1518-04-11 00:09] falls asleep
[1518-04-10 00:56] falls asleep
[1518-10-22 00:36] wakes up
[1518-11-08 00:57] wakes up
[1518-03-28 00:00] Guard #2423 begins shift
[1518-11-02 00:02] Guard #727 begins shift
[1518-04-14 23:56] Guard #2777 begins shift
[1518-09-02 00:45] falls asleep
[1518-07-14 00:00] Guard #73 begins shift
@immannino
immannino / injection.ts
Created December 22, 2018 22:29
example gist for injection-js code
import 'reflect-metadata';
import { ReflectiveInjector, Injectable, Injector } from 'injection-js';
class Http {}
@Injectable()
export class Service {
constructor(private http: Http) {}
}
@immannino
immannino / tsconfig.json
Created December 22, 2018 22:30
Base tsconfig I use for most nodejs projects
{
"version": "2.4.2",
"compilerOptions": {
"lib": ["es2017"],
"target": "es2017",
"outDir": "./dist/",
"module": "commonjs",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,