This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
Disclaimer: This post is Meteor & Backbone beef. Both Meteor and Backbone are absolute genius, and far beyond anything I could dream to create. But IMO there are better tools. Prepare yourselves *gulp*, I need to get this off my chest.
First, Backbone. Why people? It revolutionized JavaScript, did wonderful things for the world, and served its purpose well. But now we have better tools, so let’s move on. It’s like Gentoo users proselytizing Gentoo to the masses, perpetuating it as most common Distro; where all this time, Ubuntu would have saved everyone countless hours. Not
package main | |
import ( | |
"database/sql" | |
"errors" | |
_ "github.com/mattn/go-sqlite3" | |
"log" | |
"os" | |
) |
func Pic(dx, dy int) [][]uint8 { | |
result := make([][]uint8, dy); | |
for y := 0; y < dy; y++ { | |
result[y] = make([]uint8, dx); | |
} | |
return result | |
} |
@mixin flexbox( $display: flex, $direction: row, $wrap: wrap, $justify: start, $items: start, $content: start ) { | |
// <display> - flex | inline-flex | |
// <direction> - row | row-reverse | column | column-reverse | |
// <wrap> - wrap | nowrap | wrap-reverse | |
// <justify> - start | end | center | space-between | space-around | |
// <items> - start | end | center | baseline | stretch | |
// <content> - start | end | center | space-between | space-around | stretch | |
// @include flexbox( flex, row, wrap, start, start, start ); | |
// @include flexbox( inline-flex, column, nowrap, center, start, stretch ); |
import scala.util.parsing.combinator._ | |
import scala.util.parsing.input.CharSequenceReader | |
object Simple { | |
trait Expression | |
case class Add(lhs: Expression, rhs: Expression) extends Expression | |
case class Mul(lhs: Expression, rhs: Expression) extends Expression | |
case class Num(v: Double) extends Expression |
package ble | |
import scala.language.implicitConversions | |
package object parsimple { | |
import scala.util.parsing.combinator.{ JavaTokenParsers, ImplicitConversions } | |
import scala.util.parsing.input.CharSequenceReader | |
implicit def promoteToReader(cs: CharSequence): CharSequenceReader = new CharSequenceReader(cs) |
Yeouch! If it's not clear to you that this is a dangerous hack, ask a friend or a coworker why rewriting git patches is probably not what you want! | |
\(a\/\|b\/\|^ create mode \d\+ \|^ rename \|=> \|^rename \(from \|to \)\)\@<=$PATH_IN_QUESTION/ |