Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
🥛

BART! bartholomej

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

Macbook clean install

Brew

Install Brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
View app-routing.modules.ts
const routes: Routes = [
{
path: 'en',
children: allRoutes,
canActivate: [FeaturesGuard],
data: { feature: 'i18n' } as FeaturesGuardModel
}
]
@bartholomej
bartholomej / package.json
Created Oct 23, 2020
Angular skip differential loading to speed up build
View package.json
{
"scripts": {
"differential:disable": "yarn ts-node --project ./build-scripts/tsconfig.ts-node.json ./build-scripts/skip-differential-loading"
}
}
@bartholomej
bartholomej / PSPad.tmTheme
Last active Aug 29, 2015
Sublime PSPad color scheme / theme (in progress)
View PSPad.tmTheme
<?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>
View columnizer.snippet.php
<?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 Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// 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 Aug 29, 2015
get html class for navigation (multi-level) [MODX Revo]
View getActiveClass.snippet.php
<?
/**
* 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 Feb 18, 2019
MODx htaccess for Babel
View .htaccess
# 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 Dec 1, 2022
MODx: How to grab, cache and crop YouTube thumbnails
View getYoutubeThumb.html
<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 Jan 27, 2023
CSS Media Query Cheat Sheet (with Foundation)
View css-media-queries-cheat-sheet.css
/*------------------------------------------
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) { }