Skip to content

Instantly share code, notes, and snippets.


Geoff Dalgas gdalgas

View GitHub Profile
View ImportCSV.js
function importCSVFromGmail() {
var threads ="redacted");
var message = threads[0].getMessages().pop();
var attachment = message.getAttachments()[0];
if (attachment != null) {
var attachName = attachment.getName();
// Is the attachment a CSV file

Keybase proof

I hereby claim:

  • I am gdalgas on github.
  • I am gdalgas ( on keybase.
  • I have a public key whose fingerprint is 0413 B99B D3D2 1AB4 BE3A A2DD B0B0 5E2E CFA8 1CDD

To claim this, I am signing this object:

gdalgas / gist:168f9e1fc1c966ddc4419da78694dba7
Created January 3, 2017 00:12
Christmas Tree Lights 2016
View gist:168f9e1fc1c966ddc4419da78694dba7
#include <IRremote.h>
#include "FastLED.h"
// FastLED "100-lines-of-code" demo reel, showing just a few
// of the kinds of animation patterns you can quickly and easily
// compose using FastLED.
gdalgas / mathjax-editing.js
Last active April 1, 2023 08:10
StackExchange MathJax editing code
View mathjax-editing.js
// The MIT License (MIT)
// Copyright (c) 2016 Stack Exchange
// 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, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
gdalgas / gist:2372262
Created April 13, 2012 00:27
Test Gist
View gist:2372262
string upgrade_file
= new StreamReader(Assembly.GetExecutingAssembly().GetManifestResourceStream(
+ ".schemas.template.db_upgrades.txt")
var a += 1;
View gist:1725969
(Select SUM(VoterRepChange)
From Posts2Votes v
Where UserId = @Id
And VoteTypeId = 1) as AskerAcceptsAnswer,
(Select SUM(-VoterRepChange)
From Posts2Votes v
Where UserId = @Id
And DeletionDate Is Not Null
And VoteTypeId = 1) as AskerUnacceptsAnswer,