Skip to content

Instantly share code, notes, and snippets.

Avatar

Renat Sarymsakov ragnor-rs

View GitHub Profile
View gist:b33fbda8da6724f4e203928ce2233ea4
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...";
View gist:08fcf9c82cb61ec0974e369f65c87f9a
{
"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",
@ragnor-rs
ragnor-rs / lastfm_to_gmusic.py
Last active Mar 21, 2018 — 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.
View lastfm_to_gmusic.py
#!/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.
#
View RobolectricGradle3TestRunner.java
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;
View 1
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
View gist:8d20a4036a6c787004e1bde2ba4b9200
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
You can’t perform that action at this time.