Skip to content

Instantly share code, notes, and snippets.

View poblish's full-sized avatar

Andrew Regan poblish

View GitHub Profile
@poblish
poblish / Streaming.java
Last active September 24, 2019 09:04
Kotlin article: streaming example
// This...
repo.findById(id)
.stream()
.filter(each -> each.getEntities().remove(SPECIAL_ROLE))
.collect(Collectors.toList());
@poblish
poblish / MyRequest.kt
Created September 24, 2019 09:01
Kotlin article: MyRequest.kt
class MyRequest(val id: String, val email: String, val isEnabled: Boolean)
@poblish
poblish / MyRequest.java
Created September 24, 2019 08:59
Kotlin article: MyRequest.java
public class MyRequest {
private String id;
private String email;
private boolean enabled;
public MyRequest(String id, String email, boolean enabled) {
this.id = id;
this.email = email;
this.enabled = enabled;
}
@poblish
poblish / keybase.md
Last active November 24, 2016 19:05

Keybase proof

I hereby claim:

  • I am poblish on github.
  • I am aregan (https://keybase.io/aregan) on keybase.
  • I have a public key whose fingerprint is EBDF 4879 BC50 B48C EAF1 3044 48EE 9EF8 7256 1F07

To claim this, I am signing this object:

11:11:46.722 [INFO] Checking for updates
11:11:47.201 [DEBUG] Database dialect: H2
11:11:48.487 [DEBUG] Database dialect: H2
11:11:51.525 [INFO] NVD CVE requires several updates; this could take a couple of minutes.
11:11:51.529 [INFO] Download Started for NVD CVE - 2002
11:11:51.529 [DEBUG] Attempting download of https://nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2002.xml.gz
11:11:51.530 [INFO] Download Started for NVD CVE - 2003
11:11:51.530 [DEBUG] Attempting download of https://nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2003.xml.gz
11:11:51.544 [INFO] Download Started for NVD CVE - 2004
11:11:51.544 [DEBUG] Attempting download of https://nvd.nist.gov/feeds/xml/cve/nvdcve-2.0-2004.xml.gz
@poblish
poblish / 3D Testing.md
Last active January 13, 2016 16:26
3D testing

Background

"It's one of the various dimension of regression testing: across environments, rather than through time, or across code revisions. It's something I've already started doing with Blah: comparing a, b, and c versions in the way they respond to particular inputs, attempting to diff the metrics, the generated outputs. I guess this might provide a higher level or more structured way of defining what is tested, managing the cluster, reconciling the diffs etc.

You almost need a new DSL to describe the features of a system, the various exposed endpoints/outputs, and define a differ for each, one that's able to turn the diffs into prioritised blahs (which could be sitecode changes, regressions, env changes, noise). It could then be run against other systems across each change-dimension. Each blah could then be tagged (closed, resolved) with either a Git commit, a JIRA ticket, or an explanatory. 3D reg testing, perhaps."

Goal

Represent software changes in multiple dimensions (use matrices!). Goal

@poblish
poblish / gist:1590780
Created January 10, 2012 19:47
#BannedList test #5
Labour needs to be more radical on high pay and low pay @ http://www.newstatesman.com/blogs/the-staggers/2012/01/minimum-wage-low-pay-economic
Posted by Andrew Harrop - 10 January 2012 15:39
Miliband should should promise to link the minimum wage to a new top pay index.
FTSE 100 directors awarded themselves an average pay rise of 49 per cent last year. Photograph: Getty Images.
When FTSE directors awarded themselves an average pay rise of 49 per cent the die was cast. Even the Conservatives had to concede to action. But this weekend, as the political parties scrambled to out-tough each other on boardroom pay, the net was spread narrowly. It was FTSE boardrooms, not top-earners more generally, who were the political lightening-rod. Good politics perhaps, but not enough to herald a better, fairer capitalism. Next Saturday's Fabian New Year Conference, 'The Economic Alternative' will be asking what it will take to build a responsible economy. Action on pay is part of the answer.
The left needs to take this we
@poblish
poblish / gist:1590773
Created January 10, 2012 19:46
#BannedList test #4
Ed Miliband must trust his instincts and stand up for real change @ http://www.newstatesman.com/uk-politics/2012/01/labour-change-economy-miliband
Maurice Glasman
Published 05 January 2012
67 commentsPrint versionEmail a friendListenRSS
If Ed Miliband is to seize the initiative in 2012, this has to be a year of surprises. He should jettison Labour orthodoxy, reach out to people and grasp the ideas that will reverse the national decline.
On the face of it, these look like bad times for Labour and for Ed Miliband's leadership. There seems to be no strategy, no narrative and little energy. Old faces from the Brown era still dominate the shadow cabinet and they seem stuck in defending Labour's record in all the wrong ways - we didn't spend too much money, we'll cut less fast and less far, but we can't tell you how.
Labour is apparently pursuing a sectional agenda based on the idea that disaffected Liberal Democrats and public-sector employees will give Labour a majority next time around. But we have not won, a
@poblish
poblish / gist:1584824
Created January 9, 2012 20:41
#BannedList test #3
Why I think we need more politicians like Ed @ http://www.newstatesman.com/blogs/the-staggers/2012/01/miliband-government-interests
Posted by Andy Slaughter - 09 January 2012 14:08
Miliband has not blinked in the face of vested interests when they stand in the way of progress.
Labour leader Ed Miliband. Photograph: Getty Images.
A newscycle focussed on the short-term is a disincentive for politicians to look any further than scoring as many points as possible in the days, even hours, ahead. Breaking news, Twitter; a constant stream of reaction and counter-reaction leave little time for analysis or original thought. The Westminster version of this is PMQs. Good political theatre, proof that the protagonists have quick wits or quick-witted gag writers, but it does nothing to identify the vision or leadership that will define the nation's choice at the next election.
Leaders need to have foresight and ambitious goals, especially now, post-financial crisis, when it is no longer business as usual. We are facin
@poblish
poblish / gist:1580203
Created January 9, 2012 00:02
#BannedList test #1
A basket of
A package of
A raft of
A range of
A sense of
A series of
A fine art
Affordable
Any time soon
any way, shape or form