Skip to content

Instantly share code, notes, and snippets.

View ardouglass's full-sized avatar
⛏️
In the pixel mines

Andrew Douglass ardouglass

⛏️
In the pixel mines
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ardouglass on github.
  • I am ardouglass (https://keybase.io/ardouglass) on keybase.
  • I have a public key ASChGlJ6k-_NMSZBUES0z0HuPDjAt30B6Ybse3auvGXb3go

To claim this, I am signing this object:

@ardouglass
ardouglass / disqus.js
Last active August 29, 2015 14:06
So what if I want to do use Disqus on an AJAX page, but I don't want it to load the comments until someone clicks?
var load_disqus = function (identifier) {
var disqus_shortname = 'example';
var disqus_identifier = identifier;
var disqus_url = "http://example.com/" + identifier;
if(typeof DISQUS === "undefined") {
/* * * DON'T EDIT THIS BLOCK FROM DISQUS * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
@ardouglass
ardouglass / gist:6433519
Created September 4, 2013 06:54
Log a list of boards a specific Trello user has created, when they were created, and the title of the board. Don't forget to add your API key, which you can generate here: https://trello.com/1/appKey/generate. Also, don't forget to set your own username for testing.
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script src="https://api.trello.com/1/client.js?key=substitutewithyourapplicationkey"></script>
<script>
var idMemberOrUsername = "ardouglass";
Trello.get( "members/"+ idMemberOrUsername +"/actions?filter=createBoard", success, function(){console.log("Nope.");} );
var success = function(boards) {
for(i=0;i<boards.length;i++){