Skip to content

Instantly share code, notes, and snippets.

View brianegan's full-sized avatar

Brian Egan brianegan

View GitHub Profile
<?php
function tao_css_alter(&$css) {
$exclude = array(
'misc/vertical-tabs.css' => FALSE,
'modules/aggregator/aggregator.css' => FALSE,
'modules/block/block.css' => FALSE,
'modules/book/book.css' => FALSE,
'modules/comment/comment.css' => FALSE,
'modules/dblog/dblog.css' => FALSE,
@brianegan
brianegan / Bash Colors
Created April 8, 2011 03:39
My Pretties
# ZOMG Colors!
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagacad

Vim Sum Presentation -- Managing Plugins

Github: Your best friend!

Gist test
This
# Requires
DocpadPlugin = require 'docpad/lib/plugin.coffee'
handlebars = require 'handlebars'
# Define Plugin
class HandlebarsPlugin extends DocpadPlugin
# Plugin name
name: 'handlebars'
# Render some content
// At a glance you can see which global objects are being imported, these are the local variable names you will use in your script
(function(z, $) { // encapsulate in a closure
// Use strict is within scoped function so that it only applies to this code block
"use strict"; // Prevents common errors and bad practices, by catching them at runtime.
var proto; // The var that will store the reference to the prototype for our widget
/**
* Description of what the widget does
*
* @example
* z.myWidget(selector, {
// At a glance you can see which global objects are being imported, these are the local variable names you will use in your script
(function(z, $) { // encapsulate in a closure
// Use strict is within scoped function so that it only applies to this code block
"use strict"; // Prevents common errors and bad practices, by catching them at runtime.
var proto; // The var that will store the reference to the prototype for our widget
/**
* Description of what the widget does
*
* @example
* z.myWidget(selector, {
@brianegan
brianegan / cli_exit.dart
Created March 2, 2017 20:09
A couple memory / process tests
import 'package:rxdart/rxdart.dart';
import 'package:test/test.dart';
void main() {
final int count = 10000000;
final List<ExtraWrapper> observables = new List<ExtraWrapper>(count);
for (int i = 0; i < count; i++) {
observables[i] = new ExtraWrapper(new Observable<int>.just(1).call(onData: (_) {}));
}
@brianegan
brianegan / SyncStreamController + StreamBuilder
Created October 12, 2018 15:44
Even using a Sync Stream Controller + Buffering an event, the StraemBuilder will print "No Data" then "Has Data"
import 'dart:async';
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatefulWidget {
@override
MyAppState createState() {
return new MyAppState();
@brianegan
brianegan / main.dart
Created October 15, 2018 13:07
Animator Widget
import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Flutter Demo',