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
'use strict'; | |
import fastify, { FastifyReply, FastifyRequest, RawReplyDefaultExpression, RawServerBase, RequestGenericInterface } from 'fastify'; | |
import proxy from '@fastify/http-proxy'; | |
const server = fastify(); | |
server.register(proxy, { | |
upstream: 'http://proxied.tld', | |
prefix: '/proxied', |
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
{ | |
"type": "module", | |
"test": "tap", | |
"devDependencies": { | |
"@esbuild-kit/esm-loader": "^2.5.5", | |
"@swc/core": "^1.3.77", | |
"@tsconfig/node18": "^18.2.0", | |
"@types/node": "^20.5.0", | |
"@types/tap": "^15.0.8", | |
"tap": "^16.3.8", |
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
// ...some entries | |
"require": { | |
"illuminate/validation": "^8.25", | |
"illuminate/translation": "^8.25" | |
} | |
// ...some more entries |
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
// See the issue here https://github.com/opencart/opencart/issues/8103# | |
2021-01-16 13:57:24 - MOD: Modification Default | |
FILE: system/engine/action.php | |
REGEX: ~(require|include)(_once)?\(([^)]+)~ | |
LINE: 69 | |
FILE: system/engine/loader.php | |
REGEX: ~(require|include)(_once)?\(([^)]+)~ |
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
// The issue solved with this config is `twig-loader` and Webpack process the image assets | |
// referenced in `.twig` templates the correct way. | |
// Namely as a build process result, the images are copied to `.dist` folder with hashed names, | |
// the `src` images' attributes in the output HTML file produced from the Twig templates | |
// are updated with the respective hashed names. | |
module.exports = { | |
runtimeCompiler: true, | |
outputDir: '.dist', |
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
// In fact can be used for every web project that needs live reload for dev environment. | |
// The accompanying guide is here: | |
// https://github.com/adonisjs/core/issues/1234#issuecomment-633937899 | |
'use strict'; | |
const gulp = require('gulp'), | |
browserSync = require('browser-sync').create(); | |
const config = { |
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
'use strict'; | |
const assert = require("assert"); | |
const chai = require("chai"); | |
const chaiHttp = require("chai-http"); | |
const server = require("../src/app"); | |
// See the coupled Express server snippet here | |
// https://gist.github.com/WhereJuly/7b275ec75380505aa9db9a384f0e4ab3 |
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
'use strict'; | |
const app = require('express')(); | |
app.get('/', (req, res) => { | |
res.status(200).json({ message: 'Connected!' }); | |
}); | |
// Turn on that server! | |
const server = app.listen(3000, () => { |
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
// https://github.com/keyboardface/photoshop-scripts | |
/* | |
* | |
* Export All Text Layers | |
* 1.1.4 | |
* Pavel Ivanov | |
* https://github.com/pivanov/photoshop-scripts | |
* | |
*/ |
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
// modified by WhereJuly | |
// changed useDialog to false | |
// replaced filePath with opened psd's full path | |
/* | |
* | |
* TextExport 1.3 - by Bramus! - http://www.bram.us/ | |
* text layer style export added by Max Glenister (@omgmog) http://www.omgmog.net | |
* | |
* v 1.x - ????.??.?? - UPD: HTML Output (?) |
NewerOlder