Skip to content

Instantly share code, notes, and snippets.

View branflake2267's full-sized avatar
🏠
Working from home

Brandon Donnelson branflake2267

🏠
Working from home
View GitHub Profile
@branflake2267
branflake2267 / main.dart
Last active July 19, 2020 04:53
Simple loading... Flutter widget
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@branflake2267
branflake2267 / search.exclude
Created June 12, 2020 17:07
Extjs in Java, ignore some of the src/main/javascript bits
{
"search.exclude": {
"**/*.log": true,
"**/bootstrap*.*": true,
"build": true,
"install": true,
"test": true,
"src/main/javascript/build": true,
"src/main/javascript/ext": true,
"src/main/resources": true,
@branflake2267
branflake2267 / web.xml
Created June 1, 2020 20:55
Sencha Cmd Reverse Proxy Servlet [project]/WEB-INF/web.xml, sencha app watch -j
<?xml version="1.0" encoding="UTF-8"?>
<web-app
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
metadata-complete="true"
version="2.5">
<!-- Cmd CLI Reverse HTTP Proxy Configuration -->
@branflake2267
branflake2267 / .eslintignore
Created April 28, 2020 15:52
Ext JS SDK eslint
**/build/*
**/sass/*
**/bootstrap*.js
**/ext-all*.js
**/ext-modern*.js
attic/*
deployment_workspace/*
docs/*
ext/*.js
ext/modern/modern/test/*
package com.sencha.gxt.test.client._northgate;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.IFrameElement;
import com.google.gwt.dom.client.NodeList;
@branflake2267
branflake2267 / GxtEwcProjectEntryPoint.java
Created November 23, 2019 14:03
Example using TextResources to import a javascript file.
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.ScriptInjector;
import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.ScriptElement;
import com.google.gwt.resources.client.*;
import com.google.gwt.safehtml.shared.SafeHtmlUtils;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootPanel;
import com.projectname.project.client.myview.MyViewWidget;
@branflake2267
branflake2267 / MyFroalaEditorElement.js
Last active November 17, 2019 16:53
Simple Froala Editor Web Component with script loader.
class MyFroalaEditorElement extends HTMLElement {
constructor() {
super();
}
connectedCallback() {
this.attachShadow({mode: 'open'});
this.shadowRoot.innerHTML = `
<link href='https://cdn.jsdelivr.net/npm/froala-editor@3.0.6/css/froala_editor.pkgd.min.css' rel='stylesheet'
type='text/css' />
@branflake2267
branflake2267 / README.md
Last active November 7, 2021 10:07
Froala webpack example config.

Simple Froala Webpack Project Example

This covers the basic directions to get up and running with webpack.

Configure

If you're creating your webpack configuration from scratch, these plugins will be needed.

Webpack

  • Run npm install --save-dev webpack
  • Run npm install --save-dev webpack webpack-cli
@branflake2267
branflake2267 / index-with-requirejs.html
Created November 17, 2019 00:19
Froala Editor with RequireJs usage.
<!DOCTYPE html>
<html>
<head>
<!-- Load CSS files. -->
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/froala-editor@3.0.6/css/froala_editor.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
<script>
// 1. Define the Froala Editor resources import path
@branflake2267
branflake2267 / index.html
Last active November 20, 2019 02:35
Froala editor example using requirejs.
<!DOCTYPE html>
<html>
<head>
<title>Froala Editor JavaScript Demo</title>
<!-- 1. Include Froala Editor style -->
<link href='https://cdn.jsdelivr.net/npm/froala-editor@3.0.6/css/froala_editor.pkgd.min.css' rel='stylesheet'
type='text/css' />