Skip to content

Instantly share code, notes, and snippets.

View orionstar's full-sized avatar

László Bóra orionstar

View GitHub Profile
@orionstar
orionstar / CopyOutside.js
Created March 16, 2022 04:10
Laravel Mix - Copy outside the public path & use version() with the other files
const mix = require('laravel-mix')
const CopyWebpackPlugin = require('copy-webpack-plugin')
/**
* Mix doesn't support copy content outside the public path AND simultaneously using version()
*/
class CopyOutside {
tasks = [];
@orionstar
orionstar / Preferences.sublime-settings
Created September 23, 2019 07:08
My Sublime Preferences
{
"Seti_bold_heading": true,
"Seti_bold_slctdfile_labels": true,
"Seti_bold_slctdtab_labels": true,
"Seti_heading_font_12": false,
"Seti_no_scroll_icons": true,
"Seti_orange_button": true,
"Seti_orange_label": true,
"Seti_sb_small_padding": true,
"Seti_sb_tree_miny": true,
function BaseModel () {};
BaseModel.prototype = {
constructor: BaseModel,
_items: [],
_dataSource: '',
// ------------------------------------------------------------------------
@orionstar
orionstar / helpers.js
Created September 27, 2017 23:01
"Extend" JS object
/**
* Leszármaztatás egy objektumból
*
* @param {Object} childObj Gyermek
* @param {Object} parentObj Szülő
* @return {void}
*/
var extendObj = function(childObj, parentObj) {
// Készítünk egy ideiglenes objektumot,
// hogy elkerüljük a későbbi felülírását