Skip to content

Instantly share code, notes, and snippets.

View zane's full-sized avatar

Zane Shelby zane

View GitHub Profile
(<- [?piece1 ?piece2 ?piece3]
((lfs-textline ...) line)
(my-split-fn line :> ?piece1 ?piece2 ?piece3))
(let [subquery (<- [?set ?best-x ?best-y]
(tap ?label ?set ?x ?y)
(score-fn-1 ?x ?y :> ?score-1)
(score-fn-2 ?x ?y :> ?score-2)
(:sort ?score-1 ?score-2)
(:reverse true)
(c/limit [1] :< ?x ?y :> ?best-x ?best-y))]
(?<- [?label ?set ?best-x ?best-y]
(tap ?label ?set _ _)
(subquery ?set ?best-x ?best-y)))
@zane
zane / 1*.txt
Created September 3, 2012 22:16
ERROR: Unavailable: initiator locks for query - Locking failure: Timed out S locking Table:golden.Address. X held by [user dbadmin (select count(*) as rows, max(ExternalSourceID) as last_id, count(CreateDt) as count_dt, max(CreateDt) as last_dt from golden.ExternalSource)]. Your current transaction isolation level is SERIALIZABLE
dear friends,
Scott is headed to Florida, and I'm not sure where any of us will go
for eryudite midday chatter, or last minute reservations at important
restaurants.
Scott's deployment has been needlessly focused on winning Florida, but
most of us who have known him for awhile have heard him claim an
interest in florida steakhouse smthing or other. Rest assured that
when he isn't ranking FL steak houses against smthing smthing, he'll
@zane
zane / gist:1305126
Created October 21, 2011 22:18
Steve Yegge's Platforms Rant
Stevey's Google Platforms Rant
I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.
I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't really have SREs and they make engi
The predominately white progressive intelligentsia don't see Obama clearly because of our racial blind spot. We don't see the role of race in how he seems to understand himself and how other perceive him.
First of all, we think that he understands himself as one of us. A progressive activist, heir to the radical and New Left movements most of us were raised in. He is not; I think that he understands himself (and certainly his real base understands him) as the first African American President. We're thinking Jimmy Carter and Bill Clinton. We should be thinking about Harold Washington, the first African American mayor of Chicago. Washington was elected and immediately faced a solid wall of opposition from most white aldermen in the city. Washington understood his role as breaking down that wall of opposition and assembling a governing majority, which he finally did after his re-election. Unfortunately, he died shortly thereafter. By the way, one of Washington's political strategists was David Axelrod.
How doe
- task: "Implemented a set of web and backend services to support long-running video ad asset transcoding."
- tech: ["C#", Ruby, SOAP, MSMQ]
- task: "Web service development enabled the processing of customer interaction data for video-on-demand advertising campaigns."
- tech: ["C#", Ruby, SOAP, MSMQ]
+ task: Enabled the company to explore new digital ad markets by implementing a suite of web services to support video ad asset transcoding and the processing of customer interaction data.
+ tech: ["C#", SOAP, MSMQ, Windows]
+ task: Improved programmer productivity across the company by designing and implementing a suite of build automation tools.
+ tech: [Ruby, Windows]
"Men," said the fox. "They have guns, and they hunt. It is very disturbing. They also raise chickens. These are their only interests. Are you looking for chickens?"
"No," said the little prince. "I am looking for friends. What does that mean--'tame'?"
"It is an act too often neglected," said the fox. "It means to establish ties."
"'To establish ties'?"
"Just that," said the fox. "To me, you are still nothing more than a little boy who is just like a hundred thousand other little boys. And I have no need of you. And you, on your part, have no need of me. To you, I am nothing more than a fox like a hundred thousand other foxes. But if you tame me, then we shall need each other. To me, you will be unique in all the world. To you, I shall be unique in all the world..."
(defun duplicate-line()
(interactive)
(save-excursion
(move-beginning-of-line 1)
(kill-line)
(yank)
(open-line 1)
(next-line 1)
(yank)))