Skip to content

Instantly share code, notes, and snippets.

View cmundi's full-sized avatar

C. Mundi cmundi

  • someplace quiet
View GitHub Profile
@cmundi
cmundi / app.js
Last active August 10, 2019 20:13
Google API Service Account Demo for Gmail and Drive
//
// Using Google Drive and Google Mail with a Service Account.
//
// Amswer to http://stackoverflow.com/questions/37902022/gmail-api-with-nodejs-send-gives-400-bad-request?answertab=active#tab-top
//
// A service account is pretty much like a normal Google account, except that yo can't get get a "shell" like
// the Gmail webapp or Drive webapp into it. To manage email with a Service Account, the administrator for the
// domain which owns the email addresses must enable API access for the Service Account. That's described in my
// SO post and the links therein. Assuming you've set all that up, it's time to have some fun!
//
@cmundi
cmundi / Notes
Last active August 29, 2015 13:58
Segfault with Julia compiled with LLVM 3.4
This appears to have *nothing* to do with Gadfly.
Platform is debian jessie (gcc 4.8.2)
Architecture is Core2 Duo (CONROE) -- yes, really, *that* old. :/ Have not repeated on newer hardware.
According to `dpkg -l` I have the following installed:
```
libcairo2 1.12.16-2
libpango-1.0-0 1.36.0-1
@cmundi
cmundi / backtrace
Created March 30, 2014 19:15
segfault when creating a PNG (bit not SVG) with Gadfly
cmundi@space$ git describe
v0.2.0-2243-gf684174
cmundi@space$ gdb --ex run --args julia test_gadfly.jl
GNU gdb (GDB) 7.6.1 (Debian 7.6.1-1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
@cmundi
cmundi / OpenSourceEconomy.ipynb
Last active October 3, 2023 04:38
XKCD-style plots in Julia (using PyPlot,jl to leverage matpolotlib)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cmundi
cmundi / CMakeLists.txt
Created April 20, 2012 16:43
emscripten_issue_400
# Demonstration for kripken/emscripten issue #400
#
# Save this file as CMakeLists.txt in a new directory $(TESTDIR)
# $ cd $(TESTDIR)
# $ cmake . => works
# $ $(EMSCRIPTEN_HOME)/emconfigure cmake . => fails
cmake_minimum_required (VERSION 2.8)
project (Issue400)