Skip to content

Instantly share code, notes, and snippets.

View spockz's full-sized avatar

Alessandro Vermeulen spockz

View GitHub Profile
import com.twitter.finagle.Service;
import com.twitter.util.Future;
import com.twitter.util.Promise;
import rx.Observable;
import rx.Observer;
import rx.Subscription;
public class Convert {
static public <Res> Future<Res> fromObservable(final Observable<Res> observable) {

In de doormat werkt het selecteren van links niet meer bij internal references. Op basis van dit issue heb ik de import van de widget vervangen naar een import van de widget uit de archetypes, zoals ook in de comment te lezen is. Dit heeft echter niet mogen baten.

Hebben jullie nog ideeën?

Als het goed is hebben jullie ook nog een 0.8 branch. Zullen we die in deze repository mergen, of doen jullie dat zelf?

@spockz
spockz / gist:5982527
Created July 12, 2013 07:14
Custom stylesheet to get rid of the ugly yahoo toolbar at Flickr! (Not tested for compatibility with every other site, ymmv). Use this as a custom stylesheet in Safari. (Prefs -> Advanced -> Stylesheet; restart Safari) Or use any of the custom stylesheet plugins out there: stylish, [others](http://lmgtfy.com/?q=user+css+plugin)
body.with-eyebrow #eyebrow {
display: none;
}
body.with-eyebrow #global-nav {
top: 0 !important;
}
data R v where
...
-- Notice the extra R as upposed to Fix
newtype RFix f = RIn { out :: R (f (RFix f)) }
instance Monad R where
...
foo :: (f (RFix f) -> R b) -> RFix f -> R b
{-# LANGUAGE GADTs, ScopedTypeVariables #-}
module Main where
import Prelude (Either(..), Bool, Int, flip, undefined)
import Data.Typeable
import Control.Concurrent.MVar
-- Bug
@spockz
spockz / Subfloats.lhs
Last active December 11, 2015 13:08
The use of spec or code environments in subfigures breaks labeling.
\documentclass{article}
\usepackage{subcaption}
%include polycode.fmt
%if False
\begin{code}
module Main where
\end{code}
%endif
\begin{document}
DataMapper::Is::ReadOnly::Error in Home#index
Showing /Volumes/SSD Data/BINK/rekenservices/app/views/home/index.html.erb where line #2 raised:
ReadOnly resource cannot be modified
Extracted source (around line #2):
1: <%- i = 0 %>
2: <% data = group_by_category(RekenserviceRated.all(:order => [:rating.desc])) %>
3: <% not_used_categories = Category.all(:id.not => data.keys.map{|c| c.id })%>
➔ brew doctor
Your system is raring to brew.
#! /usr/bin/ruby
require 'readline'
def command?(command)
system("which #{ command} > /dev/null 2>&1")
end
def library?(lib)
system("ghc-pkg list | grep #{lib} > /dev/null 2>&1")
end
Holland's got talent voor nieuwsfotografen door NVF en ANP
AMSTERDAM - Jonge fotojournalisten krijgen volgend jaar de kans om mee te
draaien in een talentenpool bij ANP Foto. Door de wol geverfde nieuwsfotografen
nemen de talenten onder hun hoede. De Nederlandse Vereniging van
Fotojournalisten (NVF) en ANP Foto schrijven een wedstrijd uit, op zoek naar
twee kandidaten met de juiste journalistieke blik.
De NVF wil jongeren blijven interesseren voor de fotojournalistiek. "Het is
belangrijk dat het vak vitaal blijft", zegt voorzitter Rimmer Mulder. "Nieuwe