I hereby claim:
- I am memorysaver on github.
- I am memorysaver (https://keybase.io/memorysaver) on keybase.
- I have a public key whose fingerprint is 343C 18FC E3D7 2628 71A2 3A01 DD65 10B0 2160 7AA0
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| from django import template | |
| from django.contrib.staticfiles.finders import find as find_static_file | |
| from django.conf import settings | |
| register = template.Library() | |
| @register.simple_tag | |
| def encode_static(path, encoding='base64', file_type='image'): | |
| """ |
| // Simple function to send Weekly Status Sheets to contacts listed on the "Contacts" sheet in the MPD. | |
| // Load a menu item called "Project Admin" with a submenu item called "Send Status" | |
| // Running this, sends the currently open sheet, as a PDF attachment | |
| function onOpen() { | |
| var submenu = [{name:"Send Status", functionName:"exportSomeSheets"}]; | |
| SpreadsheetApp.getActiveSpreadsheet().addMenu('Project Admin', submenu); | |
| } | |
| function exportSomeSheets() { |
| /*jslint bitwise: true, indent: 2, nomen: true, regexp: true, stupid: true*/ | |
| (function () { | |
| 'use strict'; | |
| var exports = {}; | |
| exports.uuid4 = function () { | |
| //// return uuid of form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx | |
| var uuid = '', ii; | |
| for (ii = 0; ii < 32; ii += 1) { |
| f <-- find a character | |
| ; <-- repeat find (f) | |
| . <-- repeat action | |
| shift+v <-- select all line | |
| : <-- command (f:x) this can repeat an action |
| #!/bin/bash | |
| # Run docker to build | |
| #docker run -v $(pwd):/outputs -it amazonlinux:2016.09 \ | |
| # /bin/bash /outputs/build.sh | |
| set -ex | |
| yum update -y | |
| yum install -y \ |
| // | |
| // ARKonamiKeyboardView.h | |
| // Artsy | |
| // | |
| // Created by Daniel Doubrovkine on 3/21/14. | |
| // Copyright (c) 2014 Art.sy. All rights reserved. | |
| // | |
| #import <DRKonamiCode/DRKonamiGestureRecognizer.h> |
| #import <Foundation/Foundation.h> | |
| // VARIABLE must be a variable declaration (NSString *foo) | |
| // VALUE is what you are checking is not nil | |
| // WHERE is an additional BOOL condition | |
| #define iflet(VARIABLE, VALUE) \ | |
| ifletwhere(VARIABLE, VALUE, YES) | |
| #define ifletwhere(VARIABLE, VALUE, WHERE) \ |