Skip to content

Instantly share code, notes, and snippets.

@yjkogan
yjkogan / asking_for_help_template.md
Last active April 13, 2021 20:55
Asking for help can be scary! Here's a template I use.

Asking for help can be scary! It can be really uncomfortable to admit you're stuck or that you don't know something. I've noticed this in myself and also had numerous conversations with colleagues who are anxious about requesting assistance. This is the format I use to unstick myself from those feelings. Every section is optional so you can of course omit it!

Hey everyone,
@yjkogan
yjkogan / content_editable.js
Created August 12, 2014 23:15
Vue.js "EditableText" directive.
/**
* In order to get the cursor position / selection for a contenteditable HTML element, we need to do some
* fancy stuff. This is necessary for the editable-text directive (and possibly others in the future). This code comes
* from the following stack overflow post:
*
* http://stackoverflow.com/questions/13949059/persisting-the-changes-of-range-objects-after-selection-in-html/13950376#13950376
* Example here:
* http://jsfiddle.net/WeWy7/3/
*
*/
#!/usr/bin/python
"""
These commands can be run from the src/script directory, which makes remote_gae availble.
Important: Please use the Remote API with extreme caution, since it affects our production servers and Datastore.
Changes made to the production Datastore are often irreparable.
References:
* https://developers.google.com/appengine/articles/remote_api
* https://developers.google.com/appengine/docs/python/tools/remoteapi
@yjkogan
yjkogan / NSDateRFC1123.h
Last active December 30, 2015 21:09 — forked from mro/NSDateRFC1123.h
//
// NSDateRFC1123.h
// Filmfest
//
// Created by Marcus Rohrmoser on 19.08.09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
// Updated by Yonatan Kogan @Optimizely on 2013-12-9
//
#import <Foundation/Foundation.h>