(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
protected Control createDialogArea(Composite parent) { | |
... | |
createEntityCombo(); | |
... | |
initBindings(); | |
} | |
private void createEntityCombo(Composite parent) { | |
final ComboViewer entityCombo = new ComboViewer(parent, SWT.VERTICAL | SWT.DROP_DOWN | SWT.BORDER | SWT.READ_ONLY); | |
final GridData entityComboLayoutData = new GridData(SWT.END, SWT.CENTER, false, false); |
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.gooddata</groupId> | |
<artifactId>performance-tests</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
<name>${project.artifactId}</name> | |
<properties> |
#!/usr/bin/env bash | |
# clean-up /etc/hosts if multiple hostname points to localhost - required for Mac OS using "--add-host 'localhost:10.0.2.2'" | |
localhostCount=`grep localhost /etc/hosts | wc -l` | |
if [[ $localhostCount -gt 2 ]];then | |
cat /etc/hosts | sed '/127.0.0.1.*/d' > hosts.tmp | |
cat hosts.tmp > /etc/hosts | |
rm hosts.tmp | |
fi |
package travel.snapshot.dp.ota.configuration; | |
import org.apache.commons.dbcp2.ConnectionFactory; | |
import org.apache.commons.dbcp2.DriverManagerConnectionFactory; | |
import org.apache.commons.dbcp2.PoolableConnection; | |
import org.apache.commons.dbcp2.PoolableConnectionFactory; | |
import org.apache.commons.dbcp2.PoolingDataSource; | |
import org.apache.commons.pool2.ObjectPool; | |
import org.apache.commons.pool2.impl.GenericObjectPool; | |
import org.apache.commons.pool2.impl.GenericObjectPoolConfig; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."
/* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
closely match default behavior on Windows systems. This makes the Command key | |
behave like Windows Control key. To use Control instead of Command, either swap | |
Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... | |
or replace @ with ^ in this file. | |
Here is a rough cheatsheet for syntax. | |
Key Modifiers |
(require '[visual-regression :as vr]) | |
(deftask compare-screenshots | |
"Run visual regression specs over the devcards." | |
(let [tmp (core/tmp-dir!)] | |
(fn [next-task] | |
(fn [file-set] | |
(vr/compare-cards "vr") | |
(next-task file-set))))) |
A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats. The link points back at them.
If you are talking about the aspect of pattern matching that acts as a conditional based upon structure, I'm not a big fan. I feel about them the way I do about switch statements - they're brittle and