https://github.com/rabidaudio/ricky-cms/tree/aa7a04af1ae0b8df5a215d22d560ba412cf55ccb/webapp
TODO make a yeoman generator
// | |
// KeyboardAvoidViewController.swift | |
// | |
// Created by Charles Julian Knight on 2/3/16. | |
// Copyright (c) 2017 Charles Julian Knight | |
// | |
// Permission is hereby granted, free of charge, to any person | |
// obtaining a copy of this software and associated documentation | |
// files (the "Software"), to deal in the Software without restriction, | |
// including without limitation the rights to use, copy, modify, merge, |
reqire 'csv' | |
csv = CSV.parse(File.read('input.csv')) | |
headers = csv.shift | |
objects = csv.map { |row| Hash[headers.zip(row)] } |
require 'csv' | |
require 'json' | |
# parse some json into hash array | |
data = JSON.parse(File.read("in.json")) | |
# get all headers appearing anywhere in data | |
keys = [] | |
data.each do |hash| | |
keys = keys.concat(hash.keys).uniq |
# get mac addresses for nearby devices | |
hcitool scan | |
# bind to a device | |
rfcomm bind 0 00:0D:18:00:00:01 | |
# open tty | |
minicom -D /dev/rfcomm0 | |
# press Ctrl-A Z A to turn line breaks on | |
# close when done: | |
rfcomm release /dev/rfcomm0 |
package audio.rabid.dev.utils; | |
import android.content.Context; | |
import android.text.SpannableString; | |
import android.text.Spanned; | |
import android.text.method.LinkMovementMethod; | |
import android.text.method.MovementMethod; | |
import android.text.style.ClickableSpan; | |
import android.util.AttributeSet; | |
import android.view.View; |
package audio.rabid.dev.utils; | |
import android.content.Context; | |
import android.support.annotation.Nullable; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ArrayAdapter; | |
import java.util.ArrayList; |
/** | |
* A simple little jQuery plugin for doing draggable selections (like http://whenisgood.net/). | |
* Maybe not super performant, but it's jQuery so you already don't care. | |
* | |
* Demo: | |
* http://jsfiddle.net/qa06oab2/ | |
* | |
* Usage: | |
* $(<selector for elements>).dragHighlight(<optional name of class to add, defaults to 'selected'>); | |
* |
https://github.com/rabidaudio/ricky-cms/tree/aa7a04af1ae0b8df5a215d22d560ba412cf55ccb/webapp
TODO make a yeoman generator
<div style="position: fixed; width:1px; left: 50%; top:0; bottom: 0; background-color: black;"></div> | |
<div style="position: fixed; height:1px; left: 0; top:50%; right: 0; background-color: black;"></div> |