WIP
This file contains hidden or 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
| { | |
| "$schema": "https://json.schemastore.org/tsconfig", | |
| "compilerOptions": { | |
| "allowUnreachableCode": false, | |
| "alwaysStrict": true, | |
| "composite": true, | |
| "declaration": true, | |
| "declarationMap": true, | |
| "esModuleInterop": true, | |
| "forceConsistentCasingInFileNames": true, |
This file contains hidden or 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 String toISO8601UTC(Date date) { | |
| TimeZone tz = TimeZone.getTimeZone("UTC"); | |
| DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"); | |
| df.setTimeZone(tz); | |
| return df.format(date); | |
| } | |
| public static Date fromISO8601UTC(String dateStr) { | |
| TimeZone tz = TimeZone.getTimeZone("UTC"); | |
| DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'"); |
This file contains hidden or 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
| package com.nateyolles.aem; | |
| import org.apache.felix.scr.annotations.Reference; | |
| import org.apache.felix.scr.annotations.sling.SlingServlet; | |
| import org.apache.sling.api.SlingHttpServletRequest; | |
| import org.apache.sling.api.SlingHttpServletResponse; | |
| import org.apache.sling.api.servlets.SlingSafeMethodsServlet; | |
| import org.apache.sling.engine.SlingRequestProcessor; |
This file contains hidden or 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 { Knex } from 'knex' | |
| export async function up(knex: Knex): Promise<any> { | |
| await knex.schema.createTable('test_setup', (table: Knex.TableBuilder) => { | |
| table.integer('foobar'); | |
| }); | |
| } | |
| export async function down(knex: Knex): Promise<any> { | |
| await knex.schema.dropTable('test_setup'); |
This file contains hidden or 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
| :root { | |
| --violation-color: red; /* used for clear issues */ | |
| --warning-color: orange; /* used for potential issues we should look into */ | |
| } | |
| /* IMAGES */ | |
| /* | |
| * Lazy-Loaded Images Check | |
| * ==== |
I use PlantUML a lot. It's what I use for drawing all sorts of diagrams and it's handy because of its easy markup (once you get used to it) while making things easy to maintain as projects grow (thanks to version control)
This gist explains how I do my PlantUML workspace in a project.
- The idea is to keep a
globalsdirectory for all diagrams to follow (like the "stylesheet" below) to keep things consistent. - I use a
stylesheet.iumlfile that keeps the use of colors consistent through use of basic FOREGROUND, BACKGROUND and ACCENT colors. - The
style-presets.iumlfile defines these colors so you can make "presets" or "themes" out of them. - As stated in the
stylesheet.iuml, you'll need the Roboto Condensed and Inconsolata fonts for these to work properly. - You can choose to either run the PlantUML jar over your file/s, or use an IDE like VSCode with the PlantUML extension. Here's a preview of
example-sequence.pumlfor example: https://imgur.com/Klk3w2F
- Open a terminal.
- Type the following command to change the primary hostname of your Mac:
This is your fully qualified hostname, for example
myMac.domain.com
sudo scutil --set HostName <new host name>- Type the following command to change the Bonjour hostname of your Mac: This is the name usable on the local network, for example myMac.local.
This file contains hidden or 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
| # Built application files | |
| /*/build/ | |
| # Crashlytics configuations | |
| com_crashlytics_export_strings.xml | |
| # Local configuration file (sdk path, etc) | |
| local.properties | |
| # Gradle generated files |
OlderNewer