Skip to content

Instantly share code, notes, and snippets.

View psawaya's full-sized avatar

Paul Sawaya psawaya

View GitHub Profile
@psawaya
psawaya / gist:6f93a36ae9e070bb71a2fb9e1ac32d71
Last active June 25, 2024 22:44
elsewhere hf0 demo day links
https://drive.google.com/file/d/1RxMDX0ZbW8cCNerKlKtaDWZEL8-GcO4H/view?usp=drive_link
https://www.youtube.com/watch?v=YJpms4vsDn4
https://www.youtube.com/watch?v=wuEm0K2HehA
background/ - all scripts that run in the background
browser_action/ - all crap related to browser actions
pages/ - all pages that are displayed to the user in the main content area (to include preference pages)
infobars/ - all of the infobars we'll dislay (save password, need pin to login, select which username you want to use)
lib/ - third party stuff
images/ - graphics used in various places
common/ - common resources used in multiple contexts (like pin entry)
<html>
<head>
<script src="static/js/jquery-1.7.1.min.js"></script>
<script src="static/js/jquery.form.js"></script>
<script>
$(document).ready(function() {
$('#blogForm').submit(function(e) {
$(this).ajaxSubmit({
target: '#entries'
});
from slingshot_config import *
import httplib
import urllib
import simplejson
class FBInterface(object):
def __init__(self,logger=None,access_token=""):
self.access_token = access_token
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
import asyncore
import email
import json
import logging
import smtpd
from paster.deploy import appconfig
from notifserver.storage import get_message_backend