Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am biern on github.
  • I am biern (https://keybase.io/biern) on keybase.
  • I have a public key ASBwWIcI3iKVq8bCU4SfA1b5xfqE0bEKxVGkraoI4nWIHgo

To claim this, I am signing this object:

@biern
biern / RNP.purs
Last active November 2, 2017 21:03
Purescript Reverse Polish Notation
module RPN where
import Prelude
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Console (CONSOLE, log)
import Data.Array ((:))
import Data.Either (Either(..))
import Data.Foldable (foldM)
@biern
biern / main.js
Last active March 5, 2018 15:57
Yeelight Screen Ambience
'use strict';
const Color = require("color");
const Yeelight = require('node-yeelight-wifi');
const robot = require('robotjs');
const net = require('net');
const os = require('os');
const R = require('ramda');
@biern
biern / snakeNaming.ts
Last active November 22, 2019 12:33 — forked from recurrence/snake_naming.ts
TypeORM Snake Case Naming Strategy
import { NamingStrategyInterface, DefaultNamingStrategy } from 'typeorm';
import { snakeCase } from 'typeorm/util/StringUtils';
export class SnakeNamingStrategy extends DefaultNamingStrategy
implements NamingStrategyInterface {
tableName(className: string, customName: string): string {
return customName ? customName : snakeCase(className);
}
columnName(