Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am miniatureape on github.
  • I am justindonato (https://keybase.io/justindonato) on keybase.
  • I have a public key ASBub_iUriFgEPSh5lJPYsID5bTfKC38qYXf9YMfXVflMgo

To claim this, I am signing this object:

diff --git a/src/commands/CmdCalendar.cpp b/src/commands/CmdCalendar.cpp
index 8a3c6ca..cd0f3a9 100644
--- a/src/commands/CmdCalendar.cpp
+++ b/src/commands/CmdCalendar.cpp
@@ -31,6 +31,7 @@
#include <stdlib.h>
#include <Context.h>
#include <ViewText.h>
+#include <Filter.h>
#include <Lexer.h>
13:51 jdonato: Super Taste, on Eldridge. Like David Chang buns in quality and composition, except it's $5 for 3 and there's not a bunch of assholes waiting around for a table.
13:51 jdonato: just got this tip:
13:51 jdonato: ^
13:51 dna: it's not as good
13:51 jdonato: really>
13:51 jdonato: ?
13:51 dna: yeah
13:51 dna: it's okay if you dont know about lam zhou
13:51 dna: but definitely not as good
13:51 jdonato: they do know about lam zhou
python -m SimpleHTTPServer
var extend = function(base, sub) {
var origProto = sub.prototype;
sub.prototype = Object.create(base.prototype);
for (var key in origProto) {
sub.prototype[key] = origProto[key];
}
sub.prototype.constructor = sub;
Object.defineProperty(sub.prototype, 'constructor', {
enumerable: false,
value: sub
<p id="para">Something</p>
<script src="html2canvas.js"></script>
<script>
var elem = document.getElementById('para');
html2canvas(elem, {
onrendered: function(canvas) {
window.location = canvas.toDataURL();
}
})
@miniatureape
miniatureape / gist:2245c5eb1a8f5cec2a17
Created October 10, 2014 15:07
Get Visually Selected Text in VIM
function! GetVisual() range
let reg_save = getreg('"')
let regtype_save = getregtype('"')
let cb_save = &clipboard
set clipboard&
normal! ""gvy
let selection = getreg('"')
call setreg('"', reg_save, regtype_save)
let &clipboard = cb_save
return selection
var divs = document.getElementsByTagName('div');
var div = divs[0];
var randTo = function(max) {
return Math.floor(Math.random() * max);
}
var getRandomColor = function() {
var redColor = randTo(255);
Attendance:
https://docs.google.com/spreadsheets/d/1fmcFC3wWuU4BAajBIL3os7U2doCvt_17MYE437MtF54/edit?usp=sharing
Codepen:
http://codepen.io/miniatureape/collab/Hmeod/
Coderpad:
https://coderpad.io/JW23JQ3Q