Skip to content

Instantly share code, notes, and snippets.

@bmtKIA6
bmtKIA6 / childModel.js
Created August 3, 2016 00:31 — forked from thecaddy/childModel.js
A sequelize plugin to support postgres inherited tables with models
//THIS MODEL INHERITS FROM THE OTHER TABLE
import inheritFrom form './inheritFrom'
import inherittedModel from './inherittedModel'
export default function(sequelize, DataTypes) {
const ChildModel = inheritFrom(sequelize, DataTypes)('childModel', inherittedModel, {
// define child model specific properties here
id: Sequelize.INTEGER,
some_model_id: Sequelize.INTEGER
@bmtKIA6
bmtKIA6 / workflow.groovy
Created June 9, 2016 01:07 — forked from cyrille-leclerc/workflow.groovy
W-JAX 14- Pimp Your Continuous Delivery Pipeline with the New Jenkins Workflow Engine
def qaCatalinaBase = '/opt/apache-tomcat-8-qa'
def qaHttpPort = 8081
def stagingCatalinaBase = '/opt/apache-tomcat-8-staging'
def stagingHttpPort = 8082
def perfsCatalinaBase = '/opt/apache-tomcat-8-perfs'
def perfsHttpPort = 8084
def productionCatalinaBase = '/opt/apache-tomcat-8-production'
<?php
class SudokuSolver {
private $board;
public function validate($board) {
<!DOCTYPE html>
<html lang="en" itemscope itemtype="http://schema.org/">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Sports - NY Daily News</title>
<meta property="fb:app_id" content="107464888913"/>
<meta property="fb:admins" content="1594068001"/>
<meta property="og:site_name" content="NY Daily News"/>