Skip to content

Instantly share code, notes, and snippets.

View fabriciomurta's full-sized avatar

Fabrício Zimmerer Murta fabriciomurta

View GitHub Profile
@fabriciomurta
fabriciomurta / gdocs2md.gs
Created June 7, 2017 19:02
Gdocs2md converter with three changes: shifts up heading styles (heading 1, 2, 3), considers Consolas font as backticked-text and lists does not have double line breaks
/* This script has the following changes specific to this document:
* Heading will start with ## for Heading 1 (one more head level)
* Considers the Consolas font as an alternative to backtick.
*/
/*
Usage:
Adding this script to your doc:
- Tools > Script Manager > New
- Select "Blank Project", then paste this code in and save.
@fabriciomurta
fabriciomurta / 60744-groupingListFilter.aspx
Created March 18, 2016 16:18
60744 - Problem when using listfilter
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Collections.Generic" %>
<!DOCTYPE html>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
this.Store1.DataSource = new List<Project>
@fabriciomurta
fabriciomurta / gist:054011d49119ce4fac2d
Last active November 30, 2015 11:29
Test [bridgedotnet/Bridge#510]
Test
@fabriciomurta
fabriciomurta / fastGoalDataStructure.cs
Created March 3, 2015 04:19
Revisão da conversão de valores de metas compostas.
protected void convertCompositeGoalValue(List<fastGoalDataStructure.dadosMeta.valoresMeta> values)
{
foreach (var value in values)
{
if (!value.na && value.pontualPrevisto.HasValue)
{
if (value.pontualRealizado.HasValue)
value.pontualRealizado = value.acumRealizado = 100 + value.getDeviation(eVisualizacaoValores.ValoresPontuais).Item2??0;
if (value.pontualFC1.HasValue)
@fabriciomurta
fabriciomurta / 53451_loaderForPDF.aspx
Created February 17, 2015 19:45
53451_loaderForPDF.aspx
<script runat="server">
private Window CreateWindow(string id)
{
Window win = new Window()
{
ID = id,
Width = Unit.Pixel(1000),
Height = Unit.Pixel(600),
Modal = true,
AutoRender = false,