Skip to content

Instantly share code, notes, and snippets.

View JBreit's full-sized avatar

Jason Breitigan JBreit

  • Inner Mind Co.
  • Lancaster, PA
View GitHub Profile
@JBreit
JBreit / .editorconfig
Created May 14, 2021 03:24
C# Editor Config Settings
[*.cs]
# SA1309: Field names should not begin with underscore
dotnet_diagnostic.SA1309.severity = none
# SA1600: Elements should be documented
dotnet_diagnostic.SA1600.severity = none
# SA1633: File should have header
dotnet_diagnostic.SA1633.severity = none
@JBreit
JBreit / .babelrc
Created December 2, 2020 02:37
Babel Configuration
{
"presets": [
["@babel/preset-env", {
"modules": false,
"useBuiltIns": "usage",
"targets": {
"esmodules": true
}
}],
const express = require('express');
const bodyParser = require('body-parser');
const cookieParser = require('cookie-parser');
const favicon = require('serve-favicon');
const morgan = require('morgan');
const methodOverride = require('method-override');
const path = require('path');
const app = express();
const UglifyJs = require('uglifyjs-webpack-plugin');
const Clean = require('clean-webpack-plugin');
const Copy = require('copy-webpack-plugin');
const CSS = require('mini-css-extract-plugin');
const HTML = require('html-webpack-plugin');
const configureBabelLoader = () => ({
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: {
export const ADD_TODO = '[Todo] Add Todo';
export const REMOVE_TODO = '[Todo] Remove Todo';
export class AddTodo {
readonly type = ADD_TODO;
constructor(private payload: any) {}
}
export class RemoveTodo {
readonly type = REMOVE_TODO;
@JBreit
JBreit / app.states.ts
Last active July 9, 2018 09:26
@ngrx/store authentication example code
import { createFeatureSelector } from '@ngrx/store';
import * as auth from './reducers/auth.reducers';
export interface AppState {
authState: auth.State;
}
export const reducers = {
import { $on } from './util';
import View from './view';
import Model from './model';
import Controller from './controller';
class App {
constructor() {
const model = new Model();
const view = new View();
<template>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card card-default">
<div class="card-header">Dashboard Component</div>
<div class="card-body">
{{ data }}
</div>
root = true
[*]
charset = utf-8
end_of_line = CRLF
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2
<?php
namespace App;
class Comment extends Model
{
public function post()
{
return $this->belongsTo(Post::class);
}