Skip to content

Instantly share code, notes, and snippets.

Avatar

Riccardo Ciovati rciovati

View GitHub Profile
@rciovati
rciovati / Darcula.icls
Created Feb 12, 2022
AS/Intellij logcat colors
View Darcula.icls
<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 / MyRequest.java
Last active Aug 9, 2018
POST request with robospice
View MyRequest.java
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(){
@rciovati
rciovati / MediumTestsIntrumentationTestRunner.java
Last active Aug 22, 2016
Running small or medium tests with connectedInstrumentTest task
View MediumTestsIntrumentationTestRunner.java
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 Nov 13, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View README.md

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 Dec 15, 2015
WP8: Obtain the current user location (or ask the user to activate location services) and perform a reverse geocode request.
View MainPage.xaml.cs
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 / MainActivity.java
Created Nov 26, 2015 — forked from ManuelPeinado/MainActivity.java
Fading action bar effect using the new Toolbar class from the support library
View MainActivity.java
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 Sep 13, 2014
Hackerrank.com Sample Go Problem
View hello.go
package main
import (
"fmt"
)
func main() {
times := readInt()
for i := 0; i < times; i++ {
fmt.Println("hello world")