This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
set -o nounset | |
# usage: sh travis_flow_app_build.sh instace branch token | |
# example sh travis_flow_app_build.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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copyright (C) $today.year Stichting Akvo (Akvo Foundation) | |
This file is part of Akvo Flow. | |
Akvo Flow is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
Akvo Flow is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
dht22.py | |
Temperature/Humidity monitor using Raspberry Pi and DHT22. | |
Data is displayed at thingspeak.com | |
Original author: Mahesh Venkitachalam at electronut.in | |
Modified by Adam Garbo on December 1, 2016 | |
""" | |
import sys | |
import RPi.GPIO as GPIO | |
from time import sleep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyActivity extends Activity { | |
private Animation a; | |
private ImageView im; | |
/** Called when the activity is first created. */ | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<set xmlns:android="http://schemas.android.com/apk/res/android"> | |
<scale android:fromXScale="1.0" | |
android:fromYScale="1.0" | |
android:toXScale="2.0" | |
android:toYScale="2.0" | |
android:duration="1000"> | |
</scale> | |
<translate |
NewerOlder