Skip to content

Instantly share code, notes, and snippets.

View bartholomej's full-sized avatar
:octocat:
🥛

BART! bartholomej

:octocat:
🥛
View GitHub Profile
@bartholomej
bartholomej / mac-install.md
Created December 6, 2020 19:03
Mac install Instructions

Macbook clean install

Brew

Install Brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
@bartholomej
bartholomej / app-routing.modules.ts
Last active November 3, 2020 22:49
Feature Guard Angular
const routes: Routes = [
{
path: 'en',
children: allRoutes,
canActivate: [FeaturesGuard],
data: { feature: 'i18n' } as FeaturesGuardModel
}
]
@bartholomej
bartholomej / package.json
Created October 23, 2020 11:08
Angular skip differential loading to speed up build
{
"scripts": {
"differential:disable": "yarn ts-node --project ./build-scripts/tsconfig.ts-node.json ./build-scripts/skip-differential-loading"
}
}
@bartholomej
bartholomej / PSPad.tmTheme
Last active August 29, 2015 14:15
Sublime PSPad color scheme / theme (in progress)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>PSPad</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@bartholomej
bartholomej / columnizer.snippet.php
Last active October 8, 2015 13:28
MODX columnizer
<?php
/* columnizer
*
* Getresources output into columns
*
* PARAMETERS:
* &idx: always should be [[+idx]]
* &total: always should be [[+total]]
* &columns: number of columns (1 -6)
* &startTpl: html for column (can use chunk)
@bartholomej
bartholomej / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@bartholomej
bartholomej / getActiveClass.snippet.php
Last active August 29, 2015 14:04
get html class for navigation (multi-level) [MODX Revo]
<?
/**
* getActiveClass: get html class for navigation (multi-level)
*
* PARAMETERS:
* &docid: Document ID
* &class [optional]: custom html class name (default: "active")
* &self [optional]: add class also on self document (default: 1)
*
* EXAMPLES:
@bartholomej
bartholomej / .htaccess
Last active February 18, 2019 12:33
MODx htaccess for Babel
# MODX htaccess for BABEL (idealab settings)
RewriteEngine On
RewriteBase /
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
# redirect all requests to /de/favicon.ico and /nl/favicon.ico
@bartholomej
bartholomej / getYoutubeThumb.html
Last active December 1, 2022 14:53
MODx: How to grab, cache and crop YouTube thumbnails
<a href="http://youtu.be/[[getPlaceholder? &id=`[[+parent]]` &placeholder=`tv.video`]]" target="_blank">
<img src="[[!pthumb? &input=`http://img.youtube.com/vi/[[getPlaceholder? &id=`[[+parent]]` &placeholder=`tv.video`]]/0.jpg` &options=`&w=480&h=270&zc=1`]]">
</a>
@bartholomej
bartholomej / css-media-queries-cheat-sheet.css
Last active December 2, 2024 23:53
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }