Skip to content

Instantly share code, notes, and snippets.

.img-intro-left {
border: 1px solid #aaa;
box-shadow: 10 10 10 #000;
float: left;
margin-right: 10px;
padding: 5px;
}
@heriniaina
heriniaina / gist:9b752e163b125a1a1953
Last active August 29, 2015 14:11
Context menu with object
@Override
protected void onCreate(Bundle savedInstanceState) {
(...)
lv = (ListView) findViewById(R.id.lstResult);
registerForContextMenu(lv);
(...)
}
@Override
@heriniaina
heriniaina / gist:07dc9f9b76b6ea2e5f73
Created December 21, 2014 07:06
Android Action send
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, a_title + ": " + a_text + " \n" + a_link);
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.send_to)));
body {
background-color: yellow; /* when edited */
}
@heriniaina
heriniaina / RVG Player 2 (iframe)
Last active August 29, 2015 14:16
RVG Player 2 (Iframe)
<iframe src="http://radiovazogasy.com/player/"
framespacing="0"
style="border: none; width: 100%"
id="rvgPlayer"
scrolling="no"
width="300"
height="30"
frameborder="no"></iframe>
#define AIA 5 //mandroso
#define AIB 6 //mihemotra
#define BIA 8 //havia
#define BIB 7 //havanana
#define MS 12 // mijanona ny moteur direction
#define JI 10 // jiro
#define KX 9 //klaxon
char vertical; //mandroso sa mihemotra
@heriniaina
heriniaina / Server Backup Shell Script
Last active April 30, 2016 05:35 — forked from AlexBezuska/Server Backup Shell Script
Server Backup script not mine, credit goes to Joshua R Jones
#!/bin/bash
# A Simple Shell Script to Backup Red Hat / CentOS / Fedora / Debian / Ubuntu Apache Webserver and SQL Database
# Path to backup directories
USER="hery"
HOME="/home"
# Store only day of month
DOM=$(date +"%d")
# Temporary backup name
body { font-size: 100%;}
p {font-size: initial;}
/*
Pour les codes ou nom de couleurs:
http://htmlcolorcodes.com/color-names/
*/
/* font plus grand */
body { font-size: 100%;}
/*
A 1 A1
A 2 A2
A 3 A3 1 2 3
B 1 B1 A A1 A2 A3
B 2 B2 => B B1 B2 B3
B 3 B3 C C1 C2 C3
C 1 C1
C 2 C2
//naotin'ny mpianatra
rows =
[{"Jaona", "Math", "3"},
{"Marka", "Math", "5"},
{"Solofo", "Math", "8"},
{"Jaona", "fizika", "4"},
{"Marka", "fizika", "3"},
{"Solofo", "fizika", "10"},
{"Jaona", "siansa", "5"},