Skip to content

Instantly share code, notes, and snippets.

View fiskurgit's full-sized avatar
🌑
...

öppenteknikstudio fiskurgit

🌑
...
View GitHub Profile
@fiskurgit
fiskurgit / ThreeDoubleGridsStrict.pde
Created May 3, 2016 10:28
3 Double Grids 0°, 30°, 60° by Francois Morellet rendered by processing.
float spacer = 20;
void setup(){
size(640, 640);
noLoop();
stroke(30, 80);
}
void draw(){
background(220);
int lineHeight = 7;
float lineSpace = 2;
void setup(){
size(640, 640);
noLoop();
stroke(30, 100);
}
void draw(){
@fiskurgit
fiskurgit / Googledontcareaboutdeafusers.md
Last active April 25, 2016 20:34
Google Don't Care About Deaf Users

#Google Don't Care About Deaf Users

Five or six years ago my body decided to fuse the bones in my inner ear, a hereditary disease called Otosclerosis. I had two Stapedectomy operations, one was a success giving me sub-par hearing in my right ear, the other failed leaving me with a deaf left ear.

There are two situations where this moderate hearing loss causes problems; in any group situations I can't filter out background noise, and any cross-talk turns into a disorientating cacophony, and watching TV - I need subtitles, without them by the time the volume is loud enough for me to parse the speech the speakers start distorting and it's uncomfortably loud.

There are three services I use regularly to stream films: Amazon, Netflix, and Google Play. Of these services only Netflix has a good record of supporting deaf users - I'd guess that 95% of what I watch on Netflix has subtitles. It's been years since these servic

Polyline pathOverlay = null;
private void updateRoute(final Context context, final MapView osmMap, final int color){
updateThread = new Thread(new Runnable() {
public void run() {
final ArrayList<GeoPoint> zoomPoints = new ArrayList<GeoPoint>(routeGeoPoints);
//Remove any points that are offscreen
removeHiddenPoints(osmMap, zoomPoints);
private Thread updateThread = null;
//...
public void drawRoute(final Context context, final MapView osmMap, final int color){
if(updateThread == null || !updateThread.isAlive()){
updateRoute(context, osmMap, color);
}
}
osmMap.setMapListener(new MapListener() {
@Override
public boolean onScroll(ScrollEvent event) {
drawRoute(MapActivity.this, osmMap, pathColor);
return false;
}
@Override
public boolean onZoom(ZoomEvent event) {
drawRoute(MapActivity.this, osmMap, pathColor);
<org.osmdroid.views.MapView
android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layerType="software"
/>
<org.osmdroid.views.MapView
android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layerType="software"
/>
package eu.fiskur.floodmonitoringapi;
import junit.framework.Assert;
import org.junit.Test;
import eu.fiskur.floodmonitoringapi.alerts.FloodAreaExpanded;
import eu.fiskur.floodmonitoringapi.alerts.FloodWarning;
public class FloodWarningTests {
This file has been truncated, but you can view the full file.
__DEV__=
true;
__BUNDLE_START_TIME__=Date.now();
(
function(global){
var modules=Object.create(null);
var inGuard=false;