Skip to content

Instantly share code, notes, and snippets.

LSM will be setting up their first event workshop at the end of August.
They are looking for a few hands-on local reps to help them setup and run the event.
If you are interested, go to this link:
https://leanstartupmachine.wufoo.com/forms/founding-organizer-application/
Straight from the event organizer's mouth, this is what they are looking for:
LOCAL REP's (i.e, Founding Organizers)
-Napkin notes:
Host dashword
HostName heroku.com
User [email protected]
IdentityFile ~/.ssh/dash_rsa
@graylikeme
graylikeme / vkmixin.py
Created June 25, 2012 22:08 — forked from adilkhash/vkmixin.py
Vkontakte Oauth 2.0 Mixin
#!/usr/bin/env python
#
# Vkontatke OAuth 2.0 wrapper
# Copyright 2011, Adil Khashtamov [[email protected]]
# http://khashtamov.kz
#
#
import logging
@graylikeme
graylikeme / gist:1272378
Created October 8, 2011 14:47
Tornado error
16:46:41 web.1 | ERROR:root:Uncaught exception GET /css/streetcode.css (127.0.0.1)
16:46:41 web.1 | HTTPRequest(protocol='http', host='localhost:5000', method='GET', uri='/css/streetcode.css', version='HTTP/1.1', remote_ip='127.0.0.1', body='', headers={'Connection': 'keep-alive', 'Accept-Language': 'ru', 'Accept-Encoding': 'gzip, deflate', 'Cookie': 'csrftoken=811fbb57a02e031bf3558b124e5d60cd', 'Host': 'localhost:5000', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50'})
16:46:41 web.1 | Traceback (most recent call last):
16:46:41 web.1 | File "/Users/stanislav/Heroku/Streetcode/lib/python2.7/site-packages/tornado/web.py", line 954, in _execute
16:46:41 web.1 | getattr(self, self.request.method.lower())(*args, **kwargs)
16:46:41 web.1 | TypeError: get() takes at least 2 arguments (1 given)
16:46:41 web.1 | ERROR:root:500 G
@graylikeme
graylikeme / gist:1242578
Created September 26, 2011 15:59
Mock helper
public static class MvcMockHelpers
{
public static HttpContextBase FakeHttpContext()
{
var context = new Mock<HttpContextBase>();
var request = new Mock<HttpRequestBase>();
var response = new Mock<HttpResponseBase>();
var session = new Mock<HttpSessionStateBase>();
var server = new Mock<HttpServerUtilityBase>();
@graylikeme
graylikeme / gist:1185716
Created September 1, 2011 08:32
Bitorama button for posterous
Your theme must "support" sharing and you must enable sharing in the settings otherwise it won't display that block
{block:Sharing}
...
<li class="bitorama-share-button">
<a href="https://bitorama.com/submit?title={Title}&url={Permalink}" target="_blank"> <img src="https://bitorama.com/images/buttons/submit_wide_16.png" alt="להוסיף לביטורמה"border="0" /> </a>
</li>
...
{/block:Sharing}
@graylikeme
graylikeme / Asserts.rb
Created August 29, 2011 22:42
Useless tests blog post
def test_add_items
assert_equal 0, @list.items.size
@list.add_item(@item)
assert_equal 1, @list.items.size
end
var item = new ImportantShopItem
{
Name = "נעליים",
Image = @"alk/hdsbnduaisgbdy8dca89sa7d8yhas79dghyigbiy=",
ItemNameEng = "Shoes",
Class = "Footware",
Group = "GroupName",
Price = 12.87,
Optional = new Dictionary<string, dynamic>
{
@graylikeme
graylikeme / about.md
Created August 10, 2011 04:50 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@graylikeme
graylikeme / Example1.cs
Created July 27, 2011 17:31
Snippets for "Model Binding Collections on Postback in ASP.NET MVC3" blog post
namespace Example
{
public class ContactData
{
public string Name { get; set; }
public string Email { get; set; }
public string Comment { get; set; }
}
}