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
[ | |
{ | |
"title": "Amiga", | |
"items": [ | |
"Chuckie Egg", | |
"Manic Miner", | |
"Jet Set Willy", | |
"Dizzy: The Ultimate Cartoon Adventure", | |
"Boulder Dash", | |
"Renegade", |
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 debounce from 'lodash/throttle' | |
export default class Parallax { | |
constructor() { | |
this.parallaxElements = document.querySelector('.parallax-content') | |
this.last_known_scroll_position = 0; | |
this.ticking = false; | |
this.observe = this.observe.bind(this) | |
this.init() |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Http; | |
using Newtonsoft.Json; | |
using Shared.Services; |
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
public static class RazorProviderExtensions | |
{ | |
public static string RenderRazorViewToString(this Controller controller, string viewName, object model = null) | |
{ | |
controller.ViewData.Model = model; | |
using (var sw = new StringWriter()) | |
{ | |
var viewResult = ViewEngines.Engines.FindPartialView(controller.ControllerContext, viewName); | |
var viewContext = new ViewContext(controller.ControllerContext, viewResult.View, | |
controller.ViewData, controller.TempData, sw); |
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
variables: | |
EXE_RELEASE_FOLDER: '' | |
DEPLOY_FOLDER: 'C:\htdocs\www.test.de' | |
NUGET_PATH: 'C:\Runner\nuget.exe' | |
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe' | |
.backup: &backup | | |
$path = "$target" | |
$destination = "$target-$datetime.zip" | |
$exclude = @("marketing","marketing-test","") |
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
.backup: &backup | | |
& robocopy "$target" "$target-$datetime" /MIR | |
.publish: &publish | | |
$array = @("assets", "Views", "bin", "config") | |
foreach ($element in $array) { | |
robocopy "./publish/$element" "$target/$element" /E /MIR /IS /IT | |
} | |
variables: |
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
Show hidden characters
{ | |
"presets": [ | |
["@babel/preset-env", { "useBuiltIns": "usage", "corejs": 3 }] | |
], | |
"plugins": [ | |
"@babel/plugin-transform-async-to-generator", | |
"@babel/plugin-proposal-class-properties", | |
"@babel/plugin-syntax-dynamic-import" | |
] | |
} |
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
{ | |
"private": true, | |
"browserslist": [ | |
"> 1%", | |
"not dead" | |
], | |
"scripts": { | |
"dev": "npm run watch", | |
"watch": "cross-env NODE_ENV=development webpack --watch --progress --hide-modules", | |
"build": "npm run production", |
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
require('dotenv').config() | |
const webpack = require('webpack'); | |
const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const TerserPlugin = require('terser-webpack-plugin'); | |
const BrowserSyncPlugin = require('browser-sync-webpack-plugin') | |
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin'); | |
const FixStyleOnlyEntriesPlugin = require("webpack-fix-style-only-entries"); | |
const path = require('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
const path = require('path') | |
const MiniCssExtractPlugin = require("mini-css-extract-plugin"); | |
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin"); | |
const WebpackAssetsManifest = require('webpack-assets-manifest'); | |
const UglifyJsPlugin = require("uglifyjs-webpack-plugin"); | |
const CleanWebpackPlugin = require('clean-webpack-plugin') | |
const CleanObsoleteChunks = require('webpack-clean-obsolete-chunks'); | |
const devMode = process.env.NODE_ENV !== 'production' | |
let webpackConfig = { |
NewerOlder