Skip to content

Instantly share code, notes, and snippets.

View ahornerr's full-sized avatar

Andy Horner ahornerr

View GitHub Profile
#!/bin/bash
LOG_FILE=/var/lib/transmission-daemon/posttorrent.log
# Username for transmission remote.
TR_USERNAME="transmission"
# Password for transmission remote.
TR_PASSWORD=""
# Get current time.
NOW=$(date +%Y-%m-%d\ %H:%M:%S)
DEST_DIR="/media/raid/Processed Torrents/"
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:background="@color/md_white_1000"
android:layout_height="match_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
{
"enabled": true,
"message": "This is a banner with an asset/card action",
"data": [
{
"assetId": "79996014"
}
]
}
compile 'com.android.support:appcompat-v7:19.0.+'
compile 'com.android.support:support-v4:19.0.+'
compile 'com.google.android.gms:play-services:3.+'
compile 'com.google.code.gson:gson:2.2.4'
compile 'commons-codec:commons-codec:1.8'
compile 'commons-io:commons-io:2.4'
compile 'com.github.chrisbanes.actionbarpulltorefresh:library:0.8'
compile 'com.github.chrisbanes.actionbarpulltorefresh:extra-abc:0.8'
compile 'se.emilsjolander:stickylistheaders:+'
compile 'com.googlecode.android-query:android-query:0.25.9'
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gA7Q1JFQVRPUjogZ2QtanBlZyB2MS4wICh1c2luZyBJSkcgSlBFRyB2ODApLCBxdWFsaXR5ID0gNzAK/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8AAEQgBLAGQAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A8jxS4oorE7wpRRSikNC9qUUY+WlApFpAo4pyjmhRxTlHNS2aJCkcipMU3B3CpcVm2bRQ1Rkc04DnpTkGUNOVckmpb
ExpandListGroup elg;
elg = new ExpandListGroup("Resources & Contact", "resources");
adapter.add(new ExpandListChild("Emergency", "emergency"), elg);
adapter.add(new ExpandListChild("Suicide Prevention", "suicideprevention"), elg);
adapter.add(new ExpandListChild("Other", "resourcesother"), elg);
elg = new ExpandListGroup("How-To", "howto");
adapter.add(new ExpandListChild("Tell Suicide Warning Signs", "tellsuicidewarningsigns"), elg);
adapter.add(new ExpandListChild("Talk to a Concerned Person", "talktoaconcernedperson"), elg);
adapter.add(new ExpandListChild("Become a Gatekeeper", "becomeagatekeeper"), elg);
elg = new ExpandListGroup("Messages of Hope", "messagesofhopeview");
var seatJson = [
{
"section_name": "10A",
"row_name": "13",
"seat_num": "1",
"last_seat": "8",
"num_seats": "8",
"gate": "12"
},
//Standard row data
var std_seats = {
"A":1,
"B":2,
"C":3,
"D":4,
"E":5,
"F":6,
"G":7,
"H":8,
$(document).ready(function(){
$(".send").on('click', function() {
//Test if the section contains a number, becaose of 115A, etc
if (isNaN($('.section').val())) {
var section = $('.section').val(); //Contains numbers
} else {
var section = parseInt($('.section').val(), 10); //Radux 10
}
{
"front": "Gamecast",
"eventid": 123456,
"message": "The Reds are taking on the Nationals now. Follow the game LIVE."
}