Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Brandon Donnelson branflake2267

🏠
Working from home
View GitHub Profile
@branflake2267
branflake2267 / main.dart
Last active Jul 19, 2020
Simple loading... Flutter widget
View main.dart
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 Jun 12, 2020
Extjs in Java, ignore some of the src/main/javascript bits
View search.exclude
{
"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 Jun 1, 2020
Sencha Cmd Reverse Proxy Servlet [project]/WEB-INF/web.xml, sencha app watch -j
View web.xml
<?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 -->
View .eslintignore
**/build/*
**/sass/*
**/bootstrap*.js
**/ext-all*.js
**/ext-modern*.js
attic/*
deployment_workspace/*
docs/*
ext/*.js
ext/modern/modern/test/*
View IframeReferenceSandbox.java
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 Nov 23, 2019
Example using TextResources to import a javascript file.
View GxtEwcProjectEntryPoint.java
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 Nov 17, 2019
Simple Froala Editor Web Component with script loader.
View MyFroalaEditorElement.js
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 Nov 17, 2019
Froala webpack example config.
View README.md

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 Nov 17, 2019
Froala Editor with RequireJs usage.
View index-with-requirejs.html
<!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 Nov 20, 2019
Froala editor example using requirejs.
View index.html
<!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' />