Skip to content

Instantly share code, notes, and snippets.

import re
# http://atomboy.isa-geek.com/plone/Members/acoil/programing/double-metaphone
from metaphone import dm as double_metaphone
# get the Redis connection
from jellybean.core import redis
import models
# Words which should not be indexed
@bkvirendra
bkvirendra / error.html
Created April 24, 2012 19:11
Twitter like Error Page effect
<html>
<head>
<title>Error</title>
<style>
html {
background:-moz-radial-gradient(center center , ellipse farthest-corner, rgb(71, 134, 179) 0%, rgb(46, 86, 115) 100%) no-repeat fixed 0% 0% transparent;
}
</style>
</head>
<body>
@aboma
aboma / ember.select2.js
Last active February 7, 2021 17:07
select2.js enabled select box view for ember.js
// Select box utilizing Select2 functionality that overrides Ember.Select;
// Define view in the same way that you would an Ember.Select view.
// Additional attributes supported are: width, allowClear, and closeOnSelect;
// Example view:
// {{ view App.Select2
// viewName="fieldValueSelect2"
// prompt="Please select a value list"
// contentBinding="controller.fieldValuesLists"
// optionLabelPath="content.name"
// optionValuePath="content.id"
@abtris
abtris / cluster_setup
Created May 26, 2015 11:36
Elastic Container Service
#!/bin/bash
yum install -y aws-cli
aws s3 cp s3://yours-ecs-config/ecs.config /etc/ecs/ecs.config
echo ECS_CLUSTER= cluster-name-demo >> /etc/ecs/ecs.config

Hang on, I'm not saying flux is dead, or that redux isn't amazing.

Okay ...

Most everybody is familiar with flux by now:

User Interaction --event data-->
  Action Creator --action-->
 Dispatcher --payload--&gt;