Skip to content

Instantly share code, notes, and snippets.


Valeria Rogatchevskikh valllllll2000

Block or report user

Report or block valllllll2000

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View scaletranslate.xml
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="">
<scale android:fromXScale="1.0"
valllllll2000 /
Created Oct 27, 2012
MyActivity for Animations
public class MyActivity extends Activity {
private Animation a;
private ImageView im;
/** Called when the activity is first created. */
public void onCreate(Bundle savedInstanceState) {
valllllll2000 /
Last active Nov 25, 2016
Post Ubuntu Installation
#ubunut 13.04 or 12.04
#This is my personal script tht I use after installation
#Please before running, read through to make sure this is what you want
sudo apt-get install synaptic
#remove shopping lenses
sudo apt-get autoremove unity-lens-shopping
sudo apt-get autoremove unity-lens-music
valllllll2000 /
Last active Oct 27, 2018
Send raspberry pi data to thinkspeak
Temperature/Humidity monitor using Raspberry Pi and DHT22.
Data is displayed at
Original author: Mahesh Venkitachalam at
Modified by Adam Garbo on December 1, 2016
import sys
import RPi.GPIO as GPIO
from time import sleep
valllllll2000 / pre-commit
Last active Feb 2, 2019
Check if copyright statements include the current year, place in .git/hooks folder
View pre-commit
# Check if copyright statements include the current year
files=`git diff --cached --name-only`
year=`date +"%Y"`
for f in $files; do
head -10 $f | grep -i copyright 2>&1 1>/dev/null || continue
View Akvo Flow Copyright
valllllll2000 /
Created Feb 6, 2019
path settings for Android dev
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
export PATH=/home/valeria/Android/Sdk/tools:${PATH}
export PATH=/home/valeria/Android/Sdk/platform-tools:${PATH}
export ANDROID_HOME=/home/valeria/Android/Sdk
valllllll2000 /
Created Feb 14, 2019
trigger travis to deploy app to instance
set -e
set -o nounset
# usage: sh instace branch token
# example sh akvoflow-uat1 release/2.7.1 xxx
# get your token from Travis website, in your user settings
# for a deploy in production use the master branch
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
VERSION="$(cat app/ | grep -o "VERSION_CODE=\+[0-9]\+" | cut -c 14-)"
sed -i "s/\(VERSION_CODE=\).*\$/\1${VERSION_NEW}/" app/
You can’t perform that action at this time.