Skip to content

Instantly share code, notes, and snippets.

View ragnor-rs's full-sized avatar

Renat Sarymsakov ragnor-rs

View GitHub Profile
@ragnor-rs
ragnor-rs / gist:8d20a4036a6c787004e1bde2ba4b9200
Created December 1, 2016 01:12
Foursquare crash on Huawei Watch
12-01 04:08:28.346 13441 13441 D AndroidRuntime: Shutting down VM
12-01 04:08:28.358 13441 13441 E AndroidRuntime: FATAL EXCEPTION: main
12-01 04:08:28.358 13441 13441 E AndroidRuntime: Process: com.joelapenna.foursquared, PID: 13441
12-01 04:08:28.358 13441 13441 E AndroidRuntime: java.lang.IllegalStateException: await must not be called on the UI thread
12-01 04:08:28.358 13441 13441 E AndroidRuntime: at com.google.android.gms.common.internal.b.zza(Unknown Source)
12-01 04:08:28.358 13441 13441 E AndroidRuntime: at com.google.android.gms.internal.y.await(Unknown Source)
12-01 04:08:28.358 13441 13441 E AndroidRuntime: at com.foursquare.wear.support.b.a(SourceFile:171)
12-01 04:08:28.358 13441 13441 E AndroidRuntime: at com.joelapenna.foursquared.wearable.VenueActivity.a(SourceFile:124)
12-01 04:08:28.358 13441 13441 E AndroidRuntime: at com.foursquare.wear.support.b.onDataChanged(SourceFile:147)
12-01 04:08:28.358 13441 13441 E AndroidRuntime: at com.google.android.gms.wearable.internal.bj.a(Unknown S
@ragnor-rs
ragnor-rs / 1
Created December 13, 2016 23:24
https://oauth.vk.com/authorize?client_id=5132630&redirect_uri=http://app/&display=page&response_type=token&scope=friends,photos,wall,offline&v=5.37
package com.zvooq.openplay;
import org.junit.runners.model.InitializationError;
import org.robolectric.RobolectricGradleTestRunner;
import org.robolectric.annotation.Config;
import org.robolectric.manifest.AndroidManifest;
import org.robolectric.res.FileFsFile;
import org.robolectric.util.Logger;
import java.lang.reflect.Method;
@ragnor-rs
ragnor-rs / lastfm_to_gmusic.py
Last active March 21, 2018 15:28 — forked from Timmmm/lastfm_to_gmusic.py
Convert Last.fm loved tracks to your Google Play Store Music Play All Access Subscription Service by Google™. It creates a new playlist rather than adding the tracks to your library willy-nilly. See code for more details.
#!/usr/bin/env python
# Lastfm loved tracks to Google Music All Access playlist. As noted in the comments you do need the All Access subscription thing otherwise it will always find 0 songs.
#
# Written by Tim Hutt, tdhutt@gmail.com, based on this script:
#
# https://gist.github.com/oquno/3664731
#
# Today is the 15th of September 2013.
#
{
"id": 5655255030,
"sha": "c3080a8a7cfc687eef769a9f148ee67c52072ba5",
"name": "ragnor-rs/visum",
"target_url": "https://travis-ci.org/ragnor-rs/visum/builds/442068421?utm_source=github_status&utm_medium=notification",
"context": "continuous-integration/travis-ci/push",
"description": "The Travis CI build is in progress",
"state": "pending",
"commit": {
"sha": "c3080a8a7cfc687eef769a9f148ee67c52072ba5",
import 'dart:async';
final streamController = StreamController<int>();
Future<void> process(int event) async {
print("Processing $event...");
}
Stream<String> mapEventToState(int event) async* {
yield "Loading $event...";
Metric In-house development Outsourcing
Hourly rate (in EU) €80+ per hour €50-60 per hour
Cost of hiring an extra dev (with either HR agency or HR department) €2000 - €4000 €0
Time to hire a tech lead 10+ weeks 0 weeks
Time to hire a regular dev 5+ weeks 0 weeks
Time to establish a dev process 2-4 weeks 0 weeks
Time to renegotiate terms 0-1 weeks 2-4 weeks
Risk In-house development Outsourcing
Risk of decreased dev team member performance due to lack of motivation high none
Risk of development suspension due to lack of backup resources high none
Risk of elevated maintenance costs / project disruption due to low-quality implementation high none
Risk of paying more money than expected (paid vacation / sick leave, compensation in case of contract termination, additional taxes) high none