Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| # maybe.py - a Pythonic implementation of the Maybe monad | |
| # Copyright (C) 2014. Senko Rasic <[email protected]> | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: | |
| # |
| /** @jsx React.DOM */ | |
| // d3 chart function | |
| // note that this is a higher-order function to | |
| // allowing passing in the component properties/state | |
| update = function(props) { | |
| updateCircle = function(me) { | |
| me | |
| .attr("r", function(d) { return d.r; }) | |
| .attr("cx", function(d) { return 3 + d.r; }) |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| CREATE SCHEMA liberated; | |
| CREATE OR REPLACE FUNCTION public.liberate() | |
| RETURNS boolean | |
| LANGUAGE plv8 | |
| AS $function$ | |
| var tables = plv8.execute( | |
| "select relname FROM pg_catalog.pg_class" | |
| + " c LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace" |
| import re | |
| from django.utils.text import compress_string | |
| from django.utils.cache import patch_vary_headers | |
| from django import http | |
| ''' | |
| EXAMPLE USAGE: | |
| Put this file in a directory called, eg, 'middleware,' inside your django |