Skip to content

Instantly share code, notes, and snippets.

Ozires R.S.O.F oziresrds

Block or report user

Report or block oziresrds

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@oziresrds
oziresrds / Remove all blocks in rtf code
Last active Jun 28, 2017
Remove all blocks in rtf fonttbl code
View Remove all blocks in rtf code
function removeAllBlocksInRtfFonttblCode(rtf) {
let newRtf = '', firstIndex, lastIndex, count, tagOpen = 1;
firstIndex = rtf.indexOf('\\fonttbl');
count = firstIndex;
while(count < rtf.length && tagOpen > 0) {
if(rtf[count] == '{')
tagOpen++;
else if(rtf[count] == '}') {
if(tagOpen > 1)
View jsonGenerator - MockWorklist
[
'{{ repeat(200) }}',
{
atendimento:'AN{{ integer(100, 999) }}{{ integer(100, 999) }}{{ integer(100, 999) }}{{ integer(100, 999) }}{{ integer(10, 99) }}',
unidade: '{{ random("Israelita", "RiosDOR", "QuintaDOR", "Assunção", "Caxias", "Vivalle", "CopaDOR") }}',
dataPedido: "{{ integer(1, 28) }}/{{ integer(1, 12) }}/{{ integer(2016, 2017) }} {{ integer(0, 23) }}:{{ integer(0, 59) }}",
dataRealizacao: "{{ integer(1, 28) }}/{{ integer(1, 12) }}/{{ integer(2016, 2017) }} {{ integer(0, 23) }}:{{ integer(0, 59) }}",
dataLaudo: "{{ integer(1, 28) }}/{{ integer(1, 12) }}/{{ integer(2016, 2017) }} {{ integer(0, 23) }}:{{ integer(0, 59) }}",
dataLiberacao: "{{ integer(1, 28) }}/{{ integer(1, 12) }}/{{ integer(2016, 2017) }} {{ integer(0, 23) }}:{{ integer(0, 59) }}",
paciente: "{{ firstName() }} {{ surname() }}",
You can’t perform that action at this time.