Skip to content

Instantly share code, notes, and snippets.

View ThomasJunk's full-sized avatar

Thomas Junk ThomasJunk

  • Intevation
  • Osnabrück (GER)
View GitHub Profile
@ThomasJunk
ThomasJunk / main.go
Created July 13, 2019 07:06
scs error
package main
import (
"log"
"net/http"
"time"
"github.com/alexedwards/scs/boltstore"
"github.com/alexedwards/scs/v2"
"github.com/gorilla/mux"
GOCMD=go
GOBUILD=$(GOCMD) build
NAME=efa
PATHTOMAIN=./cmd/$(NAME)
all: build
build:
$(GOBUILD) -o $(NAME) $(PATHTOMAIN)/main.go
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<h2>Essential Links</h2>
<div class="l-main jQ-main" data-content="login">
<div class="l-main-bd">
<div>
<div>
yarn add --dev eslint-plugin-prettier eslint-config-prettier eslint prettier webpack webpack-cli style-loader css-loader url-loader file-loader image-webpack-loader mini-css-extract-plugin autoprefixer node-sass sass-loader postcss-loader babel-loader babel-core pretty-quick
@ThomasJunk
ThomasJunk / .editorconfig
Created April 3, 2018 08:44
.editorconfig for nodejs
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[vcbuild.bat]
end_of_line = crlf
@ThomasJunk
ThomasJunk / .eslintrc
Last active May 22, 2018 14:34
Eslint with prettier
{
"plugins": ["prettier"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
@ThomasJunk
ThomasJunk / postcss.config.js
Created April 3, 2018 08:41
postcss autoprefixer
module.exports = {
plugins: [require("autoprefixer")]
};
@ThomasJunk
ThomasJunk / webpack.config.js
Last active June 12, 2018 11:52
webpack4 with sass and autoprefixer
"use strict";
const path = require("path");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const { VueLoaderPlugin } = require("vue-loader");
module.exports = {
entry: "./app/main",
output: {
path: path.resolve(__dirname, "web/assets"),
rm tags
find . -type f | grep -vP ".git|.hg|\.min\.|env|.pyc" | grep -P ".js|.py|.rst|.html" | xargs ctags -a
@ThomasJunk
ThomasJunk / index.html
Created September 9, 2017 09:38
Basic HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>$Title</title>
<meta name="description" content="$Content">
<meta name="author" content="$author">