Skip to content

Instantly share code, notes, and snippets.

View sudish's full-sized avatar

Sudish Joseph sudish

View GitHub Profile

Britain needs a new era of serious leaders

Rory Stewart JANUARY 21 2022

The writer, a former Conservative cabinet minister, is on the Advisory Board of The Britain Project

Boris Johnson is a terrible prime minister and a worse human being. But he is not a monster newly sprung from a rent between this world and the next. Twenty years have passed since the Conservative party first selected him as a candidate. Michael Howard and David Cameron made him a shadow minister, and Theresa May gave him the Foreign Office. Thirty years of celebrity made him famous for his mendacity, indifference to detail, poor administration, and inveterate betrayal of every personal commitment. Yet, knowing this, the majority of Conservative MPs, and party members, still voted for him to be prime minister. He is not, therefore, an aberration, but a product of a system that will continue to produce terrible politicians long after he is gone.

MPs selected him because they would not risk the p

Britain needs a new era of serious leaders

Rory Stewart JANUARY 21 2022

The writer, a former Conservative cabinet minister, is on the Advisory Board of The Britain Project

Boris Johnson is a terrible prime minister and a worse human being. But he is not a monster newly sprung from a rent between this world and the next. Twenty years have passed since the Conservative party first selected him as a candidate. Michael Howard and David Cameron made him a shadow minister, and Theresa May gave him the Foreign Office. Thirty years of celebrity made him famous for his mendacity, indifference to detail, poor administration, and inveterate betrayal of every personal commitment. Yet, knowing this, the majority of Conservative MPs, and party members, still voted for him to be prime minister. He is not, therefore, an aberration, but a product of a system that will continue to produce terrible politicians long after he is gone.

MPs selected him because they would not risk the p

@sudish
sudish / darwin.el
Created May 18, 2012 14:06
Emacs mac-port customizations
;; Useful helper function
(defun sj/copy-keys-from-keymap (from-map keys &optional to-map)
"Copy the definitions of key sequences in `keys' from `from-map' to `to-map'.
A new keymap is created if `to-map' is nil. `keys' should be a
list of the keys whose bindings are to be copied. Each entry may
also be of the form (from-key . to-key) if the keys differ in the
two keymaps.
Example:
(\"a\" [backspace]
-- Power series in Haskell from Doug McIlroy's beautiful "Power
-- Series, Power Serious" functional pearl and his subsequent "Music
-- of Streams" paper.
module Main where
import Ratio (Rational)
infixl 7 .*
default (Integer, Rational, Double)
@sudish
sudish / gist:48199
Created January 16, 2009 23:10
If 60% chance of picking winner of a game, and 32 games played, what are odds of picking 12 of 16 correctly?
Update: All of this turns out to be nothing more than a classic
Binomial Distribution: http://en.wikipedia.org/wiki/Binomial_distribution
Jim asked: "If 60% chance of picking winner of a game, and 32 games
played, what are odds of picking 12 of 16 correctly?" (I'm going to
ignore the "32 games played" and assume you meant 16 played, since I
don't understand the 12 of 16 of 32 statement as it stands. I.e., how
do you pick the 16 out of the 32?)
Assumption: every game is independent of the other and the only
@sudish
sudish / gist:44197
Created January 7, 2009 06:29
For Sid's php project.
(add-hook 'php-mode-hook
(defun sk/php-mode-hook ()
(setq indent-tabs-mode t
c-basic-offset 4
tab-width 4)))