Skip to content

Instantly share code, notes, and snippets.

View lstrojny's full-sized avatar

Lars Strojny lstrojny

View GitHub Profile
@adamterlson
adamterlson / Propsal.md
Last active October 24, 2021 16:59
Lightning talk proposal for the Reactive 2016 Conference: Reconceptualizing react applications as a function

Lightning talk proposal for the Reactive 2016 Conference. Here's a handy retweet link

If you want to hear this talk, or if you just want to support me, please star ⭐ the Gist!

When I started writing React apps, I approached components as if they were “just the V in MVC!” Seriously, we’ve all heard it.

I have found this to be an inferior way of thinking about and building React applications. It makes people treat React as a drop-in replacement for something like a Backbone or Angular 1.x View. In other words, people treat it like a glorified template system with partials and don’t harness the power of its functional paradigms.

This talk is about a functional way to write and conceptualize entire React applications.

@lstrojny
lstrojny / Manual.php
Created April 21, 2013 21:31
Manual payment method (backend only)
<?php
class Akjumii_Payment_Model_Method_Manual extends Mage_Payment_Model_Method_Abstract
{
protected $_code = 'manual_payment';
protected $_isGateway = false;
protected $_canAuthorize = false;
protected $_canVoid = false;