Skip to content

Instantly share code, notes, and snippets.

View cjweigle's full-sized avatar
👽
awake

CJ Weigle cjweigle

👽
awake
View GitHub Profile
@cjweigle
cjweigle / Tabbar.jsx
Last active August 29, 2022 10:21
OnsenUI Tabbar Issue with React
import React from 'react';
import {Tabbar as _Tabbar} from 'react-onsenui';
class Tabbar extends React.Component{
constructor(props){
super(props);
this.render = this.render.bind(this);
this.componentWillReceiveProps = this.componentWillReceiveProps.bind(this);
this.updateIndex = this.updateIndex.bind(this);
@cjweigle
cjweigle / rust spr
Created September 21, 2015 06:07
I get this compilation error trying to use piston sprite
/**
src/main.rs:42:2: 51:6 note: expansion site
src/main.rs:47:19: 47:39 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:47:19: 47:39 error: the trait `graphics::graphics::Graphics` is not implemented for the type `gfx_graphics::back_end::GfxGraphics<'_, gfx_device_gl::Resources, gfx::device::command::CommandBuffer<gfx_device_gl::Resources>, gfx_device_gl::factory::Output>` [E0277]
src/main.rs:47 scene.draw(c.transform, g);
^~~~~~~~~~~~~~~~~~~~
**/
@cjweigle
cjweigle / gist:6dd2becd6b4d686b3f4f
Last active August 29, 2015 14:22
scalaz streams gate 1
package finance;
import scalaz.stream._
import scalaz.concurrent.Task
import scalaz.stream.async.mutable.Queue;
import scalaz.stream.{Cause, Util, Process, Sink}
object gate1
{
//V is the value type
package finance;
import scalaz.stream._
import scalaz.stream.Exchange._
import scalaz.concurrent.Task
import scalaz.stream.async.mutable._
import scalaz.stream.wye._
import scalaz.stream.Process._
import scalaz.stream.ReceiveY._
import scalaz.stream.process1.Await1