I hereby claim:
- I am audreyt on github.
- I am au (https://keybase.io/au) on keybase.
- I have a public key whose fingerprint is 66B2 B78E D1B7 7641 4861 D592 B4B3 DD37 3C35 01A0
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
au pasted "for danb ": | |
var initialCoord = '__UP_initial_coord__'; | |
var sview = new SocialCalc.SpreadsheetViewer(); | |
if (initialCoord != 'A1' && /^[A-Z]+\d+$/.test(initialCoord)) { | |
sview.editor.StatusCallback.Socialtext = { | |
func: function (editor, status, arg) { | |
if (status == 'doneposcalc') { | |
var cr = SocialCalc.coordToCr(initialCoord); | |
editor.ScrollRelativeBoth( |
提點子:[Join 平台應提供匯出資料供批次下載]
提議內容或建議事項:
目前 Join 平台為方便機關人員作業,在後台有「打包匯出資料」的功能,但前台沒有開放給民眾使用。
為落實資訊對等原則,並開放民間進行獨立分析作業,建議提供每日「提點子」「眾開講」「來監督」的匯出資料,供批次下載。
利益與影響:
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use File::Basename; | |
use Plack::Builder; | |
use Plack::App::CGIBin; | |
my $basedir = dirname(__FILE__); |
DEBUG = false | |
class Parser | |
constructor: | |
( @receiver = new Receiver | |
, @throwOnError = true | |
, @partial = false | |
, @wrap = @receiver.wrap | |
, @input = "" | |
, @buffer = "" |
mul_n_sum :: String -> Int | |
mul_n_sum str = result | |
where | |
result = sum value_of_lines | |
value_of_lines = [ field1 * field2 | [field1, field2] <- field_lines ] | |
field_lines = [ [read txt1, read txt2] | [txt1, txt2] <- txt_lines ] | |
txt_lines = [ words line | line <- lines str ] |
CKEDITOR.on 'instanceCreated', ({editor}) -> editor.on 'pluginsLoaded', -> | |
{TRISTATE_OFF: ENABLED, TRISTATE_DISABLED: DISABLED} = CKEDITOR | |
RedrawSubMenuName = null | |
OffsetsByLevel = [] | |
row = editor.getMenuItem('tablerow') | |
rowItems = row.getItems() | |
row.getItems = -> | |
sel = editor.getSelection() | |
CKEDITOR.tools.extend { |
au => -> :@theirs, *% { | |
use MONKEY_TYPING; | |
my role TRUE {}; | |
augment class Bool { | |
method Stringy(Bool:D:) { | |
self.^does(TRUE) ?? 'True' !! 'False' | |
} | |
} | |
False but TRUE; | |
}, |
SocialCalc.Formula.FunctionList.FOO = [( | |
(fname, operand, foperand, sheet) -> | |
scf = SocialCalc.Formula | |
value = scf.OperandAsCoord(sheet, foperand) | |
console.log value | |
resulttype = "t" | |
result = value.value + "test" | |
scf.PushOperand(operand, resulttype, result) | |
), 1] |
SocialCalc.Formula.FunctionList.FOO = [( | |
(fname, operand, foperand, sheet) -> | |
scf = SocialCalc.Formula | |
value = scf.OperandValueAndType(sheet, foperand) | |
resulttype = "t" | |
result = value.value + "test" | |
scf.PushOperand(operand, resulttype, result) | |
), 1] |