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 / Money.dart
Created June 23, 2012 04:58
Dart 2 Decimal Money
#import('unittest/unittest.dart');
class Money {
bool _isNegative = false;
int _dollars = 0;
int _cents = 0;
Money(String money) {
if (money.contains("-")) {
_isNegative = true;
@branflake2267
branflake2267 / DartFileReaderTest.dart
Created July 1, 2012 22:25
FileReader On Load Getting Called More Than Once
#import('dart:html');
void main() {
new ImageScaler.start();
}
class ImageScaler {
ImageScaler.start() {
observeFileInput();
@branflake2267
branflake2267 / buildit.bat
Created July 19, 2012 14:35 — forked from adam-singer/buildit.bat
Building dart on win32, the quick guide
cd c:\
mkdir dart_bleeding
svn co http://gyp.googlecode.com/svn/trunk build/gyp
mkdir dart-repo
set Path=%PATH%;c:\dart_bleeding\build\gyp\
git svn clone -rHEAD "https://dart.googlecode.com/svn/branches/bleeding_edge/dart" dart
gclient config "https://dart.googlecode.com/svn/branches/bleeding_edge/deps/all.deps"
cd dart
gclient sync
gclient runhooks
@branflake2267
branflake2267 / pom.xml
Created January 29, 2013 18:10
GWTP Maven Dependencies Manual Download
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>TestProjectMaven</groupId>
<artifactId>TestProjectMaven</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
This file has been truncated, but you can view the full file.
racoon:gxt-2.3 branflake2267$ sh ./build-releases.sh build
Exports are:
/Users/branflake2267/gwt-sdk/gwt-mac-1.7.1
/Users/branflake2267/gwt-sdk/gwt-2.1.1
/Users/branflake2267/gwt-sdk/gwt-2.4.0
Buildfile: /Users/branflake2267/git/gxt-2.3/build-gwt17.xml
[echo] Detected Platform is mac
[echo] Using GWT from /Users/branflake2267/gwt-sdk/gwt-mac-1.7.1
*********
gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
gpg: WARNING: "--no-use-agent" is an obsolete option - it has no effect
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/extjs/gxt/2.3.0-gwt2/gxt-2.3.0-gwt2.jar
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/extjs/gxt/2.3.0-gwt2/gxt-2.3.0-gwt2.jar (2375 KB at 116.4 KB/sec)
Uploading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/extjs/gxt/2.3.0-gwt2/gxt-2.3.0-gwt2.pom
Uploaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/extjs/gxt/2.3.0-gwt2/gxt-2.3.0-gwt2.pom (2 KB at 4.0 KB/sec)
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/extjs/gxt/maven-metadata.xml
Downloaded: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/extjs/gxt/maven-metadata.xml (304 B at 0.4 KB/sec)
Downloading: https://oss.sonatype.org/service/local/staging/deploy/maven2/com/extjs/gxt/2.3.0-gwt2/gxt-2.3.0-gwt2.pom.asc
@branflake2267
branflake2267 / RemoteServiceServlet.java
Last active December 19, 2015 00:59
RemoteServiceServlet override for gwt mobile communication. (GWT 2.5 or GWT 2.5.1 I can't remember)
package com.arcbees.carsample.server.guice.rpc;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.text.ParseException;
import java.util.HashMap;
import java.util.Map;
This file has been truncated, but you can view the full file.
<html>
<head><meta charset="UTF-8" /><script>
var $gwt_version = "2.4.0";
var $wnd = parent;
var $doc = $wnd.document;
var $moduleName, $moduleBase;
var $strongName = 'AB883FB0C3B171D14FDE2E0EAC20215F';
var $stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null,
$sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;
$stats && $stats({moduleName:'com.extjs.gxt.samples.explorer.Explorer',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});
@branflake2267
branflake2267 / GXT_LargeGrid.java
Last active November 24, 2017 06:14
GXT large grid for testing, has RPC proxy simulation
package com.sencha.gxt.text.client.larggrid;
import java.util.ArrayList;
import java.util.List;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.RootPanel;
import com.sencha.gxt.core.client.ValueProvider;
import com.sencha.gxt.data.client.loader.RpcProxy;