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
<<< MultipleSelectorRow<String>() { | |
let values = appliance.tags!.map(processTagValues) | |
print(values) | |
let options = tags.map(processTagOptions) | |
$0.title = "Tags" | |
//XXX needs to be a list fetched | |
$0.options = options | |
$0.value = Set(values) | |
$0.tag = "tags" | |
}.onChange { [weak self] row in |
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
(function ($) { | |
$.fn.serializeAllArray = function () { | |
var serialize_array = | |
$('input',this).toArray().reduce(function(acc, input) { | |
var form_attr = input.name; | |
var form_value = $(input).val(); | |
if ($(input).is(":checkbox") && !$(input).is(":checked")) { | |
form_value = 0; | |
} |
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
#!/usr/local/bin/bash | |
filename=$(basename $1 | sed s/\.[^\.]*$//) | |
pathname=$(dirname $1) | |
echo $pathname | |
avconv -i $1 -map 0:v -map 0:a -vcodec copy -acodec ac3 -b:a 640k -metadata title="$filename" $pathname/$filename.m4v |
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
### Keybase proof | |
I hereby claim: | |
* I am mafigit on github. | |
* I am mafi (https://keybase.io/mafi) on keybase. | |
* I have a public key whose fingerprint is 6D46 DD95 198F 4D47 ED98 7A46 99B0 71DD DC56 E5A3 | |
To claim this, I am signing this object: |