Skip to content

Instantly share code, notes, and snippets.

View rciovati's full-sized avatar

Riccardo Ciovati rciovati

View GitHub Profile
@rciovati
rciovati / Darcula.icls
Created February 12, 2022 13:32
AS/Intellij logcat colors
<scheme name="Darcula" version="142" parent_scheme="Darcula">
<metaInfo>
<property name="created">2022-02-02T19:31:50</property>
<property name="ide">Idea</property>
<property name="ideVersion">2021.3.1.0.0</property>
<property name="modified">2022-02-02T19:31:58</property>
<property name="originalScheme">_@user_Darcula</property>
</metaInfo>
<attributes>
<option name="LOGCAT_ASSERT_OUTPUT">
@rciovati
rciovati / MainActivity.java
Created November 26, 2015 22:16 — forked from ManuelPeinado/MainActivity.java
Fading action bar effect using the new Toolbar class from the support library
package com.github.manuelpeinado.toolbartest;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.View;
@rciovati
rciovati / hello.go
Created September 13, 2014 17:58
Hackerrank.com Sample Go Problem
package main
import (
"fmt"
)
func main() {
times := readInt()
for i := 0; i < times; i++ {
fmt.Println("hello world")
@rciovati
rciovati / MediumTestsIntrumentationTestRunner.java
Last active August 22, 2016 11:06
Running small or medium tests with connectedInstrumentTest task
package it.mypackage.test.runner;
import android.os.Bundle;
import android.test.InstrumentationTestRunner;
public class MediumTestsIntrumentationTestRunner extends InstrumentationTestRunner {
@Override
public void onCreate(Bundle arguments) {
@rciovati
rciovati / 0_reuse_code.js
Created November 13, 2013 15:48
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Quickly deploy Volley to your maven repository. Volley is a library that makes networking for Android apps easier and most importantly, faster. For an example to use Volley in your app, check out Folly.

Steps

git clone https://android.googlesource.com/platform/frameworks/volley
cd volley
(download the pom.xml)
mvn clean install
@rciovati
rciovati / MainPage.xaml.cs
Last active December 15, 2015 19:29
WP8: Obtain the current user location (or ask the user to activate location services) and perform a reverse geocode request.
using System;
using System.Linq;
using System.Windows;
using Microsoft.Phone.Controls;
using Windows.Devices.Geolocation;
using Microsoft.Phone.Maps.Services;
using System.Text;
namespace ReverseGeoCodingWP8
{
@rciovati
rciovati / MyRequest.java
Last active August 9, 2018 17:54
POST request with robospice
import com.octo.android.robospice.request.springandroid.SpringAndroidSpiceRequest;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
public class MyRequest extends SpringAndroidSpiceRequest<MyResponse> {
public MyRequest(){